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

< purpose of derivation from SwClient: character style for displaying the numbers. More...

#include <lineinfo.hxx>

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

Public Member Functions

 SwLineNumberInfo ()
 
 SwLineNumberInfo (const SwLineNumberInfo &)
 
SwLineNumberInfooperator= (const SwLineNumberInfo &)
 
SwCharFormatGetCharFormat (IDocumentStylePoolAccess &rIDSPA) const
 
void SetCharFormat (SwCharFormat *)
 
const SvxNumberTypeGetNumType () const
 
void SetNumType (SvxNumberType aNew)
 
const OUString & GetDivider () const
 
void SetDivider (const OUString &r)
 
sal_uInt16 GetDividerCountBy () const
 
void SetDividerCountBy (sal_uInt16 n)
 
sal_uInt16 GetPosFromLeft () const
 
void SetPosFromLeft (sal_uInt16 n)
 
sal_uInt16 GetCountBy () const
 
void SetCountBy (sal_uInt16 n)
 
LineNumberPosition GetPos () const
 
void SetPos (LineNumberPosition eP)
 
bool IsPaintLineNumbers () const
 
void SetPaintLineNumbers (bool b)
 
bool IsCountBlankLines () const
 
void SetCountBlankLines (bool b)
 
bool IsCountInFlys () const
 
void SetCountInFlys (bool b)
 
bool IsRestartEachPage () const
 
void SetRestartEachPage (bool b)
 
bool HasCharFormat () 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

virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 

Private Attributes

SvxNumberType m_aType
 e.g. roman linenumbers More...
 
OUString m_aDivider
 String for additional interval (vert. lines user defined) More...
 
sal_uInt16 m_nPosFromLeft
 Position for paint. More...
 
sal_uInt16 m_nCountBy
 Paint only for every n line. More...
 
sal_uInt16 m_nDividerCountBy
 Interval for display of an user defined string every n lines. More...
 
LineNumberPosition m_ePos
 Where should the display occur (number and divider) More...
 
bool m_bPaintLineNumbers
 Should anything be displayed? More...
 
bool m_bCountBlankLines
 Count empty lines? More...
 
bool m_bCountInFlys
 Count also within FlyFrames? More...
 
bool m_bRestartEachPage
 Restart counting at the first paragraph of each page (even on follows when paragraphs are split) More...
 

Additional Inherited Members

- 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

< purpose of derivation from SwClient: character style for displaying the numbers.

Definition at line 37 of file lineinfo.hxx.

Constructor & Destructor Documentation

◆ SwLineNumberInfo() [1/2]

SwLineNumberInfo::SwLineNumberInfo ( )

Definition at line 54 of file lineinfo.cxx.

References mm, and toTwips().

◆ SwLineNumberInfo() [2/2]

SwLineNumberInfo::SwLineNumberInfo ( const SwLineNumberInfo rCpy)

Definition at line 66 of file lineinfo.cxx.

References m_aType, and SwClient::StartListeningToSameModifyAs().

Member Function Documentation

◆ GetCharFormat()

SwCharFormat * SwLineNumberInfo::GetCharFormat ( IDocumentStylePoolAccess rIDSPA) const

◆ GetCountBy()

sal_uInt16 SwLineNumberInfo::GetCountBy ( ) const
inline

◆ GetDivider()

const OUString & SwLineNumberInfo::GetDivider ( ) const
inline

◆ GetDividerCountBy()

sal_uInt16 SwLineNumberInfo::GetDividerCountBy ( ) const
inline

◆ GetNumType()

const SvxNumberType & SwLineNumberInfo::GetNumType ( ) const
inline

◆ GetPos()

LineNumberPosition SwLineNumberInfo::GetPos ( ) const
inline

◆ GetPosFromLeft()

sal_uInt16 SwLineNumberInfo::GetPosFromLeft ( ) const
inline

◆ HasCharFormat()

bool SwLineNumberInfo::HasCharFormat ( ) const
inline

Definition at line 92 of file lineinfo.hxx.

References SwClient::GetRegisteredIn().

Referenced by SwXLineNumberingProperties::getPropertyValue().

◆ IsCountBlankLines()

bool SwLineNumberInfo::IsCountBlankLines ( ) const
inline

◆ IsCountInFlys()

bool SwLineNumberInfo::IsCountInFlys ( ) const
inline

