diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-01-05 01:26:50 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-01-05 16:23:39 +0000 |
commit | ed6b4dc7f615a51fc87a81786f9ad7673a84e06a (patch) | |
tree | d83a25c0c7200ca42adac270819d8dede334527e /package/source/xstor/xstorage.hxx | |
parent | 02db0f95b716d9fee41dadd3f6c8448c76e70dc5 (diff) |
package: avoid un-necessary modification event work.
Change-Id: Ia4b4e3edccf661b8c5f474c5c7474b5f9e497fcc
Diffstat (limited to 'package/source/xstor/xstorage.hxx')
-rw-r--r-- | package/source/xstor/xstorage.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package/source/xstor/xstorage.hxx b/package/source/xstor/xstorage.hxx index 27f92e3efba0..6fab38508e4d 100644 --- a/package/source/xstor/xstorage.hxx +++ b/package/source/xstor/xstorage.hxx @@ -128,11 +128,19 @@ struct OStorage_Impl sal_Int32 m_nStorageMode; // open mode ( read/write/trunc/nocreate ) sal_Bool m_bIsModified; // only modified elements will be sent to the original content sal_Bool m_bBroadcastModified; // will be set if notification is required + sal_Bool m_bCommited; // sending the streams is coordinated by the root storage of the package sal_Bool m_bIsRoot; // marks this storage as root storages that manages all commits and reverts sal_Bool m_bListCreated; + /// Count of registered modification listeners + oslInterlockedCount m_nModifiedListenerCount; + bool HasModifiedListener() + { + return m_nModifiedListenerCount > 0 && m_pAntiImpl != NULL; + } + SotElementList_Impl m_aChildrenList; SotElementList_Impl m_aDeletedList; |