diff options
author | Jaskaran Singh <jvsg1303@gmail.com> | 2016-07-12 17:08:33 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-09-18 00:15:10 +0200 |
commit | 7911f21cd3e0deb6c1966dc97b8a5e5cf994d3af (patch) | |
tree | 3b8c663ca1e5043733c6e08e42f2b7e5f145c425 /sc | |
parent | 6fbd64d89794033d438a031da4b4f6d64af53afc (diff) |
Add to a method to check if stlpool already has standard styles
Change-Id: I9173b0232d466a27cf8a7b35e0a9f0567b398115
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/stlpool.hxx | 3 | ||||
-rw-r--r-- | sc/source/core/data/stlpool.cxx | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sc/inc/stlpool.hxx b/sc/inc/stlpool.hxx index 842ae88737c5..71552552cc25 100644 --- a/sc/inc/stlpool.hxx +++ b/sc/inc/stlpool.hxx @@ -49,6 +49,8 @@ public: void CopyStyleFrom( ScStyleSheetPool* pSrcPool, const OUString& rName, SfxStyleFamily eFamily ); + bool HasStandardStyles() { return bHasStandardStyles; } + ScStyleSheet* FindCaseIns( const OUString& rName, SfxStyleFamily eFam ); virtual SfxStyleSheetBase& Make( const OUString&, SfxStyleFamily eFam, @@ -67,6 +69,7 @@ protected: private: SfxStyleSheetBase* pActualStyleSheet; ScDocument* pDoc; + bool bHasStandardStyles; }; #endif // INCLUDED_SC_INC_STLPOOL_HXX diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx index d1f06ce05bc7..a0cfdc970123 100644 --- a/sc/source/core/data/stlpool.cxx +++ b/sc/source/core/data/stlpool.cxx @@ -433,6 +433,8 @@ void ScStyleSheetPool::CreateStandardStyles() delete pTxtObj; delete pEmptyTxtObj; + + bHasStandardStyles = true; } namespace { |