diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-02-12 15:12:18 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-02-12 15:12:18 +0000 |
commit | 510ca2262f7b2a20f85397908578833766f2accc (patch) | |
tree | c643e3694c83c1b6604f8e92dc67832454776d90 /sc/source/ui/view/prevwsh.cxx | |
parent | c9d443d189b58aa48b6d74fa97838a5020145ef4 (diff) |
INTEGRATION: CWS pagemargins (1.41.8); FILE MERGED
2008/02/01 14:10:56 nn 1.41.8.1: #i51656# page margins in page preview (patch from maoyg)
Diffstat (limited to 'sc/source/ui/view/prevwsh.cxx')
-rw-r--r-- | sc/source/ui/view/prevwsh.cxx | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx index c82bcc04ea14..cc2defdbcd18 100644 --- a/sc/source/ui/view/prevwsh.cxx +++ b/sc/source/ui/view/prevwsh.cxx @@ -4,9 +4,9 @@ * * $RCSfile: prevwsh.cxx,v $ * - * $Revision: 1.41 $ + * $Revision: 1.42 $ * - * last change: $Author: rt $ $Date: 2008-01-29 15:50:40 $ + * last change: $Author: vg $ $Date: 2008-02-12 16:12:18 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -710,6 +710,14 @@ void __EXPORT ScPreviewShell::Execute( SfxRequest& rReq ) rReq.Done(); } break; + case SID_PREVIEW_MARGIN: + { + BOOL bMargin = pPreview->GetPageMargins(); + pPreview->SetPageMargins( !bMargin ); + pPreview->Invalidate(); + rReq.Done(); + } + break; case SID_PRINTPREVIEW: case SID_PREVIEW_CLOSE: // print preview is now always in the same frame as the tab view @@ -792,8 +800,8 @@ void __EXPORT ScPreviewShell::GetState( SfxItemSet& rSet ) rSet.Put( SfxBoolItem( nWhich, TRUE ) ); break; case SID_FORMATPAGE: - //! bei geschuetzten Tabellen ??? - if (pDocShell->IsReadOnly()) + case SID_PREVIEW_MARGIN: + if( pDocShell->IsReadOnly() ) rSet.DisableItem( nWhich ); break; } |