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

#include <styleuno.hxx>

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

Public Member Functions

 ScStyleObj ()=delete
 
 ScStyleObj (ScDocShell *pDocSh, SfxStyleFamily eFam, const OUString &rName)
 
virtual ~ScStyleObj () override
 
bool IsInserted () const
 
SfxStyleFamily GetFamily () const
 
void InitDoc (ScDocShell *pNewDocSh, const OUString &rNewName)
 
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
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 

Static Public Member Functions

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

Private Member Functions

SfxStyleSheetBaseGetStyle_Impl (bool bUseCachedValue=false)
 
const SfxItemSetGetStyleItemSet_Impl (const OUString &rPropName, const SfxItemPropertySimpleEntry *&rpEntry)
 
css::beans::PropertyState getPropertyState_Impl (const OUString &PropertyName)
 
css::uno::Any getPropertyDefault_Impl (const OUString &aPropertyName)
 
css::uno::Any getPropertyValue_Impl (const OUString &aPropertyName)
 
void setPropertyValue_Impl (const OUString &rPropertyName, const SfxItemPropertySimpleEntry *pEntry, const css::uno::Any *pValue)
 

Private Attributes

const SfxItemPropertySetpPropSet
 
ScDocShellpDocShell
 
SfxStyleFamily eFamily
 
OUString aStyleName
 
SfxStyleSheetBasepStyle_cached
 

Detailed Description

Definition at line 159 of file styleuno.hxx.

Constructor & Destructor Documentation

ScStyleObj::ScStyleObj ( )
delete
ScStyleObj::ScStyleObj ( ScDocShell pDocSh,
SfxStyleFamily  eFam,
const OUString &  rName 
)

Definition at line 936 of file styleuno.cxx.

References ScDocument::AddUnoObject(), ScDocShell::GetDocument(), Para, and pDocShell.

ScStyleObj::~ScStyleObj ( )
overridevirtual

Definition at line 959 of file styleuno.cxx.

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

Member Function Documentation

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

Definition at line 1363 of file styleuno.cxx.

virtual void SAL_CALL ScStyleObj::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual
virtual void SAL_CALL ScStyleObj::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual
uno::Reference< container::XIndexReplace > ScStyleObj::CreateEmptyNumberingRules ( )
static
void SAL_CALL ScStyleObj::firePropertiesChangeEvent ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener 
)
overridevirtual

Definition at line 1375 of file styleuno.cxx.

SfxStyleFamily ScStyleObj::GetFamily ( ) const
inline

Definition at line 202 of file styleuno.hxx.

References eFamily.

Referenced by ScStyleFamilyObj::insertByName().

OUString SAL_CALL ScStyleObj::getImplementationName ( )
overridevirtual

Definition at line 1916 of file styleuno.cxx.

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

Definition at line 1312 of file styleuno.cxx.

References getPropertyDefault_Impl(), and GetStyle_Impl().

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

Definition at line 1320 of file styleuno.cxx.

References getPropertyDefault_Impl(), and GetStyle_Impl().

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

Definition at line 1448 of file styleuno.cxx.

References SfxItemPropertySet::getPropertySetInfo(), and pPropSet.

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

Definition at line 1198 of file styleuno.cxx.

References getPropertyState_Impl(), and GetStyle_Impl().

beans::PropertyState ScStyleObj::getPropertyState_Impl ( const OUString &  PropertyName)
private
Exceptions
css::beans::UnknownPropertyException
css::uno::RuntimeException

Definition at line 1160 of file styleuno.cxx.

References ATTR_BORDER(), SfxItemSet::GetItemState(), GetStyleItemSet_Impl(), IsScItemWid(), SfxItemPropertySimpleEntry::nWID, SC_WID_UNO_TBLBORD, and SC_WID_UNO_TBLBORD2.

Referenced by getPropertyState(), and getPropertyStates().

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

Definition at line 1206 of file styleuno.cxx.

References getPropertyState_Impl(), and GetStyle_Impl().

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

Definition at line 1904 of file styleuno.cxx.

References getPropertyValue_Impl(), and GetStyle_Impl().

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

