LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScStyleObj Class Referencefinal

#include <styleuno.hxx>

Inheritance diagram for ScStyleObj:
[legend]
Collaboration diagram for ScStyleObj:
[legend]

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)
 
SfxStyleSheetBaseGetStyle_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
 
SfxBroadcasterGetBroadcasterJOE (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 SfxItemSetGetStyleItemSet_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 SfxItemPropertySetpPropSet
 
ScDocShellpDocShell
 
SfxStyleFamily eFamily
 
OUString aStyleName
 
SfxStyleSheetBasepStyle_cached
 

Detailed Description

Definition at line 157 of file styleuno.hxx.

Constructor & Destructor Documentation

◆ ScStyleObj() [1/2]

ScStyleObj::ScStyleObj ( )
delete

◆ ScStyleObj() [2/2]

ScStyleObj::ScStyleObj ( ScDocShell pDocSh,
SfxStyleFamily  eFam,
OUString  aName 
)

◆ ~ScStyleObj()

ScStyleObj::~ScStyleObj ( )
overridevirtual

Definition at line 999 of file styleuno.cxx.

References ScDocShell::GetDocument(), pDocShell, and ScDocument::RemoveUnoObject().

Member Function Documentation

◆ addPropertiesChangeListener()

void SAL_CALL ScStyleObj::addPropertiesChangeListener ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener 
)
overridevirtual

Definition at line 1429 of file styleuno.cxx.

◆ addPropertyChangeListener()

virtual void SAL_CALL ScStyleObj::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

◆ addVetoableChangeListener()

virtual void SAL_CALL ScStyleObj::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

◆ CreateEmptyNumberingRules()

uno::Reference< container::XIndexReplace > ScStyleObj::CreateEmptyNumberingRules ( )
static

Definition at line 1156 of file styleuno.cxx.

References SvxCreateNumRule().

◆ firePropertiesChangeEvent()

void SAL_CALL ScStyleObj::firePropertiesChangeEvent ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener 
)
overridevirtual

Definition at line 1441 of file styleuno.cxx.

◆ GetFamily()

SfxStyleFamily ScStyleObj::GetFamily ( ) const
inline

Definition at line 198 of file styleuno.hxx.

References eFamily.

Referenced by ScStyleFamilyObj::insertByName().

◆ getImplementationName()

OUString SAL_CALL ScStyleObj::getImplementationName ( )
overridevirtual

Definition at line 2048 of file styleuno.cxx.

◆ getName()

OUString SAL_CALL ScStyleObj::getName ( )
overridevirtual

◆ getParentStyle()

OUString SAL_CALL ScStyleObj::getParentStyle ( )
overridevirtual

◆ getPropertyDefault()

uno::Any SAL_CALL ScStyleObj::getPropertyDefault ( const OUString &  aPropertyName)
overridevirtual

Definition at line 1378 of file styleuno.cxx.

References getPropertyDefault_Impl(), and GetStyle_Impl().

◆ getPropertyDefault_Impl()

uno::Any ScStyleObj::getPropertyDefault_Impl ( std::u16string_view  aPropertyName)
private

◆ getPropertyDefaults()

uno::Sequence< uno::Any > SAL_CALL ScStyleObj::getPropertyDefaults ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Definition at line 1386 of file styleuno.cxx.

References GetStyle_Impl().

◆ getPropertySetInfo()

uno::Reference< beans::XPropertySetInfo > SAL_CALL ScStyleObj::getPropertySetInfo ( )
overridevirtual

Definition at line 1516 of file styleuno.cxx.

References SfxItemPropertySet::getPropertySetInfo(), and pPropSet.

◆ getPropertyState()

beans::PropertyState SAL_CALL ScStyleObj::getPropertyState ( const OUString &  PropertyName)
overridevirtual

Definition at line 1251 of file styleuno.cxx.

References getPropertyState_Impl(), and GetStyle_Impl().

◆ getPropertyState_Impl()

beans::PropertyState ScStyleObj::getPropertyState_Impl ( std::u16string_view  PropertyName)
private

◆ getPropertyStates()

uno::Sequence< beans::PropertyState > SAL_CALL ScStyleObj::getPropertyStates ( const css::uno::Sequence< OUString > &  aPropertyName)
overridevirtual

Definition at line 1259 of file styleuno.cxx.

References GetStyle_Impl().

◆ getPropertyValue()

uno::Any SAL_CALL ScStyleObj::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

Definition at line 2036 of file styleuno.cxx.

References getPropertyValue_Impl(), and GetStyle_Impl().

◆ getPropertyValue_Impl()

uno::Any ScStyleObj::getPropertyValue_Impl ( std::u16string_view  aPropertyName)
private
Exceptions
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().

◆ getPropertyValues()

uno::Sequence< uno::Any > SAL_CALL ScStyleObj::getPropertyValues ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Definition at line 1418 of file styleuno.cxx.

References GetStyle_Impl().

◆ GetStyle_Impl()

SfxStyleSheetBase * ScStyleObj::GetStyle_Impl ( bool  bUseCachedValue = false)

◆ GetStyleItemSet_Impl()

const SfxItemSet * ScStyleObj::GetStyleItemSet_Impl ( std::u16string_view  rPropName,
const SfxItemPropertyMapEntry *&  rpEntry 
)
private

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL ScStyleObj::getSupportedServiceNames ( )
overridevirtual

◆ InitDoc()

void ScStyleObj::InitDoc ( ScDocShell pNewDocSh,
const OUString &  rNewName 
)

◆ IsInserted()

bool ScStyleObj::IsInserted ( ) const
inline

Definition at line 197 of file styleuno.hxx.

References pDocShell.

Referenced by ScStyleFamilyObj::insertByName().

◆ isInUse()

sal_Bool SAL_CALL ScStyleObj::isInUse ( )
overridevirtual

Definition at line 1043 of file styleuno.cxx.

References GetStyle_Impl(), and SfxStyleSheetBase::IsUsed().

◆ isUserDefined()

sal_Bool SAL_CALL ScStyleObj::isUserDefined ( )
overridevirtual

Definition at line 1034 of file styleuno.cxx.

References GetStyle_Impl(), and SfxStyleSheetBase::IsUserDefined().

◆ Notify()

void ScStyleObj::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

Reimplemented from SfxListener.

Definition at line 1007 of file styleuno.cxx.

References SfxHint::GetId(), and pDocShell.

◆ removePropertiesChangeListener()

void SAL_CALL ScStyleObj::removePropertiesChangeListener ( const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener)
overridevirtual

Definition at line 1435 of file styleuno.cxx.

◆ removePropertyChangeListener()

virtual void SAL_CALL ScStyleObj::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

◆ removeVetoableChangeListener()

virtual void SAL_CALL ScStyleObj::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

◆ setAllPropertiesToDefault()

void SAL_CALL ScStyleObj::setAllPropertiesToDefault ( )
overridevirtual

◆ setName()

void SAL_CALL ScStyleObj::setName ( const OUString &  aName)
overridevirtual

◆ setParentStyle()

void SAL_CALL ScStyleObj::setParentStyle ( const OUString &  aParentStyle)
overridevirtual

◆ setPropertiesToDefault()

void SAL_CALL ScStyleObj::setPropertiesToDefault ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

◆ setPropertyToDefault()

void SAL_CALL ScStyleObj::setPropertyToDefault ( const OUString &  PropertyName)
overridevirtual

◆ setPropertyValue()

void SAL_CALL ScStyleObj::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

◆ setPropertyValue_Impl()

void ScStyleObj::setPropertyValue_Impl ( std::u16string_view  rPropertyName,
const SfxItemPropertyMapEntry pEntry,
const css::uno::Any *  pValue 
)
private
Exceptions
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().

◆ setPropertyValues()

void SAL_CALL ScStyleObj::setPropertyValues ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Sequence< css::uno::Any > &  aValues 
)
overridevirtual

◆ supportsService()

sal_Bool SAL_CALL ScStyleObj::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 2053 of file styleuno.cxx.

References cppu::supportsService().

Member Data Documentation

◆ aStyleName

OUString ScStyleObj::aStyleName
private

◆ eFamily

SfxStyleFamily ScStyleObj::eFamily
private

◆ pDocShell

ScDocShell* ScStyleObj::pDocShell
private

◆ pPropSet

const SfxItemPropertySet* ScStyleObj::pPropSet
private

◆ pStyle_cached

SfxStyleSheetBase* ScStyleObj::pStyle_cached
private

Definition at line 171 of file styleuno.hxx.

Referenced by GetStyle_Impl().


The documentation for this class was generated from the following files: