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 (SwDocShell &rDocSh)
 
 SwXNumberingRules (const SwNumRule &rRule, SwDoc *doc=nullptr)
 
 SwXNumberingRules (SwDoc &rDoc)
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override
 
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::WeakAggImplHelper5< css::container::XIndexReplace, css::lang::XUnoTunnel, 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_OVERRIDE
 
virtual void SAL_CALL release () 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 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::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Static Public Member Functions

static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 
static bool isInvalidStyle (const OUString &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

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 const 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::~SwXNumberingRules ( )
overrideprotectedvirtual
SwXNumberingRules::SwXNumberingRules ( SwDocShell rDocSh)

Definition at line 1095 of file unosett.cxx.

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

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

Member Function Documentation

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

Definition at line 2196 of file unosett.cxx.

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

Definition at line 2206 of file unosett.cxx.

const OUString* SwXNumberingRules::GetBulletFontNames ( ) const
inline

Definition at line 204 of file unosett.hxx.

References m_sNewBulletFontNames.

Referenced by SwXStyle::SetPropertyValue().

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

Definition at line 1198 of file unosett.cxx.

References MAXLEVEL.

const OUString& SwXNumberingRules::GetCreatedNumRuleName ( ) const
inline

Definition at line 209 of file unosett.hxx.

References m_sCreatedNumRuleName.

uno::Type SwXNumberingRules::getElementType ( )
overridevirtual

Definition at line 1231 of file unosett.cxx.

References sw::proofreadingiterator::get().

OUString SwXNumberingRules::getImplementationName ( )
overridevirtual

Reimplemented in SwXChapterNumbering.

Definition at line 1050 of file unosett.cxx.

OUString SwXNumberingRules::getName ( )
overridevirtual
const OUString* SwXNumberingRules::GetNewCharStyleNames ( ) const
inline

Definition at line 203 of file unosett.hxx.

References m_sNewCharStyleNames.

Referenced by SwXStyle::SetPropertyValue().

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

Definition at line 205 of file unosett.hxx.

References m_pNumRule.

Referenced by SwXStyle::SetPropertyValue().

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

Definition at line 1318 of file unosett.cxx.

References 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::GetLabelFollowedBy(), SvxNumberFormat::GetListtabPos(), SvxNumberFormat::GetNumAdjust(), SvxNumberType::GetNumberingType(), SvxNumberFormat::GetPositionAndSpaceMode(), SvxNumberFormat::GetPrefix(), SvxNumberFormat::GetStart(), vcl::Font::GetStyleName(), SvxNumberFormat::GetSuffix(), Graphic::GetXGraphic(), 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_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().

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

Definition at line 2082 of file unosett.cxx.

References SfxItemPropertySet::getPropertySetInfo(), and m_pPropertySet.

Any SwXNumberingRules::getPropertyValue ( const OUString &  PropertyName)
overridevirtual
sal_Int64 SwXNumberingRules::getSomething ( const css::uno::Sequence< sal_Int8 > &  aIdentifier)
overridevirtual

Definition at line 1041 of file unosett.cxx.

Sequence< OUString > SwXNumberingRules::getSupportedServiceNames ( )
overridevirtual

Reimplemented in SwXChapterNumbering.

Definition at line 1060 of file unosett.cxx.

const uno::Sequence< sal_Int8 > & SwXNumberingRules::getUnoTunnelId ( )
static

Definition at line 1035 of file unosett.cxx.

References sw::proofreadingiterator::get().

Referenced by SwXStyle::SetPropertyValue().

sal_Bool SwXNumberingRules::hasElements ( )
overridevirtual

Definition at line 1236 of file unosett.cxx.

void SwXNumberingRules::Invalidate ( )
inline

Definition at line 208 of file unosett.hxx.

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

Definition at line 2201 of file unosett.cxx.

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

Definition at line 2211 of file unosett.cxx.

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

Definition at line 2235 of file unosett.cxx.

void SwXNumberingRules::SetNumberingRuleByIndex ( SwNumRule rNumRule,
const css::uno::Sequence< css::beans::PropertyValue > &  rProperties,
sal_Int32  nIndex 
)
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 1543 of file unosett.cxx.

References aInvalidStyle, ChrFmt, SwFormatVertOrient::Clone(), convertMm100ToTwip(), SvxUnoFontDescriptor::ConvertToFont(), SwStyleNameMapper::FillProgName(), SwStyleNameMapper::FillUIName(), SfxStyleSheetBasePool::Find(), FontList::Get(), SvxNumberFormat::GetBrush(), SwNumFormat::GetCharFormat(), SwDoc::GetCharFormats(), SwDocShell::GetDoc(), SwDoc::GetDocShell(), SvxFontListItem::GetFontList(), SwNumFormat::GetGraphicOrientation(), SvxNumberFormat::GetGraphicSize(), GetGraphicSizeTwip(), SfxShell::GetItem(), SwFormat::GetName(), SvxNumberType::GetNumberingType(), SwDocShell::GetStyleSheetPool(), GPOS_AREA, i, isInvalidStyle(), Graphic::IsNone(), ITALIC_NONE, SvxNumberFormat::LABEL_ALIGNMENT, SvxNumberFormat::LABEL_WIDTH_AND_POSITION, lcl_FindProperty(), SvxNumberFormat::LISTTAB, vcl::graphic::loadFromURL(), SfxStyleSheetBasePool::Make(), MAXLEVEL, MID_VERTORIENT_ORIENT, SvxNumberFormat::NEWLINE, SwPostItHelper::NONE, SvxNumberFormat::NOTHING, RES_BACKGROUND, RES_POOLCHR_BUL_LEVEL, SAL_N_ELEMENTS, SAL_WARN_IF, SvxNumberFormat::SetAbsLSpace(), SvxNumberFormat::SetBulletChar(), SvxNumberFormat::SetBulletFont(), SwNumFormat::SetCharFormat(), SvxNumberFormat::SetCharTextDistance(), SvxNumberFormat::SetFirstLineIndent(), SvxNumberFormat::SetFirstLineOffset(), SwNumFormat::SetGraphicBrush(), SvxNumberFormat::SetIncludeUpperLevels(), SvxNumberFormat::SetIndentAt(), SvxNumberFormat::SetLabelFollowedBy(), SvxNumberFormat::SetListtabPos(), SvxNumberFormat::SetNumAdjust(), SvxNumberType::SetNumberingType(), SvxNumberFormat::SetPositionAndSpaceMode(), SvxNumberFormat::SetPrefix(), SvxNumberFormat::SetStart(), SvxNumberFormat::SetSuffix(), size, SwVectorModifyBase< Value >::size(), SvxNumberFormat::SPACE, 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_CHARACTER_FORMAT_NONE, 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_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, USHRT_MAX, and WEIGHT_NORMAL.

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

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

Reimplemented in SwXChapterNumbering.

Definition at line 1055 of file unosett.cxx.

References cppu::supportsService().

Member Data Documentation

bool const SwXNumberingRules::m_bOwnNumRuleCreated
private

Definition at line 154 of file unosett.hxx.

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

SwDoc* SwXNumberingRules::m_pDoc
private
SwDocShell* SwXNumberingRules::m_pDocShell
private
::sw::UnoImplPtr<Impl> SwXNumberingRules::m_pImpl
private

Definition at line 144 of file unosett.hxx.

Referenced by SwXNumberingRules().

SwNumRule* SwXNumberingRules::m_pNumRule
private
const SfxItemPropertySet* SwXNumberingRules::m_pPropertySet
private

Definition at line 153 of file unosett.hxx.

Referenced by getPropertySetInfo().

OUString SwXNumberingRules::m_sCreatedNumRuleName
private
OUString SwXNumberingRules::m_sNewBulletFontNames[MAXLEVEL]
private

Definition at line 148 of file unosett.hxx.

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

OUString SwXNumberingRules::m_sNewCharStyleNames[MAXLEVEL]
private

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