summaryrefslogtreecommitdiff
path: root/sd
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
parentdf7551132f213bb0e17a4edf5db6bc78c4948163 (diff)
#84940#: swap graphics to temp file if SID_VERSION is executed
Diffstat (limited to 'sd')
-rw-r--r--sd/sdi/_docsh.sdi14
-rw-r--r--sd/source/ui/docshell/docshel3.cxx14
-rw-r--r--sd/source/ui/docshell/docshell.cxx10
3 files changed, 31 insertions, 7 deletions
diff --git a/sd/sdi/_docsh.sdi b/sd/sdi/_docsh.sdi
index 3d1d0b5b78bb..6181e85e7863 100644
--- a/sd/sdi/_docsh.sdi
+++ b/sd/sdi/_docsh.sdi
@@ -5,8 +5,8 @@
#* Beschreibung Basis fuer DocShell-IDL
#*
#* Ersterstellung SOH 04.04.97
-#* Letzte Aenderung $Author: hr $ $Date: 2000-09-18 16:48:29 $
-#* $Revision: 1.1.1.1 $
+#* Letzte Aenderung $Author: ka $ $Date: 2001-03-28 11:54:46 $
+#* $Revision: 1.2 $
#*
#* $Logfile: T:/sd/sdi/_docsh.sdv $
#*
@@ -16,7 +16,7 @@
Source Code Control System - Header
- $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sd/sdi/_docsh.sdi,v 1.1.1.1 2000-09-18 16:48:29 hr Exp $
+ $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sd/sdi/_docsh.sdi,v 1.2 2001-03-28 11:54:46 ka Exp $
*************************************************************************/
@@ -93,6 +93,11 @@ interface DrawDocument : OfficeDocument
[
ExecMethod = Execute;
]
+ SID_VERSION
+ [
+ ExecMethod = Execute;
+ StateMethod = GetState;
+ ]
}
/*************************************************************************
@@ -100,6 +105,9 @@ interface DrawDocument : OfficeDocument
Source Code Control System - History
$Log: not supported by cvs2svn $
+ Revision 1.1.1.1 2000/09/18 16:48:29 hr
+ initial import
+
Revision 1.8 1999/09/01 15:41:55 pw
Pack & Go
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;
}