diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-16 16:06:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-16 16:19:57 +0200 |
commit | c1c309d37c5129ef291becd5821d9aff3991a828 (patch) | |
tree | bac0c282a83febfa07bff9ae8b550991d02c1204 /sc/source/ui/view/prevwsh.cxx | |
parent | b88583992ee63302e9a287a8af2206c864c381e8 (diff) |
Replace "sc design mode" sal_uInt8 with TriState
...used values were 0, 1, and SC_FORCEMODE_NONE = 0xff
Change-Id: Id6303b77a11d22c3d19cb22c3b5838cc7cec624f
Diffstat (limited to 'sc/source/ui/view/prevwsh.cxx')
-rw-r--r-- | sc/source/ui/view/prevwsh.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx index 9760de2aa91f..49500b78eaed 100644 --- a/sc/source/ui/view/prevwsh.cxx +++ b/sc/source/ui/view/prevwsh.cxx @@ -152,7 +152,7 @@ ScPreviewShell::ScPreviewShell( SfxViewFrame* pViewFrame, SfxViewShell( pViewFrame, SfxViewShellFlags::CAN_PRINT | SfxViewShellFlags::HAS_PRINTOPTIONS ), pDocShell( static_cast<ScDocShell*>(pViewFrame->GetObjectShell()) ), mpFrameWindow(NULL), - nSourceDesignMode( SC_FORCEMODE_NONE ), + nSourceDesignMode( TRISTATE_INDET ), nMaxVertPos(0), pAccessibilityBroadcaster( NULL ) { @@ -174,7 +174,8 @@ ScPreviewShell::ScPreviewShell( SfxViewFrame* pViewFrame, // (only if draw view exists) SdrView* pDrawView = pTabViewShell->GetSdrView(); if ( pDrawView ) - nSourceDesignMode = pDrawView->IsDesignMode(); + nSourceDesignMode + = pDrawView->IsDesignMode() ? TRISTATE_TRUE : TRISTATE_FALSE; } new ScPreviewObj(this); |