LibreOffice Module sw (master) 1
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SwXNumberingRules Class Reference

#include <unosett.hxx>

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

Classes

class  Impl
 

Public Member Functions

 SwXNumberingRules (const SwNumRule &rRule, SwDoc *doc=nullptr)
 
 SwXNumberingRules (SwDoc &rDoc)
 
virtual void SAL_CALL replaceByIndex (sal_Int32 Index, const css::uno::Any &Element) override
 
virtual sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32 nIndex) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () 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 OUString SAL_CALL getName () override
 
virtual void SAL_CALL setName (const OUString &Name_) 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
 
css::uno::Sequence< css::beans::PropertyValue > GetNumberingRuleByIndex (const SwNumRule &rNumRule, sal_Int32 nIndex) const
 
void SetNumberingRuleByIndex (SwNumRule &rNumRule, const css::uno::Sequence< css::beans::PropertyValue > &rProperties, sal_Int32 nIndex)
 
const OUString * GetNewCharStyleNames () const
 
const OUString * GetBulletFontNames () const
 
const SwNumRuleGetNumRule () const
 
void Invalidate ()
 
const OUString & GetCreatedNumRuleName () const
 
- Public Member Functions inherited from cppu::WeakAggImplHelper4< css::container::XIndexReplace, css::beans::XPropertySet, css::container::XNamed, css::lang::XServiceInfo >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakAggObject
 OWeakAggObject ()
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL setDelegator (const css::uno::Reference< css::uno::XInterface > &Delegator) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &rType) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Static Public Member Functions

static bool isInvalidStyle (std::u16string_view rName)
 
static css::uno::Sequence< css::beans::PropertyValue > GetPropertiesForNumFormat (const SwNumFormat &rFormat, OUString const &rCharFormatName, OUString const *pHeadingStyleName, OUString const &referer)
 
static void SetPropertiesToNumFormat (SwNumFormat &aFormat, OUString &rCharStyleName, OUString *const pBulletFontName, OUString *const pHeadingStyleName, OUString *const pParagraphStyleName, SwDoc *const pDoc, SwDocShell *const pDocShell, css::uno::Sequence< css::beans::PropertyValue > const &rProperties)
 

Protected Member Functions

 SwXNumberingRules (SwDocShell &rDocSh)
 
virtual ~SwXNumberingRules () override
 
- Protected Member Functions inherited from cppu::OWeakAggObject
virtual ~OWeakAggObject () SAL_OVERRIDE
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 

Private Attributes

::sw::UnoImplPtr< Implm_pImpl
 
OUString m_sNewCharStyleNames [MAXLEVEL]
 
OUString m_sNewBulletFontNames [MAXLEVEL]
 
OUString m_sCreatedNumRuleName
 
SwDocm_pDoc
 
SwDocShellm_pDocShell
 
SwNumRulem_pNumRule
 
const SfxItemPropertySetm_pPropertySet
 
bool m_bOwnNumRuleCreated
 

Additional Inherited Members

- Protected Attributes inherited from cppu::OWeakAggObject
css::uno::WeakReferenceHelper xDelegator
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 134 of file unosett.hxx.

Constructor & Destructor Documentation

◆ SwXNumberingRules() [1/3]

SwXNumberingRules::SwXNumberingRules ( SwDocShell rDocSh)
protected

Definition at line 1044 of file unosett.cxx.

References SwDocShell::GetDoc(), m_pDocShell, m_pImpl, and m_pImpl.

◆ ~SwXNumberingRules()

SwXNumberingRules::~SwXNumberingRules ( )
overrideprotectedvirtual

◆ SwXNumberingRules() [2/3]

SwXNumberingRules::SwXNumberingRules ( const SwNumRule rRule,
SwDoc doc = nullptr 
)

◆ SwXNumberingRules() [3/3]

SwXNumberingRules::SwXNumberingRules ( SwDoc rDoc)

Member Function Documentation

◆ addPropertyChangeListener()

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

Definition at line 2045 of file unosett.cxx.

◆ addVetoableChangeListener()

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

Definition at line 2055 of file unosett.cxx.

◆ GetBulletFontNames()

const OUString * SwXNumberingRules::GetBulletFontNames ( ) const
inline

Definition at line 199 of file unosett.hxx.

References m_sNewBulletFontNames.

◆ getByIndex()

