summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaskaran Singh <jvsg1303@gmail.com>2016-07-12 17:08:33 +0530
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-09-17 18:19:36 +0200
commit8b15a9537fba2b0271262320829b131d1968bac4 (patch)
tree445024a625b654f3809ce42fd7acb6800940f069
parentAdd functions for cell protection in orcus interface (diff)
downloadcore-8b15a9537fba2b0271262320829b131d1968bac4.tar.gz
core-8b15a9537fba2b0271262320829b131d1968bac4.zip
Add to a method to check if stlpool already has standard styles
Change-Id: I9173b0232d466a27cf8a7b35e0a9f0567b398115
-rw-r--r--sc/inc/stlpool.hxx3
-rw-r--r--sc/source/core/data/stlpool.cxx2
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 {