1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir #ifndef SD_SLIDESORTER_PROPERTIES_HEADER 29*cdf0e10cSrcweir #define SD_SLIDESORTER_PROPERTIES_HEADER 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir #include <tools/color.hxx> 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir namespace sd { namespace slidesorter { namespace controller { 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir /** An extensible set of properties used throughout the slide sorter. 36*cdf0e10cSrcweir */ 37*cdf0e10cSrcweir class Properties 38*cdf0e10cSrcweir { 39*cdf0e10cSrcweir public: 40*cdf0e10cSrcweir Properties (void); 41*cdf0e10cSrcweir ~Properties (void); 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir /** Call this method after receiving a VCLEVENT_APPLICATION_DATACHANGED 44*cdf0e10cSrcweir event. 45*cdf0e10cSrcweir */ 46*cdf0e10cSrcweir void HandleDataChangeEvent (void); 47*cdf0e10cSrcweir 48*cdf0e10cSrcweir /** When this method returns <TRUE/> then the current slide is 49*cdf0e10cSrcweir highlighted in the view. The default value is <FALSE/>. 50*cdf0e10cSrcweir */ 51*cdf0e10cSrcweir bool IsHighlightCurrentSlide (void) const; 52*cdf0e10cSrcweir void SetHighlightCurrentSlide (const bool bIsHighlightCurrentSlide); 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir /** When this method returns <TRUE/> then the selection is indicated in 55*cdf0e10cSrcweir the view (typically by drawing rectangles around the selected 56*cdf0e10cSrcweir slides.) The default value is <TRUE/>. 57*cdf0e10cSrcweir */ 58*cdf0e10cSrcweir bool IsShowSelection (void) const; 59*cdf0e10cSrcweir void SetShowSelection (const bool bIsShowSelection); 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir /** When this method returns <TRUE/> then the focusdselection is indicated in 62*cdf0e10cSrcweir the view (typically by drawing dotted rectangles around the selected 63*cdf0e10cSrcweir slides.) The default value is <TRUE/>. 64*cdf0e10cSrcweir */ 65*cdf0e10cSrcweir bool IsShowFocus (void) const; 66*cdf0e10cSrcweir void SetShowFocus (const bool bIsShowFocus); 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir /** When this method returns <TRUE/> then on a selection change the 69*cdf0e10cSrcweir visible area is adapted so that the selected slides are shown 70*cdf0e10cSrcweir centered in the view. This can be used to center the current slide 71*cdf0e10cSrcweir by selecting only the current slide. The default value is <FALSE/>. 72*cdf0e10cSrcweir */ 73*cdf0e10cSrcweir bool IsCenterSelection (void) const; 74*cdf0e10cSrcweir void SetCenterSelection (const bool bIsCenterSelection); 75*cdf0e10cSrcweir 76*cdf0e10cSrcweir /** When this mehod returns <TRUE/> then the view may try to change the 77*cdf0e10cSrcweir visible area by scrolling it smoothly on the screen. Experimental. 78*cdf0e10cSrcweir Default value is <FALSE/>. 79*cdf0e10cSrcweir */ 80*cdf0e10cSrcweir bool IsSmoothSelectionScrolling (void) const; 81*cdf0e10cSrcweir void SetSmoothSelectionScrolling (const bool bIsSmoothSelectionScrolling); 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir /** When this method returns <TRUE/> then during a full screen 84*cdf0e10cSrcweir presentation the previews in a slide sorter are not updated. 85*cdf0e10cSrcweir Default value is <TRUE/>. 86*cdf0e10cSrcweir */ 87*cdf0e10cSrcweir bool IsSuspendPreviewUpdatesDuringFullScreenPresentation (void) const; 88*cdf0e10cSrcweir void SetSuspendPreviewUpdatesDuringFullScreenPresentation (const bool bFlag); 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir /** Return the background color. 91*cdf0e10cSrcweir */ 92*cdf0e10cSrcweir Color GetBackgroundColor (void) const; 93*cdf0e10cSrcweir void SetBackgroundColor (const Color& rColor); 94*cdf0e10cSrcweir 95*cdf0e10cSrcweir /** Return the text color. 96*cdf0e10cSrcweir */ 97*cdf0e10cSrcweir Color GetTextColor (void) const; 98*cdf0e10cSrcweir void SetTextColor (const Color& rColor); 99*cdf0e10cSrcweir 100*cdf0e10cSrcweir /** Return the color in which selections are to be painted. 101*cdf0e10cSrcweir */ 102*cdf0e10cSrcweir Color GetSelectionColor (void) const; 103*cdf0e10cSrcweir void SetSelectionColor (const Color& rColor); 104*cdf0e10cSrcweir 105*cdf0e10cSrcweir /** Return the color used for highlighting e.g. the current slide. 106*cdf0e10cSrcweir */ 107*cdf0e10cSrcweir Color GetHighlightColor (void) const; 108*cdf0e10cSrcweir void SetHighlightColor (const Color& rColor); 109*cdf0e10cSrcweir 110*cdf0e10cSrcweir /** The UI can be set to be read only indepently from the model status. 111*cdf0e10cSrcweir Used for instance in the presenter view. 112*cdf0e10cSrcweir */ 113*cdf0e10cSrcweir bool IsUIReadOnly (void) const; 114*cdf0e10cSrcweir void SetUIReadOnly (const bool bIsUIReadOnly); 115*cdf0e10cSrcweir 116*cdf0e10cSrcweir /** The mouse over effect (and whether a mouse motion starts a multi 117*cdf0e10cSrcweir selection or a drag-and-drop) can be triggered by just the preview 118*cdf0e10cSrcweir area or the whole page object area. 119*cdf0e10cSrcweir */ 120*cdf0e10cSrcweir bool IsOnlyPreviewTriggersMouseOver (void) const; 121*cdf0e10cSrcweir void SetOnlyPreviewTriggersMouseOver (const bool bFlag); 122*cdf0e10cSrcweir 123*cdf0e10cSrcweir bool IsHighContrastModeActive (void) const; 124*cdf0e10cSrcweir 125*cdf0e10cSrcweir private: 126*cdf0e10cSrcweir bool mbIsHighlightCurrentSlide; 127*cdf0e10cSrcweir bool mbIsShowSelection; 128*cdf0e10cSrcweir bool mbIsShowFocus; 129*cdf0e10cSrcweir bool mbIsCenterSelection; 130*cdf0e10cSrcweir bool mbIsSmoothSelectionScrolling; 131*cdf0e10cSrcweir bool mbIsSuspendPreviewUpdatesDuringFullScreenPresentation; 132*cdf0e10cSrcweir Color maBackgroundColor; 133*cdf0e10cSrcweir Color maTextColor; 134*cdf0e10cSrcweir Color maSelectionColor; 135*cdf0e10cSrcweir Color maHighlightColor; 136*cdf0e10cSrcweir bool mbIsUIReadOnly; 137*cdf0e10cSrcweir bool mbIsOnlyPreviewTriggersMouseOver; 138*cdf0e10cSrcweir bool mbIsHighContrastModeActive; 139*cdf0e10cSrcweir }; 140*cdf0e10cSrcweir 141*cdf0e10cSrcweir } } } // end of namespace ::sd::slidesorter::controller 142*cdf0e10cSrcweir 143*cdf0e10cSrcweir #endif 144*cdf0e10cSrcweir 145