diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-04-22 20:32:33 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-04-22 22:45:12 +0200 |
commit | 6e55f7df9ae8e0948b456cb02f6c841b353acd23 (patch) | |
tree | 1e641e1f12c8a22ae140fbdc86e68e0934280af8 /sc/source/core/data/stlpool.cxx | |
parent | a4df49725b142f1c779fd7f95c58acfa5654cd92 (diff) |
mark all new styles as default styles, tdf#103380, tdf#103330
Change-Id: I0b893d61ea6c9d0fd4af9f08b0d3b2e5454e544e
Reviewed-on: https://gerrit.libreoffice.org/36819
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/core/data/stlpool.cxx')
-rw-r--r-- | sc/source/core/data/stlpool.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx index e41e8f03693d..b4aa9bbb7505 100644 --- a/sc/source/core/data/stlpool.cxx +++ b/sc/source/core/data/stlpool.cxx @@ -440,4 +440,14 @@ ScStyleSheet* ScStyleSheetPool::FindCaseIns( const OUString& rName, SfxStyleFami return nullptr; } +void ScStyleSheetPool::setAllStandard() +{ + SfxStyleSheetBase* pSheet = First(); + while (pSheet) + { + pSheet->SetMask(SCSTYLEBIT_STANDARD); + pSheet = Next(); + } +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |