diff options
Diffstat (limited to 'sc/source/filter/orcus/interface.cxx')
-rw-r--r-- | sc/source/filter/orcus/interface.cxx | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx index 5282344f5981..6be6374a0910 100644 --- a/sc/source/filter/orcus/interface.cxx +++ b/sc/source/filter/orcus/interface.cxx @@ -22,6 +22,7 @@ #include "scitems.hxx" #include "patattr.hxx" #include "docpool.hxx" +#include "attrib.hxx" #include <editeng/postitem.hxx> #include <editeng/wghtitem.hxx> @@ -827,22 +828,7 @@ ScOrcusStyles::protection::protection(): void ScOrcusStyles::protection::applyToItemSet(SfxItemSet& rSet) const { - if (mbHidden) - rSet.Put(SvxCharHiddenItem(mbHidden, ATTR_PROTECTION)); - - if (!mbLocked) - { - SvxProtectItem aItem(ATTR_PROTECTION); - - aItem.SetContentProtect (false); - aItem.SetSizeProtect (false); - aItem.SetPosProtect (false); - - rSet.Put(aItem); - } - - if (!mbPrintContent) - rSet.Put(SvxPrintItem(ATTR_PROTECTION, mbPrintContent)); + rSet.Put(ScProtectionAttr(mbLocked, mbFormulaHidden, mbHidden, mbPrintContent)); } ScOrcusStyles::border::border(): |