summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorKai Ahrens <ka@openoffice.org>2001-03-28 10:55:47 +0000
committerKai Ahrens <ka@openoffice.org>2001-03-28 10:55:47 +0000
commitf48954fb8784660cebb6be8af5b87b96b4baa6e4 (patch)
tree9876cac6a6aa69fff4ab542ce79d7003d4ef82e7 /sd/source
parentdf7551132f213bb0e17a4edf5db6bc78c4948163 (diff)
#84940#: swap graphics to temp file if SID_VERSION is executed
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/docshell/docshel3.cxx14
-rw-r--r--sd/source/ui/docshell/docshell.cxx10
2 files changed, 20 insertions, 4 deletions
diff --git a/sd/source/ui/docshell/docshel3.cxx b/sd/source/ui/docshell/docshel3.cxx
index 5dbc76e113ac..fb77c3cbbbc3 100644
--- a/sd/source/ui/docshell/docshel3.cxx
+++ b/sd/source/ui/docshell/docshel3.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docshel3.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:48:34 $
+ * last change: $Author: ka $ $Date: 2001-03-28 11:55:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -321,6 +321,16 @@ void __EXPORT SdDrawDocShell::Execute( SfxRequest& rReq )
}
break;
+ case SID_VERSION:
+ {
+ const ULONG nOldSwapMode = pDoc->GetSwapGraphicsMode();
+
+ pDoc->SetSwapGraphicsMode( SDR_SWAPGRAPHICSMODE_TEMP );
+ ExecuteSlot( rReq, SfxObjectShell::GetInterface() );
+ pDoc->SetSwapGraphicsMode( nOldSwapMode );
+ }
+ break;
+
default:
break;
}
diff --git a/sd/source/ui/docshell/docshell.cxx b/sd/source/ui/docshell/docshell.cxx
index c719abafba2f..54f87e29e2d0 100644
--- a/sd/source/ui/docshell/docshell.cxx
+++ b/sd/source/ui/docshell/docshell.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docshell.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: ka $ $Date: 2001-03-23 11:37:19 $
+ * last change: $Author: ka $ $Date: 2001-03-28 11:55:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -379,6 +379,12 @@ void SdDrawDocShell::GetState(SfxItemSet &rSet)
}
break;
+ case SID_VERSION:
+ {
+ GetSlotState( SID_VERSION, SfxObjectShell::GetInterface(), &rSet );
+ }
+ break;
+
default:
break;
}