◆ IsPaintLineNumbers()

bool SwLineNumberInfo::IsPaintLineNumbers ( ) const
inline

◆ IsRestartEachPage()

bool SwLineNumberInfo::IsRestartEachPage ( ) const
inline

◆ operator=()

SwLineNumberInfo & SwLineNumberInfo::operator= ( const SwLineNumberInfo rCpy)

◆ SetCharFormat()

void SwLineNumberInfo::SetCharFormat ( SwCharFormat pChFormat)

Definition at line 109 of file lineinfo.cxx.

Referenced by IMPL_LINK_NOARG(), and SwXLineNumberingProperties::setPropertyValue().

◆ SetCountBlankLines()

void SwLineNumberInfo::SetCountBlankLines ( bool  b)
inline

◆ SetCountBy()

void SwLineNumberInfo::SetCountBy ( sal_uInt16  n)
inline

◆ SetCountInFlys()

void SwLineNumberInfo::SetCountInFlys ( bool  b)
inline

◆ SetDivider()

void SwLineNumberInfo::SetDivider ( const OUString &  r)
inline

Definition at line 67 of file lineinfo.hxx.

Referenced by IMPL_LINK_NOARG(), and SwXLineNumberingProperties::setPropertyValue().

◆ SetDividerCountBy()

void SwLineNumberInfo::SetDividerCountBy ( sal_uInt16  n)
inline

Definition at line 69 of file lineinfo.hxx.

References n.

Referenced by IMPL_LINK_NOARG(), and SwXLineNumberingProperties::setPropertyValue().

◆ SetNumType()

void SwLineNumberInfo::SetNumType ( SvxNumberType  aNew)
inline

◆ SetPaintLineNumbers()

void SwLineNumberInfo::SetPaintLineNumbers ( bool  b)
inline

◆ SetPos()

void SwLineNumberInfo::SetPos ( LineNumberPosition  eP)
inline

◆ SetPosFromLeft()

void SwLineNumberInfo::SetPosFromLeft ( sal_uInt16  n)
inline

◆ SetRestartEachPage()

void SwLineNumberInfo::SetRestartEachPage ( bool  b)
inline

◆ SwClientNotify()

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

Member Data Documentation

◆ m_aDivider

OUString SwLineNumberInfo::m_aDivider
private

String for additional interval (vert. lines user defined)

Definition at line 41 of file lineinfo.hxx.

Referenced by operator=().

◆ m_aType

SvxNumberType SwLineNumberInfo::m_aType
private

e.g. roman linenumbers

Definition at line 40 of file lineinfo.hxx.

Referenced by operator=().

◆ m_bCountBlankLines

bool SwLineNumberInfo::m_bCountBlankLines
private

Count empty lines?

Definition at line 48 of file lineinfo.hxx.

Referenced by operator=().

◆ m_bCountInFlys

bool SwLineNumberInfo::m_bCountInFlys
private

Count also within FlyFrames?

Definition at line 49 of file lineinfo.hxx.

Referenced by operator=().

◆ m_bPaintLineNumbers

bool SwLineNumberInfo::m_bPaintLineNumbers
private

Should anything be displayed?

Definition at line 47 of file lineinfo.hxx.

Referenced by operator=().

◆ m_bRestartEachPage

bool SwLineNumberInfo::m_bRestartEachPage
private

Restart counting at the first paragraph of each page (even on follows when paragraphs are split)

Definition at line 50 of file lineinfo.hxx.

Referenced by operator=().

◆ m_ePos

LineNumberPosition SwLineNumberInfo::m_ePos
private

Where should the display occur (number and divider)

Definition at line 46 of file lineinfo.hxx.

Referenced by operator=().

◆ m_nCountBy

sal_uInt16 SwLineNumberInfo::m_nCountBy
private

Paint only for every n line.

Definition at line 43 of file lineinfo.hxx.

Referenced by operator=().

◆ m_nDividerCountBy

sal_uInt16 SwLineNumberInfo::m_nDividerCountBy
private

Interval for display of an user defined string every n lines.

Definition at line 44 of file lineinfo.hxx.

Referenced by operator=().

◆ m_nPosFromLeft

sal_uInt16 SwLineNumberInfo::m_nPosFromLeft
private

Position for paint.

Definition at line 42 of file lineinfo.hxx.

Referenced by operator=().


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