uno::Any SwXNumberingRules::getByIndex ( sal_Int32  nIndex)
overridevirtual

◆ getCount()

sal_Int32 SwXNumberingRules::getCount ( )
overridevirtual

Definition at line 1147 of file unosett.cxx.

References MAXLEVEL.

◆ GetCreatedNumRuleName()

const OUString & SwXNumberingRules::GetCreatedNumRuleName ( ) const
inline

Definition at line 204 of file unosett.hxx.

References m_sCreatedNumRuleName.

◆ getElementType()

uno::Type SwXNumberingRules::getElementType ( )
overridevirtual

Definition at line 1180 of file unosett.cxx.

References sw::proofreadingiterator::get().

◆ getImplementationName()

OUString SwXNumberingRules::getImplementationName ( )
overridevirtual

Reimplemented in SwXChapterNumbering.

Definition at line 999 of file unosett.cxx.

◆ getName()

OUString SwXNumberingRules::getName ( )
overridevirtual

◆ GetNewCharStyleNames()

const OUString * SwXNumberingRules::GetNewCharStyleNames ( ) const
inline

Definition at line 198 of file unosett.hxx.

References m_sNewCharStyleNames.

◆ GetNumberingRuleByIndex()

uno::Sequence< beans::PropertyValue > SwXNumberingRules::GetNumberingRuleByIndex ( const SwNumRule rNumRule,
sal_Int32  nIndex 
) const

◆ GetNumRule()

const SwNumRule * SwXNumberingRules::GetNumRule ( ) const
inline

Definition at line 200 of file unosett.hxx.

References m_pNumRule.

◆ GetPropertiesForNumFormat()

uno::Sequence< beans::PropertyValue > SwXNumberingRules::GetPropertiesForNumFormat ( const SwNumFormat rFormat,
OUString const &  rCharFormatName,
OUString const *  pHeadingStyleName,
OUString const &  referer 
)
static

Definition at line 1267 of file unosett.cxx.

References any, aPropertyValues, aSvxToUnoAdjust, ChrFmt, SvxUnoFontDescriptor::ConvertFromFont(), convertTwipToMm100(), SwStyleNameMapper::FillProgName(), SvxNumberFormat::GetAbsLSpace(), SvxNumberFormat::GetBrush(), SvxNumberFormat::GetBulletChar(), SvxNumberFormat::GetBulletFont(), SvxNumberFormat::GetCharTextDistance(), SvxNumberFormat::GetFirstLineIndent(), SvxNumberFormat::GetFirstLineOffset(), SvxBrushItem::GetGraphic(), SwNumFormat::GetGraphicOrientation(), SvxNumberFormat::GetGraphicSize(), SvxNumberFormat::GetIncludeUpperLevels(), SvxNumberFormat::GetIndentAt(), SvxNumberFormat::GetIsLegal(), SvxNumberFormat::GetLabelFollowedBy(), SvxNumberFormat::GetListFormat(), SvxNumberFormat::GetListtabPos(), SvxNumberFormat::GetNumAdjust(), SvxNumberType::GetNumberingType(), SvxNumberFormat::GetPositionAndSpaceMode(), SvxNumberFormat::GetPrefix(), SvxNumberFormat::GetStart(), SvxNumberFormat::GetSuffix(), Graphic::GetXGraphic(), SvxNumberFormat::HasListFormat(), Size::Height(), SvxNumberFormat::LABEL_ALIGNMENT, SvxNumberFormat::LABEL_WIDTH_AND_POSITION, comphelper::makePropertyValue(), SvxNumberFormat::NEWLINE, SvxNumberFormat::NOTHING, SwFormatVertOrient::QueryValue(), SvxNumberFormat::SPACE, SVX_NUM_BITMAP, SVX_NUM_CHAR_SPECIAL, UNO_NAME_BULLET_FONT, UNO_NAME_FIRST_LINE_INDENT, UNO_NAME_FIRST_LINE_OFFSET, UNO_NAME_GRAPHIC_BITMAP, UNO_NAME_GRAPHIC_SIZE, UNO_NAME_HEADING_STYLE_NAME, UNO_NAME_INDENT_AT, UNO_NAME_LABEL_FOLLOWED_BY, UNO_NAME_LEFT_MARGIN, UNO_NAME_LEVEL_IS_LEGAL, UNO_NAME_LISTTAB_STOP_POSITION, UNO_NAME_POSITION_AND_SPACE_MODE, UNO_NAME_SYMBOL_TEXT_DISTANCE, UNO_NAME_VERT_ORIENT, and Size::Width().

