LibreOffice Module sc (master) 1
|
#include <styleuno.hxx>
Public Member Functions | |
ScStyleObj ()=delete | |
ScStyleObj (ScDocShell *pDocSh, SfxStyleFamily eFam, OUString aName) | |
virtual | ~ScStyleObj () override |
bool | IsInserted () const |
SfxStyleFamily | GetFamily () const |
void | InitDoc (ScDocShell *pNewDocSh, const OUString &rNewName) |
SfxStyleSheetBase * | GetStyle_Impl (bool bUseCachedValue=false) |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
virtual sal_Bool SAL_CALL | isUserDefined () override |
virtual sal_Bool SAL_CALL | isInUse () override |
virtual OUString SAL_CALL | getParentStyle () override |
virtual void SAL_CALL | setParentStyle (const OUString &aParentStyle) override |
virtual OUString SAL_CALL | getName () override |
virtual void SAL_CALL | setName (const OUString &aName) override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &PropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | setPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override |
virtual css::uno::Sequence< css::uno::Any > SAL_CALL | getPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames) override |
virtual void SAL_CALL | addPropertiesChangeListener (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override |
virtual void SAL_CALL | firePropertiesChangeEvent (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override |
virtual css::beans::PropertyState SAL_CALL | getPropertyState (const OUString &PropertyName) override |
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL | getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override |
virtual void SAL_CALL | setPropertyToDefault (const OUString &PropertyName) override |
virtual css::uno::Any SAL_CALL | getPropertyDefault (const OUString &aPropertyName) override |
virtual void SAL_CALL | setAllPropertiesToDefault () override |
virtual void SAL_CALL | setPropertiesToDefault (const css::uno::Sequence< OUString > &aPropertyNames) override |
virtual css::uno::Sequence< css::uno::Any > SAL_CALL | getPropertyDefaults (const css::uno::Sequence< OUString > &aPropertyNames) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Public Member Functions inherited from SfxListener | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
Static Public Member Functions | |
static css::uno::Reference< css::container::XIndexReplace > | CreateEmptyNumberingRules () |
Private Member Functions | |
const SfxItemSet * | GetStyleItemSet_Impl (std::u16string_view rPropName, const SfxItemPropertyMapEntry *&rpEntry) |
css::beans::PropertyState | getPropertyState_Impl (std::u16string_view PropertyName) |
css::uno::Any | getPropertyDefault_Impl (std::u16string_view aPropertyName) |
css::uno::Any | getPropertyValue_Impl (std::u16string_view aPropertyName) |
void | setPropertyValue_Impl (std::u16string_view rPropertyName, const SfxItemPropertyMapEntry *pEntry, const css::uno::Any *pValue) |
Private Attributes | |
const SfxItemPropertySet * | pPropSet |
ScDocShell * | pDocShell |
SfxStyleFamily | eFamily |
OUString | aStyleName |
SfxStyleSheetBase * | pStyle_cached |
Definition at line 157 of file styleuno.hxx.
|
delete |
ScStyleObj::ScStyleObj | ( | ScDocShell * | pDocSh, |
SfxStyleFamily | eFam, | ||
OUString | aName | ||
) |
Definition at line 970 of file styleuno.cxx.
References ScDocument::AddUnoObject(), aName, ScDocShell::GetDocument(), lcl_GetCellStyleSet(), lcl_GetGraphicStyleSet(), lcl_GetPageStyleSet(), pDocShell, and pPropSet.
|
overridevirtual |
Definition at line 999 of file styleuno.cxx.
References ScDocShell::GetDocument(), pDocShell, and ScDocument::RemoveUnoObject().
|
overridevirtual |
Definition at line 1429 of file styleuno.cxx.
|
overridevirtual |
|
overridevirtual |
|
static |
Definition at line 1156 of file styleuno.cxx.
References SvxCreateNumRule().
|
overridevirtual |
Definition at line 1441 of file styleuno.cxx.
|
inline |
Definition at line 198 of file styleuno.hxx.
References eFamily.
Referenced by ScStyleFamilyObj::insertByName().
|
overridevirtual |
Definition at line 2048 of file styleuno.cxx.
|
overridevirtual |
Definition at line 1112 of file styleuno.cxx.
References ScStyleNameConversion::DisplayToProgrammaticName(), eFamily, SfxStyleSheetBase::GetName(), and GetStyle_Impl().
|
overridevirtual |
Definition at line 1052 of file styleuno.cxx.
References ScStyleNameConversion::DisplayToProgrammaticName(), eFamily, SfxStyleSheetBase::GetParent(), and GetStyle_Impl().
|
overridevirtual |
Definition at line 1378 of file styleuno.cxx.
References getPropertyDefault_Impl(), and GetStyle_Impl().
|
private |
css::beans::UnknownPropertyException | |
css::lang::WrappedTargetException | |
css::uno::RuntimeException |
change Slot-IDs...
define sal_Bool-MID for ScViewObjectModeItem?
Definition at line 1282 of file styleuno.cxx.
References ScHelperFunctions::AssignTableBorder2ToAny(), ScHelperFunctions::AssignTableBorderToAny(), ATTR_BORDER(), ATTR_BORDER_INNER(), ATTR_INDENT(), ATTR_PAGE_CHARTS(), ATTR_PAGE_DRAWINGS(), ATTR_PAGE_FIRSTPAGENO(), ATTR_PAGE_OBJECTS(), ATTR_PAGE_SCALE(), ATTR_PAGE_SCALETO(), ATTR_PAGE_SCALETOPAGES(), ATTR_VALUE_FORMAT(), SfxItemSet::Get(), ScPageScaleToItem::GetHeight(), SfxItemSet::GetItemState(), SfxItemSet::GetPool(), SfxItemPropertySet::getPropertyValue(), SfxItemSet::GetRanges(), SfxItemPool::GetSlotId(), GetStyleItemSet_Impl(), ScPageScaleToItem::GetWidth(), IsScItemWid(), IsScUnoWid(), SfxItemPropertyMapEntry::nWID, OWN_ATTR_FILLBMP_MODE, OWN_ATTR_TEXTCOLUMNS, pPropSet, SfxItemSet::Put(), SC_UNO_PAGE_SCALETOX, SC_WID_UNO_TBLBORD, SC_WID_UNO_TBLBORD2, SDRATTR_TEXTDIRECTION(), SvxItemPropertySet_getPropertyValue(), and VOBJ_MODE_SHOW.
Referenced by getPropertyDefault().
|
overridevirtual |
Definition at line 1386 of file styleuno.cxx.
References GetStyle_Impl().
|
overridevirtual |
Definition at line 1516 of file styleuno.cxx.
References SfxItemPropertySet::getPropertySetInfo(), and pPropSet.
|
overridevirtual |
Definition at line 1251 of file styleuno.cxx.
References getPropertyState_Impl(), and GetStyle_Impl().
|
private |
css::beans::UnknownPropertyException | |
css::uno::RuntimeException |
Definition at line 1198 of file styleuno.cxx.
References ATTR_BORDER(), eFamily, SfxItemSet::GetItemState(), GetStyleItemSet_Impl(), IsScItemWid(), SfxItemPropertyMapEntry::nWID, OWN_ATTR_FILLBMP_MODE, SC_WID_UNO_TBLBORD, SC_WID_UNO_TBLBORD2, SDRATTR_TEXTDIRECTION(), XATTR_FILLBMP_STRETCH(), and XATTR_FILLBMP_TILE().
Referenced by getPropertyState().
|
overridevirtual |
Definition at line 1259 of file styleuno.cxx.
References GetStyle_Impl().
|
overridevirtual |
Definition at line 2036 of file styleuno.cxx.
References getPropertyValue_Impl(), and GetStyle_Impl().
|
private |
css::beans::UnknownPropertyException | |
css::lang::WrappedTargetException | |
css::uno::RuntimeException |
define sal_Bool-MID for ScViewObjectModeItem?
change Slot-IDs...
Definition at line 1875 of file styleuno.cxx.
References aName, ScHelperFunctions::AssignTableBorder2ToAny(), ScHelperFunctions::AssignTableBorderToAny(), ATTR_BORDER(), ATTR_BORDER_INNER(), ATTR_HIDDEN(), ATTR_INDENT(), ATTR_LANGUAGE_FORMAT(), ATTR_PAGE_CHARTS(), ATTR_PAGE_DRAWINGS(), ATTR_PAGE_FIRSTPAGENO(), ATTR_PAGE_OBJECTS(), ATTR_PAGE_PAPERBIN(), ATTR_PAGE_SCALE(), ATTR_PAGE_SCALETO(), ATTR_PAGE_SCALETOPAGES(), ATTR_ROTATE_VALUE(), ATTR_STACKED(), ATTR_VALUE_FORMAT(), SfxItemPropertyMapEntry::aType, cppu::UnoType< typename T >::get(), SfxItemSet::Get(), ScDocShell::GetDocument(), ScDocument::GetFormatTable(), ScPageScaleToItem::GetHeight(), SfxItemSet::GetItem(), SfxItemSet::GetItemState(), SfxStyleSheetBase::GetName(), Printer::GetPaperBinName(), SfxItemSet::GetPool(), ScDocShell::GetPrinter(), SfxItemPropertySet::getPropertyValue(), SfxItemPool::GetSlotId(), GetStyle_Impl(), GetStyleItemSet_Impl(), GetValue, ScPageScaleToItem::GetWidth(), SfxStyleSheetBase::IsHidden(), IsScItemWid(), IsScUnoWid(), nValue, SfxItemPropertyMapEntry::nWID, OWN_ATTR_FILLBMP_MODE, OWN_ATTR_TEXTCOLUMNS, PAPERBIN_PRINTER_SETTINGS, pDocShell, pPropSet, SfxItemSet::Put(), SvxOrientationItem::QueryValue(), SC_PAPERBIN_DEFAULTNAME, SC_UNO_PAGE_SCALETOX, SC_UNONAME_DISPNAME, SC_WID_UNO_TBLBORD, SC_WID_UNO_TBLBORD2, SDRATTR_TEXTDIRECTION(), SvxItemPropertySet_getPropertyValue(), VOBJ_MODE_SHOW, XATTR_FILLBMP_STRETCH(), and XATTR_FILLBMP_TILE().
Referenced by getPropertyValue().
|
overridevirtual |
Definition at line 1418 of file styleuno.cxx.
References GetStyle_Impl().
SfxStyleSheetBase * ScStyleObj::GetStyle_Impl | ( | bool | bUseCachedValue = false | ) |
Definition at line 1017 of file styleuno.cxx.
References aStyleName, eFamily, SfxStyleSheetBasePool::Find(), ScDocShell::GetDocument(), ScDocument::GetStyleSheetPool(), pDocShell, and pStyle_cached.
Referenced by getName(), getParentStyle(), getPropertyDefault(), getPropertyDefaults(), getPropertyState(), getPropertyStates(), getPropertyValue(), getPropertyValue_Impl(), getPropertyValues(), GetStyleItemSet_Impl(), isInUse(), isUserDefined(), setAllPropertiesToDefault(), setName(), setParentStyle(), setPropertiesToDefault(), setPropertyToDefault(), setPropertyValue(), setPropertyValue_Impl(), and setPropertyValues().
|
private |
Definition at line 1164 of file styleuno.cxx.
References ATTR_PAGE_FOOTERSET(), ATTR_PAGE_HEADERSET(), eFamily, SfxItemSet::Get(), SfxItemPropertyMap::getByName(), SfxStyleSheetBase::GetItemSet(), SfxItemPropertySet::getPropertyMap(), GetStyle_Impl(), lcl_GetFooterStyleMap(), lcl_GetHeaderStyleMap(), and pPropSet.
Referenced by getPropertyDefault_Impl(), getPropertyState_Impl(), and getPropertyValue_Impl().
|
overridevirtual |
Definition at line 2058 of file styleuno.cxx.
References eFamily, SCCELLSTYLE_SERVICE, SCGRAPHICSTYLE_SERVICE, SCPAGESTYLE_SERVICE, and SCSTYLE_SERVICE.
void ScStyleObj::InitDoc | ( | ScDocShell * | pNewDocSh, |
const OUString & | rNewName | ||
) |
Definition at line 989 of file styleuno.cxx.
References ScDocument::AddUnoObject(), aStyleName, ScDocShell::GetDocument(), and pDocShell.
Referenced by ScStyleFamilyObj::insertByName().
|
inline |
Definition at line 197 of file styleuno.hxx.
References pDocShell.
Referenced by ScStyleFamilyObj::insertByName().
|
overridevirtual |
Definition at line 1043 of file styleuno.cxx.
References GetStyle_Impl(), and SfxStyleSheetBase::IsUsed().
|
overridevirtual |
Definition at line 1034 of file styleuno.cxx.
References GetStyle_Impl(), and SfxStyleSheetBase::IsUserDefined().
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 1007 of file styleuno.cxx.
References SfxHint::GetId(), and pDocShell.
|
overridevirtual |
Definition at line 1435 of file styleuno.cxx.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
merge with SetOneProperty
Definition at line 1450 of file styleuno.cxx.
References aStyleName, ATTR_BORDER_INNER(), SfxItemSet::ClearItem(), eFamily, ScDocShell::GetDocument(), SfxStyleSheetBase::GetItemSet(), GetStyle_Impl(), Grid, ScDocument::IsImportingXML(), lcl_AnyTabProtected(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, nPPTX, nPPTY, ScDocShell::PageStyleModified(), pDocShell, ScDocShell::PostPaint(), SfxItemSet::Put(), rSet, SvxBoxInfoItem::SetDist(), ScDocShell::SetDocumentModified(), SvxBoxInfoItem::SetTable(), SvxBoxInfoItem::SetValid(), ScDocument::StyleSheetChanged(), Point::X(), and Point::Y().
|
overridevirtual |
exception?
DocFunc function?? Undo ?????????????
notify other objects for this style?
Definition at line 1121 of file styleuno.cxx.
References aStyleName, ScDocumentPool::CellStyleCreated(), eFamily, ScDocShell::GetDocument(), ScDocument::GetPool(), GetStyle_Impl(), ScDocShell::GetViewBindings(), SfxBindings::Invalidate(), ScDocument::IsImportingXML(), lcl_AnyTabProtected(), nId, pDocShell, and SfxStyleSheetBase::SetName().
|
overridevirtual |
exception?
DocFunc function?? Undo ?????????????
ModifyStyleSheet on document (save old values)
Definition at line 1061 of file styleuno.cxx.
References aStyleName, eFamily, ScDocShell::GetDocument(), GetStyle_Impl(), Grid, ScDocument::IsImportingXML(), lcl_AnyTabProtected(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, nPPTX, nPPTY, ScDocShell::PageStyleModified(), pDocShell, ScDocShell::PostPaint(), ScStyleNameConversion::ProgrammaticToDisplayName(), ScDocShell::SetDocumentModified(), SfxStyleSheetBase::SetParent(), ScDocument::StyleSheetChanged(), Point::X(), and Point::Y().
|
overridevirtual |
Definition at line 1501 of file styleuno.cxx.
References SfxItemPropertyMap::getByName(), SfxItemPropertySet::getPropertyMap(), GetStyle_Impl(), pPropSet, and setPropertyValue_Impl().
|
overridevirtual |
Definition at line 1270 of file styleuno.cxx.
References SfxItemPropertyMap::getByName(), SfxItemPropertySet::getPropertyMap(), GetStyle_Impl(), pPropSet, and setPropertyValue_Impl().
|
overridevirtual |
Definition at line 1522 of file styleuno.cxx.
References SfxItemPropertyMap::getByName(), SfxItemPropertySet::getPropertyMap(), GetStyle_Impl(), pPropSet, and setPropertyValue_Impl().
|
private |
css::lang::IllegalArgumentException | |
css::uno::RuntimeException |
keep default state of number format if only language changed?
need to define sal_Bool-MID for ScViewObjectModeItem?
change Slot-IDs...
for ATTR_ROTATE_VALUE, also reset ATTR_ORIENTATION?
DocFunc-?? Undo ??
ModifyStyleSheet on document (save old values)
Definition at line 1534 of file styleuno.cxx.
References aName, aStyleName, ATTR_BORDER(), ATTR_BORDER_INNER(), ATTR_HIDDEN(), ATTR_INDENT(), ATTR_LANGUAGE_FORMAT(), ATTR_PAGE_CHARTS(), ATTR_PAGE_DRAWINGS(), ATTR_PAGE_FIRSTPAGENO(), ATTR_PAGE_FOOTERSET(), ATTR_PAGE_HEADERSET(), ATTR_PAGE_OBJECTS(), ATTR_PAGE_PAPERBIN(), ATTR_PAGE_SCALE(), ATTR_PAGE_SCALETO(), ATTR_PAGE_SCALETOPAGES(), ATTR_ROTATE_VALUE(), ATTR_STACKED(), ATTR_VALUE_FORMAT(), SfxItemSet::ClearItem(), eFamily, eMode, ScHelperFunctions::FillBoxItems(), SfxItemSet::Get(), SfxItemPropertyMap::getByName(), ScDocShell::GetDocument(), SvNumberFormatter::GetEntry(), SvNumberFormatter::GetFormatForLanguageIfBuiltIn(), ScDocument::GetFormatTable(), SfxStyleSheetBase::GetItemSet(), SfxItemSet::GetItemState(), SvNumberformat::GetLanguage(), Printer::GetPaperBinCount(), Printer::GetPaperBinName(), SfxItemSet::GetPool(), ScDocShell::GetPrinter(), SfxItemPool::GetSlotId(), GetStyle_Impl(), Grid, i, ScDocument::IsImportingXML(), SfxObjectShell::IsLoading(), IsScItemWid(), IsScUnoWid(), LANGUAGE_DONTKNOW, lcl_AnyTabProtected(), lcl_GetFooterStyleMap(), lcl_GetHeaderStyleMap(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, MID_NAME, o3tl::mm100, nCount, SfxItemPropertyMapEntry::nMemberId, nPPTX, nPPTY, SfxItemPropertyMapEntry::nWID, OWN_ATTR_FILLBMP_MODE, ScDocShell::PageStyleModified(), PAPERBIN_PRINTER_SETTINGS, pDocShell, ScDocShell::PostPaint(), pPropSet, SfxItemSet::Put(), rSet, SC_PAPERBIN_DEFAULTNAME, SC_UNO_PAGE_SCALETOX, SC_WID_UNO_FOOTERSET, SC_WID_UNO_HEADERSET, SC_WID_UNO_TBLBORD, SC_WID_UNO_TBLBORD2, SDRATTR_TEXTDIRECTION(), ScDocShell::SetDocumentModified(), SvxShape::SetFillAttribute(), ScPageScaleToItem::SetHeight(), SfxStyleSheetBase::SetHidden(), SfxItemPropertySet::setPropertyValue(), ScPageScaleToItem::SetWidth(), ScDocument::StyleSheetChanged(), SvxItemPropertySet_setPropertyValue(), o3tl::toTwips(), VOBJ_MODE_HIDE, VOBJ_MODE_SHOW, Point::X(), XATTR_FILLBITMAP(), XATTR_FILLBMP_STRETCH(), XATTR_FILLBMP_TILE(), XATTR_FILLFLOATTRANSPARENCE(), XATTR_FILLGRADIENT(), XATTR_FILLHATCH(), XATTR_LINEDASH(), XATTR_LINEEND(), XATTR_LINESTART(), and Point::Y().
Referenced by setPropertiesToDefault(), setPropertyToDefault(), setPropertyValue(), and setPropertyValues().
|
overridevirtual |
Definition at line 1399 of file styleuno.cxx.
References SfxItemPropertyMap::getByName(), SfxItemPropertySet::getPropertyMap(), GetStyle_Impl(), i, pPropSet, pValues, and setPropertyValue_Impl().
|
overridevirtual |
Definition at line 2053 of file styleuno.cxx.
References cppu::supportsService().
|
private |
Definition at line 170 of file styleuno.hxx.
Referenced by GetStyle_Impl(), InitDoc(), setAllPropertiesToDefault(), setName(), setParentStyle(), and setPropertyValue_Impl().
|
private |
Definition at line 169 of file styleuno.hxx.
Referenced by GetFamily(), getName(), getParentStyle(), getPropertyState_Impl(), GetStyle_Impl(), GetStyleItemSet_Impl(), getSupportedServiceNames(), setAllPropertiesToDefault(), setName(), setParentStyle(), and setPropertyValue_Impl().
|
private |
Definition at line 168 of file styleuno.hxx.
Referenced by getPropertyValue_Impl(), GetStyle_Impl(), InitDoc(), IsInserted(), Notify(), ScStyleObj(), setAllPropertiesToDefault(), setName(), setParentStyle(), setPropertyValue_Impl(), and ~ScStyleObj().
|
private |
Definition at line 167 of file styleuno.hxx.
Referenced by getPropertyDefault_Impl(), getPropertySetInfo(), getPropertyValue_Impl(), GetStyleItemSet_Impl(), ScStyleObj(), setPropertiesToDefault(), setPropertyToDefault(), setPropertyValue(), setPropertyValue_Impl(), and setPropertyValues().
|
private |
Definition at line 171 of file styleuno.hxx.
Referenced by GetStyle_Impl().