From d122fd76eb450a423503c97916edfeb0cb69a42a Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Thu, 8 Dec 2011 19:41:50 +0000 Subject: de-inline display fetch/set functions to assist in debugging --- sd/source/ui/app/optsitem.cxx | 15 +++++++++++++++ sd/source/ui/inc/optsitem.hxx | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/sd/source/ui/app/optsitem.cxx b/sd/source/ui/app/optsitem.cxx index b3b8cd7b60fc..99b944255396 100644 --- a/sd/source/ui/app/optsitem.cxx +++ b/sd/source/ui/app/optsitem.cxx @@ -1586,4 +1586,19 @@ void SdOptions::StoreConfig( sal_uLong nOptionsRange ) SdOptionsPrint::Store(); } +sal_Int32 SdOptionsMisc::GetDisplay() const +{ + Init(); + return mnDisplay; +} + +void SdOptionsMisc::SetDisplay( sal_Int32 nDisplay ) +{ + if( mnDisplay != nDisplay ) + { + OptionsChanged(); + mnDisplay = nDisplay; + } +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sd/source/ui/inc/optsitem.hxx b/sd/source/ui/inc/optsitem.hxx index 8eb5ae6d620d..0cd66e19004e 100644 --- a/sd/source/ui/inc/optsitem.hxx +++ b/sd/source/ui/inc/optsitem.hxx @@ -329,8 +329,8 @@ public: sal_Bool IsPreviewChangedEffects() const { Init(); return bPreviewChangedEffects; } sal_Bool IsPreviewTransitions() const { Init(); return bPreviewTransitions; } - sal_Int32 GetDisplay() const { Init(); return mnDisplay; } - void SetDisplay( sal_Int32 nDisplay = 0 ) { if( mnDisplay != nDisplay ) { OptionsChanged(); mnDisplay = nDisplay; } } + sal_Int32 GetDisplay() const; + void SetDisplay( sal_Int32 nDisplay = 0 ); sal_Int32 GetPresentationPenColor() const { Init(); return mnPenColor; } void SetPresentationPenColor( sal_Int32 nPenColor ) { if( mnPenColor != nPenColor ) { OptionsChanged(); mnPenColor = nPenColor; } } -- cgit