michael@0: /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: [scriptable, uuid(0DDF9E1C-1DD2-11B2-A183-908A08AA75AE)] michael@0: interface nsISelectionDisplay : nsISupports michael@0: { michael@0: const short DISPLAY_TEXT = 1; //display text selected. michael@0: const short DISPLAY_IMAGES = 2; //show images selected michael@0: const short DISPLAY_FRAMES = 4; //display hrules ect. michael@0: const short DISPLAY_ALL = 7; //display all. used for isEditor as well michael@0: michael@0: /* michael@0: SetSelectionFlags used to set whether you want to see HRULES/IMAGES with border. michael@0: also used to tell if the presshell is an editor right now. this should change michael@0: michael@0: @param aToggle -either DISPLAY_(TEXT,IMAGES,FRAMES,ALL) michael@0: This will tell the rendering engine to draw the different michael@0: selection types. michael@0: michael@0: */ michael@0: void setSelectionFlags(in short toggle); michael@0: michael@0: /* michael@0: GetSelectionFlags used to get whether you want to see HRULES/IMAGES with border. michael@0: also used to tell if the presshell is an editor right now. this should change michael@0: michael@0: @param short *aReturn - This will be filled with DISPLAY_(TEXT,IMAGE,FRAMES,ALL) michael@0: bit flags. michael@0: */ michael@0: short getSelectionFlags(); michael@0: michael@0: };