31 bool tabPositionIsRelativeToParagraphIndent,
33 : mIndexOfSectionNode(indexOfSectionNode),
34 mDefaultPageDescription(defaultPageDescription),
35 mTabPositionIsRelativeToParagraphIndent(tabPositionIsRelativeToParagraphIndent),
36 mTabStopReferencePolicy(referencePolicy)
52 if (SvxTabAdjust::End > aToken.
eTabAlign) {
71 nRightMargin = aNdRect.
Width();
77 nRightMargin -= rLRSpace.
GetLeft();
88 size_t nPgDescNdIdx = targetNode.
GetIndex() + 1;
111 if (!pageDescription) {
123 return pageDescription == pageFrame->
GetPageDesc();
Base class of the Writer layout elements.
tools::Long GetWidth() const
constexpr TypedWhichId< SwFormatPageDesc > RES_PAGEDESC(93)
sal_uLong GetIndex() const
ToxTabStopTokenHandler::HandledTabStopToken HandleTabStopToken(const SwFormToken &aToken, const SwTextNode &targetNode, const SwRootFrame *currentLayout) const override
Handle a tab stop token.
Pagedescriptor Client of SwPageDesc that is "described" by the attribute.
SwRect FindLayoutRect(const bool bPrtArea=false, const Point *pPoint=nullptr) const
tools::Long GetRight() const
const SwPageDesc * FindPageDesc(size_t *pPgDescNdIdx=nullptr) const
Search PageDesc with which this node is formatted.
SwContentFrame * getLayoutFrame(const SwRootFrame *, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr) const
TabStopReferencePolicy mTabStopReferencePolicy
Dialog to specify the properties of date form field.
Of course Writer needs its own rectangles.
The root element of a Writer document layout.
DefaultToxTabStopTokenHandler(sal_uInt32 indexOfSectionNode, const SwPageDesc &defaultPageDescription, bool tabPositionIsRelativeToParagraphIndent, TabStopReferencePolicy referencePolicy)
static bool CanUseLayoutRectangle(const SwTextNode &targetNode, const SwRootFrame *currentLayout)
Test whether the page layout can be obtained by a layout rectangle.
void Width(tools::Long nNew)
Return value of HandleTabStopToken.
tools::Long GetTextLeft() const
bool mTabPositionIsRelativeToParagraphIndent
SwPageFrame * FindPageFrame()
SwPageDesc * GetPageDesc()
tools::Long GetLeft() const
short GetTextFirstLineOffset() const
A page of the document layout.
SwFrameFormat & GetMaster()
SwTextNode is a paragraph in the document model.
const SwPageDesc & mDefaultPageDescription
tools::Long const nRightMargin
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(91)
sal_uInt16 CalcLineSpace(SvxBoxItemLine nLine, bool bEvenIfNoLine=false) const
tools::Long CalculatePageMarginFromPageDescription(const SwTextNode &targetNode) const
Calculate the page margin from the page description.
sal_uInt32 mIndexOfSectionNode
SwTextFormatColl * GetTextColl() const