LibreOffice Module sw (master) 1
|
Represents the visualization of a paragraph. More...
#include <txtfrm.hxx>
Public Member Functions | |
css::uno::Sequence< css::style::TabStop > | GetTabStopInfo (SwTwips CurrentPos) override |
void | Init () |
This is public, as it needs to be called by some methods in order to save the Prepare USE WITH CAUTION! More... | |
SwRect | AutoSpell_ (SwTextNode &, sal_Int32) |
Is called by DoIdleJob_(), ExecSpellPopup() and UpDown() More... | |
SwRect | SmartTagScan (SwTextNode &) |
Is called by DoIdleJob_() More... | |
void | CollectAutoCmplWrds (SwTextNode &, sal_Int32) |
Is called by DoIdleJob_() More... | |
virtual bool | GetCharRect (SwRect &rRect, const SwPosition &rPos, SwCursorMoveState *pCMS=nullptr, bool bAllowFarAway=true) const override |
Returns the view rectangle for the rPos model position. More... | |
bool | GetAutoPos (SwRect &, const SwPosition &) const |
A slimmer version of GetCharRect for autopositioning Frames. More... | |
bool | GetTopOfLine (SwTwips &_onTopOfLine, const SwPosition &_rPos) const |
Determine top of line for given position in the text frame. More... | |
virtual bool | FillSelection (SwSelectionList &rList, const SwRect &rRect) const override |
Looks for text portions which are inside the given rectangle. More... | |
virtual bool | GetModelPositionForViewPoint (SwPosition *, Point &, SwCursorMoveState *=nullptr, bool bTestBackground=false) const override |
In nOffset returns the offset of the char within the set text buffer, which is closest to the position provided by aPoint within the layout's SSize. More... | |
bool | GetKeyCursorOfst (SwPosition *pPos, const Point &rPoint) const |
Makes sure that the Frame is not switched (e.g. More... | |
void | PaintExtraData (const SwRect &rRect) const |
SwRect | GetPaintSwRect () |
Page number etc. More... | |
virtual void | PaintSwFrame (vcl::RenderContext &rRenderContext, SwRect const &, SwPrintData const *const pPrintData=nullptr) const override |
virtual bool | GetInfo (SfxPoolItem &) const override |
virtual bool | LeftMargin (SwPaM *) const override |
Layout oriented cursor travelling: Left border, right border, previous Line, following Line, same horizontal position. More... | |
virtual bool | RightMargin (SwPaM *, bool bAPI=false) const override |
virtual bool | UnitUp (SwPaM *, const SwTwips nOffset, bool bSetInReadOnly) const override |
virtual bool | UnitDown (SwPaM *, const SwTwips nOffset, bool bSetInReadOnly) const override |
bool | UnitUp_ (SwPaM *, const SwTwips nOffset, bool bSetInReadOnly) const |
bool | UnitDown_ (SwPaM *, const SwTwips nOffset, bool bSetInReadOnly) const |
void | PrepareVisualMove (TextFrameIndex &nPos, sal_uInt8 &nCursorLevel, bool &bRight, bool bInsertCursor) |
Prepares the cursor position for a visual cursor move (BiDi). More... | |
void | SplitFrame (TextFrameIndex nTextPos) |
Methods to manage the FollowFrame. More... | |
SwContentFrame * | JoinFrame () |
TextFrameIndex | GetOffset () const |
void | SetOffset_ (TextFrameIndex nNewOfst) |
void | SetOffset (TextFrameIndex nNewOfst) |
void | ManipOfst (TextFrameIndex const nNewOfst) |
SwTextFrame * | GetFrameAtPos (const SwPosition &rPos) |
const SwTextFrame * | GetFrameAtPos (const SwPosition &rPos) const |
SwTextFrame & | GetFrameAtOfst (TextFrameIndex nOfst) |
bool | IsEmptyMaster () const |
If there's a Follow and we don't contain text ourselves. More... | |
void | SetMergedPara (std::unique_ptr< sw::MergedPara > p) |
sw::MergedPara * | GetMergedPara () |
sw::MergedPara const * | GetMergedPara () const |
const OUString & | GetText () const |
Returns the text portion we want to edit (for inline see underneath) More... | |
SwTextNode const * | GetTextNodeForParaProps () const |
SwTextNode const * | GetTextNodeForFirstText () const |
SwTextNode * | GetTextNodeFirst () |
SwTextNode const * | GetTextNodeFirst () const |
SwDoc & | GetDoc () |
SwDoc const & | GetDoc () const |
SwTextFrame (SwTextNode *const, SwFrame *, sw::FrameMode eMode) | |
virtual bool | Prepare (const PrepareHint ePrep=PrepareHint::Clear, const void *pVoid=nullptr, bool bNotify=true) override |
SwContentFrame: the shortcut for the Frames If the void* casts wrongly, it's its own fault! The void* must be checked for 0 in any case! More... | |
virtual bool | WouldFit (SwTwips &nMaxHeight, bool &bSplit, bool bTst, bool bMoveBwd) override |
nMaxHeight is the required height bSplit indicates, that the paragraph has to be split bTst indicates, that we are currently doing a test formatting More... | |
bool | TestFormat (const SwFrame *pPrv, SwTwips &nMaxHeight, bool &bSplit) |
The WouldFit equivalent for temporarily rewired TextFrames nMaxHeight returns the required size here too and bSplit determines whether the paragraph needs to be split. More... | |
bool | Hyphenate (SwInterHyphInfoTextFrame &rInf) |
We format a Line for interactive hyphenation. More... | |
SwTwips | GrowTst (const SwTwips nGrow) |
Test grow. More... | |
SwParaPortion * | GetPara () |
const SwParaPortion * | GetPara () const |
bool | HasPara () const |
bool | HasPara_ () const |
std::pair< SwTextNode *, sal_Int32 > | MapViewToModel (TextFrameIndex nIndex) const |
map position in potentially merged text frame to SwPosition More... | |
SwPosition | MapViewToModelPos (TextFrameIndex nIndex) const |
TextFrameIndex | MapModelToView (SwTextNode const *pNode, sal_Int32 nIndex) const |
TextFrameIndex | MapModelToViewPos (SwPosition const &rPos) const |
SwTwips | HangingMargin () const |
bool | IsLocked () const |
bool | IsWidow () const |
bool | IsJustWidow () const |
bool | IsEmpty () const |
bool | HasFootnote () const |
bool | IsInFootnoteConnect () const |
bool | IsFieldFollow () const |
void | SetRepaint () const |
void | ResetRepaint () const |
bool | HasRepaint () const |
void | SetHasRotatedPortions (bool bHasRotatedPortions) |
bool | GetHasRotatedPortions () const |
void | SetAnimation () const |
bool | HasAnimation () const |
bool | IsSwapped () const |
void | CalcFootnoteFlag (TextFrameIndex nStop=TextFrameIndex(COMPLETE_STRING)) |
Does the Frame have a local footnote (in this Frame or Follow)? More... | |
bool | IsHiddenNow () const |
Hidden. More... | |
void | HideHidden () |
Removes Textfrm's attachments, when it's hidden. More... | |
void | HideFootnotes (TextFrameIndex nStart, TextFrameIndex nEnd) |
void | HideAndShowObjects () |
Hides respectively shows objects, which are anchored at paragraph, at/as a character of the paragraph, corresponding to the paragraph and paragraph portion visibility. More... | |
void | RemoveFootnote (TextFrameIndex nStart, TextFrameIndex nLen=TextFrameIndex(COMPLETE_STRING)) |
Footnote. More... | |
SwTwips | GetFootnoteFrameHeight () const |
SwTextFrame * | FindFootnoteRef (const SwTextFootnote *pFootnote) |
Looks for the TextFrame matching the SwTextFootnote within a master-follow chain. More... | |
const SwTextFrame * | FindFootnoteRef (const SwTextFootnote *pFootnote) const |
void | ConnectFootnote (SwTextFootnote *pFootnote, const SwTwips nDeadLine) |
We basically only have two possibilities: More... | |
SwTwips | GetFootnoteLine (const SwTextFootnote *pFootnote) const |
If we're a Footnote that grows towards its reference ... public, because it's needed by SwContentFrame::MakeAll. More... | |
TextFrameIndex | GetDropLen (TextFrameIndex nWishLen) const |
nWishLen = 0 indicates that we want a whole word More... | |
LanguageType | GetLangOfChar (TextFrameIndex nIndex, sal_uInt16 nScript, bool bNoChar=false) const |
virtual void | Format (vcl::RenderContext *pRenderContext, const SwBorderAttrs *pAttrs=nullptr) override |
Calculates the frame area size and the print area, in case they are invalid. More... | |
virtual void | CheckDirection (bool bVert) override |
SwTwips | GetParHeight () const |
Returns the sum of line height in pLine. More... | |
SwTextFrame * | GetFollow () |
const SwTextFrame * | GetFollow () const |
SwTextFrame * | FindQuoVadisFrame () |
Find the page number of ErgoSum and QuoVadis. More... | |
SwTextFrame * | GetFormatted (bool bForceQuickFormat=false) |
In case the SwLineLayout was cleared out of the s_pTextCache, recreate it. More... | |
void | SetFootnote (const bool bNew) |
Will be moved soon. More... | |
bool | IsInside (TextFrameIndex nPos) const |
Respect the Follows. More... | |
bool | GetDropRect (SwRect &rRect) const |
DropCaps and selections. More... | |
sal_uInt16 | GetCacheIdx () const |
void | SetCacheIdx (const sal_uInt16 nNew) |
void | ClearPara () |
Removes the Line information from the Cache but retains the entry itself. More... | |
void | RemoveFromCache () |
Removes this frame completely from the Cache. More... | |
bool | IsFootnoteNumFrame () const |
Am I a FootnoteFrame, with a number at the start of the paragraph? More... | |
SwTwips | CalcFitToContent () |
Simulates a formatting as if there were not right margin or Flys or other obstacles and returns the width. More... | |
void | CalcAdditionalFirstLineOffset () |
Simulate format for a list item paragraph, whose list level attributes are in LABEL_ALIGNMENT mode, in order to determine additional first line offset for the real text formatting due to the value of label adjustment attribute of the list level. More... | |
SwTwips | GetAdditionalFirstLineOffset () const |
tools::Long | GetLineSpace (const bool _bNoPropLineSpacing=false) const |
Returns the additional line spacing for the next paragraph. More... | |
sal_uInt16 | FirstLineHeight () const |
Returns the first line height. More... | |
void | MoveFlyInCnt (SwTextFrame *pNew, TextFrameIndex nStart, TextFrameIndex nEnd) |
Rewires FlyInContentFrame, if nEnd > Index >= nStart. More... | |
TextFrameIndex | CalcFlyPos (SwFrameFormat const *pSearch) |
Calculates the position of FlyInContentFrames. More... | |
bool | FillRegister (SwTwips &rRegStart, sal_uInt16 &rRegDiff) |
Determines the start position and step size of the register. More... | |
sal_uInt16 | GetLineCount (TextFrameIndex nPos) |
Determines the line count. More... | |
sal_uLong | GetAllLines () const |
For displaying the line numbers. More... | |
sal_uLong | GetThisLines () const |
void | RecalcAllLines () |
void | StopAnimation (const OutputDevice *pOut) |
Stops the animations within numberings. More... | |
void | VisitPortions (SwPortionHandler &rPH) const |
Visit all portions for Accessibility. More... | |
const SwScriptInfo * | GetScriptInfo () const |
Returns the script info stored at the paraportion. More... | |
void | SwapWidthAndHeight () |
Swaps width and height of the text frame. More... | |
void | SwitchHorizontalToVertical (SwRect &rRect) const |
Calculates the coordinates of a rectangle when switching from horizontal to vertical layout. More... | |
void | SwitchHorizontalToVertical (Point &rPoint) const |
Calculates the coordinates of a point when switching from horizontal to vertical layout. More... | |
tools::Long | SwitchHorizontalToVertical (tools::Long nLimit) const |
Calculates the limit value when switching from horizontal to vertical layout. More... | |
void | SwitchVerticalToHorizontal (SwRect &rRect) const |
Calculates the coordinates of a rectangle when switching from vertical to horizontal layout. More... | |
void | SwitchVerticalToHorizontal (Point &rPoint) const |
Calculates the coordinates of a point when switching from vertical to horizontal layout. More... | |
tools::Long | SwitchVerticalToHorizontal (tools::Long nLimit) const |
Calculates the a limit value when switching from vertical to horizontal layout. More... | |
void | SwitchLTRtoRTL (SwRect &rRect) const |
Calculates the coordinates of a rectangle when switching from LTR to RTL layout. More... | |
void | SwitchLTRtoRTL (Point &rPoint) const |
Calculates the coordinates of a point when switching from LTR to RTL layout. More... | |
void | SwitchRTLtoLTR (SwRect &rRect) const |
Calculates the coordinates of a rectangle when switching from RTL to LTR layout. More... | |
void | SwitchRTLtoLTR (Point &rPoint) const |
Calculates the coordinates of a point when switching from RTL to LTR layout. More... | |
bool | FollowFormatAllowed () const |
void | AllowFollowFormat () |
void | ForbidFollowFormat () |
SwTwips | GetBaseOffsetForFly (bool bIgnoreFlysAnchoredAtThisFrame) const |
SwTwips | GetBaseVertOffsetForFly (bool bIgnoreFlysAnchoredAtThisFrame) const |
SwTwips | GetHeightOfLastLine () const |
void | RegisterToNode (SwTextNode &, bool isForceNodeAsFirst=false) |
bool | IsSymbolAt (TextFrameIndex) const |
OUString | GetCurWord (SwPosition const &) const |
sal_uInt16 | GetScalingOfSelectedText (TextFrameIndex nStt, TextFrameIndex nEnd) |
Calculates the width of the text part specified by nStart and nEnd, the height of the line containing nStart is divided by this width, indicating the scaling factor, if the text part is rotated. More... | |
bool | HasNonLastSplitFlyDrawObj () const |
This text frame may have a split fly frames anchored to it. More... | |
virtual void | dumpAsXmlAttributes (xmlTextWriterPtr writer) const override |
virtual const SvxFormatBreakItem & | GetBreakItem () const override |
virtual const SwFormatPageDesc & | GetPageDescItem () const override |
![]() | |
virtual void | Cut () override |
virtual void | Paste (SwFrame *pParent, SwFrame *pSibling=nullptr) override |
const SwContentFrame * | GetFollow () const |
SwContentFrame * | GetFollow () |
SwTextFrame * | FindMaster () const |
virtual bool | LeftMargin (SwPaM *) const =0 |
virtual bool | RightMargin (SwPaM *, bool bAPI=false) const =0 |
virtual bool | UnitUp (SwPaM *, const SwTwips nOffset, bool bSetInReadOnly) const |
virtual bool | UnitDown (SwPaM *, const SwTwips nOffset, bool bSetInReadOnly) const |
virtual bool | WouldFit (SwTwips &nMaxHeight, bool &bSplit, bool bTst, bool) |
bool | MoveFootnoteCntFwd (bool, SwFootnoteBossFrame *) |
Return value guarantees that a new page was not created. See SwFlowFrame::MoveFwd. More... | |
SwContentFrame * | GetNextContentFrame () const |
SwContentFrame * | GetPrevContentFrame () const |
![]() | |
virtual css::uno::Sequence< css::style::TabStop > | GetTabStopInfo (SwTwips) |
SwFrameType | GetType () const |
SwTwips | Shrink (SwTwips, bool bTst=false, bool bInfo=false) |
SwTwips | Grow (SwTwips, bool bTst=false, bool bInfo=false) |
void | InsertBefore (SwLayoutFrame *pParent, SwFrame *pBehind) |
Insert SwFrame into existing structure. More... | |
void | InsertBehind (SwLayoutFrame *pParent, SwFrame *pBefore) |
Insert SwFrame into existing structure. More... | |
bool | InsertGroupBefore (SwFrame *pParent, SwFrame *pWhere, SwFrame *pSct) |
Insert a chain of SwFrames into an existing structure. More... | |
void | RemoveFromLayout () |
SwLayoutFrame * | GetLeaf (MakePageType eMakePage, bool bFwd) |
SwLayoutFrame * | GetNextLeaf (MakePageType eMakePage) |
Returns the next layout leaf in which we can move the frame. More... | |
SwLayoutFrame * | GetNextFootnoteLeaf (MakePageType eMakePage) |
Return the next layout leaf in that the frame can be moved. More... | |
SwLayoutFrame * | GetNextSctLeaf (MakePageType eMakePage) |
Returns the next layout sheet where the frame can be moved in. More... | |
SwLayoutFrame * | GetNextFlyLeaf (MakePageType eMakePage) |
SwLayoutFrame * | GetPrevLeaf () |
Returns the previous layout leaf where we can move the frame. More... | |
SwLayoutFrame * | GetPrevFootnoteLeaf (MakePageType eMakeFootnote) |
Get the preceding layout leaf in that the frame can be moved. More... | |
SwLayoutFrame * | GetPrevSctLeaf () |
Returns the preceding layout sheet where the frame can be moved into. More... | |
SwLayoutFrame * | GetPrevFlyLeaf () |
const SwLayoutFrame * | GetLeaf (MakePageType eMakePage, bool bFwd, const SwFrame *pAnch) const |
Returns the next/previous Layout leaf that's NOT below this (or even is this itself). More... | |
bool | WrongPageDesc (SwPageFrame *pNew) |
void | AppendDrawObj (SwAnchoredObject &_rNewObj) |
void | RemoveDrawObj (SwAnchoredObject &_rToRemoveObj) |
void | AppendFly (SwFlyFrame *pNew) |
void | RemoveFly (SwFlyFrame *pToRemove) |
const SwSortedObjs * | GetDrawObjs () const |
SwSortedObjs * | GetDrawObjs () |
void | SetDrawObjsAsDeleted (bool bDeleted) |
void | InvalidateObjs (const bool _bNoInvaOfAsCharAnchoredObjs=true) |
virtual void | PaintSwFrameShadowAndBorder (const SwRect &, const SwPageFrame *pPage, const SwBorderAttrs &) const |
Paints shadows and borders. More... | |
void | PaintBaBo (const SwRect &, const SwPageFrame *pPage, const bool bOnlyTextBackground=false) const |
void | PaintSwFrameBackground (const SwRect &, const SwPageFrame *pPage, const SwBorderAttrs &, const bool bLowerMode=false, const bool bLowerBorder=false, const bool bOnlyTextBackground=false) const |
Do not paint background for fly frames without a background brush by calling <PaintBaBo> at the page or at the fly frame its anchored. More... | |
void | PaintBorderLine (const SwRect &, const SwRect &, const SwPageFrame *, const Color *pColor, const SvxBorderLineStyle=SvxBorderLineStyle::SOLID) const |
std::unique_ptr< drawinglayer::processor2d::BaseProcessor2D > | CreateProcessor2D () const |
void | ProcessPrimitives (const drawinglayer::primitive2d::Primitive2DContainer &rSequence) const |
void | Retouch (const SwPageFrame *pPage, const SwRect &rRect) const |
Retouch for a section. More... | |
bool | GetBackgroundBrush (drawinglayer::attribute::SdrAllFillAttributesHelperPtr &rFillAttributes, const SvxBrushItem *&rpBrush, std::optional< Color > &rxColor, SwRect &rOrigRect, bool bLowerMode, bool bConsiderTextBox) const |
Determine the background brush for the frame: the background brush is taken from it-self or from its parent (anchor/upper). More... | |
void | SetCompletePaint () const |
void | ResetCompletePaint () const |
bool | IsCompletePaint () const |
void | SetRetouche () const |
void | ResetRetouche () const |
bool | IsRetouche () const |
void | InvalidateInfFlags () |
bool | IsInDocBody () const |
bool | IsInFootnote () const |
bool | IsInTab () const |
bool | IsInFly () const |
bool | IsInSct () const |
bool | IsVertical () const |
bool | IsVertLR () const |
bool | IsVertLRBT () const |
void | SetDerivedVert (bool bNew) |
void | SetInvalidVert (bool bNew) |
bool | IsRightToLeft () const |
void | SetDerivedR2L (bool bNew) |
void | CheckDirChange () |
checks the layout direction and invalidates the lower frames recursively, if necessary. More... | |
Point | GetFrameAnchorPos (bool bIgnoreFlysAnchoredAtThisFrame) const |
returns the position for anchors based on frame direction More... | |
bool | IsFootnoteAllowed () const |
virtual void | Format (vcl::RenderContext *pRenderContext, const SwBorderAttrs *pAttrs=nullptr) |
Calculates the frame area size and the print area, in case they are invalid. More... | |
virtual void | CheckDirection (bool bVert) |
void | ReinitializeFrameSizeAttrFlags () |
bool | HasFixSize () const |
SwFrame * | GetNext () |
SwFrame * | GetPrev () |
SwLayoutFrame * | GetUpper () |
SwRootFrame * | getRootFrame () |
SwPageFrame * | FindPageFrame () |
SwFrame * | GetLower () |
const SwFrame * | GetNext () const |
const SwFrame * | GetPrev () const |
const SwLayoutFrame * | GetUpper () const |
const SwRootFrame * | getRootFrame () const |
SwTabFrame * | FindTabFrame () |
SwFootnoteFrame * | FindFootnoteFrame () |
SwFlyFrame * | FindFlyFrame () |
SwSectionFrame * | FindSctFrame () |
SwFrame * | FindNext () |
SwContentFrame * | FindNextCnt (const bool _bInSameFootnote=false) |
SwFrame * | FindPrev () |
const SwPageFrame * | FindPageFrame () const |
const SwFootnoteBossFrame * | FindFootnoteBossFrame (bool bFootnote=false) const |
const SwFrame * | FindColFrame () const |
const SwFrame * | FindFooterOrHeader () const |
const SwTabFrame * | FindTabFrame () const |
const SwFootnoteFrame * | FindFootnoteFrame () const |
const SwFlyFrame * | FindFlyFrame () const |
const SwSectionFrame * | FindSctFrame () const |
const SwBodyFrame * | FindBodyFrame () const |
const SwFrame * | FindNext () const |
const SwContentFrame * | FindNextCnt (const bool _bInSameFootnote=false) const |
const SwFrame * | FindPrev () const |
const SwFrame * | GetLower () const |
SwContentFrame * | FindPrevCnt () |
const SwContentFrame * | FindPrevCnt () const |
SwFrame * | GetIndPrev_ () const |
Called for a frame inside a section with no direct previous frame (or only previous empty section frames) the previous frame of the outer section is returned, if the frame is the first flowing content of this section. More... | |
SwFrame * | GetIndPrev () const |
SwFrame * | GetIndNext () |
const SwFrame * | GetIndNext () const |
sal_uInt16 | GetPhyPageNum () const |
sal_uInt16 | GetVirtPageNum () const |
bool | OnRightPage () const |
bool | WannaRightPage () const |
Decides if the page want to be a right page or not. More... | |
bool | OnFirstPage () const |
const SwLayoutFrame * | GetPrevLayoutLeaf () const |
const SwLayoutFrame * | GetNextLayoutLeaf () const |
SwLayoutFrame * | GetPrevLayoutLeaf () |
SwLayoutFrame * | GetNextLayoutLeaf () |
virtual void | Calc (vcl::RenderContext *pRenderContext) const |
void | OptCalc () const |
Point | GetRelPos () const |
SwRect | GetPaintArea () const |
|* The paintarea is the area, in which the content of a frame is allowed |* to be displayed. More... | |
SwRect | UnionFrame (bool bBorder=false) const |
|* The unionframe is the framearea (getFrameArea()) of a frame expanded by the |* printarea, if there's a negative margin at the left or right side. More... | |
virtual Size | ChgSize (const Size &aNewSize) |
virtual void | Cut ()=0 |
virtual void | Paste (SwFrame *pParent, SwFrame *pSibling=nullptr)=0 |
void | ValidateLineNum () |
bool | GetValidLineNumFlag () const |
void | InvalidateSize_ () |
void | InvalidatePrt_ () |
void | InvalidatePos_ () |
void | InvalidateLineNum_ () |
void | InvalidateAll_ () |
void | InvalidateSize () |
void | InvalidatePrt () |
void | InvalidatePos () |
void | InvalidateLineNum () |
void | InvalidateAll () |
void | ImplInvalidateSize () |
void | ImplInvalidatePrt () |
void | ImplInvalidatePos () |
void | ImplInvalidateLineNum () |
void | InvalidateNextPos (bool bNoFootnote=false) |
void | InvalidatePage (const SwPageFrame *pPage=nullptr) const |
Invalidates the page in which the Frame is currently placed. More... | |
virtual bool | FillSelection (SwSelectionList &rList, const SwRect &rRect) const |
virtual bool | GetModelPositionForViewPoint (SwPosition *, Point &, SwCursorMoveState *=nullptr, bool bTestBackground=false) const |
virtual bool | GetCharRect (SwRect &, const SwPosition &, SwCursorMoveState *=nullptr, bool bAllowFarAway=true) const |
virtual void | PaintSwFrame (vcl::RenderContext &rRenderContext, SwRect const &, SwPrintData const *const pPrintData=nullptr) const |
virtual bool | Prepare (const PrepareHint ePrep=PrepareHint::Clear, const void *pVoid=nullptr, bool bNotify=true) |
bool | IsLayoutFrame () const |
bool | IsRootFrame () const |
bool | IsPageFrame () const |
bool | IsColumnFrame () const |
bool | IsFootnoteBossFrame () const |
bool | IsHeaderFrame () const |
bool | IsFooterFrame () const |
bool | IsFootnoteContFrame () const |
bool | IsFootnoteFrame () const |
bool | IsBodyFrame () const |
bool | IsColBodyFrame () const |
These SwFrame inlines are here, so that frame.hxx does not need to include layfrm.hxx. More... | |
bool | IsPageBodyFrame () const |
bool | IsFlyFrame () const |
bool | IsSctFrame () const |
bool | IsTabFrame () const |
bool | IsRowFrame () const |
bool | IsCellFrame () const |
bool | IsContentFrame () const |
bool | IsTextFrame () const |
bool | IsNoTextFrame () const |
bool | IsFlowFrame () const |
bool | IsRetoucheFrame () const |
bool | IsAccessibleFrame () const |
void | PrepareCursor () |
bool | IsProtected () const |
Is the Frame or rather the Section in which it lies protected? More... | |
bool | IsColLocked () const |
virtual bool | IsDeleteForbidden () const |
bool | IsInDtor () const |
tools::Long | GetTopMargin () const |
tools::Long | GetBottomMargin () const |
tools::Long | GetLeftMargin () const |
tools::Long | GetRightMargin () const |
void | SetTopBottomMargins (tools::Long, tools::Long) |
void | SetLeftRightMargins (tools::Long, tools::Long) |
void | SetRightLeftMargins (tools::Long, tools::Long) |
tools::Long | GetPrtLeft () const |
tools::Long | GetPrtBottom () const |
tools::Long | GetPrtRight () const |
tools::Long | GetPrtTop () const |
bool | SetMinLeft (tools::Long) |
bool | SetMaxBottom (tools::Long) |
bool | SetMaxRight (tools::Long) |
void | MakeBelowPos (const SwFrame *, const SwFrame *, bool) |
void | MakeLeftPos (const SwFrame *, const SwFrame *, bool) |
void | MakeRightPos (const SwFrame *, const SwFrame *, bool) |
bool | IsNeighbourFrame () const |
virtual bool | IsLeaveUpperAllowed () const |
virtual bool | IsCoveredCell () const |
bool | IsInCoveredCell () const |
bool | KnowsFormat (const SwFormat &rFormat) const |
void | RegisterToFormat (SwFormat &rFormat) |
void | ValidateThisAndAllLowers (const sal_uInt16 nStage) |
void | ForbidDelete () |
void | AllowDelete () |
virtual void | dumpAsXml (xmlTextWriterPtr writer=nullptr) const |
void | dumpTopMostAsXml (xmlTextWriterPtr writer=nullptr) const |
void | dumpInfosAsXml (xmlTextWriterPtr writer) const |
virtual void | dumpAsXmlAttributes (xmlTextWriterPtr writer) const |
void | dumpChildrenAsXml (xmlTextWriterPtr writer) const |
bool | IsCollapse () const |
SwLayoutFrame * | GetNextCellLeaf () |
SwLayoutFrame * | GetPrevCellLeaf () |
void | SetInfFlags () |
const SwRowFrame * | IsInSplitTableRow () const |
const SwRowFrame * | IsInFollowFlowRow () const |
bool | IsInBalancedSection () const |
bool | IsMoveable (const SwLayoutFrame *_pLayoutFrame=nullptr) const |
determine, if frame is moveable in given environment More... | |
const SwAttrSet * | GetAttrSet () const |
WARNING: this may not return correct RES_PAGEDESC/RES_BREAK items for SwTextFrame, use GetBreakItem()/GetPageDescItem() instead. More... | |
SwFrame * | FindColFrame () |
SwRowFrame * | FindRowFrame () |
SwFootnoteBossFrame * | FindFootnoteBossFrame (bool bFootnotes=false) |
SwTabFrame * | ImplFindTabFrame () |
SwFootnoteFrame * | ImplFindFootnoteFrame () |
SwFlyFrame * | ImplFindFlyFrame () |
SwSectionFrame * | ImplFindSctFrame () |
const SwBodyFrame * | ImplFindBodyFrame () const |
SwFrame * | FindFooterOrHeader () |
void | ImplInvalidateNextPos (bool bNoFootnote) |
void | InvalidateNextPrtArea () |
method to invalidate printing area of next frame #i11859# More... | |
SwTextFrame * | DynCastTextFrame () |
const SwTextFrame * | DynCastTextFrame () const |
drawinglayer::attribute::SdrAllFillAttributesHelperPtr | getSdrAllFillAttributesHelper () const |
bool | supportsFullDrawingLayerFillAttributeSet () const |
![]() | |
SwFrameAreaDefinition () | |
virtual | ~SwFrameAreaDefinition () |
bool | isFrameAreaPositionValid () const |
bool | isFrameAreaSizeValid () const |
bool | isFramePrintAreaValid () const |
bool | isFrameAreaDefinitionValid () const |
sal_uInt32 | GetFrameId () const |
const SwRect & | getFrameArea () const |
const SwRect & | getFramePrintArea () const |
virtual basegfx::B2DHomMatrix | getFrameAreaTransformation () const |
virtual basegfx::B2DHomMatrix | getFramePrintAreaTransformation () const |
virtual void | transform_translate (const Point &rOffset) |
![]() | |
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 |
![]() | |
bool | IsLast () const |
virtual const SwCellFrame * | DynCastCellFrame () const |
virtual const SwTabFrame * | DynCastTabFrame () const |
virtual const SwRowFrame * | DynCastRowFrame () const |
virtual const SwTable * | DynCastTable () const |
![]() | |
SfxBroadcaster () | |
SfxBroadcaster (const SfxBroadcaster &rBC) | |
virtual | ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE |
void | Broadcast (const SfxHint &rHint) |
bool | HasListeners () const |
size_t | GetListenerCount () const |
size_t | GetSizeOfVector () const |
SfxListener * | GetListener (size_t nNo) const |
Static Public Member Functions | |
static SwCache * | GetTextCache () |
static void | SetTextCache (SwCache *pNew) |
static tools::Long | GetMinPrtLine () |
static void | repaintTextFrames (const SwTextNode &rNode) |
Repaint all text frames of the given text node. More... | |
![]() | |
static bool | CalcLowers (SwLayoutFrame &rLay, SwLayoutFrame const &rDontLeave, tools::Long nBottom, bool bSkipRowSpanCells) |
![]() | |
static SwCache & | GetCache () |
static SwCache * | GetCachePtr () |
static void | SetCache (SwCache *pNew) |
static void | CheckPageDescs (SwPageFrame *pStart, bool bNotifyFields=true, SwPageFrame **ppPrev=nullptr) |
Check all pages (starting from the given one) if they use the appropriate frame format. More... | |
static void | DestroyFrame (SwFrame *const pFrame) |
this is the only way to delete a SwFrame instance More... | |
Private Member Functions | |
void | AdjustFollow_ (SwTextFormatter &rLine, TextFrameIndex nOffset, TextFrameIndex nStrEnd, const sal_uInt8 nMode) |
void | CalcLineSpace () |
void | AdjustFrame (const SwTwips nChgHeight, bool bHasToFit=false) |
bool | CalcPreps () |
void | PrepWidows (const sal_uInt16 nNeed, bool bNotify) |
void | InvalidateRange_ (const SwCharRange &, const tools::Long=0) |
void | InvalidateRange (const SwCharRange &, const tools::Long=0) |
void | FormatAdjust (SwTextFormatter &rLine, WidowsAndOrphans &rFrameBreak, TextFrameIndex nStrLen, const bool bDummy) |
void | ChangeOffset (SwTextFrame *pFrame, TextFrameIndex nNew) |
void | ResetPreps () |
void | Lock () |
void | Unlock () |
void | SetWidow (const bool bNew) |
void | SetJustWidow (const bool bNew) |
void | SetEmpty (const bool bNew) |
void | SetFieldFollow (const bool bNew) |
bool | IsIdxInside (TextFrameIndex nPos, TextFrameIndex nLen) const |
bool | GetModelPositionForViewPoint_ (SwPosition *pPos, const Point &rPoint, const bool bChgFrame, SwCursorMoveState *=nullptr) const |
void | FillCursorPos (SwFillData &rFill) const |
bool | FormatLine (SwTextFormatter &rLine, const bool bPrev) |
void | Format_ (vcl::RenderContext *pRenderContext, SwParaPortion *pPara) |
void | Format_ (SwTextFormatter &rLine, SwTextFormatInfo &rInf, const bool bAdjust=false) |
void | FormatOnceMore (SwTextFormatter &rLine, SwTextFormatInfo &rInf) |
bool | CalcFollow (TextFrameIndex nTextOfst) |
virtual void | MakePos () override |
Calculates the frame area position, in case it's invalid. More... | |
SwTwips | GetFootnoteFrameHeight_ () const |
Calculates the maximum reachable height for the TextFrame in the Footnote Area. More... | |
bool | CalcPrepFootnoteAdjust () |
void | ValidateFrame () |
void | ValidateBodyFrame () |
bool | GetDropRect_ (SwRect &rRect) const |
void | SetPara (SwParaPortion *pNew, bool bDelete=true) |
bool | IsFootnoteNumFrame_ () const |
bool | FormatQuick (bool bForceQuickFormat) |
bool | FormatEmpty () |
SwTwips | EmptyHeight () const |
bool | PaintEmpty (const SwRect &, bool bCheck) const |
void | ChgThisLines () |
void | CalcBaseOfstForFly () |
void | CalcHeightOfLastLine (const bool _bUseFont=false) |
method to determine height of last line, needed for proportional line spacing More... | |
virtual void | DestroyImpl () override |
virtual | ~SwTextFrame () override |
void | UpdateOutlineContentVisibilityButton (SwWrtShell *pWrtSh) const |
void | PaintOutlineContentVisibilityButton () const |
virtual void | SwClientNotify (SwModify const &rModify, SfxHint const &rHint) override |
std::vector< SwFlyAtContentFrame * > | GetSplitFlyDrawObjs () const |
Like GetDrawObjs(), but limit to fly frames which are allowed to split. More... | |
Static Private Member Functions | |
static TextFrameIndex | FindBrk (std::u16string_view aText, TextFrameIndex nStart, TextFrameIndex nEnd) |
Returns the first possible break point in the current line. More... | |
Private Attributes | |
sal_uInt32 | mnAllLines:24 |
sal_uInt32 | mnThisLines:8 |
SwTwips | mnFlyAnchorOfst |
SwTwips | mnFlyAnchorOfstNoWrap |
SwTwips | mnFlyAnchorVertOfstNoWrap |
The y position for wrap-through flys anchored at this paragraph. More... | |
SwTwips | mnFootnoteLine |
SwTwips | mnHeightOfLastLine |
SwTwips | mnAdditionalFirstLineOffset |
std::unique_ptr< sw::MergedPara > | m_pMergedPara |
redline merge data More... | |
TextFrameIndex | mnOffset |
sal_uInt16 | mnCacheIndex |
bool | mbLocked: 1 |
bool | mbWidow: 1 |
bool | mbJustWidow: 1 |
bool | mbEmpty: 1 |
bool | mbInFootnoteConnect: 1 |
bool | mbFootnote: 1 |
bool | mbRepaint: 1 |
bool | mbHasRotatedPortions: 1 |
Contains rotated portions. More... | |
bool | mbFieldFollow: 1 |
bool | mbHasAnimation: 1 |
bool | mbIsSwapped: 1 |
bool | mbFollowFormatAllowed: 1 |
Static Private Attributes | |
static SwCache * | s_pTextCache = nullptr |
SwLineLayout cache: the lines are not actually owned by the SwTextFrame but by this SwCache, so they will be deleted in large documents if there are too many of them, but the "valid" flags of the frame will still be set; GetFormatted() is the function that forces recreation of the SwLineLayout by Format() if necessary. More... | |
static constexpr tools::Long | nMinPrtLine = 0 |
Friends | |
class | SwTextIter |
class | SwTestFormat |
class | WidowsAndOrphans |
class | TextFrameLockGuard |
bool | sw_ChangeOffset (SwTextFrame *pFrame, TextFrameIndex nNew) |
Additional Inherited Members | |
![]() | |
enum | InvalidationType { INVALID_SIZE , INVALID_PRTAREA , INVALID_POS , INVALID_LINENUM , INVALID_ALL } |
enumeration for the different invalidations #i28701# More... | |
![]() | |
void | MakePrtArea (const SwBorderAttrs &) |
virtual void | SwClientNotify (const SwModify &, const SfxHint &) override |
virtual SwTwips | ShrinkFrame (SwTwips, bool bTst=false, bool bInfo=false) override |
virtual SwTwips | GrowFrame (SwTwips, bool bTst=false, bool bInfo=false) override |
SwContentFrame (SwContentNode *const, SwFrame *) | |
virtual void | DestroyImpl () override |
virtual | ~SwContentFrame () override |
![]() | |
void | ColLock () |
void | ColUnlock () |
virtual void | DestroyImpl () |
virtual | ~SwFrame () override |
void | setRootFrame (SwRootFrame *pRoot) |
SwPageFrame * | InsertPage (SwPageFrame *pSibling, bool bFootnote) |
void | PrepareMake (vcl::RenderContext *pRenderContext) |
Prepares the Frame for "formatting" (MakeAll()). More... | |
void | OptPrepareMake () |
virtual void | MakePos () |
Calculates the frame area position, in case it's invalid. More... | |
virtual void | MakeAll (vcl::RenderContext *pRenderContext)=0 |
SwTwips | AdjustNeighbourhood (SwTwips nDiff, bool bTst=false) |
Adjust surrounding neighbourhood after insertion. More... | |
virtual SwTwips | ShrinkFrame (SwTwips, bool bTst=false, bool bInfo=false)=0 |
virtual SwTwips | GrowFrame (SwTwips, bool bTst=false, bool bInfo=false)=0 |
sw::BroadcastingModify * | GetDep () |
use these so we can grep for SwFrame's GetRegisteredIn accesses beware that SwTextFrame may return sw::WriterMultiListener More... | |
const sw::BroadcastingModify * | GetDep () const |
SwFrame (sw::BroadcastingModify *, SwFrame *) | |
void | CheckDir (SvxFrameDirection nDir, bool bVert, bool bOnlyBiDi, bool bBrowse) |
virtual bool | InvalidationAllowed (const InvalidationType _nInvalid) const |
method to determine, if an invalidation is allowed. More... | |
virtual void | ActionOnInvalidation (const InvalidationType _nInvalid) |
method to perform additional actions on an invalidation More... | |
void | PaintShadow (const SwRect &, SwRect &, const SwBorderAttrs &) const |
Paints a shadow if the format requests so. More... | |
virtual void | SwClientNotify (const SwModify &, const SfxHint &) override |
virtual const IDocumentDrawModelAccess & | getIDocumentDrawModelAccess () |
![]() | |
void | setFrameAreaPositionValid (bool bNew) |
void | setFrameAreaSizeValid (bool bNew) |
void | setFramePrintAreaValid (bool bNew) |
![]() | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint) override |
![]() | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint)=0 |
![]() | |
void | Forward (SfxBroadcaster &rBC, const SfxHint &rHint) |
![]() | |
std::unique_ptr< SwSortedObjs > | m_pDrawObjs |
SwFrameType | mnFrameType |
bool | mbInDtor: 1 |
bool | mbInvalidR2L: 1 |
bool | mbDerivedR2L: 1 |
bool | mbRightToLeft: 1 |
bool | mbInvalidVert: 1 |
bool | mbDerivedVert: 1 |
bool | mbVertical: 1 |
bool | mbVertLR: 1 |
bool | mbVertLRBT: 1 |
bool | mbValidLineNum: 1 |
bool | mbFixSize: 1 |
bool | mbCompletePaint: 1 |
bool | mbRetouche: 1 |
bool | mbInfInvalid: 1 |
bool | mbInfBody: 1 |
bool | mbInfTab: 1 |
bool | mbInfFly: 1 |
bool | mbInfFootnote: 1 |
bool | mbInfSct: 1 |
bool | mbColLocked: 1 |
bool | m_isInDestroy: 1 |
int | mnForbidDelete |
Represents the visualization of a paragraph.
Typical upper is an SwBodyFrame. The first text portion of the first line is az SwParaPortion.
Definition at line 165 of file txtfrm.hxx.
|
overrideprivatevirtual |
Definition at line 892 of file txtfrm.cxx.
References RemoveFromCache().
SwTextFrame::SwTextFrame | ( | SwTextNode * const | pNode, |
SwFrame * | pSib, | ||
sw::FrameMode | eMode | ||
) |
Definition at line 764 of file txtfrm.cxx.
References sw::CheckParaRedlineMerge(), eMode, m_pMergedPara, SwFrame::mnFrameType, and Txt.
|
private |
Definition at line 588 of file frmform.cxx.
References CalcFollow(), SwTextFormatter::FormatQuoVadis(), GetFollow(), SwFrame::GetIndNext(), GetOffset(), HasNonLastSplitFlyDrawObj(), SwFrame::IsDeleteForbidden(), SwFrame::IsInFootnote(), IsLocked(), JoinFrame(), ManipOfst(), SAL_INFO, and SwTextFormatter::SetOnceMore().
Referenced by FormatAdjust().
|
private |
Definition at line 392 of file frmform.cxx.
References SwRectFnSet::AddBottom(), SwRect::AddHeight(), SwRect::AddWidth(), SwRectFnSet::BottomDist(), SwFrame::Calc(), SwFrame::FindFootnoteFrame(), SwFrame::FindSctFrame(), SwRectFnSet::GetBottom(), SwRootFrame::GetCurrShell(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetHeight(), SwFrame::GetNext(), GetOffset(), SwViewShell::GetOut(), SwFrame::GetPrev(), SwRectFnSet::GetPrtTop(), SwFrame::getRootFrame(), SwRectFnSet::GetTop(), SwFrame::GetUpper(), SwFrame::Grow(), SwRect::Height(), SwFrame::InvalidateObjs(), SwFrameAreaDefinition::isFrameAreaDefinitionValid(), SwFrame::IsInFly(), SwFrame::IsInFootnote(), SwFrame::IsInSct(), SwFrame::IsInTab(), SwFrame::IsMoveable(), IsSwapped(), SwRectFnSet::IsVert(), SwFrame::IsVertical(), SwFrame::IsVertLR(), SwRect::Left(), Lower, SwLayoutFrame::Lower(), MakePos(), min(), Point, Pos, SwFrame::Shrink(), swap(), SwRect::Top(), SwRect::Width(), SwRectFnSet::YDiff(), and SwRectFnSet::YInc().
Referenced by FormatAdjust(), and FormatEmpty().
|
inline |
Definition at line 758 of file txtfrm.hxx.
Referenced by CalcFollow().
SwRect SwTextFrame::AutoSpell_ | ( | SwTextNode & | rNode, |
sal_Int32 | nActPos | ||
) |
Is called by DoIdleJob_(), ExecSpellPopup() and UpDown()
Definition at line 1267 of file txtedt.cxx.
References CH_TXTATR_INWORD, SwTextNode::ClearWrong(), COMPLETE_STRING, Count, SwWrongList::Count(), SwWrongList::CURSOR, sw::DONE, sw::FrameContainsNode(), SwWrongList::FRESH, SwWrongList::Fresh(), g_pBreakIt, SwDoc::GetAutoCompleteWords(), SwScanner::GetBegin(), SwWrongList::GetBeginInv(), SwBreakIt::GetBreakIter(), SwScanner::GetCurrentLanguage(), SwRootFrame::GetCurrShell(), SwNode::GetDoc(), SwWrongList::GetEndInv(), SwNode::GetIndex(), SwTextNode::GetLang(), SwScanner::GetLen(), SwBreakIt::GetLocale(), SwAutoCompleteWord::GetMinWordLen(), SwFrame::getRootFrame(), SwTextNode::GetSmartTags(), GetSpellChecker(), SwTextNode::GetText(), SwScanner::GetWord(), SwTextNode::GetWrong(), SwWrongList::GetWrongPos(), SwWrongList::Insert(), SwAutoCompleteWord::InsertWord(), SwViewShell::InvalidateAccessibleParaAttrs(), SwWrongList::InWrongWord(), SwTextNode::IsAutoCompleteWordDirty(), SwViewOption::IsAutoCompleteWords(), SwTextNode::IsWrongDirty(), lcl_CalculateRepaintRect(), lcl_HasComments(), lcl_IsURL(), lcl_MaskRedlinesAndHiddenText(), SwWrongList::Len(), SwTextNode::m_Text, SwScanner::NextWord(), SwWrongList::NOTHING, sw::PENDING, SwWrongList::Pos(), SwTextNode::SetAutoCompleteWordDirty(), SwWrongList::SetInvalid(), SwTextNode::SetWrong(), SwTextNode::SetWrongDirty(), sw::TODO, and WRONGLIST_SPELL.
Referenced by SwShellCursor::UpDown().
void SwTextFrame::CalcAdditionalFirstLineOffset | ( | ) |
Simulate format for a list item paragraph, whose list level attributes are in LABEL_ALIGNMENT mode, in order to determine additional first line offset for the real text formatting due to the value of label adjustment attribute of the list level.
Definition at line 3520 of file txtfrm.cxx.
References SwTextFormatter::CalcFitToContent_(), SwNumRule::Get(), SwTextNode::GetActualListLevel(), SwTextIter::GetCurr(), SwLineLayout::GetFirstPortion(), SwLinePortion::GetNextPortion(), SvxNumberFormat::GetNumAdjust(), SwTextNode::GetNumRule(), GetPara(), SvxNumberFormat::GetPositionAndSpaceMode(), SwFrame::getRootFrame(), GetTextNodeForParaProps(), SwLinePortion::InNumberGrp(), SwTextNode::IsCountedInList(), SwLinePortion::IsFootnoteNumPortion(), IsLocked(), SwTextNode::IsNumbered(), SwFrame::IsRightToLeft(), SvxNumberFormat::LABEL_ALIGNMENT, MAXLEVEL, mnAdditionalFirstLineOffset, SwTextFormatInfo::SetIgnoreFly(), SetPara(), and SwPosSize::Width().
Referenced by Format().
|
private |
Definition at line 4049 of file txtfrm.cxx.
References ADD_FLY_OFFSETS, ADD_VERTICAL_FLY_OFFSETS, sw::proofreadingiterator::get(), GetDoc(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetLeft(), SwLineLayout::GetNext(), GetPara(), SwRectFnSet::GetRight(), SwRectFnSet::GetTop(), SwLineLayout::Height(), SwLineLayout::IsDummy(), SwFrame::IsRightToLeft(), IsSwapped(), SwFrame::IsVertical(), lcl_CalcFlyBasePos(), mnFlyAnchorOfst, mnFlyAnchorOfstNoWrap, mnFlyAnchorVertOfstNoWrap, Pos, SwTextFly::SetIgnoreContour(), SwTextFly::SetIgnoreCurrentFrame(), SwTextFly::SetIgnoreObjsInHeaderFooter(), SwRectFnSet::SetTopAndHeight(), and SSize.
Referenced by Format().
SwTwips SwTextFrame::CalcFitToContent | ( | ) |
Simulates a formatting as if there were not right margin or Flys or other obstacles and returns the width.
Definition at line 3446 of file txtfrm.cxx.
References SwTextFormatter::CalcFitToContent_(), SwFrame::FindPageFrame(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), GetPara(), SwFrame::getRootFrame(), SwFrame::GetUpper(), SwRect::Height(), IsLocked(), SwFrame::IsRightToLeft(), SwFrame::IsVertical(), MINLAY, Point, SwRect::Pos(), SwTextFormatInfo::SetIgnoreFly(), SetPara(), and SwRect::Width().
Referenced by lcl_CalcAutoWidth(), and lcl_CalcCellFit().
TextFrameIndex SwTextFrame::CalcFlyPos | ( | SwFrameFormat const * | pSearch | ) |
Calculates the position of FlyInContentFrames.
Definition at line 184 of file porfly.cxx.
References COMPLETE_STRING, sw::MergedAttrIter::NextAttr(), and RES_TXTATR_FLYCNT().
Referenced by SwAnchoredDrawObject::InvalidateObjPos(), and Prepare().
|
private |
Definition at line 175 of file frmform.cxx.
References AllowFollowFormat(), SwRectFnSet::BottomDist(), SwFrame::Calc(), CalcFootnoteFlag(), CalcPreps(), SwFrame::FindFootnoteBossFrame(), SwFrame::FindPageFrame(), SwFrame::FindSctFrame(), FollowFormatAllowed(), ForbidFollowFormat(), SwRectFnSet::GetBottom(), SwRootFrame::GetCurrShell(), GetFollow(), SwSectionFrame::GetFollow(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwFrame::GetNext(), GetOffset(), SwViewShell::GetOut(), GetPara(), SwFrame::GetPrev(), SwParaPortion::GetReformat(), SwFrame::getRootFrame(), SwRectFnSet::GetTop(), SwFrame::GetUpper(), HasFootnote(), SwRect::Height(), SwLayoutFrame::IsAnLower(), SwFrame::IsColumnFrame(), IsFieldFollow(), SwFrame::IsFlyFrame(), SwParaPortion::IsFollowField(), SwFrame::IsInFly(), SwPageFrame::IsInvalidContent(), SwFrame::IsPageFrame(), SwParaPortion::IsPrepWidows(), SwRectFnSet::IsVert(), SwFrame::IsVertical(), IsWidow(), LONG_MAX, Prepare(), Right, SwFrame::SetCompletePaint(), SwParaPortion::SetDelta(), SetFieldFollow(), SetOffset_(), SwSectionFrame::SimpleFormat(), swap(), Top, ValidateBodyFrame(), SwPageFrame::ValidateContent(), ValidateFrame(), and SwRect::Width().
Referenced by AdjustFollow_().
void SwTextFrame::CalcFootnoteFlag | ( | TextFrameIndex | nStop = TextFrameIndex(COMPLETE_STRING) | ) |
Does the Frame have a local footnote (in this Frame or Follow)?
Definition at line 104 of file txtftn.cxx.
References COMPLETE_STRING, sw::MapModelToView(), sw::MergedAttrIter::NextAttr(), and RES_TXTATR_FTN().
Referenced by CalcFollow(), JoinFrame(), RemoveFootnote(), SplitFrame(), and SwClientNotify().
|
private |
method to determine height of last line, needed for proportional line spacing
Determine the height of the last line for the calculation of the proportional line spacing.
OD 2004-03-17 #i11860# OD 2005-05-20 #i47162# - introduce new optional parameter <_bUseFont> in order to force the usage of the former algorithm to determine the height of the last line, which uses the font.
_bUseFont | optional input parameter - boolean indicating, if the font has to be used to determine the height of the last line. default value: false |
Height of last line will be stored in new member mnHeightOfLastLine and can be accessed via method GetHeightOfLastLine()
_bUseFont | force the usage of the former algorithm to determine the height of the last line, which uses the font |
Definition at line 3606 of file txtfrm.cxx.
References CalcHeightOfLastLine(), SwFont::ChgPhysFnt(), EmptyHeight(), IDocumentSettingAccess::get(), SwViewOption::getBrowseMode(), SwRootFrame::GetCurrShell(), GetDoc(), SwFont::GetHeight(), SwDoc::getIDocumentDeviceAccess(), SwDoc::getIDocumentSettingAccess(), SwLineLayout::GetNext(), SwViewShell::GetOut(), GetPara(), IDocumentDeviceAccess::getReferenceDevice(), SwFrame::getRootFrame(), GetText(), GetTextNodeForParaProps(), SwViewShell::GetViewOptions(), HasPara(), SwFrame::InvalidatePrt(), IsEmpty(), SwViewOption::IsPrtFormat(), SwLineLayout::MaxAscentDescent(), mnHeightOfLastLine, OLD_LINE_SPACING, pLastFont, pOut, SwFntObj::SetDevFont(), SwFont::SetFntChg(), and SwCacheObj::Unlock().
Referenced by CalcHeightOfLastLine(), and Format().
|
private |
Definition at line 1750 of file txtfrm.cxx.
References SwFrame::GetDrawObjs(), SwTextMargin::GetDropLines(), GetFollow(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwTextIter::GetLineHeight(), GetPara(), SwFrame::getRootFrame(), SwTextPaintInfo::GetTextFly(), GetTextNodeForParaProps(), HasPara(), Height, Size::Height(), SwRect::Height(), Init(), SwTextFrameBreak::IsBreakNow(), SwParaPortion::IsFixLineHeight(), IsLocked(), SwTextFly::IsOn(), IsSwapped(), SwFrame::IsVertical(), SwTextFormatter::RecalcRealHeight(), SwTextFly::Relax(), Size::setHeight(), SwParaPortion::SetPrep(), SwParaPortion::SetPrepAdjust(), SSize, Top, SwTextIter::Top(), and SwTextIter::Y().
Referenced by Prepare(), and SwClientNotify().
|
private |
Definition at line 139 of file txtftn.cxx.
References SwFootnoteBossFrame::FindFirstFootnote(), SwFrame::FindFootnoteBossFrame(), SwFootnoteBossFrame::FindFootnoteCont(), FTNPOS_CHAPTER, SwFootnoteFrame::GetAttr(), SwRectFnSet::GetBottom(), GetDoc(), SwFrameAreaDefinition::getFrameArea(), SwFrame::getRootFrame(), SwRectFnSet::GetTop(), SwFrame::GetUpper(), HasFootnote(), SwSectionFrame::IsFootnoteAtEnd(), SwFrame::IsSctFrame(), SwFootnoteBossFrame::RearrangeFootnotes(), ResetPreps(), SetPara(), SwTextIter::TruncLines(), ValidateBodyFrame(), ValidateFrame(), and SwRectFnSet::YDiff().
Referenced by CalcPreps().
|
private |
Definition at line 818 of file frmform.cxx.
References CalcPrepFootnoteAdjust(), SwRect::Chg(), WidowsAndOrphans::ClrOrphLines(), FormatAdjust(), SwRectFnSet::GetBottom(), GetFollow(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetHeight(), GetOffset(), GetPara(), SwTextLineAccess::GetPara(), GetParHeight(), SwRectFnSet::GetPrtBottom(), SwParaPortion::GetReformat(), SwParaPortion::GetRepaint(), SwFrame::getRootFrame(), SwTextSizeInfo::GetText(), SwFrame::GetUpper(), HasFootnote(), Height, SwRect::Height(), WidowsAndOrphans::IsBreakNowWidAndOrp(), SwTextFrameBreak::IsKeepAlways(), SwParaPortion::IsPrep(), SwParaPortion::IsPrepAdjust(), SwParaPortion::IsPrepMustFit(), SwParaPortion::IsPrepWidows(), SwTextFormatInfo::IsStop(), IsSwapped(), SwRectFnSet::IsVert(), SwFrame::IsVertical(), Left, SwRect::Left(), SwCharRange::Len(), SwTextIter::Next(), Pos, SwRect::Pos(), Prepare(), ResetPreps(), SetJustWidow(), SwTextFrameBreak::SetKeep(), SwParaPortion::SetPrepMustFit(), SwTextFrameBreak::SetRstHeight(), SetWidow(), SwFrame::Shrink(), SSize, SwRect::SSize(), swap(), SwitchVerticalToHorizontal(), SwRect::Top(), SwTextIter::TruncLines(), sw::WIDOW_MAGIC, Width, and SwRect::Width().
Referenced by CalcFollow(), and Format().
|
private |
Definition at line 1033 of file frmform.cxx.
References COMPLETE_STRING, GetOffset(), and MoveFlyInCnt().
Referenced by FormatAdjust().
|
overridevirtual |
Reimplemented from SwFrame.
Definition at line 474 of file wsfrm.cxx.
References SwFrame::CheckDir(), SwViewOption::getBrowseMode(), SwRootFrame::GetCurrShell(), SwFrame::getRootFrame(), GetTextNodeForParaProps(), GetValue, and SwViewShell::GetViewOptions().
|
private |
Definition at line 3857 of file txtfrm.cxx.
References Bottom, SwTextIter::Bottom(), SwRect::Bottom(), SwFrame::FindNextCnt(), SwFrame::FindTabFrame(), SwTextIter::GetCurr(), GetDoc(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwTextIter::GetLineNr(), SwDoc::GetLineNumberInfo(), SwContentFrame::GetNextContentFrame(), GetPara(), SwParaPortion::GetRepaint(), GetText(), GetTextNodeForParaProps(), SwLineLayout::HasContent(), HasPara(), SwFrame::InvalidateLineNum(), SwLineNumberInfo::IsCountBlankLines(), SwFrame::IsInTab(), mnAllLines, mnThisLines, SwTextIter::NextLine(), and Top.
Referenced by WidowsAndOrphans::FindWidows(), and Format().
void SwTextFrame::ClearPara | ( | ) |
Removes the Line information from the Cache but retains the entry itself.
Definition at line 104 of file txtcache.cxx.
References Get(), GetCacheIdx(), GetTextCache(), IsLocked(), mnCacheIndex, and SwTextLine::SetPara().
Referenced by DestroyImpl(), FormatEmpty(), HideHidden(), and Init().
void SwTextFrame::CollectAutoCmplWrds | ( | SwTextNode & | rNode, |
sal_Int32 | nActPos | ||
) |
Is called by DoIdleJob_()
Definition at line 1575 of file txtedt.cxx.
References Application::AnyInput(), COMPLETE_STRING, sw::FrameContainsNode(), SwDoc::GetAutoCompleteWords(), SwScanner::GetBegin(), SwNode::GetDoc(), SwNode::GetIndex(), SwScanner::GetLen(), SwAutoCompleteWord::GetMinWordLen(), SwTextNode::GetText(), SwScanner::GetWord(), SwAutoCompleteWord::InsertWord(), SwScanner::NextWord(), SwTextNode::SetAutoCompleteWordDirty(), and VCL_INPUT_ANY.
void SwTextFrame::ConnectFootnote | ( | SwTextFootnote * | pFootnote, |
const SwTwips | nDeadLine | ||
) |
We basically only have two possibilities:
a) The Footnote is already present => we move it, if another pSrcFrame has been found
b) The Footnote is not present => we have it created for us
Whether the Footnote ends up on our Page/Column, doesn't matter in this context.
Optimization for Endnotes.
Another problem: if the Deadline falls within the Footnote Area, we need to move the Footnote.
Definition at line 593 of file txtftn.cxx.
References SwFootnoteBossFrame::AppendFootnote(), SwFootnoteBossFrame::ChangeFootnoteRef(), SwLayouter::CollectEndnote(), SwLayouter::Collecting(), CONTINUOUS_ENDNOTES, EndNote, SwFootnoteBossFrame::FindFootnote(), SwFrame::FindFootnoteBossFrame(), SwFootnoteBossFrame::FindFootnoteCont(), FindFootnoteRef(), SwSectionFrame::FindLastContent(), SwFrame::FindSctFrame(), FTNPOS_CHAPTER, IDocumentSettingAccess::get(), SwRootFrame::GetCurrShell(), SwDoc::GetDfltFrameFormat(), GetDoc(), SwFootnoteFrame::GetFollow(), SwTextAttr::GetFootnote(), SwDoc::GetFootnoteInfo(), SwFrameAreaDefinition::getFrameArea(), SwRectFnSet::GetHeight(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentSettingAccess(), SwNodeIndex::GetIndex(), IDocumentLayoutAccess::GetLayouter(), SwFrame::GetNext(), SwFrame::GetPrev(), SwFrame::getRootFrame(), SwSectionFrame::GetSection(), SwTextFootnote::GetStartNode(), SwRectFnSet::GetTop(), SwFrame::GetUpper(), SwSectionFrame::Growable(), SwFrame::ImplFindSctFrame(), InsertCnt_(), SwViewShell::InvalidateWindows(), SwLayoutFrame::IsBefore(), SwSectionFrame::IsEndnAtEnd(), SwFormatFootnote::IsEndNote(), SwSectionFrame::IsFootnoteAtEnd(), SwFrame::IsInSct(), IsSwapped(), SwFrame::IsVertical(), SwFootnoteInfo::m_ePos, mbFootnote, mbInFootnoteConnect, mnFootnoteLine, SwFootnoteBossFrame::MoveFootnotes(), SwFootnoteBossFrame::RearrangeFootnotes(), SwFootnoteBossFrame::RemoveFootnote(), ValidateBodyFrame(), ValidateFrame(), and SwRectFnSet::YDiff().
Referenced by SwTextFormatter::NewFootnotePortion().
|
overrideprivatevirtual |
Reimplemented from SwContentFrame.
Definition at line 850 of file txtfrm.cxx.
References ClearPara(), SwContentFrame::DestroyImpl(), GetActiveView(), SwFrame::GetDep(), GetDoc(), SwFrame::getRootFrame(), HasFootnote(), SwFrame::IsInDtor(), m_pMergedPara, and sw::RemoveFootnotesForNode().
|
overridevirtual |
Reimplemented from SwFrame.
Definition at line 442 of file xmldump.cxx.
References SwFrame::dumpAsXmlAttributes(), GetFollow(), SwFrameAreaDefinition::GetFrameId(), and mnOffset.
|
private |
Definition at line 333 of file porrst.cxx.
References SwFontAccess::Get(), SwContentNode::GetAnyFormatColl(), SwViewOption::getBrowseMode(), SwRootFrame::GetCurrShell(), SwFontObj::GetFont(), SwFrameAreaDefinition::getFramePrintArea(), SwNode::getIDocumentDeviceAccess(), SwNode::getIDocumentRedlineAccess(), SwNode::getIDocumentSettingAccess(), SwViewShell::GetOut(), IDocumentRedlineAccess::GetRedlineFlags(), IDocumentRedlineAccess::GetRedlinePos(), IDocumentDeviceAccess::getReferenceDevice(), SwFrame::getRootFrame(), SwContentNode::GetSwAttrSet(), GetTextNodeForParaProps(), SwViewShell::GetViewOptions(), SwContentNode::HasSwAttrSet(), SwAttrHandler::Init(), SwFrame::IsCollapse(), SwViewOption::IsPrtFormat(), IDocumentRedlineAccess::IsShowChanges(), IsSwapped(), SwFrame::IsVertical(), SwRedlineTable::npos, pOut, SwRedlineItr::Show, and SwRect::SSize().
Referenced by CalcHeightOfLastLine(), FormatEmpty(), GetParHeight(), and PaintEmpty().
|
private |
Definition at line 1303 of file frmcrsr.cxx.
References abs(), SwFillCursorPos::aCursor, SwFillData::aFrame, aTextFormatCollSetRange, SwFillData::bColumn, SwFillData::bEmpty, SwFillData::bFirstLine, SwFillData::bInner, SwFillData::Bottom(), SwRect::Bottom(), SvxTabStopItem::Count(), SwFillData::Fill(), FILL_MIN_DIST, FillCursorPos(), SwFontAccess::Get(), SwFormat::GetAttrSet(), SwViewOption::getBrowseMode(), SwRootFrame::GetCurrShell(), SfxItemPool::GetDefaultItem(), GetDoc(), SwAttrSet::GetFirstLineIndent(), SwFontObj::GetFont(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwDoc::getIDocumentDeviceAccess(), SvxTextLeftMarginItem::GetLeft(), SwTextNode::GetLeftMarginWithNum(), GetLineSpace(), SvxULSpaceItem::GetLower(), SwFrame::GetNext(), SwTextFormatColl::GetNextTextFormatColl(), SwViewShell::GetOut(), SwAttrSet::GetPool(), SwRectFnSet::GetPrtBottom(), IDocumentDeviceAccess::getReferenceDevice(), SvxRightMarginItem::GetRight(), SwAttrSet::GetRightMargin(), SwFrame::getRootFrame(), SwContentNode::GetSwAttrSet(), SvxTabStop::GetTabPos(), SwAttrSet::GetTabStops(), GetText(), SwTextNode::GetTextColl(), SvxTextLeftMarginItem::GetTextLeft(), SwAttrSet::GetTextLeftMargin(), GetTextNodeForParaProps(), SwAttrSet::GetULSpace(), SwFrame::GetUpper(), SvxULSpaceItem::GetUpper(), SwViewShell::GetViewOptions(), SwRect::Height(), Indent, SwFrame::IsColBodyFrame(), SwFrame::IsInSct(), SwViewOption::IsPrtFormat(), SwFrame::IsSctFrame(), SwFrame::IsTextFrame(), SwRectFnSet::IsVert(), SwFillData::Left(), SwRect::Left(), Lower, SwLayoutFrame::Lower(), MapViewToModelPos(), Margin, SwFillData::Mode(), SwFillCursorPos::nColumnCnt, SwFillData::nLineWidth, SwFillCursorPos::nParaCnt, SwFillData::pCMS, SwRect::Pos(), pOut, SwFillData::pPos, SfxItemSet::Put(), RES_PARATR_TABSTOP(), SwFillData::Right(), SwRect::Right(), SwFillData::SetOrient(), SfxItemSet::SetParent(), SwFillData::SetSpace(), SwFillData::SetSpaceOnly(), SwFillData::SetTab(), Space, SwitchHorizontalToVertical(), Tab, TabSpace, SwRect::Top(), SwRect::Width(), SwFillData::X(), SwFillData::Y(), and SwRectFnSet::YDiff().
Referenced by FillCursorPos(), and GetModelPositionForViewPoint_().
bool SwTextFrame::FillRegister | ( | SwTwips & | rRegStart, |
sal_uInt16 & | rRegDiff | ||
) |
Determines the start position and step size of the register.
Definition at line 493 of file porrst.cxx.
References Body, SwFont::ChgFnt(), SwPageFrame::FindPageDesc(), SwFrame::FindPageFrame(), Fly, SwFontAccess::Get(), SwFont::GetAscent(), SwViewOption::getBrowseMode(), SwRootFrame::GetCurrShell(), Application::GetDefaultDevice(), GetDoc(), SwFontObj::GetFont(), SwFont::GetHeight(), SwDoc::getIDocumentDeviceAccess(), SvxLineSpacingItem::GetInterLineSpace(), SvxLineSpacingItem::GetInterLineSpaceRule(), SvxLineSpacingItem::GetLineHeight(), SvxLineSpacingItem::GetLineSpaceRule(), SwFormat::GetLineSpacing(), vcl::Window::GetOutDev(), SvxLineSpacingItem::GetPropLineSpace(), SwRectFnSet::GetPrtTop(), IDocumentDeviceAccess::getReferenceDevice(), SwPageDesc::GetRegAscent(), SwPageDesc::GetRegHeight(), SwPageDesc::GetRegisterFormatColl(), SwFrame::getRootFrame(), SwFrame::GetType(), SwFrame::GetUpper(), SwViewShell::GetViewOptions(), SwViewShell::GetWin(), SwFrame::IsPageFrame(), SwViewOption::IsPrtFormat(), SwRectFnSet::IsVert(), pOut, SwPageDesc::SetRegAscent(), and SwPageDesc::SetRegHeight().
Referenced by SwTextIter::CtorInitTextIter().
|
overridevirtual |
Looks for text portions which are inside the given rectangle.
For a rectangular text selection every text portions which is inside the given rectangle has to be put into the SwSelectionList as SwPaM From these SwPaM the SwCursors will be created.
rSelList | The container for the overlapped text portions |
rRect | A rectangle in document coordinates, text inside this rectangle has to be selected. |
Reimplemented from SwFrame.
Definition at line 1844 of file itrcrsr.cxx.
References SwSelectionList::checkContext(), SwFlyFrame::DynCastFlyFrame(), SwLayoutFrame::FillSelection(), SwRectFnSet::GetBottom(), SwFrame::GetDrawObjs(), SwNodes::GetEndOfContent(), SwRectFnSet::GetLeft(), SwTextIter::GetLineHeight(), GetModelPositionForViewPoint(), SwTextIter::GetNext(), SwPosition::GetNodes(), SwFrame::GetPaintArea(), SwRectFnSet::GetRight(), SwRectFnSet::GetTop(), SwRect::HasArea(), SwSelectionList::insertPaM(), SwRect::Intersection(), IsEmpty(), SwFlyFrame::IsFlyInContentFrame(), SwRectFnSet::IsVert(), MapViewToModelPos(), SwTextIter::Next(), SwRect::Overlaps(), Point, UpDown, and SwTextIter::Y().
|
staticprivate |
Returns the first possible break point in the current line.
This method is used in SwTextFrame::Format() to decide whether the previous line has to be formatted as well. nFound is <= nEndLine.
Definition at line 1654 of file txtfrm.cxx.
References min().
Referenced by Format_().
SwTextFrame * SwTextFrame::FindFootnoteRef | ( | const SwTextFootnote * | pFootnote | ) |
Looks for the TextFrame matching the SwTextFootnote within a master-follow chain.
Definition at line 84 of file txtftn.cxx.
References SwFootnoteBossFrame::FindFootnote(), SwContentFrame::FindMaster(), GetFollow(), GetOffset(), SwTextAttr::GetStart(), SwTextFootnote::GetTextNode(), and MapModelToView().
Referenced by ConnectFootnote(), and SwTextFormatter::NewFootnotePortion().
|
inline |
Definition at line 571 of file txtfrm.hxx.
SwTextFrame * SwTextFrame::FindQuoVadisFrame | ( | ) |
Find the page number of ErgoSum and QuoVadis.
Definition at line 385 of file txtftn.cxx.
References SwLayoutFrame::ContainsContent(), SwFrame::FindFootnoteFrame(), SwFrame::GetIndPrev(), SwFootnoteFrame::GetMaster(), SwContentFrame::GetNextContentFrame(), SwLayoutFrame::IsAnLower(), and SwFrame::IsInFootnote().
Referenced by SwTextFormatter::NewErgoSumPortion().
sal_uInt16 SwTextFrame::FirstLineHeight | ( | ) | const |
Returns the first line height.
Definition at line 3786 of file txtfrm.cxx.
References Fly, SwFrameAreaDefinition::getFramePrintArea(), SwLineLayout::GetNext(), SwLinePortion::GetNextPortion(), GetPara(), Glue, HasPara(), Height, IsEmpty(), SwFrameAreaDefinition::isFrameAreaDefinitionValid(), SwFrame::IsVertical(), Margin, and Width.
Referenced by lcl_CalcHeightOfFirstContentLine().
|
inline |
Definition at line 753 of file txtfrm.hxx.
Referenced by CalcFollow().
|
inline |
Definition at line 763 of file txtfrm.hxx.
Referenced by CalcFollow().
|
overridevirtual |
Calculates the frame area size and the print area, in case they are invalid.
The frame area position is not considered here.
Reimplemented from SwFrame.
Definition at line 1826 of file frmform.cxx.
References SwRectFnSet::AddBottom(), SwTextIter::Bottom(), SwRectFnSet::BottomDist(), CalcAdditionalFirstLineOffset(), CalcBaseOfstForFly(), CalcHeightOfLastLine(), CalcPreps(), ChgThisLines(), SwFrame::FindFootnoteBossFrame(), SwFootnoteBossFrame::FindFootnoteCont(), SwContentFrame::FindMaster(), FollowFollows, Format_(), FormatEmpty(), SwFrame::GetAttrSet(), SwTextIter::GetEnd(), GetFormatted(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetHeight(), SwFrame::GetIndPrev(), SwAttrSet::GetKeep(), getLength(), GetOffset(), GetPara(), SwTextLineAccess::GetPara(), SwFrame::GetPrev(), SwRectFnSet::GetPrtBottom(), SwParaPortion::GetReformat(), SwAttrSet::GetRegister(), SwContentNode::GetSwAttrSet(), GetText(), GetTextNodeForParaProps(), SwFrame::GetTopMargin(), SwRectFnSet::GetTopMargin(), SwFrame::GetUpper(), SfxBoolItem::GetValue(), SwRectFnSet::GetWidth(), HasFootnote(), HasNonLastSplitFlyDrawObj(), HasPara(), Height, SwRect::Height(), HideAndShowObjects(), HideHidden(), SwFrame::InvalidatePos(), SwTextLineAccess::IsAvailable(), IsEmptyMaster(), IsFieldFollow(), IsHiddenNow(), SwFrame::IsInTab(), IsLocked(), SwParaPortion::IsPrepMustFit(), IsWidow(), SwCharRange::Len(), SwRectFnSet::OverStep(), Prepare(), SAL_INFO, SAL_WARN, SetEmpty(), SwRectFnSet::SetHeight(), SwRectFnSet::SetLimit(), SetOffset(), SetOffset_(), SwParaPortion::SetPrep(), SwParaPortion::SetPrepAdjust(), SwParaPortion::SetPrepMustFit(), SwRect::SetTopAndHeight(), SetWidow(), SwRectFnSet::SetYMargins(), SwFrame::Shrink(), and ValidateFrame().
Referenced by SwTextInfo::CtorInitTextInfo(), and GetFormatted().
|
private |
Definition at line 1366 of file frmform.cxx.
References SwTextIter::Bottom(), SwTextFormatter::CalcOnceMore(), CH_BREAK, SwTextIter::CharToLine(), SwRect::Chg(), SwTextFormatter::CntEndHyph(), SwTextFormatter::CntMidHyph(), FindBrk(), SwContentFrame::FindMaster(), FormatAdjust(), FormatLine(), SwTextIter::GetCurr(), SwTextFormatter::GetDropFormat(), SwTextIter::GetEnd(), GetFollow(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwLineLayout::GetHangingMargin(), SwAttrSet::GetHyphenZone(), SwTextSizeInfo::GetIdx(), SwTextFormatter::GetInfo(), SwLinePortion::GetLen(), SwTextIter::GetLength(), SwTextIter::GetLineNr(), SvxHyphenZoneItem::GetMaxHyphens(), GetMergedPara(), SwLineLayout::GetNext(), GetOffset(), SwTextInfo::GetParaPortion(), SwTextIter::GetPrev(), SwParaPortion::GetReformat(), SwParaPortion::GetRepaint(), SwTextFormatInfo::GetRest(), SwTextIter::GetStart(), SwContentNode::GetSwAttrSet(), GetText(), GetTextNodeForParaProps(), SwRect::HasArea(), HasPara(), SwTextFormatter::InitCntHyph(), SwTextFormatter::Insert(), WidowsAndOrphans::IsBreakNowWidAndOrp(), SwLineLayout::IsEndHyph(), IsFieldFollow(), SwParaPortion::IsMargin(), SwLineLayout::IsMidHyph(), SwTextFormatInfo::IsNewLine(), SwParaPortion::IsPrepMustFit(), SwLineLayout::IsRest(), SwTextFormatInfo::IsStop(), SwTextFormatter::IsStop(), IsSwapped(), SwTextFormatInfo::IsTest(), SwFrame::IsVertical(), SwCharRange::Len(), SwTextFormatter::MakeRestPortion(), SwTextFormatInfo::MaxHyph(), SwTextIter::Next(), SwRect::Pos(), SwTextIter::Prev(), SAL_WARN, SetFieldFollow(), SwTextFrameBreak::SetKeep(), SwRepaint::SetOffset(), SetOffset_(), SetRepaint(), SwTextFormatInfo::SetRest(), SwRepaint::SetRightOfst(), SwTextFormatter::SetTruncLines(), SwTextFormatter::SetUnclipped(), SwRect::SSize(), SwCharRange::Start(), SwTextIter::Top(), SwRect::Top(), SwTextIter::TruncLines(), SwRect::Width(), and SwTextIter::Y().
|
private |
Definition at line 1767 of file frmform.cxx.
References SwTextAdjuster::CalcDropAdjust(), SwTextAdjuster::CalcDropRepaint(), SwLineLayout::FinishKanaComp(), SwLineLayout::FinishSpaceAdd(), Format_(), FormatOnceMore(), SwParaPortion::FormatReset(), SwTextMargin::GetAdjust(), SwTextMargin::GetDropLines(), GetText(), HideAndShowObjects(), SwTextFormatter::IsOnceMore(), SwTextPainter::IsPaintDrop(), SwParaPortion::IsPrepMustFit(), IsSwapped(), SwFrame::IsVertical(), SwLineLayout::ResetFlags(), SwTextPainter::SetPaintDrop(), SwParaPortion::SetPrepMustFit(), SwapWidthAndHeight(), and SwLinePortion::Truncate().
Referenced by Format(), Format_(), FormatOnceMore(), and SwTestFormat::SwTestFormat().
|
private |
Definition at line 1041 of file frmform.cxx.
References AdjustFollow_(), AdjustFrame(), SwTextFormatter::CalcBottomLine(), CH_BREAK, ChangeOffset(), SwFrame::FindBodyFrame(), WidowsAndOrphans::FindBreak(), SwFrame::FindColFrame(), SwFrame::FindTabFrame(), SwTextSizeInfo::GetChar(), SwParaPortion::GetDelta(), SwFrame::GetDrawObjs(), SwTextIter::GetEnd(), GetFollow(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwTextFormatter::GetInfo(), SwTextIter::GetLineNr(), SwTextNode::GetNumRule(), TextFormatCollFunc::GetNumRule(), GetOffset(), SwTextInfo::GetParaPortion(), SwParaPortion::GetReformat(), SwParaPortion::GetRepaint(), SwTextIter::GetStart(), GetTextNodeForParaProps(), SwTextNode::HasVisibleNumberingOrBullet(), SwRect::Height(), SwTextFrameBreak::IsBreakNow(), IsFieldFollow(), SwFrame::IsInFootnote(), SwTextFrameBreak::IsInside(), SwParaPortion::IsPrepMustFit(), SwTextFormatter::IsStop(), SwFrame::IsVertical(), SwFrame::IsVertLR(), SwRect::Left(), SwTextFormatter::MakeDummyLine(), ManipOfst(), RemoveFootnote(), SwParaPortion::SetDelta(), SwParaPortion::SetPrepMustFit(), SwSortedObjs::size(), SplitFrame(), SwRect::SSize(), swap(), SwRect::Top(), SwTextIter::TruncLines(), and SwRect::Width().
Referenced by CalcPreps(), and Format_().
|
private |
Definition at line 406 of file porrst.cxx.
References AdjustFrame(), ClearPara(), EmptyHeight(), SwFrame::FindPageFrame(), SvxAdjustItem::GetAdjust(), SwAttrSet::GetAdjust(), SwTextGridItem::GetBaseHeight(), SwAttrSet::GetFirstLineIndent(), SwFrameAreaDefinition::getFramePrintArea(), GetGridItem(), GetHasRotatedPortions(), SwRectFnSet::GetHeight(), SvxLineSpacingItem::GetLineSpaceRule(), SwAttrSet::GetLineSpacing(), GetMergedPara(), TextFormatCollFunc::GetNumRule(), GetPara(), SwAttrSet::GetParaGrid(), SwAttrSet::GetRegister(), SwTextGridItem::GetRubyHeight(), SwContentNode::GetSwAttrSet(), GetTextNodeFirst(), GetTextNodeForParaProps(), SfxBoolItem::GetValue(), HasNonLastSplitFlyDrawObj(), HasPara(), SwRect::Height(), HideAndShowObjects(), SwTextFly::IsAnyObj(), SvxFirstLineIndentItem::IsAutoFirst(), SwFrame::IsCollapse(), IsEmpty(), SwFrame::IsInDocBody(), SwFrame::IsInFootnote(), SwTextFly::IsOn(), SwFrame::IsRightToLeft(), IsSwapped(), SwFrame::IsVertical(), nAdjust, RemoveFromCache(), SwFrame::SetCompletePaint(), SetEmpty(), and SetHasRotatedPortions().
Referenced by Format(), and FormatQuick().
|
private |
Definition at line 1231 of file frmform.cxx.
References SwRect::Bottom(), SwTextFormatter::CalcUnclipped(), SwTextFormatter::FormatLine(), SwLinePortion::GetAscent(), SwTextIter::GetCurr(), SwRootFrame::GetCurrShell(), SwParaPortion::GetDelta(), SwTextIter::GetFirstPos(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwLineLayout::GetHangingMargin(), SwTextFormatter::GetInfo(), SwTextMargin::GetLeftMargin(), SwLinePortion::GetLen(), getLength(), SwTextIter::GetLineHeight(), SwLineLayout::GetNext(), SwRepaint::GetOffset(), SwTextInfo::GetParaPortion(), SwParaPortion::GetReformat(), SwParaPortion::GetRepaint(), SwRepaint::GetRightOfst(), SwFrame::getRootFrame(), SwTextIter::GetStart(), GetText(), SwTextFormatInfo::GetUnderScorePos(), SwViewShell::GetViewOptions(), SwLineLayout::HasUnderscore(), SwLineLayout::Height(), SwRect::Height(), SwLineLayout::IsClipping(), SwLineLayout::IsEndHyph(), SwTextFormatter::IsFlyInCntBase(), SwViewOption::IsLineBreak(), SwTextFormatter::IsNewLine(), SwViewOption::IsParagraph(), SwTextFormatInfo::IsShift(), SwTextFormatter::IsStop(), IsSwapped(), SwTextFormatter::IsUnclipped(), SwFrame::IsVertical(), SwCharRange::Len(), Pos, SwParaPortion::SetDelta(), SwRepaint::SetRightOfst(), SwTextFormatter::SetUnclipped(), SLOPPY_TWIPS, Start, SwCharRange::Start(), SwRect::Top(), SwPosSize::Width(), Y, and SwTextIter::Y().
Referenced by Format_().
|
private |
Definition at line 1705 of file frmform.cxx.
References SwTextFormatter::CalcDropHeight(), SwTextFormatInfo::CtorInitTextFormatInfo(), SwTextFormatter::CtorInitTextFormatter(), Format_(), SwRootFrame::GetCurrShell(), SwTextFormatter::GetDropFormat(), SwTextFormatter::GetInfo(), SwViewShell::GetOut(), SwTextInfo::GetParaPortion(), SwParaPortion::GetReformat(), SwFrame::getRootFrame(), SwTextSizeInfo::GetText(), SwTextFormatInfo::Init(), SwTextFormatter::IsOnceMore(), IsSwapped(), SwFrame::IsVertical(), SwFrame::SetCompletePaint(), SwTextMargin::SetDropLines(), SwTextFormatter::SetOnceMore(), and SwTextIter::Top().
Referenced by Format_().
|
private |
Definition at line 2052 of file frmform.cxx.
References FormatEmpty(), SwTextFormatter::FormatLine(), SwTextFormatter::GetDropFormat(), GetFollow(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwTextIter::GetLineHeight(), GetOffset(), SwTextLineAccess::GetPara(), SwParaPortion::GetReformat(), SwParaPortion::GetRepaint(), SwFrame::getRootFrame(), SwTextSizeInfo::GetText(), HasPara(), Height, SwRect::Height(), SwTextFormatter::Insert(), InvalidateRange_(), IsEmpty(), SwFrameAreaDefinition::isFrameAreaSizeValid(), IsHiddenNow(), IsLocked(), SwTextFormatInfo::IsNewLine(), SwTextFormatInfo::IsStop(), IsSwapped(), SwFrame::IsVertical(), IsWidow(), SwTextFormatInfo::MaxHyph(), SwTextIter::Next(), Point, Pos, SwRect::Pos(), SAL_WARN_IF, SwParaPortion::SetDelta(), SSize, SwRect::SSize(), Width, and SwTextIter::Y().
Referenced by GetFormatted().
|
inline |
Definition at line 649 of file txtfrm.hxx.
Referenced by SwTextMargin::CtorInitTextMargin().
|
inline |
For displaying the line numbers.
Definition at line 677 of file txtfrm.hxx.
Referenced by RecalcAllLines(), and SwLayAction::TurboAction_().
bool SwTextFrame::GetAutoPos | ( | SwRect & | rOrig, |
const SwPosition & | rPos | ||
) | const |
A slimmer version of GetCharRect for autopositioning Frames.
Definition at line 366 of file frmcrsr.cxx.
References SwTextCursor::GetCharRect(), GetFormatted(), SwFrameAreaDefinition::getFrameArea(), GetFrameAtOfst(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetHeight(), SwRectFnSet::GetPrtBottom(), SwFrame::GetUpper(), HasPara(), SwRect::Height(), IsEmpty(), IsHiddenNow(), SwFrame::IsRightToLeft(), SwRectFnSet::IsVert(), SwRectFnSet::IsVertL2R(), SwCursorMoveState::m_aRealHeight, SwCursorMoveState::m_bRealHeight, MapModelToViewPos(), min(), Point, SwRect::Pos(), SetOnlyText, SwitchHorizontalToVertical(), SwitchLTRtoRTL(), SwitchVerticalToHorizontal(), and SwRect::Width().
Referenced by SwFEShell::CalcBoundRect(), SwAnchoredObject::CheckCharRect(), and GetTopOfLine().
|
inline |
Definition at line 768 of file txtfrm.hxx.
Referenced by SwFEShell::CalcBoundRect(), and SwFrameNotify::ImplDestroy().
SwTwips SwTextFrame::GetBaseVertOffsetForFly | ( | bool | bIgnoreFlysAnchoredAtThisFrame | ) | const |
Definition at line 4107 of file txtfrm.cxx.
References mnFlyAnchorVertOfstNoWrap.
Referenced by objectpositioning::SwAnchoredObjectPosition::GetTopForObjPos(), and SwFEShell::ImpEndCreate().
|
overridevirtual |
Reimplemented from SwFrame.
Definition at line 752 of file findfrm.cxx.
References SwAttrSet::GetBreak(), SwContentNode::GetSwAttrSet(), and GetTextNodeFirst().
|
inline |
Definition at line 623 of file txtfrm.hxx.
Referenced by ClearPara(), GetPara(), HasPara_(), RemoveFromCache(), ResetPreps(), and SetPara().
|
overridevirtual |
Returns the view rectangle for the rPos model position.
The values are relative to the upper left position of the page frame. Additional information can be obtained by passing an SwCursorMoveState object. Returns false if rPos > number of character is string
Reimplemented from SwFrame.
Definition at line 178 of file frmcrsr.cxx.
References COMPLETE_STRING, FAR_AWAY, SwFrame::FindPageFrame(), SwRectFnSet::GetBottom(), SwTextCursor::GetCharRect(), SwTextIter::GetEnd(), SwTextCursor::GetEndCharRect(), SwTextNode::GetFirstLineOfsWithNum(), GetFormatted(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetHeight(), SwFrame::GetNext(), GetOffset(), SwRectFnSet::GetPrtBottom(), GetText(), GetTextNodeForParaProps(), SwRectFnSet::GetTop(), SwFrame::GetUpper(), HasPara(), SwRect::Height(), IsEmpty(), IsLocked(), SwFrame::IsRightToLeft(), IsSwapped(), SwRectFnSet::IsVert(), SwFrame::IsVertical(), SwRectFnSet::IsVertL2R(), SwCursorMoveState::m_aRealHeight, SwCursorMoveState::m_b2Lines, SwCursorMoveState::m_bNoScroll, SwCursorMoveState::m_bRealHeight, SwCursorMoveState::m_eState, SwCursorMoveState::m_p2Lines, MapModelToViewPos(), min(), Point, SwRect::Pos(), RightMargin, SwRectFnSet::SetTop(), sw_ChangeOffset, SwitchHorizontalToVertical(), SwitchLTRtoRTL(), SwitchVerticalToHorizontal(), SwRect::Top(), SwRect::Width(), and SwRectFnSet::YDiff().
Referenced by SwAccessibleParagraph::getIndexAtPoint(), lcl_CalcOverlayRanges(), SwOutlineContentVisibilityWin::Set(), and SwFEShell::ShouldObjectBeSelected().
OUString SwTextFrame::GetCurWord | ( | SwPosition const & | rPos | ) | const |
Definition at line 687 of file txtedt.cxx.
References clipIndexBounds(), g_pBreakIt, SwBreakIt::GetBreakIter(), SwPosition::GetContentIndex(), SwTextNode::GetLang(), SwBreakIt::GetLocale(), SwPosition::GetNode(), GetText(), SwNode::GetTextNode(), IsHiddenNow(), IsSymbolAt(), MapModelToViewPos(), and nPos.
Referenced by SwEditShell::GetCurWord().
|
inline |
Definition at line 470 of file txtfrm.hxx.
Referenced by SwTextFormatter::BuildPortions(), CalcBaseOfstForFly(), SwTextAdjuster::CalcFlyAdjust(), SwTextFormatter::CalcFlyWidth(), SwDropCapCache::CalcFontSize(), CalcHeightOfLastLine(), SwBorderAttrs::CalcLeft(), SwLineLayout::CalcLine(), SwTextAdjuster::CalcNewBlock(), CalcPrepFootnoteAdjust(), SwTextFormatter::CalcRealHeight(), SwBorderAttrs::CalcRight(), ChgThisLines(), ConnectFootnote(), SwAccessibleParagraph::CreateUnoPortion(), SwTextSizeInfo::CtorInitTextSizeInfo(), DestroyImpl(), SwTextPaintInfo::DrawBackBrush(), FillCursorPos(), FillRegister(), SwNumberPortion::Format(), SwFieldFormCheckboxPortion::Format(), SwTextPortion::Format_(), SwTextFormatter::FormatQuoVadis(), SwTextFormatInfo::GetLineWidth(), SwTextFly::GetSurroundForTextWrap(), SwTextFly::GetTop(), SwTextGuess::Guess(), SwTextFly::InitAnchoredObjList(), SwTextFormatInfo::IsHyphenate(), lcl_ErgoVadis(), SwTextFormatter::MakeRestPortion(), UnfloatTableButton::MouseButtonDown(), SwTextFormatter::NewDropPortion(), SwTextFormatter::NewErgoSumPortion(), SwTextFormatter::NewFieldPortion(), SwTextFormatter::NewFootnoteNumPortion(), SwTextFormatter::NewFootnotePortion(), SwTextFormatter::NewPortion(), SwTextFormatter::NewTabPortion(), SwFieldFormCheckboxPortion::Paint(), PaintExtraData(), SwTabPortion::PostFormat(), SwTabPortion::PreFormat(), Prepare(), RecalcAllLines(), RemoveFootnote(), SwAccessibleParagraph::replaceText(), SwTextFormatInfo::ScanPortionEnd(), SwClientNotify(), SwContentNotify::SwContentNotify(), and SwTextFormatter::WhichTextPor().
SwDoc const & SwTextFrame::GetDoc | ( | ) | const |
Definition at line 1338 of file txtfrm.cxx.
References SwNode::GetDoc(), and GetTextNodeFirst().
TextFrameIndex SwTextFrame::GetDropLen | ( | TextFrameIndex | nWishLen | ) | const |
nWishLen = 0 indicates that we want a whole word
Definition at line 172 of file txtdrop.cxx.
References CH_BREAK, CH_TAB, CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, g_pBreakIt, SwBreakIt::GetBreakIter(), SwAttrSet::GetCJKLanguage(), SwAttrSet::GetCTLLanguage(), SvxLanguageItem::GetLanguage(), SwAttrSet::GetLanguage(), getLength(), SwBreakIt::GetLocale(), SwBreakIt::GetRealScriptOfText(), SwContentNode::GetSwAttrSet(), GetText(), GetTextNodeForParaProps(), i, MapViewToModel(), and pos.
Referenced by SwEditShell::GetDropText(), and SwTextFormatter::NewDropPortion().
|
inline |
DropCaps and selections.
Definition at line 615 of file txtfrm.hxx.
Referenced by SwRootFrame::CalcFrameRects().
|
private |
Definition at line 150 of file frmform.cxx.
References SwTextMargin::GetDropHeight(), SwTextMargin::GetDropLeft(), SwTextMargin::GetDropLines(), SwTextMargin::GetLineStart(), HasPara(), SwRect::Height(), SwFrame::IsRightToLeft(), SwFrame::IsVertical(), SwRect::Left(), swap(), SwitchHorizontalToVertical(), SwitchLTRtoRTL(), SwRect::Top(), SwRect::Width(), and SwTextIter::Y().
|
inline |
Definition at line 869 of file txtfrm.hxx.
References SwContentFrame::GetFollow().
Referenced by sw::AddRemoveFlysAnchoredToFrameStartingAtNode(), AdjustFollow_(), SwTextFormatter::AllowRepaintOpt(), CalcFollow(), CalcLineSpace(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), CalcPreps(), SwLayHelper::CheckInsert(), SwFlyFrame::ChgRelPos(), SwObjectFormatterTextFrame::DoFormatObj(), SwObjectFormatterTextFrame::DoFormatObjs(), SwFrame::dumpAsXml(), dumpAsXmlAttributes(), SwAnchoredObject::FindAnchorCharFrame(), FindFootnoteRef(), Format_(), FormatAdjust(), FormatQuick(), SwTextFormatter::FormatQuoVadis(), SwTextFlyCnt::GetFlyFrame_(), GetFrameAtOfst(), GetFrameAtPos(), GetFrameInPage(), SwCallLink::getLayoutFrame(), GetLineCount(), SwTextCursor::GetModelPositionForViewPoint(), GetScalingOfSelectedText(), SwAnchoredObject::HasClearedEnvironment(), HasNonLastSplitFlyDrawObj(), HideHidden(), SwTextNode::Hyphenate(), SwTextFormatter::Hyphenate(), IsFrameBehind(), IsIdxInside(), SwTextFrameBreak::IsInside(), IsInside(), SwTextFrameInfo::IsOneLine(), JoinFrame(), lcl_CalculateRepaintRect(), lcl_ErgoVadis(), lcl_GetFlyInContentAnchor(), Prepare(), PrepWidows(), RemoveFootnote(), RightMargin(), SplitFrame(), SwTextIter::TruncLines(), UnitDown_(), SwGetRefField::UpdateField(), and WouldFit().
|
inline |
Definition at line 865 of file txtfrm.hxx.
References SwContentFrame::GetFollow().
|
inline |
Definition at line 857 of file txtfrm.hxx.
References GetFootnoteFrameHeight_(), HasPara(), and SwFrame::IsInFootnote().
Referenced by SwTextFrameBreak::SwTextFrameBreak().
|
private |
Calculates the maximum reachable height for the TextFrame in the Footnote Area.
The cell's bottom margin with the Footnote Reference limit's this height.
Definition at line 314 of file txtftn.cxx.
References SwFrame::FindFootnoteBossFrame(), SwFrame::FindFootnoteFrame(), SwFootnoteFrame::GetAttr(), GetFootnoteLine(), SwFrameAreaDefinition::getFrameArea(), SwRectFnSet::GetPrtBottom(), SwFootnoteFrame::GetRef(), SwRectFnSet::GetTop(), SwFrame::GetUpper(), SwFrame::Grow(), SwFrameAreaDefinition::isFrameAreaPositionValid(), SwFrame::IsInFootnote(), IsInFootnoteConnect(), LONG_MAX, SwLayoutFrame::Lower(), swap(), and SwRectFnSet::YDiff().
Referenced by GetFootnoteFrameHeight().
SwTwips SwTextFrame::GetFootnoteLine | ( | const SwTextFootnote * | pFootnote | ) | const |
If we're a Footnote that grows towards its reference ... public, because it's needed by SwContentFrame::MakeAll.
Definition at line 273 of file txtftn.cxx.
References SwRect::Bottom(), SwTextIter::CharToLine(), SwFrameAreaDefinition::getFrameArea(), SwTextIter::GetLineHeight(), SwTextAttr::GetStart(), SwTextFootnote::GetTextNode(), HasPara(), IsSwapped(), SwFrame::IsVertical(), lcl_GetFootnoteLower(), SwRect::Left(), MapModelToView(), mnFootnoteLine, nPos, swap(), SwitchHorizontalToVertical(), and SwTextIter::Y().
Referenced by GetFootnoteFrameHeight_(), and SwContentFrame::MakeAll().
SwTextFrame * SwTextFrame::GetFormatted | ( | bool | bForceQuickFormat = false | ) |
In case the SwLineLayout was cleared out of the s_pTextCache, recreate it.
#i29062# GetFormatted() can trigger a full formatting of the paragraph, causing other layout frames to become invalid. This has to be avoided during painting. Therefore we need to pass the information that we are currently in the paint process.
Definition at line 3421 of file txtfrm.cxx.
References SwFrame::Calc(), Format(), FormatQuick(), SwRootFrame::GetCurrShell(), SwViewShell::GetOut(), SwFrame::getRootFrame(), HasPara(), IsEmpty(), SwFrameAreaDefinition::isFrameAreaDefinitionValid(), SwFrameAreaDefinition::isFrameAreaSizeValid(), and swap().
Referenced by SwAutoFormat::EnsureFormatted(), Format(), GetAutoPos(), GetCharRect(), GetLineCount(), GetModelPositionForViewPoint_(), GetTopOfLine(), Hyphenate(), lcl_CalcHeightOfFirstContentLine(), LeftMargin(), PaintSwFrame(), PrepareVisualMove(), RightMargin(), UnitDown_(), UnitUp_(), and WouldFit().
SwTextFrame & SwTextFrame::GetFrameAtOfst | ( | TextFrameIndex | nOfst | ) |
Definition at line 143 of file frmcrsr.cxx.
References GetFollow(), and GetOffset().
Referenced by SwAnchoredObject::FindAnchorCharFrame(), GetAutoPos(), GetTopOfLine(), and SwTextNode::Hyphenate().
SwTextFrame * SwTextFrame::GetFrameAtPos | ( | const SwPosition & | rPos | ) |
Definition at line 151 of file frmcrsr.cxx.
References GetFollow(), GetOffset(), SwTextCursor::IsRightMargin(), MapModelToViewPos(), and nPos.
Referenced by GetFrameAtPos().
|
inline |
Definition at line 874 of file txtfrm.hxx.
References GetFrameAtPos().
|
inline |
Definition at line 540 of file txtfrm.hxx.
Referenced by FormatEmpty().
|
inline |
Definition at line 777 of file txtfrm.hxx.
Referenced by GetLineSpace(), and SwContentNotify::SwContentNotify().
|
overridevirtual |
Reimplemented from SwClient.
Definition at line 2662 of file txtfrm.cxx.
References SwFrame::FindPageFrame(), SwVirtPageNumInfo::GetOrigPage(), SwVirtPageNumInfo::GetPage(), SwPageFrame::GetPhyPageNum(), SwFrame::GetPrev(), SwFrame::IsInDocBody(), RES_VIRTPAGENUM_INFO(), SwVirtPageNumInfo::SetInfo(), and SfxPoolItem::Which().
|
inline |
Makes sure that the Frame is not switched (e.g.
switched for a character-bound Frame)
Definition at line 412 of file txtfrm.hxx.
Referenced by SwFEShell::ShouldObjectBeSelected(), UnitDown_(), and UnitUp_().
LanguageType SwTextFrame::GetLangOfChar | ( | TextFrameIndex | nIndex, |
sal_uInt16 | nScript, | ||
bool | bNoChar = false |
||
) | const |
Definition at line 1343 of file txtfrm.cxx.
References MapViewToModel(), nIndex, and pos.
Referenced by SwAutoFormat::AutoCorrect(), SwTextMargin::CtorInitTextMargin(), DoSearch(), SwAccessibleParagraph::GetGlyphBoundary(), SwAutoCorrDoc::GetLanguage(), SwAccessibleParagraph::getLocale(), SwAccessiblePortionData::GetSentenceBoundary(), SwAccessibleParagraph::GetWordBoundary(), SwTextGuess::Guess(), and lcl_AddSpace().
sal_uInt16 SwTextFrame::GetLineCount | ( | TextFrameIndex | nPos | ) |
Determines the line count.
Definition at line 3836 of file txtfrm.cxx.
References SwTextIter::Bottom(), SwTextIter::CharToLine(), COMPLETE_STRING, GetFollow(), GetFormatted(), SwTextIter::GetLineNr(), GetOffset(), HasPara(), and nPos.
Referenced by SwAccessibleDocument::getExtendedAttributes(), SwEditShell::GetLineCount(), and lcl_CalcHeightOfFirstContentLine().
tools::Long SwTextFrame::GetLineSpace | ( | const bool | _bNoPropLineSpace = false | ) | const |
Returns the additional line spacing for the next paragraph.
Method returns the value of the inter line spacing for a text frame.
_bNoPropLineSpacing | control, whether the value of a proportional line spacing is returned or not |
Such a value exists for proportional line spacings ("1,5 Lines", "Double", "Proportional" and for leading line spacing ("Leading").
_bNoPropLineSpacing | (default = false) control whether the value of a proportional line spacing is returned or not |
Definition at line 3745 of file txtfrm.cxx.
References GetHeightOfLastLine(), SvxLineSpacingItem::GetInterLineSpace(), SvxLineSpacingItem::GetInterLineSpaceRule(), SwAttrSet::GetLineSpacing(), SvxLineSpacingItem::GetPropLineSpace(), SwContentNode::GetSwAttrSet(), and GetTextNodeForParaProps().
Referenced by FillCursorPos().
|
inline |
Definition at line 460 of file txtfrm.hxx.
Referenced by sw::AddRemoveFlysAnchoredToFrameStartingAtNode(), AppendObjs(), SwAutoFormat::CanJoin(), SwLayoutCache::CompareLayout(), SwAttrIter::CtorInitAttrIter(), SwAutoFormat::DelEmptyLine(), SwLayIdle::DoIdleJob_(), SwFrame::dumpAsXml(), FindAttrsImpl(), sw::FindTextImpl(), Format_(), FormatEmpty(), sw::FrameContainsNode(), sw::GetExpandTextMerged(), SwEditShell::GetLineCount(), SwXFlatParagraphIterator::getNextPara(), SwAccessibleParagraph::getSelectedPortionCount(), SwAccessibleParagraph::GetSelectionAtIndex(), GetText(), GetTextNodeFirst(), GetTextNodeForFirstText(), GetTextNodeForParaProps(), SwEditShell::Insert2(), InsertCnt_(), SwFrame::InvalidatePage(), SwAccessibleMap::InvalidateShapeInParaSelection(), IsAnchoredObjShown(), LeftMargin(), MakePos(), MapModelToView(), MapViewToModel(), SwAccessibleParagraph::removeSelection(), RightMargin(), and SwLayoutCache::Write().
|
inline |
Definition at line 461 of file txtfrm.hxx.
|
inlinestatic |
Definition at line 621 of file txtfrm.hxx.
Referenced by PaintExtraData(), and PaintSwFrame().
|
overridevirtual |
In nOffset returns the offset of the char within the set text buffer, which is closest to the position provided by aPoint within the layout's SSize.
Reimplemented from SwFrame.
Definition at line 661 of file frmcrsr.cxx.
References GetModelPositionForViewPoint_(), SwCursorMoveState::m_eState, and UpDown.
Referenced by FillSelection(), and SwAccessibleParagraph::getIndexAtPoint().
|
private |
Definition at line 549 of file frmcrsr.cxx.
References COMPLETE_STRING, FillCursorPos(), SwFrame::FindPageFrame(), SwTextMargin::FirstLeft(), SwTextIter::GetCurr(), SwTextMargin::GetDropLeft(), SwTextMargin::GetDropLines(), SwTextIter::GetEnd(), GetFormatted(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), getLength(), SwTextIter::GetLineHeight(), SwTextIter::GetLineNr(), SwTextCursor::GetModelPositionForViewPoint(), GetText(), SwRect::Height(), IsEmpty(), IsHiddenNow(), IsLocked(), SwFrame::IsRightToLeft(), SwFrame::IsVertical(), SwRect::Left(), SwCursorMoveState::m_bFieldInfo, SwCursorMoveState::m_bPosCorr, SwCursorMoveState::m_eState, SwCursorMoveState::m_pFill, MapViewToModelPos(), NONE, Point, SwTextIter::Prev(), RightMargin, SwapWidthAndHeight(), SwitchHorizontalToVertical(), SwitchLTRtoRTL(), SwitchRTLtoLTR(), SwitchVerticalToHorizontal(), Top, SwRect::Top(), SwTextIter::TwipsToLine(), SwPosSize::Width(), and SwTextIter::Y().
Referenced by GetModelPositionForViewPoint().
|
inline |
Definition at line 448 of file txtfrm.hxx.
Referenced by AdjustFollow_(), AdjustFrame(), CalcFollow(), CalcPreps(), ChangeOffset(), SwFlyFrame::ChgRelPos(), SwTextInfo::CtorInitTextInfo(), SwTextMargin::CtorInitTextMargin(), SwObjectFormatterTextFrame::DoFormatObj(), SwObjectFormatterTextFrame::DoFormatObjs(), SwFrame::dumpAsXml(), FindFootnoteRef(), WidowsAndOrphans::FindWidows(), Format(), Format_(), FormatAdjust(), FormatQuick(), GetCharRect(), GetFrameAtOfst(), GetFrameAtPos(), GetFrameInPage(), GetLineCount(), GetParHeight(), GetScalingOfSelectedText(), SwCursorShell::GotoFootnoteText(), SwAccessibleContext::grabFocus(), SwAccessibleParagraph::grabFocus(), SwAnchoredObject::HasClearedEnvironment(), HasNonLastSplitFlyDrawObj(), HideHidden(), SwTextNode::Hyphenate(), IsIdxInside(), IsInside(), JoinFrame(), lcl_CalculateRepaintRect(), lcl_ErgoVadis(), lcl_GetFlyInContentAnchor(), lcl_ModifyOfst(), LeftMargin(), SwTextFormatter::NewErgoSumPortion(), Prepare(), RemoveFootnote(), SwRootFrame::SetCurrPage(), SwTextIter::TruncLines(), UnitDown_(), UnitUp_(), VisitPortions(), and SwTextFormatter::WhichFirstPortion().
|
overridevirtual |
Reimplemented from SwFrame.
Definition at line 757 of file findfrm.cxx.
References SwAttrSet::GetPageDesc(), SwContentNode::GetSwAttrSet(), and GetTextNodeFirst().
Referenced by UnfloatTableButton::MouseButtonDown().
SwRect SwTextFrame::GetPaintSwRect | ( | ) |
Page number etc.
Definition at line 456 of file frmpaint.cxx.
References SwRect::Chg(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRepaint::GetOffset(), GetPara(), SwParaPortion::GetRepaint(), SwRepaint::GetRightOfst(), SwFrame::GetUpper(), HasPara(), SwFrame::IsBodyFrame(), IsEmpty(), SwFrameAreaDefinition::isFrameAreaPositionValid(), SwFrame::IsRightToLeft(), SwFrame::IsVertical(), SwFrame::IsVertLR(), SwFrame::IsVertLRBT(), SwRect::Left(), Pos, SwRect::Pos(), ResetRepaint(), SwRect::Right(), SwRepaint::SetOffset(), SSize, SwitchHorizontalToVertical(), and SwitchLTRtoRTL().
Referenced by SwAutoFormat::EnsureFormatted(), and SwLayAction::PaintContent().
SwParaPortion * SwTextFrame::GetPara | ( | ) |
Definition at line 90 of file txtcache.cxx.
References Get(), GetCacheIdx(), SwTextLine::GetPara(), GetTextCache(), and mnCacheIndex.
Referenced by SwTaggedPDFHelper::BeginBlockStructureElements(), SwTaggedPDFHelper::BeginNumberedListStructureElements(), CalcAdditionalFirstLineOffset(), CalcBaseOfstForFly(), CalcFitToContent(), CalcFollow(), CalcHeightOfLastLine(), CalcLineSpace(), CalcPreps(), ChgThisLines(), SwTextInfo::CtorInitTextInfo(), SwTextIter::CtorInitTextIter(), SwFrame::dumpAsXml(), WidowsAndOrphans::FindWidows(), FirstLineHeight(), Format(), FormatEmpty(), GetPaintSwRect(), GetPara(), GetParHeight(), GetScriptInfo(), HangingMargin(), SwTextFormatInfo::Init(), InvalidateRange_(), SwTextFrameInfo::IsFilled(), IsIdxInside(), SwTextFrameInfo::IsOneLine(), lcl_SetScriptInval(), SwTextFormatter::NewErgoSumPortion(), PaintSwFrame(), PrepWidows(), ResetPreps(), SetOffset_(), StopAnimation(), SwTestFormat::SwTestFormat(), ValidateFrame(), and VisitPortions().
|
inline |
Definition at line 828 of file txtfrm.hxx.
References GetPara().
SwTwips SwTextFrame::GetParHeight | ( | ) | const |
Returns the sum of line height in pLine.
Definition at line 3381 of file txtfrm.cxx.
References EmptyHeight(), SwFrameAreaDefinition::getFramePrintArea(), SwLineLayout::GetNext(), GetOffset(), GetPara(), SwLineLayout::GetRealHeight(), GetText(), HasPara(), Height, IsEmpty(), IsSwapped(), SwFrame::IsVertical(), and SSize.
Referenced by CalcPreps(), SwLayoutFrame::Format(), and SwLayoutFrame::InnerHeight().
sal_uInt16 SwTextFrame::GetScalingOfSelectedText | ( | TextFrameIndex | nStart, |
TextFrameIndex | nEnd | ||
) |
Calculates the width of the text part specified by nStart and nEnd, the height of the line containing nStart is divided by this width, indicating the scaling factor, if the text part is rotated.
Having CH_BREAKs in the text part, this method returns the scaling factor for the longest of the text parts separated by the CH_BREAK
Changing this method very likely requires changing of "GetMinMaxSize"
Definition at line 1261 of file itratr.cxx.
References CH_BLANK, CH_BREAK, CH_TAB, CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSEP, CH_TXT_ATR_FIELDSTART, CH_TXT_ATR_FORMELEMENT, CH_TXT_ATR_INPUTFIELDEND, CH_TXT_ATR_INPUTFIELDSTART, CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, CHAR_HARDBLANK, CHAR_HARDHYPHEN, CHAR_SOFTHYPHEN, SwTextIter::CharToLine(), COMPLETE_STRING, SwField::ExpandField(), g_pBreakIt, SwAttrIter::GetAttr(), SwAttrIter::GetAttrHandler(), SwBreakIt::GetBreakIter(), SwTextIter::GetCurr(), SwRootFrame::GetCurrShell(), SwFormatField::GetField(), SwAttrIter::GetFnt(), GetFollow(), SwTextAttr::GetFootnote(), SwTextAttr::GetFormatField(), SwFont::GetLanguage(), SwBreakIt::GetLocale(), SwAttrIter::GetNextAttr(), SwFormatFootnote::GetNumStr(), GetOffset(), SwViewShell::GetRefDev(), SwFrame::getRootFrame(), GetText(), GetTextNodeFirst(), SwFont::GetTextSize_(), HasPara(), Size::Height(), SwLineLayout::Height(), min(), SwScriptInfo::NextScriptChg(), pOut, SwAttrHandler::PushAndChg(), RES_CHRATR_SCALEW(), RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), RES_TXTATR_FTN(), SwAttrIter::SeekAndChgAttrIter(), SwTextAttr::SetPriorityAttr(), SwTextAttr::Which(), and Size::Width().
Referenced by SwEditShell::GetScalingOfSelectedText().
const SwScriptInfo * SwTextFrame::GetScriptInfo | ( | ) | const |
Returns the script info stored at the paraportion.
Definition at line 3994 of file txtfrm.cxx.
References GetPara(), and SwParaPortion::GetScriptInfo().
Referenced by IsHiddenNow().
|
private |
Like GetDrawObjs(), but limit to fly frames which are allowed to split.
Definition at line 1455 of file itratr.cxx.
References SwFlyFrame::DynCastFlyFrame(), SwFrame::GetDrawObjs(), and SwFlyFrame::IsFlySplitAllowed().
Referenced by HasNonLastSplitFlyDrawObj(), and MakePos().
|
overridevirtual |
Reimplemented from SwFrame.
Definition at line 547 of file frmform.cxx.
References SvxTabStop::GetAdjustment(), SvxTabStop::GetDecimal(), SvxTabStop::GetFill(), SwTextIter::GetLineInfo(), SwFrame::getRootFrame(), SvxTabStop::GetTabPos(), SwLineInfo::GetTabStop(), SwTextMargin::GetTopLeft(), Point, and SwTextMargin::Right().
const OUString & SwTextFrame::GetText | ( | ) | const |
Returns the text portion we want to edit (for inline see underneath)
Definition at line 1293 of file txtfrm.cxx.
References SwFrame::GetDep(), GetMergedPara(), GetText(), and sw::MergedPara::mergedText.
Referenced by SwAccessibleParagraph::_correctValues(), SwEditShell::AutoCorrect(), SwAutoFormat::AutoCorrect(), SwAutoFormat::BuildEnum(), SwAutoFormat::BuildNegIndent(), CalcHeightOfLastLine(), SwAutoFormat::CalcLevel(), SwLayHelper::CheckInsert(), SwDoc::ChgAnchor(), SwAutoCorrDoc::ChgAutoCorrWord(), ChgThisLines(), SwTextSizeInfo::CtorInitTextSizeInfo(), SwAutoFormat::DelEmptyLine(), SwAutoFormat::DeleteJoinCurNextPara(), SwAutoFormat::DeleteLeadingTrailingBlanks(), SwAutoFormat::DoTable(), SwAutoFormat::DoUnderline(), SwFrame::dumpAsXml(), FillCursorPos(), FindAttrsImpl(), sw::FindFormatImpl(), sw::FindTextImpl(), Format(), Format_(), FormatLine(), SwAccessiblePortionData::GetAccessiblePosition(), GetBodyTextNode(), SwAccessibleParagraph::getCharacterBounds(), GetCharRect(), SwAccessibleParagraph::GetCurrentTabStop(), GetCurWord(), SwAutoFormat::GetDigitLevel(), GetDropLen(), SwEditShell::GetDropText(), GetFrameInPage(), GetModelPositionForViewPoint_(), GetParHeight(), SwEditShell::GetPrevAutoCorrWord(), SwAutoCorrDoc::GetPrevPara(), SwEditShell::GetScalingOfSelectedText(), GetScalingOfSelectedText(), SwEditShell::GetScriptType(), GetText(), GetTopOfLine(), HasSelBlanks(), IsAtStartOrEndOfFrame(), SwAutoFormat::IsBlanksInString(), SwFrame::IsCollapse(), SwAutoFormat::IsEmptyLine(), SwCursorShell::IsEndPara(), SwAutoFormat::IsEnumericChar(), SwAutoFormat::IsFirstCharCapital(), IsHiddenNow(), IsIdxInside(), SwAutoFormat::IsNoAlphaLine(), SwAutoFormat::IsSentenceAtEnd(), SwFlyFrame::IsShowUnfloatButton(), lcl_CleanStr(), lcl_ErgoVadis(), lcl_FindAnchorPos(), lcl_ModifyOfst(), lcl_UpDown(), SwFEShell::MoveAnchor(), PrepareVisualMove(), SwEditShell::ReplaceDropText(), SwAutoCorrDoc::ReplaceRange(), SetOffset_(), SwAccessiblePortionData::Skip(), SwAccessiblePortionData::Special(), SwAutoFormat::SwAutoFormat(), SwAccessiblePortionData::Text(), and SwAutoCorrDoc::TransliterateRTLWord().
|
inlinestatic |
Definition at line 618 of file txtfrm.hxx.
Referenced by ClearPara(), GetPara(), HasPara_(), SetPara(), SwSaveSetLRUOfst::SwSaveSetLRUOfst(), SwViewShell::SwViewShell(), TextFinit(), SwSaveSetLRUOfst::~SwSaveSetLRUOfst(), and SwViewShell::~SwViewShell().
|
inline |
Definition at line 467 of file txtfrm.hxx.
Referenced by objectpositioning::SwAnchoredObjectPosition::AdjustHoriRelPosForDrawAside(), SwFEShell::CalcBoundRect(), SwAutoFormat::CanJoin(), SwFEShell::ChgCurPageDesc(), SwLayoutCache::CompareLayout(), SwTextIter::CtorInitTextIter(), SwAutoFormat::DelEmptyLine(), SwFrame::dumpAsXmlAttributes(), FormatEmpty(), sw::FrameContainsNode(), SwMovedFwdFramesByObjPos::FrameMovedFwdByObjPos(), SwDoc::GetAllFlyFormats(), GetBreakItem(), GetDoc(), SwAccessibleParagraph::getIndexAtPoint(), SwXFlatParagraphIterator::getNextPara(), GetPageDescItem(), GetScalingOfSelectedText(), SwAccessibleParagraph::getSelectedPortionCount(), SwAccessibleParagraph::GetSelectionAtIndex(), SwTextFly::GetTop(), SwAccessibleContext::grabFocus(), SwAutoFormat::HasBreakAttr(), SwAutoFormat::HasObjects(), SwMovedFwdFramesByObjPos::Insert(), InsertCnt_(), SwFrame::InvalidatePage(), SwAccessibleMap::InvalidateShapeInParaSelection(), SwFrame::IsProtected(), SwAutoFormat::JoinPrevPara(), MakePos(), UnfloatTableButton::MouseButtonDown(), SwEditWin::MouseMove(), PaintExtraData(), SwMovedFwdFramesByObjPos::Remove(), SwAccessibleParagraph::removeSelection(), SwOutlineContentVisibilityWin::Set(), SetGetExpField::SetBodyPos(), SplitFrame(), SwFlyAtContentFrame::SwClientNotify(), UpdateOutlineContentVisibilityButton(), and SwLayoutCache::Write().
SwTextNode const * SwTextFrame::GetTextNodeFirst | ( | ) | const |
Definition at line 1328 of file txtfrm.cxx.
References SwFrame::GetDep(), GetMergedPara(), and sw::MergedPara::pFirstNode.
SwTextNode const * SwTextFrame::GetTextNodeForFirstText | ( | ) | const |
Definition at line 1317 of file txtfrm.cxx.
References sw::MergedPara::extents, SwFrame::GetDep(), GetMergedPara(), and sw::MergedPara::pFirstNode.
SwTextNode const * SwTextFrame::GetTextNodeForParaProps | ( | ) | const |
Definition at line 1303 of file txtfrm.cxx.
References SwFrame::GetDep(), GetMergedPara(), and sw::MergedPara::pParaPropsNode.
Referenced by SwAccessibleParagraph::_getDefaultAttributesImpl(), SwAccessibleParagraph::_getSupplementalAttributesImpl(), SwTaggedPDFHelper::BeginBlockStructureElements(), SwTaggedPDFHelper::BeginNumberedListStructureElements(), SwTaggedPDFHelper::BeginTag(), SwAutoFormat::BuildEnum(), SwAutoFormat::BuildHeadLine(), SwAutoFormat::BuildTextIndent(), CalcAdditionalFirstLineOffset(), CalcHeightOfLastLine(), SwAutoFormat::CalcLevel(), CalcLineSpace(), checkApplyParagraphMarkFormatToNumbering(), CheckDirection(), SwFEShell::CheckUnboundObjects(), SwDoc::ChgAnchor(), ChgThisLines(), SwTextIter::CtorInitTextIter(), SwTextMargin::CtorInitTextMargin(), SwTextSizeInfo::CtorInitTextSizeInfo(), SwLayIdle::DoIdleJob_(), SwAutoFormat::DoTable(), SwTextPaintInfo::DrawViewOpt(), EmptyHeight(), FillCursorPos(), SwFEShell::FindAnchorPos(), FindAttrsImpl(), sw::FindFormatImpl(), WidowsAndOrphans::FindWidows(), SwNumberPortion::Format(), Format(), Format_(), FormatAdjust(), FormatEmpty(), SwTextFormatInfo::GetCharAttr(), GetCharRect(), SwTextFormatInfo::GetDropFormat(), GetDropLen(), GetLineSpace(), SwAutoCorrDoc::GetPrevPara(), SwTextGuess::Guess(), SwTextFormatInfo::InitHyph(), SwFrame::IsCollapse(), SwAccessibleParagraph::IsHeading(), lcl_FindAnchorPos(), lcl_IdenticalStyles(), SwFEShell::NewFlyFrame(), SwTextFormatter::NewNumberPortion(), PaintEmpty(), Prepare(), RecalcAllLines(), SwOutlineContentVisibilityWin::Set(), SwTaggedPDFHelper::SetAttributes(), SwAutoFormat::SetColl(), SwDoc::SetTextFormatCollByAutoFormat(), SwAutoFormat::SwAutoFormat(), SwTextFrameBreak::SwTextFrameBreak(), SwTOXBaseSection::UpdateOutline(), SwTOXBaseSection::UpdateTemplate(), WidowsAndOrphans::WidowsAndOrphans(), and WidowsAndOrphans::WouldFit().
|
inline |
Definition at line 678 of file txtfrm.hxx.
Referenced by WidowsAndOrphans::FindWidows(), SwAccessibleDocument::getExtendedAttributes(), and RecalcAllLines().
bool SwTextFrame::GetTopOfLine | ( | SwTwips & | _onTopOfLine, |
const SwPosition & | _rPos | ||
) | const |
Determine top of line for given position in the text frame.
determine top of line for given position in the text frame
OD 11.11.2003 #i22341# Assumption: given position exists in the text frame or in a follow of it OD 2004-02-02 - adjustment Top of first paragraph line is the top of the paragraph. OD 2004-03-18 #i11860# - Consider upper space amount considered for previous frame and the page grid.
_onTopOfLine | output parameter - top of line, if the given position is found in the text frame. |
_rPos | input parameter - reference to the position in the text frame |
Definition at line 453 of file frmcrsr.cxx.
References SwTextCursor::CharCursorToLine(), SwFrame::GetAttrSet(), GetAutoPos(), GetFormatted(), GetFrameAtOfst(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetHeight(), SvxLineSpacingItem::GetInterLineSpaceRule(), getLength(), SwAttrSet::GetLineSpacing(), SwRectFnSet::GetPrtTop(), GetText(), SwRectFnSet::GetTop(), IsEmpty(), SwRectFnSet::IsVert(), MapModelToViewPos(), SwRectFnSet::Refresh(), SwitchHorizontalToVertical(), and SwTextIter::Y().
Referenced by SwFEShell::CalcBoundRect(), and SwAnchoredObject::CheckTopOfLine().
Test grow.
Definition at line 838 of file txtfrm.hxx.
References SwFrame::Grow().
Referenced by SwTextFrameBreak::IsInside().
SwTwips SwTextFrame::HangingMargin | ( | ) | const |
Definition at line 2780 of file porlay.cxx.
References SwLineLayout::GetHangingMargin(), SwLineLayout::GetNext(), GetPara(), HasPara(), and SAL_WARN_IF.
|
inline |
Definition at line 543 of file txtfrm.hxx.
Referenced by StopAnimation().
|
inline |
Definition at line 532 of file txtfrm.hxx.
Referenced by CalcFollow(), CalcPrepFootnoteAdjust(), CalcPreps(), DestroyImpl(), Format(), JoinFrame(), Prepare(), and SplitFrame().
bool SwTextFrame::HasNonLastSplitFlyDrawObj | ( | ) | const |
This text frame may have a split fly frames anchored to it.
Is any of them a frame that has a follow, i.e. not the last in a master -> follow 1 -> ... -> last follow chain?
Definition at line 1483 of file itratr.cxx.
References SwContentFrame::FindMaster(), GetFollow(), GetOffset(), GetSplitFlyDrawObjs(), and mnOffset.
Referenced by AdjustFollow_(), Format(), FormatEmpty(), SwTextFormatter::FormatLine(), and PaintEmpty().
|
inline |
Definition at line 833 of file txtfrm.hxx.
References HasPara_(), and mnCacheIndex.
Referenced by SwTaggedPDFHelper::BeginNumberedListStructureElements(), CalcHeightOfLastLine(), CalcLineSpace(), SwAnchoredObject::CheckCharRectAndTopOfLine(), ChgThisLines(), WidowsAndOrphans::FindWidows(), FirstLineHeight(), Format(), Format_(), FormatEmpty(), FormatQuick(), GetAutoPos(), SwAccessibleParagraph::GetCaretPos(), GetCharRect(), SwPageFrame::GetContentPosition(), GetDropRect_(), GetFootnoteFrameHeight(), GetFootnoteLine(), GetFormatted(), GetLineCount(), GetPaintSwRect(), GetParHeight(), GetScalingOfSelectedText(), HangingMargin(), InvalidateRange_(), PaintExtraData(), PaintSwFrame(), Prepare(), RemoveFootnote(), StopAnimation(), SwTestFormat::SwTestFormat(), SwTextFrameBreak::SwTextFrameBreak(), ValidateFrame(), and WouldFit().
bool SwTextFrame::HasPara_ | ( | ) | const |
Definition at line 75 of file txtcache.cxx.
References Get(), GetCacheIdx(), SwTextLine::GetPara(), GetTextCache(), and mnCacheIndex.
Referenced by HasPara().
|
inline |
Definition at line 538 of file txtfrm.hxx.
Referenced by SwLayAction::FormatContent_().
void SwTextFrame::HideAndShowObjects | ( | ) |
Hides respectively shows objects, which are anchored at paragraph, at/as a character of the paragraph, corresponding to the paragraph and paragraph portion visibility.
Hide/show objects.
Method hides respectively shows objects, which are anchored at paragraph, at/as a character of the paragraph, corresponding to the paragraph and paragraph portion visibility.
Definition at line 1570 of file txtfrm.cxx.
References COMPLETE_STRING, SwContentFrame::FindMaster(), SwFormatAnchor::GetAnchorContentOffset(), SwContact::GetAnchorFormat(), SwContact::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwScriptInfo::GetBoundsOfHiddenRange(), SwRootFrame::GetCurrShell(), SwFrame::GetDrawObjs(), SwFrame::getRootFrame(), SwNode::GetTextNode(), SdrObject::GetUserCall(), SwViewShell::GetViewOptions(), SwViewShell::GetWin(), HideAndShowObjects(), i, IsHiddenNow(), SwViewOption::IsShowHiddenChar(), SwContact::MoveObjToInvisibleLayer(), SwContact::MoveObjToVisibleLayer(), and sw_HideObj().
Referenced by Format(), Format_(), FormatEmpty(), HideAndShowObjects(), and HideHidden().
void SwTextFrame::HideFootnotes | ( | TextFrameIndex | nStart, |
TextFrameIndex | nEnd | ||
) |
Definition at line 1476 of file txtfrm.cxx.
References SwFrame::FindPageFrame(), MapModelToView(), sw::MergedAttrIter::NextAttr(), SwFootnoteBossFrame::RemoveFootnote(), and RES_TXTATR_FTN().
Referenced by SwHiddenTextPortion::Format(), and HideHidden().
void SwTextFrame::HideHidden | ( | ) |
Removes Textfrm's attachments, when it's hidden.
Definition at line 1464 of file txtfrm.cxx.
References ClearPara(), COMPLETE_STRING, GetFollow(), GetOffset(), HideAndShowObjects(), HideFootnotes(), and IsHiddenNow().
Referenced by Format().
bool SwTextFrame::Hyphenate | ( | SwInterHyphInfoTextFrame & | rInf | ) |
We format a Line for interactive hyphenation.
We format a row for interactive hyphenation.
Definition at line 58 of file txthyph.cxx.
References SwFrame::Calc(), SwTextIter::CharToLine(), g_pBreakIt, SwBreakIt::GetBreakIter(), SwTextIter::GetCurr(), SwRootFrame::GetCurrShell(), SwLineLayout::GetFirstPortion(), GetFormatted(), SwLinePortion::GetNextPortion(), SwViewShell::GetOut(), SwFrame::getRootFrame(), SwTextIter::GetStart(), SwLinePortion::GetWhichPor(), SwTextFormatter::Hyphenate(), IsEmpty(), IsLocked(), IsSwapped(), SwFrame::IsVertical(), SwInterHyphInfoTextFrame::m_nEnd, SwInterHyphInfoTextFrame::m_nStart, SwTextIter::Next(), SwTextIter::Prev(), SoftHyphen, SoftHyphenStr, and SwapWidthAndHeight().
Referenced by SwTextNode::Hyphenate().
void SwTextFrame::Init | ( | void | ) |
This is public, as it needs to be called by some methods in order to save the Prepare USE WITH CAUTION!
Definition at line 750 of file txtfrm.cxx.
References ClearPara(), IsLocked(), and SetHasRotatedPortions().
Referenced by CalcLineSpace(), and Prepare().
|
inlineprivate |
Definition at line 1710 of file txtfrm.cxx.
References InvalidateRange_(), IsIdxInside(), SwCharRange::Len(), and SwCharRange::Start().
Referenced by Prepare(), and SwClientNotify().
|
private |
Definition at line 1716 of file txtfrm.cxx.
References COMPLETE_STRING, SwParaPortion::GetDelta(), GetPara(), SwParaPortion::GetReformat(), HasPara(), SwFrame::InvalidateSize(), SwCharRange::Len(), SwParaPortion::SetDelta(), and SetWidow().
Referenced by FormatQuick(), InvalidateRange(), SwClientNotify(), and SwTextIter::TruncLines().
|
inline |
Definition at line 531 of file txtfrm.hxx.
Referenced by CalcHeightOfLastLine(), FillSelection(), FirstLineHeight(), FormatEmpty(), FormatQuick(), GetAutoPos(), GetCharRect(), SwAccessibleDocument::getExtendedAttributes(), GetFormatted(), GetModelPositionForViewPoint_(), GetPaintSwRect(), GetParHeight(), GetTopOfLine(), Hyphenate(), SwContentNotify::ImplDestroy(), LeftMargin(), PaintSwFrame(), Prepare(), PrepareVisualMove(), RightMargin(), UnitDown_(), UnitUp_(), and WouldFit().
|
inline |
If there's a Follow and we don't contain text ourselves.
Definition at line 456 of file txtfrm.hxx.
References SwContentFrame::GetFollow().
Referenced by Format().
|
inline |
Definition at line 534 of file txtfrm.hxx.
Referenced by CalcFollow(), Format(), Format_(), and FormatAdjust().
|
inline |
Am I a FootnoteFrame, with a number at the start of the paragraph?
Definition at line 632 of file txtfrm.hxx.
References SwFrame::GetIndPrev(), and SwFrame::IsInFootnote().
Referenced by Prepare(), and SwTextFormatter::WhichFirstPortion().
|
private |
Definition at line 71 of file txtftn.cxx.
References SwLayoutFrame::ContainsContent(), SwFrame::FindFootnoteFrame(), SwFootnoteFrame::GetMaster(), and SwFrame::IsInTab().
bool SwTextFrame::IsHiddenNow | ( | ) | const |
Definition at line 1360 of file txtfrm.cxx.
References COMPLETE_STRING, SwDoc::FieldCanHideParaWeight(), SwDoc::FieldHidesPara(), SwFrame::FindNextCnt(), SwFrame::FindPrevCnt(), SwScriptInfo::GetBoundsOfHiddenRange(), SwRootFrame::GetCurrShell(), SwFrame::GetDep(), SwNode::GetDoc(), SwFormatField::GetField(), SwFrameAreaDefinition::getFrameArea(), getLength(), SwFrame::getRootFrame(), GetScriptInfo(), GetText(), SwField::GetTyp(), SwFrame::GetUpper(), SwViewShell::GetViewOptions(), SwScriptInfo::InitScriptInfo(), SwViewOption::IsFieldName(), SwFrameAreaDefinition::isFrameAreaDefinitionValid(), IsHiddenNow(), SwFrame::IsInDocBody(), SwFrame::IsRightToLeft(), SwViewOption::IsShowHiddenChar(), SwViewOption::IsShowHiddenPara(), m_pMergedPara, sw::MergedAttrIter::NextAttr(), RES_TXTATR_FIELD(), SAL_INFO, SwFieldType::Which(), and Width.
Referenced by SwBorderAttrs::CalcJoinedWithNext(), SwBorderAttrs::CalcJoinedWithPrev(), SwFootnoteFrame::FindLastContent(), Format(), FormatQuick(), GetAutoPos(), SwLayoutFrame::GetContentPos(), GetCurWord(), SwCallLink::getLayoutFrame(), GetModelPositionForViewPoint_(), GetNode(), HideAndShowObjects(), HideHidden(), SwContentNotify::ImplDestroy(), SwFrame::InvalidateNextPrtArea(), IsHiddenNow(), lcl_HyphenateNode(), lcl_NotHiddenPrev(), lcl_UpDown(), PaintExtraData(), PaintSwFrame(), PrepareVisualMove(), SwEditShell::SetNumberingRestart(), UnitDown_(), UnitUp_(), WouldFit(), and SwContentFrame::WouldFit_().
|
private |
Definition at line 1679 of file txtfrm.cxx.
References COMPLETE_STRING, GetFollow(), SwLinePortion::GetLen(), getLength(), GetOffset(), GetPara(), GetText(), and nPos.
Referenced by InvalidateRange(), and SwClientNotify().
|
inline |
Definition at line 533 of file txtfrm.hxx.
Referenced by GetFootnoteFrameHeight_().
|
inline |
Respect the Follows.
Definition at line 843 of file txtfrm.hxx.
References GetFollow(), GetOffset(), and nPos.
Referenced by SwAccessibleParagraph::grabFocus(), IsFrameBehind(), and SwGetRefField::UpdateField().
|
inline |
Definition at line 530 of file txtfrm.hxx.
Referenced by WidowsAndOrphans::FindWidows().
|
inline |
Definition at line 527 of file txtfrm.hxx.
Referenced by AdjustFollow_(), CalcAdditionalFirstLineOffset(), CalcFitToContent(), CalcLineSpace(), ClearPara(), WidowsAndOrphans::FindWidows(), Format(), FormatQuick(), GetCharRect(), GetModelPositionForViewPoint_(), Hyphenate(), Init(), SwContentFrame::MakeAll(), PaintExtraData(), PaintSwFrame(), Prepare(), SwFrame::PrepareMake(), SwFootnoteBossFrame::RemoveFootnote(), SwClientNotify(), TestFormat(), TextFrameLockGuard::TextFrameLockGuard(), SwTextIter::TruncLines(), and WouldFit().
|
inline |
Definition at line 545 of file txtfrm.hxx.
Referenced by AdjustFrame(), SwTextFormatter::AlignFlyInCntBase(), CalcBaseOfstForFly(), SwTextFly::CalcLeftMargin(), CalcLineSpace(), CalcPreps(), SwTextFly::CalcRightMargin(), SwTextFormatter::CalcUnclipped(), ConnectFootnote(), EmptyHeight(), WidowsAndOrphans::FindWidows(), Format_(), FormatEmpty(), FormatLine(), SwTextFormatter::FormatLine(), FormatOnceMore(), FormatQuick(), SwTextFormatter::FormatQuoVadis(), GetCharRect(), GetFootnoteLine(), GetParHeight(), Hyphenate(), lcl_GetFootnoteLower(), SwTextFormatter::NewFootnotePortion(), PaintSwFrame(), SwFrameSwapper::SwFrameSwapper(), SwTestFormat::SwTestFormat(), SwTextFormatter::UpdatePos(), and WouldFit().
bool SwTextFrame::IsSymbolAt | ( | TextFrameIndex | nPos | ) | const |
Definition at line 190 of file itratr.cxx.
References SwAttrIter::IsSymbol(), and nPos.
Referenced by GetCurWord().
|
inline |
Definition at line 529 of file txtfrm.hxx.
Referenced by CalcFollow(), Format(), FormatQuick(), and WouldFit().
SwContentFrame * SwTextFrame::JoinFrame | ( | ) |
Definition at line 651 of file frmform.cxx.
References CalcFootnoteFlag(), SwFootnoteBossFrame::ChangeFootnoteRef(), COMPLETE_STRING, SwContentFrame::Cut(), SwFrame::DestroyFrame(), SwFrame::FindFootnoteBossFrame(), SwFrame::FindNextCnt(), SwRootFrame::GetCurrShell(), GetFollow(), SwViewShell::GetLayout(), GetOffset(), SwFrame::getRootFrame(), HasFootnote(), SwViewShell::InvalidateAccessibleParaFlowRelation(), SwRootFrame::IsAnyShellAccessible(), SwFrameAreaDefinition::isFrameAreaSizeValid(), SwFrameAreaDefinition::isFramePrintAreaValid(), MapModelToView(), MoveFlyInCnt(), sw::MergedAttrIter::NextAttr(), RES_TXTATR_FTN(), and SetFootnote().
Referenced by AdjustFollow_(), and SwContentFrame::MakeAll().
|
overridevirtual |
Layout oriented cursor travelling: Left border, right border, previous Line, following Line, same horizontal position.
Implements SwContentFrame.
Definition at line 672 of file frmcrsr.cxx.
References SwTextCursor::CharCursorToLine(), SwFrame::GetDep(), GetFormatted(), GetMergedPara(), GetOffset(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwTextIter::GetPrev(), SwTextIter::GetStart(), IsEmpty(), SwTextCursor::IsRightMargin(), MapModelToViewPos(), MapViewToModelPos(), SwTextCursor::SetRightMargin(), and sw_ChangeOffset.
|
inlineprivate |
Definition at line 250 of file txtfrm.hxx.
Referenced by TextFrameLockGuard::TextFrameLockGuard().
|
overrideprivatevirtual |
Calculates the frame area position, in case it's invalid.
The frame area size and the print area is not considered here.
Reimplemented from SwFrame.
Definition at line 341 of file frmform.cxx.
References SwPaM::End(), SwContentFrame::FindMaster(), SwFrameAreaDefinition::getFrameArea(), SwNode::getIDocumentRedlineAccess(), SwNode::GetIndex(), SwPaM::GetMark(), GetMergedPara(), SwPosition::GetNode(), SwPaM::GetPoint(), IDocumentRedlineAccess::GetRedlineTable(), GetSplitFlyDrawObjs(), SwNode::GetTextNode(), GetTextNodeFirst(), SwRangeRedline::GetType(), SwFrame::InvalidatePos(), comphelper::LibreOfficeKit::isActive(), SwFrame::MakePos(), SwRangeRedline::MaybeNotifyRedlinePositionModification(), Point, Pos, SwRect::Pos(), SwRedlineTable::size(), and Top.
Referenced by AdjustFrame().
|
inline |
Definition at line 451 of file txtfrm.hxx.
Referenced by AdjustFollow_(), SwLayHelper::CheckInsert(), FormatAdjust(), lcl_ModifyOfst(), RemoveFootnote(), and SplitFrame().
TextFrameIndex SwTextFrame::MapModelToView | ( | SwTextNode const * | pNode, |
sal_Int32 | nIndex | ||
) | const |
Definition at line 1252 of file txtfrm.cxx.
References SwFrame::GetDep(), GetMergedPara(), sw::MapModelToView(), and nIndex.
Referenced by SwCursor::DoSetBidiLevelLeftRight(), SwCursor::DoSetBidiLevelUpDown(), FindFootnoteRef(), sw::FindTextImpl(), GetFootnoteLine(), SwAccessibleParagraph::getHyperLink(), SwAccessibleParagraph::getHyperLinkIndex(), SwEditShell::GetINetAttrs(), SwEditShell::GetItemWithPaM(), SwCallLink::getLayoutFrame(), SwTextSizeInfo::GetMultiCreator(), SwEditShell::GetScriptType(), HideFootnotes(), SwEditShell::Insert2(), IsFrameBehind(), sw::IsMarkHidden(), sw::IsMarkHintHidden(), JoinFrame(), lcl_CalculateRepaintRect(), lcl_CleanStr(), MapModelToViewPos(), Prepare(), RemoveFootnote(), SplitFrame(), SwClientNotify(), SwNodes::TextToTable(), SwTextFormatter::TryNewNoLengthPortion(), and SwGetRefField::UpdateField().
TextFrameIndex SwTextFrame::MapModelToViewPos | ( | SwPosition const & | rPos | ) | const |
Definition at line 1267 of file txtfrm.cxx.
References SwPosition::GetContentIndex(), SwPosition::GetNode(), SwNode::GetTextNode(), MapModelToView(), and nIndex.
Referenced by SwEditShell::AutoCorrect(), SwAutoFormat::AutoCorrect(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), SwFlyFrame::ChgRelPos(), SwCursor::DoSetBidiLevelLeftRight(), SwAnchoredObject::FindAnchorCharFrame(), sw::FindTextImpl(), GetAutoPos(), SwAccessibleParagraph::GetCaretPos(), GetCharRect(), GetCurWord(), SwAccessibleDocument::getExtendedAttributes(), GetFrameAtPos(), SwAccessibleParagraph::getIndexAtPoint(), SwEditShell::GetPrevAutoCorrWord(), SwEditShell::GetScalingOfSelectedText(), SwAccessibleParagraph::GetSelectionAtIndex(), GetTopOfLine(), SwAccessibleParagraph::grabFocus(), SwCursor::IsAtLeftRightMargin(), IsAtStartOrEndOfFrame(), SwCursorShell::IsEndPara(), sw::IsMarkHidden(), SwCursorShell::IsSttPara(), lcl_GetFlyInContentAnchor(), LeftMargin(), SwCursor::LeftRight(), SwFEShell::MoveAnchor(), MoveFlyInCnt(), sw::ReplaceBackReferences(), RightMargin(), UnitDown_(), and UnitUp_().
std::pair< SwTextNode *, sal_Int32 > SwTextFrame::MapViewToModel | ( | TextFrameIndex | nIndex | ) | const |
map position in potentially merged text frame to SwPosition
Definition at line 1231 of file txtfrm.cxx.
References SwFrame::GetDep(), GetMergedPara(), sw::MapViewToModel(), and nIndex.
Referenced by SwAccessibleParagraph::_correctValues(), SwTaggedPDFHelper::BeginInlineStructureElements(), SwLineLayout::CalcLine(), SwAutoFormat::GetDigitLevel(), GetDropLen(), GetLangOfChar(), SwTextSizeInfo::GetMultiCreator(), SwEditShell::GetScriptType(), SwTextSizeInfo::HasHint(), SwAutoFormat::IsFirstCharCapital(), SwAutoFormat::IsNoAlphaLine(), MapViewToModelPos(), SwAutoCorrDoc::ReplaceRange(), SwTextSlot::SwTextSlot(), and SwInterHyphInfoTextFrame::UpdateTextNodeHyphInfo().
SwPosition SwTextFrame::MapViewToModelPos | ( | TextFrameIndex | nIndex | ) | const |
Definition at line 1246 of file txtfrm.cxx.
References MapViewToModel(), and nIndex.
Referenced by SwAccessibleParagraph::_getRunAttributesImpl(), SwAccessibleParagraph::addSelection(), SwEditShell::AutoCorrect(), SwAutoFormat::AutoCorrect(), SwAutoFormat::BuildEnum(), SwAutoFormat::BuildNegIndent(), SwDoc::ChgAnchor(), SwAutoCorrDoc::ChgAutoCorrWord(), SwAccessibleParagraph::CreateUnoPortion(), SwAutoFormat::DelEmptyLine(), SwAutoCorrDoc::Delete(), SwAutoFormat::DeleteJoinCurNextPara(), SwAutoFormat::DeleteLeadingTrailingBlanks(), SwAutoFormat::DelMoreLinesBlanks(), DoSearch(), SwCursor::DoSetBidiLevelLeftRight(), SwTextPaintInfo::DrawBackBrush(), FillCursorPos(), FillSelection(), FindAttrsImpl(), sw::FindFormatImpl(), sw::FindTextImpl(), SwFieldFormCheckboxPortion::Format(), GetBodyTextNode(), SwAccessibleParagraph::getCharacterBounds(), SwAccessibleParagraph::GetCurrentTabStop(), GetFrameInPage(), SwAccessibleParagraph::getIndexAtPoint(), GetModelPositionForViewPoint_(), SwEditShell::GetScriptType(), SwCursorShell::GotoFootnoteText(), SwAccessibleContext::grabFocus(), SwAccessibleParagraph::grabFocus(), SwAutoCorrDoc::Insert(), lcl_FindAnchorPos(), lcl_UpDown(), LeftMargin(), SwFEShell::MoveAnchor(), SwFieldFormCheckboxPortion::Paint(), SwEditShell::ReplaceDropText(), SwAccessibleParagraph::replaceText(), RightMargin(), SwFlyAtContentFrame::SetAbsPos(), SwAutoCorrDoc::SetAttr(), SwAccessibleParagraph::setCaretPosition(), SwRootFrame::SetCurrPage(), SwAutoCorrDoc::SetINetAttr(), SwAccessibleParagraph::setSelection(), SwAutoCorrDoc::TransliterateRTLWord(), UnitDown_(), UnitUp_(), and SwTextFormatter::WhichTextPor().
void SwTextFrame::MoveFlyInCnt | ( | SwTextFrame * | pNew, |
TextFrameIndex | nStart, | ||
TextFrameIndex | nEnd | ||
) |
Rewires FlyInContentFrame, if nEnd > Index >= nStart.
move character-bound objects inside the given area
This allows moving those objects from Master to Follow, or vice versa.
pNew | |
nStart | |
nEnd |
Definition at line 150 of file porfly.cxx.
References SwFrame::AppendDrawObj(), SwFrame::AppendFly(), SwAnchoredObject::DynCastFlyFrame(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetContentAnchor(), SwFrame::GetDrawObjs(), SwAnchoredObject::GetFrameFormat(), i, MapModelToViewPos(), nIndex, SwFrame::RemoveDrawObj(), SwFrame::RemoveFly(), and SwSortedObjs::size().
Referenced by ChangeOffset(), JoinFrame(), and SplitFrame().
|
private |
Definition at line 502 of file frmpaint.cxx.
References bInitFont, CH_PAR, EmptyHeight(), SwPaM::End(), FAMILY_DONTKNOW, SwFrame::FindPageFrame(), SwFontAccess::Get(), SwContentNode::GetAnyFormatColl(), SwTextGridItem::GetBaseHeight(), SwRootFrame::GetCurrShell(), numfunc::GetDefBulletFontname(), SwFontObj::GetFont(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), GetGridItem(), SwNode::getIDocumentRedlineAccess(), SwNode::getIDocumentSettingAccess(), SwNode::GetIndex(), SwPosition::GetNodeIndex(), SwViewShell::GetOut(), IDocumentRedlineAccess::GetRedlineFlags(), IDocumentRedlineAccess::GetRedlinePos(), IDocumentRedlineAccess::GetRedlineTable(), SwFrame::getRootFrame(), SwTextGridItem::GetRubyHeight(), SwTextGridItem::GetRubyTextBelow(), SwContentNode::GetSwAttrSet(), SvxFirstLineIndentItem::GetTextFirstLineOffset(), GetTextNodeForParaProps(), SwRangeRedline::GetType(), GetValue, SwViewShell::GetViewOptions(), SwViewShell::GetWin(), HasNonLastSplitFlyDrawObj(), SwContentNode::HasSwAttrSet(), Height, SwAttrHandler::Init(), SwTextFly::IsAnyObj(), SwFrame::IsInDocBody(), SwTextFly::IsOn(), SwViewOption::IsParagraph(), SwFrame::IsRightToLeft(), IDocumentRedlineAccess::IsShowChanges(), SwFrame::IsVertical(), Latin, LINESTYLE_NONE, SwLayoutModeModifier::Modify(), NON_PRINTING_CHARACTER_COLOR, SwRedlineTable::npos, Point, SwRect::Pos(), SwDrawTextInfo::SetFont(), SwDrawTextInfo::SetFrame(), SwDrawTextInfo::SetGrammarCheck(), SwDrawTextInfo::SetKanaComp(), SwDrawTextInfo::SetPos(), SwDrawTextInfo::SetSmartTags(), SwDrawTextInfo::SetSnapToGrid(), SwDrawTextInfo::SetSpace(), SwTextFly::SetTopRule(), SwDrawTextInfo::SetWrong(), SwRedlineItr::Show, SwRedlineTable::size(), SwPaM::Start(), and STRIKEOUT_NONE.
Referenced by PaintSwFrame().
void SwTextFrame::PaintExtraData | ( | const SwRect & | rRect | ) | const |
Definition at line 310 of file frmpaint.cxx.
References Bottom, SwRect::Bottom(), SwTextIter::CalcAscentAndHeight(), SwFrame::GetAttrSet(), SwTextIter::GetCurr(), SwRootFrame::GetCurrShell(), GetDoc(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwDoc::getIDocumentRedlineAccess(), SwTextIter::GetLineHeight(), SwAttrSet::GetLineNumber(), SwDoc::GetLineNumberInfo(), GetMinPrtLine(), SwTextIter::GetNext(), SwViewShell::GetOut(), SwTextLineAccess::GetPara(), IDocumentRedlineAccess::GetRedlineFlags(), IDocumentRedlineAccess::GetRedlinePos(), SwLineLayout::GetRedlineText(), SwFrame::getRootFrame(), GetTextNodeFirst(), SwViewShell::GetViewOptions(), SwLineLayout::HasContent(), HasPara(), SwLineLayout::HasRedline(), SwRect::Height(), SwFormatLineNumber::IsCount(), SwLineNumberInfo::IsCountBlankLines(), SwLineNumberInfo::IsCountInFlys(), SwLineLayout::IsDummy(), IsHiddenNow(), SwFrame::IsInFly(), SwFrame::IsInTab(), IsLocked(), SwLineNumberInfo::IsPaintLineNumbers(), IDocumentRedlineAccess::IsShowChanges(), SwViewOption::IsShowChangesInMargin(), SwFrame::IsVertical(), SwLayoutModeModifier::Modify(), SwTextIter::Next(), SwPostItHelper::NONE, SwRedlineTable::npos, PaintOutlineContentVisibilityButton(), SW_MOD, swap(), SwitchVerticalToHorizontal(), Top, SwRect::Top(), and SwTextIter::Y().
|
private |
Definition at line 4335 of file paintfrm.cxx.
References SwViewShell::GetViewOptions(), gProp, SwViewOption::IsShowOutlineContentVisibilityButton(), and UpdateOutlineContentVisibilityButton().
Referenced by PaintExtraData().
|
overridevirtual |
Reimplemented from SwFrame.
Definition at line 643 of file frmpaint.cxx.
References SwRect::Bottom(), SwRect::Clear(), SwTextPainter::DrawTextLine(), SwFrame::FindFlyFrame(), SwParaPortion::FootnoteToo, SwRootFrame::GetCurrShell(), GetFormatted(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwTextNode::GetGrammarCheck(), SwRect::GetIntersection(), GetMinPrtLine(), SwRepaint::GetOffset(), SwTextSizeInfo::GetOut(), GetPara(), SwTextLineAccess::GetPara(), SwParaPortion::GetRepaint(), SwFrame::getRootFrame(), SwTextNode::GetSmartTags(), SwTextPaintInfo::GetTextFly(), SwViewShell::GetWin(), SwTextNode::GetWrong(), SwRect::HasArea(), HasPara(), IsEmpty(), SwFlyFrame::IsFlyInContentFrame(), SwFrameAreaDefinition::isFrameAreaPositionValid(), IsHiddenNow(), IsLocked(), SwTextPainter::IsPaintDrop(), SwFrame::IsRightToLeft(), IsSwapped(), SwFrame::IsVertical(), sw::WrongListIterator::LooksUseful(), SwTextIter::Next(), SwTextPainter::PaintDropPortion(), PaintEmpty(), pOut, SwTextFly::Relax(), ResetRepaint(), SwTextPaintInfo::SetGrammarCheckList(), SwRepaint::SetOffset(), SwTextPaintInfo::SetSmartTags(), SwTextFly::SetTopRule(), SwTextPaintInfo::SetWrongList(), swap(), SwitchRTLtoLTR(), SwitchVerticalToHorizontal(), SwRect::Top(), SwTextIter::TwipsToLine(), and SwTextIter::Y().
|
overridevirtual |
SwContentFrame: the shortcut for the Frames If the void* casts wrongly, it's its own fault! The void* must be checked for 0 in any case!
return true if the Portion associated with this SwTextFrame was potentially destroyed and replaced by Prepare
Reimplemented from SwFrame.
Definition at line 2768 of file txtfrm.cxx.
References AdjustSizeWithoutFormatting, BossChanged, Bottom, SwRect::Bottom(), CalcFlyPos(), CalcLineSpace(), Clear, COMPLETE_STRING, ErgoSum, SwContentFrame::FindMaster(), SwFrame::FindPageFrame(), FlyFrameArrive, FlyFrameAttributesChanged, FlyFrameLeave, FootnoteInvalidation, FootnoteInvalidationGone, FootnoteMove, FramePositionChanged, SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), GetDoc(), SwFrame::GetDrawObjs(), GetFollow(), SwDoc::GetFootnoteInfo(), SwFrameAreaDefinition::getFrameArea(), SwAnchoredObject::GetFrameFormat(), SwFrameAreaDefinition::getFramePrintArea(), GetGridItem(), SwFrame::GetIndNext(), SwFrame::GetNext(), GetOffset(), SwTextLineAccess::GetPara(), SwParaPortion::GetParLen(), SwFrame::GetPrev(), SwParaPortion::GetRepaint(), SwTextAttr::GetStart(), SwTextFootnote::GetTextNode(), GetTextNodeForParaProps(), SwFrame::GetUpper(), GetValue, SwRect::HasArea(), SwParaPortion::HasFly(), HasFootnote(), HasPara(), SwRect::Height(), i, Init(), SwFrame::InvalidatePage(), SwFrame::InvalidatePrt(), SwFrame::InvalidatePrt_(), InvalidateRange(), SwFrame::InvalidateSize(), SwFrame::InvalidateSize_(), IsEmpty(), SwParaPortion::IsFootnoteNum(), IsFootnoteNumFrame(), SwFrameAreaDefinition::isFramePrintAreaValid(), SwFrame::IsInFly(), SwFrame::IsInFootnote(), SwFrame::IsInSct(), SwFrame::IsLayoutFrame(), IsLocked(), SwTextFly::IsOn(), SwParaPortion::IsPrepMustFit(), SwFrame::IsVertical(), lcl_ErgoVadis(), SwFootnoteInfo::m_aQuoVadis, MapModelToView(), MustFit, sw::MergedAttrIter::NextAttr(), nPos, Prepare(), PrepWidows(), QuoVadis, Register, SwTextFly::Relax(), RES_TXTATR_FIELD(), RES_TXTATR_FTN(), SwFrame::SetCompletePaint(), SwFrame::SetInvalidVert(), SetOffset_(), SwParaPortion::SetPrep(), SwParaPortion::SetPrepAdjust(), SwParaPortion::SetPrepMustFit(), SwSortedObjs::size(), SwRect::Top(), SwParaPortion::UpdateQuoVadis(), Widows, and WidowsOrphans.
Referenced by CalcFollow(), CalcPreps(), SwFrame::CheckDirChange(), SwDoc::ChgAnchor(), SwContentNode::DelFrames(), WidowsAndOrphans::FindWidows(), SwCellFrame::Format(), Format(), SwHeadFootFrame::FormatSize(), InsertCnt_(), Prepare(), SwFootnoteBossFrame::RemoveFootnote(), and SwClientNotify().
void SwTextFrame::PrepareVisualMove | ( | TextFrameIndex & | nPos, |
sal_uInt8 & | nCursorLevel, | ||
bool & | bRight, | ||
bool | bInsertCursor | ||
) |
Prepares the cursor position for a visual cursor move (BiDi).
The behaviour is different for insert and overwrite cursors
Definition at line 1045 of file frmcrsr.cxx.
References SwTextCursor::CharCursorToLine(), SwTextIter::GetCurr(), GetFormatted(), SwLinePortion::GetLen(), SwTextIter::GetStart(), GetText(), IsEmpty(), IsHiddenNow(), SwFrame::IsRightToLeft(), lcl_VisualMoveRecursion(), nPos, and SwTextIter::Top().
Referenced by SwCursor::DoSetBidiLevelLeftRight().
|
private |
Definition at line 2688 of file txtfrm.cxx.
References SwTextIter::Bottom(), SwTextIter::GetCurr(), SwTextMargin::GetDropLines(), SwTextIter::GetEnd(), GetFollow(), SwLinePortion::GetLen(), SwTextIter::GetLineNr(), WidowsAndOrphans::GetOrphansLines(), GetPara(), SwFrame::InvalidatePage(), SwFrame::InvalidateSize_(), SwParaPortion::IsFollowField(), SwTextIter::PrevLine(), SetFieldFollow(), SetOffset(), SwParaPortion::SetPrepWidows(), swap(), and SwTextIter::TruncLines().
Referenced by Prepare().
void SwTextFrame::RecalcAllLines | ( | ) |
Definition at line 3913 of file txtfrm.cxx.
References SwFrame::FindPageFrame(), GetAllLines(), GetDoc(), SwAttrSet::GetLineNumber(), SwDoc::GetLineNumberInfo(), SwContentFrame::GetNextContentFrame(), SwContentFrame::GetPrevContentFrame(), SwFormatLineNumber::GetStartValue(), SwContentNode::GetSwAttrSet(), GetTextNodeForParaProps(), GetThisLines(), SwFrame::GetUpper(), SwFrame::InvalidateLineNum(), SwFrame::InvalidateLineNum_(), SwFormatLineNumber::IsCount(), SwFrame::IsInDocBody(), SwFrame::IsInTab(), SwLineNumberInfo::IsRestartEachPage(), mnAllLines, and SwFrame::ValidateLineNum().
Referenced by SwLayAction::FormatFlyContent(), and SwLayAction::TurboAction_().
void SwTextFrame::RegisterToNode | ( | SwTextNode & | rNode, |
bool | isForceNodeAsFirst = false |
||
) |
Definition at line 455 of file ssfrm.cxx.
References sw::CheckParaRedlineMerge(), SwFrame::GetDep(), SwNode::GetDoc(), IDocumentMarkAccess::getFieldmarksBegin(), IDocumentMarkAccess::getFieldmarksEnd(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwNode::GetIndex(), IDocumentRedlineAccess::GetRedlinePos(), m_pMergedPara, sw::New, and SwRedlineTable::npos.
void SwTextFrame::RemoveFootnote | ( | TextFrameIndex | nStart, |
TextFrameIndex | nLen = TextFrameIndex(COMPLETE_STRING) |
||
) |
Definition at line 408 of file txtftn.cxx.
References CalcFootnoteFlag(), SwLayouter::Collecting(), COMPLETE_STRING, SwFootnoteBossFrame::FindFootnote(), SwFrame::FindFootnoteBossFrame(), SwFrame::FindPageFrame(), SwFrame::FindSctFrame(), FTNPOS_CHAPTER, GetDoc(), GetFollow(), SwContentFrame::GetFollow(), SwFootnoteFrame::GetFollow(), SwTextAttr::GetFootnote(), SwDoc::GetFootnoteInfo(), GetOffset(), SwFrame::GetUpper(), HasPara(), SwLayoutFrame::IsBefore(), SwFormatFootnote::IsEndNote(), SwFrame::IsFootnoteAllowed(), SwSectionFrame::IsFootnoteAtEnd(), SwFrame::IsInSct(), SwFrame::IsSctFrame(), SwFootnoteInfo::m_ePos, ManipOfst(), MapModelToView(), SwFootnoteBossFrame::MoveFootnotes(), sw::MergedAttrIterReverse::PrevAttr(), SwFootnoteBossFrame::RemoveFootnote(), RES_TXTATR_FTN(), SetFootnote(), SwFootnoteFrame::SetRef(), SwPageFrame::UpdateFootnoteNum(), ValidateBodyFrame(), and ValidateFrame().
Referenced by FormatAdjust(), SwTextFrameBreak::IsInside(), and SwTextIter::TruncLines().
void SwTextFrame::RemoveFromCache | ( | ) |
Removes this frame completely from the Cache.
Definition at line 120 of file txtcache.cxx.
References SwCache::Delete(), GetCacheIdx(), s_pTextCache, and SetCacheIdx().
Referenced by FormatEmpty(), and ~SwTextFrame().
|
static |
Repaint all text frames of the given text node.
Definition at line 4115 of file txtfrm.cxx.
References SwIterator< TElementType, TSource, eMode >::First(), SwRootFrame::GetCurrShell(), SwFrame::getRootFrame(), SwViewShell::InvalidateWindows(), and SwIterator< TElementType, TSource, eMode >::Next().
Referenced by sw::GrammarContact::finishGrammarCheck(), SwEditShell::IgnoreGrammarErrorAt(), sw::IMPL_LINK(), and sw::GrammarContact::updateCursorPosition().
|
private |
Definition at line 1351 of file txtfrm.cxx.
References GetCacheIdx(), and GetPara().
Referenced by CalcPrepFootnoteAdjust(), CalcPreps(), and ValidateFrame().
|
inline |
Definition at line 889 of file txtfrm.hxx.
References mbRepaint.
Referenced by GetPaintSwRect(), and PaintSwFrame().
|
overridevirtual |
Implements SwContentFrame.
Definition at line 706 of file frmcrsr.cxx.
References CH_BREAK, SwTextCursor::CharCursorToLine(), SwTextIter::GetCurr(), SwFrame::GetDep(), GetFollow(), GetFormatted(), SwLinePortion::GetLen(), GetMergedPara(), SwTextIter::GetNext(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwTextIter::GetStart(), SwTextSizeInfo::GetText(), IsEmpty(), SwTextCursor::IsRightMargin(), MapModelToViewPos(), MapViewToModelPos(), nRightMargin, and SwTextCursor::SetRightMargin().
|
inline |
Definition at line 541 of file txtfrm.hxx.
Referenced by SwGrfNumPortion::Paint().
|
inline |
Definition at line 624 of file txtfrm.hxx.
Referenced by SwTextLineAccess::GetPara(), RemoveFromCache(), and SwTextLine::UpdateCachePos().
|
inlineprivate |
Definition at line 254 of file txtfrm.hxx.
Referenced by Format(), and FormatEmpty().
|
inlineprivate |
Definition at line 255 of file txtfrm.hxx.
Referenced by CalcFollow(), Format_(), and PrepWidows().
|
inline |
Will be moved soon.
Definition at line 609 of file txtfrm.hxx.
Referenced by JoinFrame(), RemoveFootnote(), SwTextFormatInfo::SetParaFootnote(), and SplitFrame().
void SwTextFrame::SetHasRotatedPortions | ( | bool | bHasRotatedPortions | ) |
Definition at line 98 of file txtftn.cxx.
References mbHasRotatedPortions.
Referenced by FormatEmpty(), Init(), and SwTextFormatter::NewPortion().
|
inlineprivate |
Definition at line 253 of file txtfrm.hxx.
Referenced by CalcPreps(), and WidowsAndOrphans::FindWidows().
void SwTextFrame::SetMergedPara | ( | std::unique_ptr< sw::MergedPara > | p | ) |
Definition at line 1274 of file txtfrm.cxx.
References SwFrame::GetDep(), m_pMergedPara, and p.
|
inline |
Definition at line 879 of file txtfrm.hxx.
References mnOffset, and SetOffset_().
Referenced by Format(), and PrepWidows().
void SwTextFrame::SetOffset_ | ( | TextFrameIndex | nNewOfst | ) |
Definition at line 801 of file frmform.cxx.
References getLength(), GetPara(), SwParaPortion::GetReformat(), GetText(), SwFrame::InvalidateSize(), SwCharRange::Len(), mnOffset, SwParaPortion::SetDelta(), and SwCharRange::Start().
Referenced by CalcFollow(), Format(), Format_(), Prepare(), and SetOffset().
|
private |
Definition at line 129 of file txtcache.cxx.
References Get(), GetCacheIdx(), SwCacheObj::GetCachePos(), GetTextCache(), Insert(), mnCacheIndex, and SwTextLine::SetPara().
Referenced by CalcAdditionalFirstLineOffset(), CalcFitToContent(), CalcPrepFootnoteAdjust(), SwTestFormat::SwTestFormat(), and SwTestFormat::~SwTestFormat().
|
inline |
|
inlinestatic |
Definition at line 619 of file txtfrm.hxx.
Referenced by TextInit_().
|
inlineprivate |
Definition at line 252 of file txtfrm.hxx.
Referenced by CalcPreps(), Format(), InvalidateRange_(), and WouldFit().
SwRect SwTextFrame::SmartTagScan | ( | SwTextNode & | rNode | ) |
Is called by DoIdleJob_()
Function: SmartTagScan.
Function scans words in current text and checks them in the smarttag libraries. If the check returns true to bounds of the recognized words are stored into a list that is used later for drawing the underline.
Definition at line 1459 of file txtedt.cxx.
References SwTextNode::ClearSmartTags(), COMPLETE_STRING, ModelToViewHelper::ConvertToViewPosition(), SwWrongList::Count(), SwXTextRange::CreateXTextRange(), end, sw::FrameContainsNode(), SwWrongList::Fresh(), g_pBreakIt, SwSmartTagMgr::Get(), SwWrongList::GetBeginInv(), SwBreakIt::GetBreakIter(), SwLanguageIterator::GetChgPos(), SwDocShell::GetController(), SwNode::GetDoc(), SwDoc::GetDocShell(), SwWrongList::GetEndInv(), SwNode::GetIndex(), SwTextNode::GetLang(), SwLanguageIterator::GetLanguage(), SwBreakIt::GetLocale(), SwFrame::getRootFrame(), SwTextNode::GetSmartTags(), SwTextNode::GetText(), ModelToViewHelper::getViewText(), SwWrongList::GetWrongPos(), SwTextNode::IsSmartTagDirty(), lcl_CalculateRepaintRect(), min(), SwLanguageIterator::Next(), nLang, SmartTagMgr::RecognizeString(), SmartTagMgr::RecognizeTextRange(), SwWrongList::SetInvalid(), SwTextNode::SetSmartTagDirty(), start, and xController.
void SwTextFrame::SplitFrame | ( | TextFrameIndex | nTextPos | ) |
Methods to manage the FollowFrame.
Definition at line 724 of file frmform.cxx.
References CalcFootnoteFlag(), SwFootnoteBossFrame::ChangeFootnoteRef(), COMPLETE_STRING, SwFrame::FindFootnoteBossFrame(), SwFrame::FindNextCnt(), SwRootFrame::GetCurrShell(), GetFollow(), SwViewShell::GetLayout(), SwFrame::GetNext(), SwFrame::getRootFrame(), GetTextNodeFirst(), SwFrame::GetUpper(), HasFootnote(), SwViewShell::InvalidateAccessibleParaFlowRelation(), SwRootFrame::IsAnyShellAccessible(), SwTextNode::MakeFrame(), ManipOfst(), MapModelToView(), MoveFlyInCnt(), sw::MergedAttrIter::NextAttr(), SwContentFrame::Paste(), RES_TXTATR_FTN(), SetFootnote(), and swap().
Referenced by FormatAdjust(), and SwFrame::GetNextFlyLeaf().
void SwTextFrame::StopAnimation | ( | const OutputDevice * | pOut | ) |
Stops the animations within numberings.
Definition at line 1064 of file porfld.cxx.
References SwLinePortion::GetLen(), SwLineLayout::GetNext(), SwLinePortion::GetNextPortion(), GetPara(), HasAnimation(), HasPara(), SwLinePortion::IsGrfNumPortion(), pOut, and StopAnimation().
Referenced by StopAnimation().
void SwTextFrame::SwapWidthAndHeight | ( | ) |
Swaps width and height of the text frame.
Switches width and height of the text frame.
Definition at line 420 of file txtfrm.cxx.
References SwFrameAreaDefinition::getFrameArea(), Height, SwRect::Height(), SwFrame::IsVertLR(), mbIsSwapped, SwRect::Pos(), Width, and SwRect::Width().
Referenced by Format_(), GetModelPositionForViewPoint_(), Hyphenate(), SwTestFormat::SwTestFormat(), TemporarySwap::TemporarySwap(), UnitDown_(), and TemporarySwap::~TemporarySwap().
|
overrideprivatevirtual |
Reimplemented from SwContentFrame.
Definition at line 1996 of file txtfrm.cxx.
References abs(), AdjustSizeWithoutFormatting, aFrameFormatSetRange, SfxBroadcaster::Broadcast(), CalcFootnoteFlag(), CalcLineSpace(), SwFrame::CheckDirChange(), SwAttrSetChg::ClearItem(), COL_TRANSPARENT(), COMPLETE_STRING, SwLayoutFrame::ContainsAny(), SfxItemSet::Count(), SwAttrSetChg::Count(), SwAnchoredObject::DynCastFlyFrame(), SwFrame::FindNext(), SwFrame::FindSctFrame(), FootnoteInvalidation, SwSmartTagMgr::Get(), SvxBrushItem::GetColor(), SwRootFrame::GetCurrShell(), GetDoc(), SwFrame::GetDrawObjs(), SwUpdateAttr::getEnd(), SwUpdateAttr::getFmtAttrs(), SwFrameAreaDefinition::getFrameArea(), SvxBrushItem::GetGraphicPos(), SfxHint::GetId(), SwDoc::getIDocumentFieldsAccess(), SwNode::GetIndex(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetItemState(), SwFrame::GetPrev(), SwFrame::getRootFrame(), SwUpdateAttr::getStart(), SwUpdateAttr::getWhichAttr(), GPOS_NONE, hasA11yRelevantAttribute(), i, SwViewShell::InvalidateAccessibleParaAttrs(), SwFrame::InvalidateLineNum(), SwFrame::InvalidateNextPrtArea(), SwFrame::InvalidatePage(), SwFrame::InvalidatePrt(), SwFrame::InvalidatePrt_(), InvalidateRange(), InvalidateRange_(), SwFrame::InvalidateSize(), isA11yRelevantAttribute(), IsIdxInside(), SwFrame::IsInFootnote(), IsInRange(), SwFrame::IsInSct(), sw::InsertText::isInsideFieldmarkCommand, sw::InsertText::isInsideFieldmarkResult, IsLocked(), isPARATR(), isPARATR_LIST(), lcl_ModifyOfst(), lcl_SetScriptInval(), lcl_SetWrong(), m, sw::DeleteChar::m_nPos, m_pMergedPara, MapModelToView(), nCount, sw::MoveText::nDestStart, nIndex, sw::MoveText::nLen, sw::InsertText::nLen, sw::DeleteText::nLen, sw::RedlineDelText::nLen, sw::RedlineUnDelText::nLen, nPos, sw::InsertText::nPos, sw::MoveText::nSourceStart, sw::DeleteText::nStart, sw::RedlineDelText::nStart, sw::RedlineUnDelText::nStart, sw::MoveText::pDestNode, Prepare(), Register, RES_ATTRSET_CHG(), RES_BACKGROUND(), RES_BREAK(), RES_CHRATR_CJK_FONT(), RES_CHRATR_CJK_LANGUAGE(), RES_CHRATR_CTL_FONT(), RES_CHRATR_CTL_LANGUAGE(), RES_CHRATR_FONT(), RES_CHRATR_LANGUAGE(), RES_FMT_CHG(), RES_FRAMEDIR(), RES_FRMATR_END(), RES_LINENUMBER(), RES_OBJECTDYING(), RES_PAGEDESC(), RES_PARATR_BEGIN(), RES_PARATR_LINESPACING(), RES_PARATR_REGISTER(), RES_PARATR_SPLIT(), RES_TXTATR_ANNOTATION(), RES_TXTATR_AUTOFMT(), RES_TXTATR_CHARFMT(), RES_TXTATR_FIELD(), RES_TXTATR_FTN(), RES_TXTATR_INETFMT(), RES_UPDATE_ATTR(), SwFrame::SetCompletePaint(), SwFrame::SetDerivedR2L(), IDocumentFieldsAccess::SetFieldsDirty(), sw::ShowBoth, sw::ShowCommand, sw::ShowResult, SwSortedObjs::size(), SwContentFrame::SwClientNotify(), Top, sw::UpdateMergedParaForDelete(), sw::UpdateMergedParaForInsert(), XATTR_FILL_FIRST(), and XATTR_FILL_LAST().
void SwTextFrame::SwitchHorizontalToVertical | ( | Point & | rPoint | ) | const |
Calculates the coordinates of a point when switching from horizontal to vertical layout.
Definition at line 531 of file txtfrm.cxx.
References SwFrameAreaDefinition::getFrameArea(), Height, SwFrame::IsVertLR(), SwFrame::IsVertLRBT(), Left, SwRect::Left(), mbIsSwapped, Point, SAL_WARN_IF, Top, SwRect::Top(), and Width.
void SwTextFrame::SwitchHorizontalToVertical | ( | SwRect & | rRect | ) | const |
Calculates the coordinates of a rectangle when switching from horizontal to vertical layout.
Definition at line 473 of file txtfrm.cxx.
References SwFrameAreaDefinition::getFrameArea(), Height, SwRect::Height(), SwFrame::IsVertLR(), SwFrame::IsVertLRBT(), Left, SwRect::Left(), mbIsSwapped, Top, SwRect::Top(), Width, and SwRect::Width().
Referenced by SwTextFormatter::AlignFlyInCntBase(), SwTextFormatter::BuildPortions(), SwTextAdjuster::CalcFlyPortion(), SwTextFormatter::CalcFlyWidth(), objectpositioning::SwAsCharAnchoredObjectPosition::CalcPosition(), SwTextFormatter::CalcRealHeight(), SwTextPaintInfo::CalcRect(), SwSaveClip::ChgClip_(), SwTextFormatter::ChkFlyUnderflow(), SwTextPaintInfo::DrawPostIts(), SwTextPaintInfo::DrawRedArrow(), SwSubFont::DrawStretchText_(), SwFntObj::DrawText(), FillCursorPos(), WidowsAndOrphans::FindWidows(), GetAutoPos(), SwTextFrameInfo::GetCharPos(), GetCharRect(), GetDropRect_(), GetFootnoteLine(), SwTextCursor::GetModelPositionForViewPoint(), GetModelPositionForViewPoint_(), GetPaintSwRect(), GetTopOfLine(), SwTextFrameBreak::IsInside(), SwTextFormatter::NewFlyCntPortion(), SwTextFormatter::NewFootnotePortion(), SwTextFormatter::NewTabPortion(), SwGrfNumPortion::Paint(), sw::FlyContentPortion::Paint(), SwTextFrameBreak::SetRstHeight(), SwitchHorizontalToVertical(), and SwTextFormatter::UpdatePos().
tools::Long SwTextFrame::SwitchHorizontalToVertical | ( | tools::Long | nLimit | ) | const |
Calculates the limit value when switching from horizontal to vertical layout.
Calculates the a limit value when switching from horizontal to vertical layout.
Definition at line 569 of file txtfrm.cxx.
References Point, and SwitchHorizontalToVertical().
void SwTextFrame::SwitchLTRtoRTL | ( | Point & | rPoint | ) | const |
Calculates the coordinates of a point when switching from LTR to RTL layout.
Definition at line 694 of file txtfrm.cxx.
References SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), Left, swap(), and Width.
void SwTextFrame::SwitchLTRtoRTL | ( | SwRect & | rRect | ) | const |
Calculates the coordinates of a rectangle when switching from LTR to RTL layout.
Definition at line 683 of file txtfrm.cxx.
References SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), Left, SwRect::Left(), SwRect::Right(), swap(), Width, and SwRect::Width().
Referenced by SwTextAdjuster::CalcFlyPortion(), SwTextFormatter::CalcFlyWidth(), objectpositioning::SwAsCharAnchoredObjectPosition::CalcPosition(), SwTextPaintInfo::CalcRect(), SwSaveClip::ChgClip_(), SwTextPaintInfo::DrawPostIts(), SwSubFont::DrawStretchText_(), SwFntObj::DrawText(), GetAutoPos(), GetCharRect(), GetDropRect_(), SwTextCursor::GetModelPositionForViewPoint(), GetModelPositionForViewPoint_(), GetPaintSwRect(), SwTextFormatter::NewTabPortion(), SwGrfNumPortion::Paint(), and sw::FlyContentPortion::Paint().
|
inline |
Calculates the coordinates of a point when switching from RTL to LTR layout.
Definition at line 751 of file txtfrm.hxx.
|
inline |
Calculates the coordinates of a rectangle when switching from RTL to LTR layout.
Definition at line 745 of file txtfrm.hxx.
Referenced by SwTextAdjuster::CalcFlyPortion(), SwTextFormatter::CalcFlyWidth(), GetModelPositionForViewPoint_(), lcl_DrawSpecial(), and PaintSwFrame().
void SwTextFrame::SwitchVerticalToHorizontal | ( | Point & | rPoint | ) | const |
Calculates the coordinates of a point when switching from vertical to horizontal layout.
Definition at line 621 of file txtfrm.cxx.
References SwFrameAreaDefinition::getFrameArea(), SwRect::Height(), SwFrame::IsVertLR(), SwFrame::IsVertLRBT(), Left, SwRect::Left(), mbIsSwapped, Top, SwRect::Top(), and SwRect::Width().
void SwTextFrame::SwitchVerticalToHorizontal | ( | SwRect & | rRect | ) | const |
Calculates the coordinates of a rectangle when switching from vertical to horizontal layout.
Definition at line 580 of file txtfrm.cxx.
References SwFrameAreaDefinition::getFrameArea(), SwRect::Height(), SwFrame::IsVertLR(), SwFrame::IsVertLRBT(), Left, SwRect::Left(), mbIsSwapped, Top, SwRect::Top(), and SwRect::Width().
Referenced by SwTextAdjuster::CalcFlyPortion(), SwTextFormatter::CalcFlyWidth(), objectpositioning::SwAsCharAnchoredObjectPosition::CalcPosition(), CalcPreps(), SwTextFormatter::ChkFlyUnderflow(), GetAutoPos(), GetCharRect(), SwTextFly::GetMaxBottom(), GetModelPositionForViewPoint_(), lcl_DrawSpecial(), PaintExtraData(), PaintSwFrame(), and SwitchVerticalToHorizontal().
tools::Long SwTextFrame::SwitchVerticalToHorizontal | ( | tools::Long | nLimit | ) | const |
Calculates the a limit value when switching from vertical to horizontal layout.
Definition at line 660 of file txtfrm.cxx.
References Point, and SwitchVerticalToHorizontal().
The WouldFit equivalent for temporarily rewired TextFrames nMaxHeight returns the required size here too and bSplit determines whether the paragraph needs to be split.
We pass the potential predecessor for the distance calculation
Definition at line 3260 of file txtfrm.cxx.
References SwFrameAreaDefinition::getFramePrintArea(), SwFrame::GetUpper(), IsLocked(), NONE, PROTOCOL_ENTER, TestFormat, Width, and WouldFit().
|
overridevirtual |
Reimplemented from SwContentFrame.
Definition at line 1293 of file frmcrsr.cxx.
References SwPaM::GetPoint(), SwTextCursor::IsRightMargin(), SwTextCursor::SetRightMargin(), and UnitDown_().
Definition at line 1149 of file frmcrsr.cxx.
References SwTextCursor::CharCursorToLine(), COMPLETE_STRING, SwTextCursor::GetCharRect(), SwRootFrame::GetCurrShell(), SwTextIter::GetEnd(), GetFollow(), SwContentFrame::GetFollow(), GetFormatted(), SwFrameAreaDefinition::getFrameArea(), GetKeyCursorOfst(), SwPaM::GetMarkNode(), SwTextCursor::GetModelPositionForViewPoint(), SwTextIter::GetNextLine(), SwPosition::GetNodeIndex(), GetOffset(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwFrame::getRootFrame(), SwTextIter::GetStart(), SwTextSizeInfo::GetText(), SwViewShell::GetViewOptions(), SwViewOption::IsCursorInProtectedArea(), IsEmpty(), SwTextSizeInfo::IsFirstMulti(), IsHiddenNow(), SwFrame::IsInTab(), SwTextSizeInfo::IsMulti(), SwFrame::IsProtected(), SwFrame::IsVertical(), MapModelToViewPos(), MapViewToModelPos(), min(), MIN_OFFSET_STEP, SwTextIter::NextLine(), nPos, SwRect::Pos(), SwRect::SSize(), SwNode::StartOfSectionNode(), sw_ChangeOffset, SwapWidthAndHeight(), SwRect::Top(), SwContentFrame::UnitDown(), and SwRect::Width().
Referenced by UnitDown().
|
overridevirtual |
Reimplemented from SwContentFrame.
Definition at line 1274 of file frmcrsr.cxx.
References SwPaM::GetPoint(), SwTextCursor::IsRightMargin(), and UnitUp_().
Definition at line 760 of file frmcrsr.cxx.
References SwRect::Bottom(), SwTextCursor::CharCursorToLine(), COMPLETE_STRING, SwContentFrame::FindMaster(), SwTextCursor::GetCharRect(), SwTextIter::GetCurr(), SwRootFrame::GetCurrShell(), GetFormatted(), SwFrameAreaDefinition::getFrameArea(), GetKeyCursorOfst(), SwTextIter::GetLength(), SwPaM::GetMarkNode(), SwTextCursor::GetModelPositionForViewPoint(), SwPosition::GetNodeIndex(), GetOffset(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwTextIter::GetPrevLine(), SwFrame::getRootFrame(), SwTextIter::GetStart(), SwViewShell::GetViewOptions(), SwViewOption::IsCursorInProtectedArea(), IsEmpty(), SwTextSizeInfo::IsFirstMulti(), IsHiddenNow(), SwFrame::IsInTab(), SwTextSizeInfo::IsMulti(), SwFrame::IsProtected(), MapModelToViewPos(), MapViewToModelPos(), MIN_OFFSET_STEP, nPos, SwRect::Pos(), SwTextIter::PrevLine(), SwRect::SSize(), SwNode::StartOfSectionNode(), sw_ChangeOffset, SwTextIter::Top(), SwContentFrame::UnitUp(), and SwRect::Width().
Referenced by UnitUp().
|
inlineprivate |
Definition at line 251 of file txtfrm.hxx.
Referenced by TextFrameLockGuard::~TextFrameLockGuard().
|
private |
Definition at line 4128 of file txtfrm.cxx.
References SwView::GetEditWin(), SwEditWin::GetFrameControlsManager(), GetTextNodeFirst(), SwWrtShell::GetView(), SwViewShell::GetViewOptions(), SwViewOption::IsShowOutlineContentVisibilityButton(), and SwFrameControlsManager::SetOutlineContentVisibilityButton().
Referenced by PaintOutlineContentVisibilityButton().
|
private |
Definition at line 140 of file frmform.cxx.
References SwFrame::FindSctFrame(), SwFrame::GetUpper(), SwFrame::IsColumnFrame(), SwFrame::IsInFly(), SwFrame::IsInSct(), SwFrame::IsInTab(), Lower, swap(), and ValidateBodyFrame_().
Referenced by CalcFollow(), CalcPrepFootnoteAdjust(), ConnectFootnote(), and RemoveFootnote().
|
private |
Definition at line 84 of file frmform.cxx.
References SwFrame::Calc(), SwSectionFrame::ColLock(), SwSectionFrame::ColUnlock(), SwFrame::FindSctFrame(), SwRootFrame::GetCurrShell(), SwViewShell::GetOut(), GetPara(), SwFrame::getRootFrame(), SwFrame::GetUpper(), HasPara(), SwFrame::IsColLocked(), SwFrame::IsInFly(), SwFrame::IsInTab(), SwParaPortion::IsPrepMustFit(), ResetPreps(), SwParaPortion::SetPrepMustFit(), swap(), and SwFrame::ValidateText.
Referenced by CalcFollow(), CalcPrepFootnoteAdjust(), ConnectFootnote(), Format(), and RemoveFootnote().
void SwTextFrame::VisitPortions | ( | SwPortionHandler & | rPH | ) | const |
Visit all portions for Accessibility.
Definition at line 3967 of file txtfrm.cxx.
References SwPortionHandler::Finish(), SwLineLayout::GetFirstPortion(), SwLineLayout::GetNext(), SwLinePortion::GetNextPortion(), GetOffset(), GetPara(), SwLinePortion::HandlePortion(), SwFrameAreaDefinition::isFrameAreaDefinitionValid(), SwPortionHandler::LineBreak(), and SwPortionHandler::Skip().
Referenced by SwAccessibleParagraph::UpdatePortionData().
|
overridevirtual |
nMaxHeight is the required height bSplit indicates, that the paragraph has to be split bTst indicates, that we are currently doing a test formatting
We should not and don't need to reformat.
We assume that we already formatted and that the formatting data is still current.
We also assume that the frame width of the Master and Follow are the same. That's why we're not calling FindBreak() for FindOrphans(). The required height is coming from nMaxHeight.
Reimplemented from SwContentFrame.
Definition at line 3284 of file txtfrm.cxx.
References Bottom, SwTextIter::Bottom(), GetFollow(), GetFormatted(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetHeight(), SwTextIter::GetLineHeight(), HasPara(), Height, SwRect::Height(), IsEmpty(), IsHiddenNow(), SwTextFrameBreak::IsInside(), SwTextFrameBreak::IsKeepAlways(), IsLocked(), IsSwapped(), SwRectFnSet::IsVert(), SwFrame::IsVertical(), IsWidow(), Left, SwTextIter::Next(), SetWidow(), SwRect::SSize(), swap(), SwTextIter::Top(), sw::WIDOW_MAGIC, Width, SwRect::Width(), and WidowsAndOrphans::WouldFit().
Referenced by TestFormat().
|
friend |
Definition at line 108 of file frmcrsr.cxx.
Referenced by GetCharRect(), LeftMargin(), UnitDown_(), and UnitUp_().
|
friend |
Definition at line 168 of file txtfrm.hxx.
|
friend |
Definition at line 167 of file txtfrm.hxx.
|
friend |
Definition at line 170 of file txtfrm.hxx.
|
friend |
Definition at line 169 of file txtfrm.hxx.
|
private |
redline merge data
Definition at line 203 of file txtfrm.hxx.
Referenced by DestroyImpl(), IsHiddenNow(), RegisterToNode(), SetMergedPara(), SwClientNotify(), and SwTextFrame().
|
private |
Definition at line 233 of file txtfrm.hxx.
|
private |
Definition at line 239 of file txtfrm.hxx.
|
private |
Definition at line 247 of file txtfrm.hxx.
|
private |
Definition at line 235 of file txtfrm.hxx.
Referenced by ConnectFootnote().
|
private |
Definition at line 240 of file txtfrm.hxx.
|
private |
Contains rotated portions.
Definition at line 238 of file txtfrm.hxx.
Referenced by SetHasRotatedPortions().
|
private |
Definition at line 234 of file txtfrm.hxx.
Referenced by ConnectFootnote().
|
private |
Definition at line 241 of file txtfrm.hxx.
Referenced by SwapWidthAndHeight(), SwitchHorizontalToVertical(), and SwitchVerticalToHorizontal().
|
private |
Definition at line 232 of file txtfrm.hxx.
|
private |
Definition at line 230 of file txtfrm.hxx.
|
private |
Definition at line 236 of file txtfrm.hxx.
Referenced by ResetRepaint(), and SetRepaint().
|
private |
Definition at line 231 of file txtfrm.hxx.
|
private |
Definition at line 200 of file txtfrm.hxx.
Referenced by CalcAdditionalFirstLineOffset().
|
private |
Definition at line 182 of file txtfrm.hxx.
Referenced by ChgThisLines(), and RecalcAllLines().
|
private |
Definition at line 207 of file txtfrm.hxx.
Referenced by ClearPara(), GetPara(), HasPara(), HasPara_(), and SetPara().
|
private |
Definition at line 187 of file txtfrm.hxx.
Referenced by CalcBaseOfstForFly().
|
private |
Definition at line 189 of file txtfrm.hxx.
Referenced by CalcBaseOfstForFly().
|
private |
The y position for wrap-through flys anchored at this paragraph.
Definition at line 191 of file txtfrm.hxx.
Referenced by CalcBaseOfstForFly(), and GetBaseVertOffsetForFly().
|
private |
Definition at line 192 of file txtfrm.hxx.
Referenced by ConnectFootnote(), and GetFootnoteLine().
|
private |
Definition at line 195 of file txtfrm.hxx.
Referenced by CalcHeightOfLastLine().
|
private |
Definition at line 205 of file txtfrm.hxx.
Referenced by dumpAsXmlAttributes(), HasNonLastSplitFlyDrawObj(), SetOffset(), and SetOffset_().
|
private |
Definition at line 183 of file txtfrm.hxx.
Referenced by ChgThisLines().
|
staticconstexprprivate |
Definition at line 179 of file txtfrm.hxx.
|
staticprivate |
SwLineLayout cache: the lines are not actually owned by the SwTextFrame but by this SwCache, so they will be deleted in large documents if there are too many of them, but the "valid" flags of the frame will still be set; GetFormatted() is the function that forces recreation of the SwLineLayout by Format() if necessary.
Definition at line 178 of file txtfrm.hxx.
Referenced by RemoveFromCache().