1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/public/nsISelectionDisplay.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.5 + * 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#include "nsISupports.idl" 1.11 + 1.12 +[scriptable, uuid(0DDF9E1C-1DD2-11B2-A183-908A08AA75AE)] 1.13 +interface nsISelectionDisplay : nsISupports 1.14 +{ 1.15 + const short DISPLAY_TEXT = 1; //display text selected. 1.16 + const short DISPLAY_IMAGES = 2; //show images selected 1.17 + const short DISPLAY_FRAMES = 4; //display hrules ect. 1.18 + const short DISPLAY_ALL = 7; //display all. used for isEditor as well 1.19 + 1.20 + /* 1.21 + SetSelectionFlags used to set whether you want to see HRULES/IMAGES with border. 1.22 + also used to tell if the presshell is an editor right now. this should change 1.23 + 1.24 + @param aToggle -either DISPLAY_(TEXT,IMAGES,FRAMES,ALL) 1.25 + This will tell the rendering engine to draw the different 1.26 + selection types. 1.27 + 1.28 + */ 1.29 + void setSelectionFlags(in short toggle); 1.30 + 1.31 + /* 1.32 + GetSelectionFlags used to get whether you want to see HRULES/IMAGES with border. 1.33 + also used to tell if the presshell is an editor right now. this should change 1.34 + 1.35 + @param short *aReturn - This will be filled with DISPLAY_(TEXT,IMAGE,FRAMES,ALL) 1.36 + bit flags. 1.37 + */ 1.38 + short getSelectionFlags(); 1.39 + 1.40 +};