24#include <lineinfo.hxx>
28#include <osl/diagnose.h>
57 m_nDividerCountBy( 3 ),
59 m_bPaintLineNumbers( false ),
60 m_bCountBlankLines( true ),
61 m_bCountInFlys( false ),
62 m_bRestartEachPage( false )
68 m_aDivider( rCpy.GetDivider() ),
69 m_nPosFromLeft( rCpy.GetPosFromLeft() ),
70 m_nCountBy( rCpy.GetCountBy() ),
71 m_nDividerCountBy( rCpy.GetDividerCountBy() ),
72 m_ePos( rCpy.GetPos() ),
73 m_bPaintLineNumbers( rCpy.IsPaintLineNumbers() ),
74 m_bCountBlankLines( rCpy.IsCountBlankLines() ),
75 m_bCountInFlys( rCpy.IsCountInFlys() ),
76 m_bRestartEachPage( rCpy.IsRestartEachPage() )
111 OSL_ENSURE( pChFormat,
"SetCharFormat, 0 is not a valid pointer" );
112 pChFormat->Add(
this );
117 if (rHint.
GetId() != SfxHintId::SwLegacyModify)
127 aLayout->AllAddPaintRect();
virtual const SwRootFrame * GetCurrentLayout() const =0
virtual void SetModified()=0
Must be called manually at changes of format.
Access to the style pool.
virtual SwCharFormat * GetCharFormatFromPool(sal_uInt16 nId)=0
const SwModify * GetRegisteredIn() const
void StartListeningToSameModifyAs(const SwClient &)
std::optional< sw::ModifyChangedHint > CheckRegistration(const SfxPoolItem *pOldValue)
IDocumentState const & getIDocumentState() const
o3tl::sorted_vector< SwRootFrame * > GetAllLayouts()
std::unique_ptr< SwLineNumberInfo > mpLineNumberInfo
const SwLineNumberInfo & GetLineNumberInfo() const
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
void SetLineNumberInfo(const SwLineNumberInfo &rInfo)
< purpose of derivation from SwClient: character style for displaying the numbers.
bool m_bRestartEachPage
Restart counting at the first paragraph of each page (even on follows when paragraphs are split)
bool m_bPaintLineNumbers
Should anything be displayed?
const OUString & GetDivider() const
sal_uInt16 m_nDividerCountBy
Interval for display of an user defined string every n lines.
sal_uInt16 GetCountBy() const
const SvxNumberType & GetNumType() const
bool m_bCountBlankLines
Count empty lines?
sal_uInt16 m_nPosFromLeft
Position for paint.
bool IsRestartEachPage() const
void SetCharFormat(SwCharFormat *)
SwCharFormat * GetCharFormat(IDocumentStylePoolAccess &rIDSPA) const
bool IsPaintLineNumbers() const
bool IsCountBlankLines() const
sal_uInt16 GetPosFromLeft() const
bool m_bCountInFlys
Count also within FlyFrames?
bool IsCountInFlys() const
SwLineNumberInfo & operator=(const SwLineNumberInfo &)
virtual void SwClientNotify(const SwModify &, const SfxHint &) override
LineNumberPosition m_ePos
Where should the display occur (number and divider)
sal_uInt16 GetDividerCountBy() const
LineNumberPosition GetPos() const
OUString m_aDivider
String for additional interval (vert. lines user defined)
sal_uInt16 m_nCountBy
Paint only for every n line.
SvxNumberType m_aType
e.g. roman linenumbers
The root element of a Writer document layout.
void StartAllAction()
Set up Start-/EndAction for all Shells on an as high as possible (Shell section) level.
constexpr auto toTwips(N number, Length from)
@ RES_POOLCHR_LINENUM
Line numbering.
WW8LvlType GetNumType(sal_uInt8 nWwLevelNo)