LibreOffice Module sw (master) 1
|
#include <unosett.hxx>
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 SwNumRule * | GetNumRule () 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< Impl > | m_pImpl |
OUString | m_sNewCharStyleNames [MAXLEVEL] |
OUString | m_sNewBulletFontNames [MAXLEVEL] |
OUString | m_sCreatedNumRuleName |
SwDoc * | m_pDoc |
SwDocShell * | m_pDocShell |
SwNumRule * | m_pNumRule |
const SfxItemPropertySet * | m_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 |
Definition at line 134 of file unosett.hxx.
|
protected |
Definition at line 1044 of file unosett.cxx.
References SwDocShell::GetDoc(), m_pDocShell, m_pImpl, and m_pImpl.
|
overrideprotectedvirtual |
Definition at line 1070 of file unosett.cxx.
References SwDoc::DelNumRule(), m_bOwnNumRuleCreated, m_pDoc, m_pNumRule, and m_sCreatedNumRuleName.
Definition at line 1015 of file unosett.cxx.
References aInvalidStyle, SwNumRule::Get(), SwNumFormat::GetCharFormat(), SwFormat::GetDoc(), i, m_pDoc, m_pImpl, m_pImpl, m_pNumRule, m_sNewBulletFontNames, m_sNewCharStyleNames, and MAXLEVEL.
SwXNumberingRules::SwXNumberingRules | ( | SwDoc & | rDoc | ) |
Definition at line 1055 of file unosett.cxx.
References numfunc::GetDefaultPositionAndSpaceMode(), SwDoc::GetUniqueNumRuleName(), m_pImpl, m_pImpl, m_sCreatedNumRuleName, and SwDoc::MakeNumRule().
|
overridevirtual |
Definition at line 2045 of file unosett.cxx.
|
overridevirtual |
Definition at line 2055 of file unosett.cxx.
|
inline |
Definition at line 199 of file unosett.hxx.
References m_sNewBulletFontNames.
|
overridevirtual |
Definition at line 1152 of file unosett.cxx.
References SwDoc::FindNumRulePtr(), SwDocShell::GetDoc(), GetNumberingRuleByIndex(), SwDoc::GetOutlineNumRule(), m_pDoc, m_pDocShell, m_pNumRule, m_sCreatedNumRuleName, MAXLEVEL, and nIndex.
|
overridevirtual |
Definition at line 1147 of file unosett.cxx.
References MAXLEVEL.
|
inline |
Definition at line 204 of file unosett.hxx.
References m_sCreatedNumRuleName.
|
overridevirtual |
Definition at line 1180 of file unosett.cxx.
References sw::proofreadingiterator::get().
|
overridevirtual |
Reimplemented in SwXChapterNumbering.
Definition at line 999 of file unosett.cxx.
|
overridevirtual |
Definition at line 2065 of file unosett.cxx.
References SwStyleNameMapper::FillProgName(), SwDocShell::GetDoc(), SwNumRule::GetName(), SwDoc::GetOutlineNumRule(), m_pDocShell, m_pNumRule, m_sCreatedNumRuleName, and NumRule.
|
inline |
Definition at line 198 of file unosett.hxx.
References m_sNewCharStyleNames.
uno::Sequence< beans::PropertyValue > SwXNumberingRules::GetNumberingRuleByIndex | ( | const SwNumRule & | rNumRule, |
sal_Int32 | nIndex | ||
) | const |
Definition at line 1204 of file unosett.cxx.
References SwStyleNameMapper::FillProgName(), SwNumRule::Get(), SwTextFormatColl::GetAssignedOutlineStyleLevel(), SwNumFormat::GetCharFormat(), SwDocShell::GetDoc(), SfxObjectShell::GetMedium(), SfxMedium::GetName(), SwFormat::GetName(), SwDoc::GetPersist(), GetPropertiesForNumFormat(), SwDoc::GetTextFormatColls(), i, SwTextFormatColl::IsAssignedToListLevelOfOutlineStyle(), SwFormat::IsDefault(), isInvalidStyle(), m_pDoc, m_pDocShell, m_sNewCharStyleNames, MAXLEVEL, nCount, nIndex, SwVectorModifyBase< Value >::size(), STR_POOLCOLL_HEADLINE_ARY, SwResId(), and TxtColl.
Referenced by getByIndex().
|
inline |
Definition at line 200 of file unosett.hxx.
References m_pNumRule.
|
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().
|
overridevirtual |
Definition at line 1931 of file unosett.cxx.
References SfxItemPropertySet::getPropertySetInfo(), and m_pPropertySet.
|
overridevirtual |
Definition at line 2005 of file unosett.cxx.
References Any, SwDoc::FindNumRulePtr(), SwNumRule::GetDefaultListId(), SwDocShell::GetDoc(), SwNumRule::GetName(), SwDoc::GetOutlineNumRule(), SwNumRule::IsAbsSpaces(), SwNumRule::IsAutoRule(), SwNumRule::IsContinusNum(), SwNumRule::IsOutlineRule(), m_pDoc, m_pDocShell, m_pNumRule, m_sCreatedNumRuleName, UNO_NAME_DEFAULT_LIST_ID, UNO_NAME_IS_ABSOLUTE_MARGINS, UNO_NAME_IS_AUTOMATIC, UNO_NAME_IS_CONTINUOUS_NUMBERING, UNO_NAME_NAME, and UNO_NAME_NUMBERING_IS_OUTLINE.
|
overridevirtual |
Reimplemented in SwXChapterNumbering.
Definition at line 1009 of file unosett.cxx.
|
overridevirtual |
Definition at line 1185 of file unosett.cxx.
|
inline |
Definition at line 203 of file unosett.hxx.
References m_pDocShell.
|
static |
Definition at line 994 of file unosett.cxx.
References aInvalidStyle.
Referenced by GetNumberingRuleByIndex(), SwUnoCursorHelper::setNumberingProperty(), and SetPropertiesToNumFormat().
|
overridevirtual |
Definition at line 2050 of file unosett.cxx.
|
overridevirtual |
Definition at line 2060 of file unosett.cxx.
|
overridevirtual |
Definition at line 1079 of file unosett.cxx.
References SfxStyleSheetBasePool::Find(), SwDoc::FindNumRulePtr(), SwNumRule::Get(), SwNumFormat::GetCharFormat(), SwDoc::GetCharFormats(), SwDocShell::GetDoc(), SwFormat::GetName(), SwDoc::GetOutlineNumRule(), SwDocShell::GetStyleSheetPool(), i, m_pDoc, m_pDocShell, m_pNumRule, m_sCreatedNumRuleName, m_sNewCharStyleNames, SfxStyleSheetBasePool::Make(), MAXLEVEL, nIndex, SwNumRule::Set(), SwNumFormat::SetCharFormat(), SetNumberingRuleByIndex(), SwDoc::SetOutlineNumRule(), SwCharFormats::size(), and SwNumRule::Validate().
|
overridevirtual |
Definition at line 2084 of file unosett.cxx.
void SwXNumberingRules::SetNumberingRuleByIndex | ( | SwNumRule & | rNumRule, |
const css::uno::Sequence< css::beans::PropertyValue > & | rProperties, | ||
sal_Int32 | nIndex | ||
) |
css::uno::RuntimeException | |
css::lang::IllegalArgumentException |
Definition at line 1434 of file unosett.cxx.
References SwTextFormatColl::AssignToListLevelOfOutlineStyle(), SwTextFormatColl::DeleteAssignmentToListLevelOfOutlineStyle(), SwNumRule::Get(), SwTextFormatColl::GetAssignedOutlineStyleLevel(), SwDocShell::GetDoc(), SwFormat::GetName(), SwNumRule::GetName(), SwDoc::GetTextFormatColls(), SwTextFormatColl::IsAssignedToListLevelOfOutlineStyle(), SwFormat::IsDefault(), m_pDoc, m_pDocShell, m_sNewBulletFontNames, m_sNewCharStyleNames, MAXLEVEL, nCount, nIndex, SwNumRule::Set(), SwTextFormatColl::SetFormatAttr(), SetPropertiesToNumFormat(), and SwVectorModifyBase< Value >::size().
Referenced by replaceByIndex().
|
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().
|
overridevirtual |
Definition at line 1937 of file unosett.cxx.
References SwDoc::FindNumRulePtr(), SwDocShell::GetDoc(), SwDoc::GetOutlineNumRule(), m_pDoc, m_pDocShell, m_pNumRule, m_sCreatedNumRuleName, NUM_RULE, OUTLINE_RULE, SwNumRule::SetAbsSpaces(), SwNumRule::SetAutoRule(), SwNumRule::SetContinusNum(), SwDoc::SetOutlineNumRule(), SwNumRule::SetRuleType(), UNO_NAME_DEFAULT_LIST_ID, UNO_NAME_IS_ABSOLUTE_MARGINS, UNO_NAME_IS_AUTOMATIC, UNO_NAME_IS_CONTINUOUS_NUMBERING, UNO_NAME_NAME, UNO_NAME_NUMBERING_IS_OUTLINE, and SwNumRule::Validate().
|
overridevirtual |
Reimplemented in SwXChapterNumbering.
Definition at line 1004 of file unosett.cxx.
References cppu::supportsService().
|
private |
Definition at line 153 of file unosett.hxx.
Referenced by SwXNumberingRules::Impl::Notify(), and ~SwXNumberingRules().
|
private |
Definition at line 149 of file unosett.hxx.
Referenced by getByIndex(), GetNumberingRuleByIndex(), getPropertyValue(), SwXNumberingRules::Impl::Notify(), replaceByIndex(), SetNumberingRuleByIndex(), setPropertyValue(), SwXNumberingRules(), and ~SwXNumberingRules().
|
private |
Definition at line 150 of file unosett.hxx.
Referenced by getByIndex(), getName(), GetNumberingRuleByIndex(), getPropertyValue(), Invalidate(), replaceByIndex(), SetNumberingRuleByIndex(), setPropertyValue(), and SwXNumberingRules().
|
private |
Definition at line 144 of file unosett.hxx.
Referenced by SwXNumberingRules().
|
private |
Definition at line 151 of file unosett.hxx.
Referenced by getByIndex(), getName(), GetNumRule(), getPropertyValue(), SwXNumberingRules::Impl::Notify(), replaceByIndex(), setPropertyValue(), SwXNumberingRules(), and ~SwXNumberingRules().
|
private |
Definition at line 152 of file unosett.hxx.
Referenced by getPropertySetInfo().
|
private |
Definition at line 148 of file unosett.hxx.
Referenced by getByIndex(), GetCreatedNumRuleName(), getName(), getPropertyValue(), replaceByIndex(), setPropertyValue(), SwXNumberingRules(), and ~SwXNumberingRules().
|
private |
Definition at line 147 of file unosett.hxx.
Referenced by GetBulletFontNames(), SetNumberingRuleByIndex(), and SwXNumberingRules().
|
private |
Definition at line 146 of file unosett.hxx.
Referenced by GetNewCharStyleNames(), GetNumberingRuleByIndex(), replaceByIndex(), SetNumberingRuleByIndex(), and SwXNumberingRules().