Referenced by sw::StoredChapterNumberingRules::getByIndex(), and GetNumberingRuleByIndex().

◆ getPropertySetInfo()

uno::Reference< XPropertySetInfo > SwXNumberingRules::getPropertySetInfo ( )
overridevirtual

Definition at line 1931 of file unosett.cxx.

References SfxItemPropertySet::getPropertySetInfo(), and m_pPropertySet.

◆ getPropertyValue()

Any SwXNumberingRules::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

◆ getSupportedServiceNames()

Sequence< OUString > SwXNumberingRules::getSupportedServiceNames ( )
overridevirtual

Reimplemented in SwXChapterNumbering.

Definition at line 1009 of file unosett.cxx.

◆ hasElements()

sal_Bool SwXNumberingRules::hasElements ( )
overridevirtual

Definition at line 1185 of file unosett.cxx.

◆ Invalidate()

void SwXNumberingRules::Invalidate ( )
inline

Definition at line 203 of file unosett.hxx.

References m_pDocShell.

◆ isInvalidStyle()

bool SwXNumberingRules::isInvalidStyle ( std::u16string_view  rName)
static

◆ removePropertyChangeListener()

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

Definition at line 2050 of file unosett.cxx.

◆ removeVetoableChangeListener()

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

Definition at line 2060 of file unosett.cxx.

◆ replaceByIndex()

void SwXNumberingRules::replaceByIndex ( sal_Int32  Index,
const css::uno::Any &  Element 
)
overridevirtual

◆ setName()

void SwXNumberingRules::setName ( const OUString &  Name_)
overridevirtual

Definition at line 2084 of file unosett.cxx.

◆ SetNumberingRuleByIndex()

void SwXNumberingRules::SetNumberingRuleByIndex ( SwNumRule rNumRule,
const css::uno::Sequence< css::beans::PropertyValue > &  rProperties,
sal_Int32  nIndex 
)

◆ SetPropertiesToNumFormat()

void SwXNumberingRules::SetPropertiesToNumFormat ( SwNumFormat aFormat,
OUString &  rCharStyleName,
OUString *const  pBulletFontName,
OUString *const  pHeadingStyleName,
OUString *const  pParagraphStyleName,
SwDoc *const  pDoc,
SwDocShell *const  pDocShell,
css::uno::Sequence< css::beans::PropertyValue > const &  rProperties 
)
static

Definition at line 1490 of file unosett.cxx.

