LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwNumFormat Class Referencefinal

#include <numrule.hxx>

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

Public Member Functions

 SwNumFormat ()
 
 SwNumFormat (const SwNumFormat &)
 
 SwNumFormat (const SvxNumberFormat &, SwDoc *pDoc)
 
virtual ~SwNumFormat () override
 
SwNumFormatoperator= (const SwNumFormat &)
 
bool operator== (const SwNumFormat &) const
 
bool operator!= (const SwNumFormat &r) const
 
SwCharFormatGetCharFormat () 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 SwFormatVertOrientGetGraphicOrientation () 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)
 
SvxNumberFormatoperator= (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 ColorGetBulletColor () 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 SvxBrushItemGetBrush () const
 
void SetGraphic (const OUString &rName)
 
sal_Int16 GetVertOrient () const
 
void SetGraphicSize (const Size &rSet)
 
const SizeGetGraphicSize () 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 ()
 
SvxNumberTypeoperator= (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::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
void CheckRegistrationFormat (SwFormat &rOld)
 
const SwModifyGetRegisteredIn () const
 
SwModifyGetRegisteredIn ()
 
void EndListeningAll ()
 
void StartListeningToSameModifyAs (const SwClient &)
 
virtual bool GetInfo (SfxPoolItem &) const
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
 
virtual const SwCellFrameDynCastCellFrame () const
 
virtual const SwTabFrameDynCastTabFrame () const
 
virtual const SwRowFrameDynCastRowFrame () const
 
virtual const SwTableDynCastTable () 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)
 
SwModifyGetRegisteredInNonConst () 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
 

Detailed Description

Definition at line 50 of file numrule.hxx.

Constructor & Destructor Documentation

◆ SwNumFormat() [1/3]

SwNumFormat::SwNumFormat ( )

Definition at line 187 of file number.cxx.

References SVX_NUM_ARABIC, and text().

◆ SwNumFormat() [2/3]

SwNumFormat::SwNumFormat ( const SwNumFormat rFormat)

◆ SwNumFormat() [3/3]

SwNumFormat::SwNumFormat ( const SvxNumberFormat rNumFormat,
SwDoc pDoc 
)

◆ ~SwNumFormat()

SwNumFormat::~SwNumFormat ( )
overridevirtual

Definition at line 232 of file number.cxx.

Member Function Documentation

◆ GetCharFormat()

SwCharFormat * SwNumFormat::GetCharFormat ( ) const
inline

◆ GetCharFormatName()

OUString SwNumFormat::GetCharFormatName ( ) const
overridevirtual

Reimplemented from SvxNumberFormat.

Definition at line 311 of file number.cxx.

References GetName(), and SwClient::GetRegisteredIn().

Referenced by SwEditShell::GetPaMAttr().

◆ GetGraphicOrientation()

const SwFormatVertOrient * SwNumFormat::GetGraphicOrientation ( ) const

◆ GetGrfBulletCP()

sal_Unicode SwNumFormat::GetGrfBulletCP ( ) const
inline

Definition at line 82 of file numrule.hxx.

Referenced by SwWW8ImplReader::CoreLoad().

◆ IsEnumeration()

bool SwNumFormat::IsEnumeration ( ) const

Definition at line 237 of file number.cxx.

References IsItemize().

Referenced by SwTextNode::HasNumber(), SwNumRule::MakeRefNumString(), and SwDoc::SearchNumRule().

◆ IsItemize()

bool SwNumFormat::IsItemize ( ) const

◆ operator!=()

bool SwNumFormat::operator!= ( const SwNumFormat r) const
inline

Definition at line 72 of file numrule.hxx.

◆ operator=()

SwNumFormat & SwNumFormat::operator= ( const SwNumFormat rNumFormat)

◆ operator==()

bool SwNumFormat::operator== ( const SwNumFormat rNumFormat) const

Definition at line 274 of file number.cxx.

References SwClient::GetRegisteredIn(), and SvxNumberFormat::operator==().

◆ SetCharFormat()

void SwNumFormat::SetCharFormat ( SwCharFormat pChFormat)

◆ SetCharFormatName()

void SvxNumberFormat::SetCharFormatName ( const OUString &  rSet)

◆ SetGraphicBrush()

void SwNumFormat::SetGraphicBrush ( const SvxBrushItem pBrushItem,
const Size pSize = nullptr,
const sal_Int16 *  pOrient = nullptr 
)
overridevirtual

◆ SetGrfBulletCP()

void SwNumFormat::SetGrfBulletCP ( sal_Unicode  cP)
inline

Definition at line 81 of file numrule.hxx.

Referenced by WW8ListManager::ReadLVL().

◆ SwClientNotify()

void SwNumFormat::SwClientNotify ( const SwModify ,
const SfxHint rHint 
)
overrideprivatevirtual

◆ UpdateNumNodes()

void SwNumFormat::UpdateNumNodes ( SwDoc rDoc)
private

Member Data Documentation

◆ m_aVertOrient

SwFormatVertOrient SwNumFormat::m_aVertOrient
private

Definition at line 52 of file numrule.hxx.

Referenced by GetGraphicOrientation(), and SetGraphicBrush().

◆ m_cGrfBulletCP

sal_Unicode SwNumFormat::m_cGrfBulletCP
private

Definition at line 54 of file numrule.hxx.

Referenced by operator=().


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