Kaydet (Commit) 99dfc082 authored tarafından Jaskaran Singh's avatar Jaskaran Singh Kaydeden (comit) Markus Mohrhard

Reform function to apply protection in orcus interface

Change-Id: Idb25283fbd504d64c3518b1a4b742e9e50f6ccff
üst 6670cc35
......@@ -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():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment