summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorChristian Lippka ORACLE <christian.lippka@oracle.com>2011-03-10 14:21:52 +0100
committerChristian Lippka ORACLE <christian.lippka@oracle.com>2011-03-10 14:21:52 +0100
commitbe5df7cfe68e5cf185ecb9754118a1f067c0deb2 (patch)
treea837df2f6b23ab9a30c20b93cc72f3cc1de00341 /sw/inc
parentfb3e8f4852851cb6387a523d9aa21f7615df74f4 (diff)
impress210: #i117133# put new drawing layer fill and stroke styles in pool only for newly created documents
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/doc.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 8ac03ff109bd..a5331ebef810 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -599,6 +599,8 @@ private:
sal_Bool mbStartIdleTimer ; // idle timer mode start/stop
+ bool mbSetDrawDefaults; ; // set draw pool defaults for freshly created documents
+
static SwAutoCompleteWord *pACmpltWords; // Liste aller Worte fuers AutoComplete
//---------------- private Methoden ------------------------------
@@ -2092,6 +2094,13 @@ public:
::sw::UndoManager & GetUndoManager();
::sw::UndoManager const& GetUndoManager() const;
SfxObjectShell* CreateCopy(bool bCallInitNew) const;
+
+ /// must be called only in SwDocShell::InitNew, causes UpdateDrawDefaults to be called when drawing layer is created
+ void SetDrawDefaults();
+
+private:
+ /// method to set new graphics pool defaults, must only be called by SetDrawDefaults!
+ void UpdateDrawDefaults();
};