Definition at line 1352 of file styleuno.cxx.

References getPropertyValue_Impl(), and GetStyle_Impl().

SfxStyleSheetBase * ScStyleObj::GetStyle_Impl ( bool  bUseCachedValue = false)
private
const SfxItemSet * ScStyleObj::GetStyleItemSet_Impl ( const OUString &  rPropName,
const SfxItemPropertySimpleEntry *&  rpEntry 
)
private
uno::Sequence< OUString > SAL_CALL ScStyleObj::getSupportedServiceNames ( )
overridevirtual

Definition at line 1926 of file styleuno.cxx.

References eFamily, SCCELLSTYLE_SERVICE, SCPAGESTYLE_SERVICE, and SCSTYLE_SERVICE.

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

Definition at line 201 of file styleuno.hxx.

Referenced by ScStyleFamilyObj::insertByName().

sal_Bool SAL_CALL ScStyleObj::isInUse ( )
overridevirtual

Definition at line 1007 of file styleuno.cxx.

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

sal_Bool SAL_CALL ScStyleObj::isUserDefined ( )
overridevirtual

Definition at line 998 of file styleuno.cxx.

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

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

Reimplemented from SfxListener.

Definition at line 971 of file styleuno.cxx.

References SfxHint::GetId(), and pDocShell.

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

Definition at line 1369 of file styleuno.cxx.

virtual void SAL_CALL ScStyleObj::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual
virtual void SAL_CALL ScStyleObj::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual
void SAL_CALL ScStyleObj::setAllPropertiesToDefault ( )
overridevirtual
void SAL_CALL ScStyleObj::setName ( const OUString &  aName)
overridevirtual
void SAL_CALL ScStyleObj::setParentStyle ( const OUString &  aParentStyle)
overridevirtual
void SAL_CALL ScStyleObj::setPropertiesToDefault ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual
void SAL_CALL ScStyleObj::setPropertyToDefault ( const OUString &  PropertyName)
overridevirtual
void SAL_CALL ScStyleObj::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual
void ScStyleObj::setPropertyValue_Impl ( const OUString &  rPropertyName,
const SfxItemPropertySimpleEntry 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 1466 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, 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, sc::HMMToTwips(), i, ScDocument::IsImportingXML(), SfxObjectShell::IsLoading(), IsScItemWid(), IsScUnoWid(), LANGUAGE_DONTKNOW, lcl_AnyTabProtected(), lcl_GetFooterStyleMap(), lcl_GetHeaderStyleMap(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, nCount, nPPTX, nPPTY, SfxItemPropertySimpleEntry::nWID, ScDocShell::PageStyleModified(), PAPERBIN_PRINTER_SETTINGS, pDocShell, Point, ScDocShell::PostPaint(), pPropSet, SfxItemSet::Put(), SC_PAPERBIN_DEFAULTNAME, SC_UNO_PAGE_SCALETOX, SC_WID_UNO_FOOTERSET, SC_WID_UNO_HEADERSET, SC_WID_UNO_TBLBORD, SC_WID_UNO_TBLBORD2, ScDocShell::SetDocumentModified(), ScPageScaleToItem::SetHeight(), SfxStyleSheetBase::SetHidden(), SfxItemPropertySet::setPropertyValue(), ScPageScaleToItem::SetWidth(), ScDocument::StyleSheetChanged(), VOBJ_MODE_HIDE, and VOBJ_MODE_SHOW.

Referenced by setPropertiesToDefault(), setPropertyToDefault(), setPropertyValue(), and setPropertyValues().

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

Definition at line 1921 of file styleuno.cxx.

References cppu::supportsService().

Member Data Documentation

OUString ScStyleObj::aStyleName
private
SfxStyleFamily ScStyleObj::eFamily
private
ScDocShell* ScStyleObj::pDocShell
private
const SfxItemPropertySet* ScStyleObj::pPropSet
private
SfxStyleSheetBase* ScStyleObj::pStyle_cached
private

Definition at line 174 of file styleuno.hxx.

Referenced by GetStyle_Impl().


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