References aURL, ChrFmt, SwFormatVertOrient::Clone(), SvxUnoFontDescriptor::ConvertToFont(), SwStyleNameMapper::FillProgName(), SwStyleNameMapper::FillUIName(), SfxStyleSheetBasePool::Find(), SwDoc::FindCharFormatByName(), FontList::Get(), SvxNumberFormat::GetBrush(), SwNumFormat::GetCharFormat(), SwDocShell::GetDoc(), SwDoc::GetDocShell(), SvxFontListItem::GetFontList(), SwNumFormat::GetGraphicOrientation(), SvxNumberFormat::GetGraphicSize(), GetGraphicSizeTwip(), SfxShell::GetItem(), SvxNumberType::GetNumberingType(), SwDocShell::GetStyleSheetPool(), GPOS_AREA, isInvalidStyle(), Graphic::IsNone(), ITALIC_NONE, SvxNumberFormat::LABEL_ALIGNMENT, SvxNumberFormat::LABEL_WIDTH_AND_POSITION, SvxNumberFormat::LISTTAB, vcl::graphic::loadFromURL(), SfxStyleSheetBasePool::Make(), MAXLEVEL, MID_VERTORIENT_ORIENT, o3tl::mm100, SvxNumberFormat::NEWLINE, SwPostItHelper::NONE, SvxNumberFormat::NOTHING, nValue, RES_BACKGROUND(), RES_POOLCHR_BULLET_LEVEL, sBulletFontName, SvxNumberFormat::SetAbsLSpace(), SvxNumberFormat::SetBulletChar(), SvxNumberFormat::SetBulletFont(), SwNumFormat::SetCharFormat(), SwNumFormat::SetCharFormatName(), SvxNumberFormat::SetCharTextDistance(), SvxNumberFormat::SetFirstLineIndent(), SvxNumberFormat::SetFirstLineOffset(), SwNumFormat::SetGraphicBrush(), SvxNumberFormat::SetIncludeUpperLevels(), SvxNumberFormat::SetIndentAt(), SvxNumberFormat::SetIsLegal(), SvxNumberFormat::SetLabelFollowedBy(), SvxNumberFormat::SetListFormat(), SvxNumberFormat::SetListtabPos(), SvxNumberFormat::SetNumAdjust(), SvxNumberType::SetNumberingType(), SvxNumberFormat::SetPositionAndSpaceMode(), SvxNumberFormat::SetPrefix(), SvxNumberFormat::SetStart(), SvxNumberFormat::SetSuffix(), size, SvxNumberFormat::SPACE, o3tl::toTwips(), TxtColl, u, UNO_NAME_ADJUST, UNO_NAME_BULLET_CHAR, UNO_NAME_BULLET_COLOR, UNO_NAME_BULLET_FONT, UNO_NAME_BULLET_FONT_NAME, UNO_NAME_BULLET_ID, UNO_NAME_BULLET_REL_SIZE, UNO_NAME_CHAR_STYLE_NAME, UNO_NAME_FIRST_LINE_INDENT, UNO_NAME_FIRST_LINE_OFFSET, UNO_NAME_GRAPHIC, UNO_NAME_GRAPHIC_BITMAP, UNO_NAME_GRAPHIC_SIZE, UNO_NAME_GRAPHIC_URL, UNO_NAME_HEADING_STYLE_NAME, UNO_NAME_INDENT_AT, UNO_NAME_LABEL_FOLLOWED_BY, UNO_NAME_LEFT_MARGIN, UNO_NAME_LEVEL_IS_LEGAL, UNO_NAME_LIST_FORMAT, UNO_NAME_LISTTAB_STOP_POSITION, UNO_NAME_NUMBERING_TYPE, UNO_NAME_PARAGRAPH_STYLE_NAME, UNO_NAME_PARENT_NUMBERING, UNO_NAME_POSITION_AND_SPACE_MODE, UNO_NAME_PREFIX, UNO_NAME_START_WITH, UNO_NAME_SUFFIX, UNO_NAME_SYMBOL_TEXT_DISTANCE, UNO_NAME_VERT_ORIENT, and WEIGHT_NORMAL.

Referenced by sw::StoredChapterNumberingRules::replaceByIndex(), and SetNumberingRuleByIndex().

◆ setPropertyValue()

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

◆ supportsService()

sal_Bool SwXNumberingRules::supportsService ( const OUString &  ServiceName)
overridevirtual

Reimplemented in SwXChapterNumbering.

Definition at line 1004 of file unosett.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_bOwnNumRuleCreated

bool SwXNumberingRules::m_bOwnNumRuleCreated
private

Definition at line 153 of file unosett.hxx.

Referenced by SwXNumberingRules::Impl::Notify(), and ~SwXNumberingRules().

◆ m_pDoc

SwDoc* SwXNumberingRules::m_pDoc
private

◆ m_pDocShell

SwDocShell* SwXNumberingRules::m_pDocShell
private

◆ m_pImpl

::sw::UnoImplPtr<Impl> SwXNumberingRules::m_pImpl
private

Definition at line 144 of file unosett.hxx.

Referenced by SwXNumberingRules().

◆ m_pNumRule

SwNumRule* SwXNumberingRules::m_pNumRule
private

◆ m_pPropertySet

const SfxItemPropertySet* SwXNumberingRules::m_pPropertySet
private

Definition at line 152 of file unosett.hxx.

Referenced by getPropertySetInfo().

◆ m_sCreatedNumRuleName

OUString SwXNumberingRules::m_sCreatedNumRuleName
private

◆ m_sNewBulletFontNames

OUString SwXNumberingRules::m_sNewBulletFontNames[MAXLEVEL]
private

Definition at line 147 of file unosett.hxx.

Referenced by GetBulletFontNames(), SetNumberingRuleByIndex(), and SwXNumberingRules().

◆ m_sNewCharStyleNames

OUString SwXNumberingRules::m_sNewCharStyleNames[MAXLEVEL]
private

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