diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-05-03 13:02:21 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-05-03 13:02:21 +0000 |
commit | 2ccfe9332764ee217150473bad790c414aa619ee (patch) | |
tree | 03b3db58ecd5e8f39294246ad63affa04dc2875a /sd/inc/drawdoc.hxx | |
parent | 0786925c9b587ecf06a04cc32d225d5b6982addc (diff) |
INTEGRATION: CWS presfixes05 (1.36.174); FILE MERGED
2005/04/29 11:29:41 cl 1.36.174.1: #i48202# use a guard class during disable modify operations
Diffstat (limited to 'sd/inc/drawdoc.hxx')
-rw-r--r-- | sd/inc/drawdoc.hxx | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx index dcd240d82..419870c8e 100644 --- a/sd/inc/drawdoc.hxx +++ b/sd/inc/drawdoc.hxx @@ -2,9 +2,9 @@ * * $RCSfile: drawdoc.hxx,v $ * - * $Revision: 1.36 $ + * $Revision: 1.37 $ * - * last change: $Author: rt $ $Date: 2004-11-26 19:38:12 $ + * last change: $Author: obo $ $Date: 2005-05-03 14:02:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -741,4 +741,27 @@ private: virtual void MasterPageListChanged(); }; +namespace sd +{ + +// an instance of this guard disables modification of a document +// during its lifetime +class ModifyGuard +{ +public: + ModifyGuard( DrawDocShell* pDocShell ); + ModifyGuard( SdDrawDocument* pDoc ); + ~ModifyGuard(); + +private: + void init(); + + DrawDocShell* mpDocShell; + SdDrawDocument* mpDoc; + BOOL mbIsEnableSetModified; + BOOL mbIsDocumentChanged; +}; + +} + #endif // _DRAWDOC_HXX |