LibreOffice Module sw (master) 1
|
#include <numrule.hxx>
Public Member Functions | |
SwNumFormat () | |
SwNumFormat (const SwNumFormat &) | |
SwNumFormat (const SvxNumberFormat &, SwDoc *pDoc) | |
virtual | ~SwNumFormat () override |
SwNumFormat & | operator= (const SwNumFormat &) |
bool | operator== (const SwNumFormat &) const |
bool | operator!= (const SwNumFormat &r) const |
SwCharFormat * | GetCharFormat () const |
void | SetCharFormat (SwCharFormat *) |
virtual OUString | GetCharFormatName () const override |
void | SetGrfBulletCP (sal_Unicode cP) |
sal_Unicode | GetGrfBulletCP () const |
virtual void | SetGraphicBrush (const SvxBrushItem *pBrushItem, const Size *pSize=nullptr, const sal_Int16 *pOrient=nullptr) override |
const SwFormatVertOrient * | GetGraphicOrientation () const |
bool | IsEnumeration () const |
bool | IsItemize () const |
void | SetCharFormatName (const OUString &rSet) |
Public Member Functions inherited from SvxNumberFormat | |
SvxNumberFormat (SvxNumType nNumberingType) | |
SvxNumberFormat (const SvxNumberFormat &rFormat) | |
SvxNumberFormat (SvStream &rStream) | |
virtual | ~SvxNumberFormat () |
void | Store (SvStream &rStream, FontToSubsFontConverter pConverter) |
SvxNumberFormat & | operator= (const SvxNumberFormat &) |
bool | operator== (const SvxNumberFormat &) const |
bool | operator!= (const SvxNumberFormat &rFmt) const |
void | SetNumAdjust (SvxAdjust eSet) |
SvxAdjust | GetNumAdjust () const |
void | SetPrefix (const OUString &rSet) |
const OUString & | GetPrefix () const |
void | SetSuffix (const OUString &rSet) |
const OUString & | GetSuffix () const |
void | SetListFormat (const OUString &rPrefix, const OUString &rSuffix, int nLevel) |
void | SetListFormat (std::optional< OUString > oSet=std::nullopt) |
bool | HasListFormat () const |
OUString | GetListFormat (bool bIncludePrefixSuffix=true) const |
void | SetCharFormatName (const OUString &rSet) |
virtual OUString | GetCharFormatName () const |
void | SetBulletFont (const vcl::Font *pFont) |
const std::optional< vcl::Font > & | GetBulletFont () const |
void | SetBulletChar (sal_UCS4 cSet) |
sal_UCS4 | GetBulletChar () const |
void | SetBulletRelSize (sal_uInt16 nSet) |
sal_uInt16 | GetBulletRelSize () const |
void | SetBulletColor (Color nSet) |
const Color & | GetBulletColor () const |
void | SetIncludeUpperLevels (sal_uInt8 nSet) |
sal_uInt8 | GetIncludeUpperLevels () const |
void | SetStart (sal_uInt16 nSet) |
sal_uInt16 | GetStart () const |
virtual void | SetGraphicBrush (const SvxBrushItem *pBrushItem, const Size *pSize=nullptr, const sal_Int16 *pOrient=nullptr) |
const SvxBrushItem * | GetBrush () const |
void | SetGraphic (const OUString &rName) |
sal_Int16 | GetVertOrient () const |
void | SetGraphicSize (const Size &rSet) |
const Size & | GetGraphicSize () const |
SvxNumPositionAndSpaceMode | GetPositionAndSpaceMode () const |
void | SetPositionAndSpaceMode (SvxNumPositionAndSpaceMode ePositionAndSpaceMode) |
void | SetAbsLSpace (sal_Int32 nSet) |
sal_Int32 | GetAbsLSpace () const |
void | SetFirstLineOffset (sal_Int32 nSet) |
sal_Int32 | GetFirstLineOffset () const |
void | SetCharTextDistance (short nSet) |
short | GetCharTextDistance () const |
void | SetLabelFollowedBy (const LabelFollowedBy eLabelFollowedBy) |
LabelFollowedBy | GetLabelFollowedBy () const |
OUString | GetLabelFollowedByAsString () const |
void | SetListtabPos (const tools::Long nListtabPos) |
tools::Long | GetListtabPos () const |
void | SetFirstLineIndent (const tools::Long nFirstLineIndent) |
tools::Long | GetFirstLineIndent () const |
void | SetIndentAt (const tools::Long nIndentAt) |
tools::Long | GetIndentAt () const |
bool | GetIsLegal () const |
void | SetIsLegal (bool val) |
Public Member Functions inherited from SvxNumberType | |
SvxNumberType (SvxNumType nType=SVX_NUM_ARABIC) | |
SvxNumberType (const SvxNumberType &rType) | |
~SvxNumberType () | |
SvxNumberType & | operator= (SvxNumberType const &)=default |
OUString | GetNumStr (sal_Int32 nNo) const |
OUString | GetNumStr (sal_Int32 nNo, const css::lang::Locale &rLocale, bool bIsLegal=false) const |
void | SetNumberingType (SvxNumType nSet) |
SvxNumType | GetNumberingType () const |
void | SetShowSymbol (bool bSet) |
bool | IsShowSymbol () const |
bool | IsTextFormat () const |
void | dumpAsXml (xmlTextWriterPtr w) const |
Public Member Functions inherited from SwClient | |
SwClient () | |
SwClient (SwClient &&) noexcept | |
virtual | ~SwClient () override |
std::optional< sw::ModifyChangedHint > | CheckRegistration (const SfxPoolItem *pOldValue) |
void | CheckRegistrationFormat (SwFormat &rOld) |
const SwModify * | GetRegisteredIn () const |
SwModify * | GetRegisteredIn () |
void | EndListeningAll () |
void | StartListeningToSameModifyAs (const SwClient &) |
virtual bool | GetInfo (SfxPoolItem &) const |
Public Member Functions inherited from sw::WriterListener | |
bool | IsLast () const |
virtual const SwCellFrame * | DynCastCellFrame () const |
virtual const SwTabFrame * | DynCastTabFrame () const |
virtual const SwRowFrame * | DynCastRowFrame () const |
virtual const SwTable * | DynCastTable () const |
Private Member Functions | |
SAL_DLLPRIVATE void | UpdateNumNodes (SwDoc &rDoc) |
virtual void | SwClientNotify (const SwModify &, const SfxHint &) override |
Private Attributes | |
SwFormatVertOrient | m_aVertOrient |
sal_Unicode | m_cGrfBulletCP |
Additional Inherited Members | |
Public Types inherited from SvxNumberFormat | |
enum | SvxNumPositionAndSpaceMode |
enum | LabelFollowedBy |
Static Public Member Functions inherited from SvxNumberFormat | |
static Size | GetGraphicSizeMM100 (const Graphic *pGraphic) |
static OUString | CreateRomanString (sal_Int32 nNo, bool bUpper) |
Public Attributes inherited from SvxNumberFormat | |
LABEL_WIDTH_AND_POSITION | |
LABEL_ALIGNMENT | |
LISTTAB | |
SPACE | |
NOTHING | |
NEWLINE | |
Protected Member Functions inherited from SwClient | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint) override |
Protected Member Functions inherited from sw::WriterListener | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint)=0 |
Definition at line 50 of file numrule.hxx.
SwNumFormat::SwNumFormat | ( | ) |
Definition at line 187 of file number.cxx.
References SVX_NUM_ARABIC, and text().
SwNumFormat::SwNumFormat | ( | const SwNumFormat & | rFormat | ) |
Definition at line 195 of file number.cxx.
References SvxNumberFormat::GetBrush(), SvxNumberFormat::GetGraphicSize(), SvxNumberFormat::GetVertOrient(), and SetGraphicBrush().
SwNumFormat::SwNumFormat | ( | const SvxNumberFormat & | rNumFormat, |
SwDoc * | pDoc | ||
) |
Definition at line 206 of file number.cxx.
References ChrFmt, SwClient::EndListeningAll(), SwDoc::FindCharFormatByName(), SvxNumberFormat::GetBrush(), IDocumentStylePoolAccess::GetCharFormatFromPool(), SvxNumberFormat::GetGraphicSize(), SwDoc::getIDocumentStylePoolAccess(), SwStyleNameMapper::GetPoolIdFromUIName(), SvxNumberFormat::GetVertOrient(), SwDoc::MakeCharFormat(), nId, and SetGraphicBrush().
|
overridevirtual |
Definition at line 232 of file number.cxx.
|
inline |
Definition at line 74 of file numrule.hxx.
References SwClient::GetRegisteredIn().
Referenced by WW8ListManager::AdjustLVL(), SwAutoFormat::BuildEnum(), SwHTMLParser::EndNumberBulletList(), SwXNumberingRules::GetNumberingRuleByIndex(), lcl_ListLevelsAreDifferentForExport(), SwNumRule::MakeSvxNumRule(), SwTextFormatter::NewNumberPortion(), MSWordExportBase::NumberingLevel(), RtfAttributeOutput::ParaNumRule_Impl(), SwXNumberingRules::replaceByIndex(), SwUnoCursorHelper::setNumberingProperty(), SwXNumberingRules::SetPropertiesToNumFormat(), SwClientNotify(), SwNumRulesWithName::SwNumFormatGlobal::SwNumFormatGlobal(), SwXNumberingRules::SwXNumberingRules(), and SwOutlineSettingsTabPage::Update().
|
overridevirtual |
Reimplemented from SvxNumberFormat.
Definition at line 311 of file number.cxx.
References GetName(), and SwClient::GetRegisteredIn().
Referenced by SwEditShell::GetPaMAttr().
const SwFormatVertOrient * SwNumFormat::GetGraphicOrientation | ( | ) | const |
Definition at line 352 of file number.cxx.
References SvxNumberFormat::GetVertOrient(), m_aVertOrient, and SwPostItHelper::NONE.
Referenced by SwXNumberingRules::GetPropertiesForNumFormat(), SwTextFormatter::NewNumberPortion(), and SwXNumberingRules::SetPropertiesToNumFormat().
|
inline |
Definition at line 82 of file numrule.hxx.
Referenced by SwWW8ImplReader::CoreLoad().
bool SwNumFormat::IsEnumeration | ( | ) | const |
Definition at line 237 of file number.cxx.
References IsItemize().
Referenced by SwTextNode::HasNumber(), SwNumRule::MakeRefNumString(), and SwDoc::SearchNumRule().
bool SwNumFormat::IsItemize | ( | ) | const |
Definition at line 245 of file number.cxx.
References SvxNumberType::GetNumberingType(), SVX_NUM_BITMAP, and SVX_NUM_CHAR_SPECIAL.
Referenced by SwTextNode::HasBullet(), IsEnumeration(), and SwDoc::SearchNumRule().
|
inline |
Definition at line 72 of file numrule.hxx.
SwNumFormat & SwNumFormat::operator= | ( | const SwNumFormat & | rNumFormat | ) |
Definition at line 265 of file number.cxx.
References m_cGrfBulletCP, SvxNumberFormat::operator=(), and SwClient::StartListeningToSameModifyAs().
bool SwNumFormat::operator== | ( | const SwNumFormat & | rNumFormat | ) | const |
Definition at line 274 of file number.cxx.
References SwClient::GetRegisteredIn(), and SvxNumberFormat::operator==().
void SwNumFormat::SetCharFormat | ( | SwCharFormat * | pChFormat | ) |
Definition at line 281 of file number.cxx.
References SwClient::EndListeningAll().
Referenced by WW8ListManager::AdjustLVL(), SwAutoFormat::BuildEnum(), SwNumRule::CheckCharFormats(), SwHTMLParser::EndNumberBulletList(), sw::DocumentStylePoolManager::GetNumRuleFromPool(), IMPL_LINK_NOARG(), lcl_ListLevelsAreDifferentForExport(), SwHTMLParser::NewNumberBulletList(), SwHTMLParser::NewNumberBulletListItem(), SwWrtShell::NumOrBulletOn(), SwXNumberingRules::replaceByIndex(), SwUnoCursorHelper::setNumberingProperty(), SwXNumberingRules::SetPropertiesToNumFormat(), and SwNumRulesWithName::SwNumFormatGlobal::SwNumFormatGlobal().
void SvxNumberFormat::SetCharFormatName | ( | const OUString & | rSet | ) |
|
overridevirtual |
Reimplemented from SvxNumberFormat.
Definition at line 319 of file number.cxx.
References m_aVertOrient, SvxNumberFormat::SetGraphicBrush(), and SwFormatVertOrient::SetVertOrient().
Referenced by SwWW8ImplReader::CoreLoad(), SwHTMLParser::NewNumberBulletList(), SwXNumberingRules::SetPropertiesToNumFormat(), and SwNumFormat().
|
inline |
Definition at line 81 of file numrule.hxx.
Referenced by WW8ListManager::ReadLVL().
|
overrideprivatevirtual |
Reimplemented from SwClient.
Definition at line 289 of file number.cxx.
References SwClient::CheckRegistration(), GetCharFormat(), SwFormat::GetDoc(), SfxHint::GetId(), SwDoc::IsInDtor(), RES_ATTRSET_CHG(), RES_FMT_CHG(), and UpdateNumNodes().
|
private |
Definition at line 327 of file number.cxx.
References SwDoc::getIDocumentState(), SwNumRule::GetNumFormat(), SwDoc::GetNumRuleTable(), SwNumRule::GetTextNodeList(), i, IDocumentState::IsModified(), lcl_SetRuleChgd(), MAXLEVEL, n, IDocumentState::ResetModified(), and SwVectorModifyBase< Value >::size().
Referenced by SwClientNotify().
|
private |
Definition at line 52 of file numrule.hxx.
Referenced by GetGraphicOrientation(), and SetGraphicBrush().
|
private |
Definition at line 54 of file numrule.hxx.
Referenced by operator=().