LibreOffice Module sw (master)  1
Classes | Namespaces | Macros | Functions | Variables
frmtool.hxx File Reference
#include <swtypes.hxx>
#include "frame.hxx"
#include "txtfrm.hxx"
#include "swcache.hxx"
#include <swatrset.hxx>
Include dependency graph for frmtool.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SwFrameNotify
 
class  SwLayNotify
 
class  SwFlyNotify
 
class  SwContentNotify
 
class  SwBorderAttrs
 
class  SwBorderAttrAccess
 
class  SwOrderIter
 
class  StackHack
 
class  SwDeletionChecker
 helper class to check if a frame has been deleted during an operation WARNING! This should only be used as a last and desperate means to make the code robust. More...
 

Namespaces

 sw
 Dialog to specify the properties of date form field.
 
 basegfx
 
 basegfx::utils
 

Macros

#define FAR_AWAY   (SAL_MAX_INT32 - 20000)
 
#define BROWSE_HEIGHT   (56700L * 10L)
 
#define GRFNUM_NO   0
 
#define GRFNUM_YES   1
 
#define GRFNUM_REPLACE   2
 

Functions

void AppendObjs (const SwFrameFormats *pTable, sal_uLong nIndex, SwFrame *pFrame, SwPageFrame *pPage, SwDoc *doc)
 
void AppendObjsOfNode (SwFrameFormats const *pTable, sal_uLong nIndex, SwFrame *pFrame, SwPageFrame *pPage, SwDoc *pDoc, std::vector< sw::Extent >::const_iterator const *pIter, std::vector< sw::Extent >::const_iterator const *pEnd, SwTextNode const *pFirstNode, SwTextNode const *pLastNode)
 
void RemoveHiddenObjsOfNode (SwTextNode const &rNode, std::vector< sw::Extent >::const_iterator const *pIter, std::vector< sw::Extent >::const_iterator const *pEnd, SwTextNode const *pFirstNode, SwTextNode const *pLastNode)
 
bool IsAnchoredObjShown (SwTextFrame const &rFrame, SwFormatAnchor const &rAnchor)
 
void AppendAllObjs (const SwFrameFormats *pTable, const SwFrame *pSib)
 
void DrawGraphic (const SvxBrushItem *, vcl::RenderContext *, const SwRect &rOrg, const SwRect &rOut, const sal_uInt8 nGrfNum=GRFNUM_NO, const bool bConsiderBackgroundTransparency=false)
 
bool DrawFillAttributes (const drawinglayer::attribute::SdrAllFillAttributesHelperPtr &rFillAttributes, const SwRect &rOriginalLayoutRect, const SwRegionRects &rPaintRegion, const basegfx::utils::B2DClipState &rClipState, vcl::RenderContext &rOut)
 
void paintGraphicUsingPrimitivesHelper (vcl::RenderContext &rOutputDevice, GraphicObject const &rGraphicObj, GraphicAttr const &rGraphicAttr, const basegfx::B2DHomMatrix &rGraphicTransform, const OUString &rName, const OUString &rTitle, const OUString &rDescription)
 
void SwAlignRect (SwRect &rRect, const SwViewShell *pSh, const vcl::RenderContext *pRenderContext)
 Function <SwAlignRect(..)> is also used outside this file. More...
 
void SwAlignGrfRect (SwRect *pGrfRect, const vcl::RenderContext &rOut)
 Method to pixel-align rectangle for drawing graphic object. More...
 
void PaintCharacterBorder (const SwFont &rFont, const SwRect &rPaintArea, const bool bVerticalLayout, const bool bVerticalLayoutLRBT, const bool bJoinWithPrev, const bool bJoinWithNext)
 Paint border around a run of characters using frame painting code. More...
 
SwFlyFrameGetFlyFromMarked (const SdrMarkList *pLst, SwViewShell *pSh)
 
SwFrameSaveContent (SwLayoutFrame *pLay, SwFrame *pStart=nullptr)
 
void RestoreContent (SwFrame *pSav, SwLayoutFrame *pParent, SwFrame *pSibling)
 
void InsertCnt_ (SwLayoutFrame *pLay, SwDoc *pDoc, sal_uLong nIndex, bool bPages=false, sal_uLong nEndIndex=0, SwFrame *pPrv=nullptr, sw::FrameMode eMode=sw::FrameMode::New)
 
void MakeFrames (SwDoc *pDoc, const SwNodeIndex &rSttIdx, const SwNodeIndex &rEndIdx)
 
SwTwips CalcRowRstHeight (SwLayoutFrame *pRow)
 
long CalcHeightWithFlys (const SwFrame *pFrame)
 
SwPageFrameInsertNewPage (SwPageDesc &rDesc, SwFrame *pUpper, bool bOdd, bool bFirst, bool bInsertEmpty, bool bFootnote, SwFrame *pSibling)
 
void RegistFlys (SwPageFrame *, const SwLayoutFrame *)
 
void Notify (SwFlyFrame *pFly, SwPageFrame *pOld, const SwRect &rOld, const SwRect *pOldRect=nullptr)
 Notify the background based on the difference between old and new rectangle. More...
 
void Notify_Background (const SdrObject *pObj, SwPageFrame *pPage, const SwRect &rRect, const PrepareHint eHint, const bool bInva)
 
const SwFrameGetVirtualUpper (const SwFrame *pFrame, const Point &rPos)
 Provides the Upper of an anchor in paragraph-bound objects. More...
 
bool Is_Lower_Of (const SwFrame *pCurrFrame, const SdrObject *pObj)
 
const SwFrameFindContext (const SwFrame *pFrame, SwFrameType nAdditionalContextTyp)
 provides the area of a frame in that no Fly from another area can overlap More...
 
bool IsFrameInSameContext (const SwFrame *pInnerFrame, const SwFrame *pFrame)
 
const SwFrameFindPage (const SwRect &rRect, const SwFrame *pPage)
 
SwFrameGetFrameOfModify (const SwRootFrame *pLayout, SwModify const &, SwFrameType const nFrameType, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr)
 
bool IsExtraData (const SwDoc *pDoc)
 
void CalcContent (SwLayoutFrame *pLay, bool bNoColl=false)
 
void GetSpacingValuesOfFrame (const SwFrame &rFrame, SwTwips &onLowerSpacing, SwTwips &onLineSpacing, bool &obIsLineSpacingProportional)
 method to determine the spacing values of a frame More...
 
const SwContentFrameGetCellContent (const SwLayoutFrame &rCell_)
 method to get the content of the table cell More...
 

Variables

bool bObjsDirect
 
bool bDontCreateObjects
 
bool bSetCompletePaintOnInvalidate
 

Macro Definition Documentation

#define BROWSE_HEIGHT   (56700L * 10L)
#define FAR_AWAY   (SAL_MAX_INT32 - 20000)
#define GRFNUM_NO   0

Definition at line 54 of file frmtool.hxx.

Referenced by DrawGraphic(), and SwFrame::PaintSwFrameBackground().

#define GRFNUM_REPLACE   2

Definition at line 56 of file frmtool.hxx.

Referenced by DrawGraphic(), and SwGrfNumPortion::Paint().

#define GRFNUM_YES   1

Definition at line 55 of file frmtool.hxx.

Referenced by SwGrfNumPortion::Paint().

Function Documentation

void AppendAllObjs ( const SwFrameFormats pTable,
const SwFrame pSib 
)
void AppendObjs ( const SwFrameFormats pTable,
sal_uLong  nIndex,
SwFrame pFrame,
SwPageFrame pPage,
SwDoc doc 
)
void AppendObjsOfNode ( SwFrameFormats const *  pTable,
sal_uLong  nIndex,
SwFrame pFrame,
SwPageFrame pPage,
SwDoc pDoc,
std::vector< sw::Extent >::const_iterator const *  pIter,
std::vector< sw::Extent >::const_iterator const *  pEnd,
SwTextNode const *  pFirstNode,
SwTextNode const *  pLastNode 
)
void CalcContent ( SwLayoutFrame pLay,
bool  bNoColl = false 
)

Definition at line 1362 of file fly.cxx.

References SwFrame::Calc(), SwSectionFrame::CalcFootnoteContent(), SwFlowFrame::CastFlowFrame(), SwLayouter::CollectEndnotes(), CONSIDER_WRAP_ON_OBJECT_POSITION, SwLayoutFrame::ContainsAny(), SwLayoutFrame::ContainsContent(), SwFrame::FindNext(), SwFrame::FindPageFrame(), SwFrame::FindPrev(), SwFrame::FindSctFrame(), SwFrame::FindTabFrame(), SwObjectFormatter::FormatObj(), IDocumentSettingAccess::get(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFrame::GetAttrSet(), SwFrame::GetBreakItem(), SwRootFrame::GetCurrShell(), SwFormat::GetDoc(), SwFrame::GetDrawObjs(), SwSectionFrame::GetFollow(), SwLayoutFrame::GetFormat(), SwFrameAreaDefinition::getFrameArea(), SwAnchoredObject::GetFrameFormat(), SwFrameAreaDefinition::getFramePrintArea(), SwDoc::getIDocumentLayoutAccess(), SwFormat::getIDocumentSettingAccess(), SwAttrSet::GetKeep(), IDocumentLayoutAccess::GetLayouter(), SwAnchoredObject::GetObjRect(), SwViewShell::GetOut(), SwFrame::getRootFrame(), SwFormat::GetSurround(), SwFrame::GetUpper(), SwFlowFrame::HasFollow(), SwRect::Height(), i, SwLayouter::InsertEndnotes(), SwFrame::InvalidatePage(), SwFrame::InvalidatePos_(), SwFrame::InvalidateSize_(), SwFlowFrame::IsAnFollow(), SwLayoutFrame::IsAnLower(), SwSectionFrame::IsEndnAtEnd(), SwFrame::IsFlowFrame(), SwFlowFrame::IsFollow(), SwSectionFrame::IsFootnoteLock(), SwAnchoredObject::IsFormatPossible(), SwFrameAreaDefinition::isFrameAreaPositionValid(), SwFrame::IsInSct(), SwFrame::IsInTab(), SwFlowFrame::IsJoinLocked(), SwFlowFrame::IsKeep(), SwFlowFrame::IsKeepFwdMoveAllowed(), StackHack::IsLocked(), SwFrame::IsSctFrame(), SwFrame::IsTabFrame(), SwFrame::IsTextFrame(), SwFrame::IsVertical(), SwModify::LockModify(), SwAnchoredObject::PositionLocked(), PREP_FIXSIZE_CHG, SwFrame::Prepare(), SwSectionFrame::SetFootnoteLock(), SwFormat::SetFormatAttr(), SwFormatSurround::SetSurround(), SwSortedObjs::size(), SwModify::UnlockModify(), and SwRect::Width().

Referenced by SwFlyFreeFrame::CheckClip(), ExtraFormatToPositionObjs::FormatSectionToPositionObjs(), and SwLayoutFrame::FormatWidthCols().

long CalcHeightWithFlys ( const SwFrame pFrame)
SwTwips CalcRowRstHeight ( SwLayoutFrame pRow)
bool DrawFillAttributes ( const drawinglayer::attribute::SdrAllFillAttributesHelperPtr rFillAttributes,
const SwRect rOriginalLayoutRect,
const SwRegionRects rPaintRegion,
const basegfx::utils::B2DClipState rClipState,
vcl::RenderContext rOut 
)
void DrawGraphic ( const SvxBrushItem ,
vcl::RenderContext ,
const SwRect rOrg,
const SwRect rOut,
const sal_uInt8  nGrfNum = GRFNUM_NO,
const bool  bConsiderBackgroundTransparency = false 
)

init variable <bGrfBackgrdAlreadDrawn> to indicate, if background of graphic is already drawn or not.

Definition at line 1797 of file paintfrm.cxx.

References aGlobalRetoucheColor, SwRect::Bottom(), SwPaintProperties::bSFlyMetafile, COL_TRANSPARENT(), Default, Graphic::DrawEx(), OutputDevice::DrawRect(), GraphicObject::DrawTiled(), OutputDevice::DrawTransparent(), ePos, GraphicObject::GetAttr(), SvxBrushItem::GetColor(), SwViewShell::GetDoc(), OutputDevice::GetDrawMode(), OutputDevice::GetFillColor(), OutputDevice::GetFont(), SvxBrushItem::GetGraphic(), SvxBrushItem::GetGraphicObject(), SvxBrushItem::GetGraphicPos(), GetGraphicSizeTwip(), StyleSettings::GetHighContrastMode(), SfxObjectShell::GetMedium(), SfxMedium::GetName(), SwDoc::GetPersist(), SwViewShell::GetReplacementBitmap(), Color::GetRGBColor(), Application::GetSettings(), AllSettings::GetStyleSettings(), GraphicAttr::GetTransparency(), Graphic::GetType(), SwViewShell::GetViewOptions(), SwViewShell::GetWin(), GPOS_AREA, GPOS_LB, GPOS_LM, GPOS_LT, GPOS_MB, GPOS_MM, GPOS_MT, GPOS_NONE, GPOS_RB, GPOS_RM, GPOS_RT, GPOS_TILED, GRFNUM_NO, GRFNUM_REPLACE, SwRect::HasArea(), SfxObjectShell::HasName(), Size::Height(), SwRect::Height(), i, tools::Polygon::Insert(), OutputDevice::IntersectClipRegion(), SwRect::Intersection(), SwViewOption::IsGraphic(), SwRect::IsInside(), SwRect::IsOver(), Graphic::IsSupportedGraphic(), GraphicObject::IsTransparent(), lcl_DrawGraphic(), lcl_DrawGraphicBackgrd(), SwRect::Left(), OutputDevice::Pop(), SwRect::Pos(), SwPaintProperties::pSGlobalShell, OutputDevice::Push(), SwRect::Right(), OutputDevice::SetDrawMode(), OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), SwRect::SSize(), SwRect::SVRect(), SwAlignRect(), SwRect::Top(), Transparent, Size::Width(), and SwRect::Width().

Referenced by lcl_ClearArea(), SwGrfNumPortion::Paint(), and SwFrame::PaintSwFrameBackground().

const SwFrame* FindContext ( const SwFrame pFrame,
SwFrameType  nAdditionalContextTyp 
)
const SwFrame* FindPage ( const SwRect rRect,
const SwFrame pPage 
)
const SwContentFrame* GetCellContent ( const SwLayoutFrame rCell)

method to get the content of the table cell

Content from any nested tables will be omitted. Note: line spacing value is only determined for text frames

Parameters
rCell_input parameter - the cell which should be searched for content.

return pointer to the found content frame or 0

method to get the content of the table cell

Definition at line 3702 of file frmtool.cxx.

References SwLayoutFrame::ContainsContent(), SwTabFrame::FindLastContentOrTable(), SwFrame::FindNextCnt(), SwFrame::FindTabFrame(), and SwLayoutFrame::IsAnLower().

Referenced by SwDoc::GetTabRows(), SwFEShell::SelTableRowCol(), and SwDoc::SetTabRows().

SwFlyFrame* GetFlyFromMarked ( const SdrMarkList pLst,
SwViewShell pSh 
)
SwFrame* GetFrameOfModify ( const SwRootFrame pLayout,
SwModify const &  ,
SwFrameType const  nFrameType,
const SwPosition pPos = nullptr,
std::pair< Point, bool > const *  pViewPosAndCalcFrame = nullptr 
)
See also
SwContentNode::getLayoutFrame()
Parameters
pPosDocument model position; for a text frame, the returned frame will be one containing this position.
pViewPosAndCalcFrameFirst is a point in the document view; the returned frame will be the one with the minimal distance to this point. To get the first frame in the document, pass in a default-initialized Point with coordinates 0,0. Second indicates whether the frames should be formatted before retrieving their position for the test; this cannot be done by every caller so use with care!

Referenced by SwEnhancedPDFExportHelper::EnhancedPDFExport(), SwFrameFormat::FindLayoutRect(), SwContentNode::FindLayoutRect(), SwContentNode::FindPageFrameRect(), SwFrameFormat::FindRealSdrObject(), SwNode2LayImpl::GetFrame(), SwFlyFrameFormat::GetFrame(), SwContentNode::getLayoutFrame(), and lcl_GetFrameOfNode().

void GetSpacingValuesOfFrame ( const SwFrame rFrame,
SwTwips onLowerSpacing,
SwTwips onLineSpacing,
bool &  obIsLineSpacingProportional 
)

method to determine the spacing values of a frame

#i28701# Values only provided for flow frames (table, section or text frames) Note: line spacing value is only determined for text frames #i102458# Add output parameter <obIsLineSpacingProportional>

Parameters
rFrameinput parameter - frame, for which the spacing values are determined.
onPrevLowerSpacingoutput parameter - lower spacing of the frame in SwTwips
onPrevLineSpacingoutput parameter - line spacing of the frame in SwTwips
obIsLineSpacingProportionalOD 2004-03-10 #i28701# OD 2009-08-28 #i102458# Add output parameter <obIsLineSpacingProportional>

Definition at line 3671 of file frmtool.cxx.

References SwFrame::GetAttrSet(), SvxULSpaceItem::GetLower(), SwAttrSet::GetULSpace(), SwFrame::IsFlowFrame(), and SwFrame::IsTextFrame().

Referenced by SwFlowFrame::CalcUpperSpace(), and SwFlowFrame::GetUpperSpaceAmountConsideredForPrevFrame().

const SwFrame* GetVirtualUpper ( const SwFrame pFrame,
const Point rPos 
)

Provides the Upper of an anchor in paragraph-bound objects.

If the latter is a chained border or a footnote, the "virtual" Upper might be returned.

Definition at line 3312 of file frmtool.cxx.

References SwFrame::FindFlyFrame(), SwFootnoteFrame::GetFollow(), SwFrameAreaDefinition::getFrameArea(), SwFlyFrame::GetNextLink(), SwFrame::GetUpper(), SwFrame::IsFootnoteFrame(), SwRect::IsInside(), and SwFrame::IsTextFrame().

Referenced by SwTextFly::GetTop(), Is_Lower_Of(), and IsFrameInSameContext().

void InsertCnt_ ( SwLayoutFrame pLay,
SwDoc pDoc,
sal_uLong  nIndex,
bool  bPages = false,
sal_uLong  nEndIndex = 0,
SwFrame pPrv = nullptr,
sw::FrameMode  eMode = sw::FrameMode::New 
)

Definition at line 1380 of file frmtool.cxx.

References AppendAllObjs(), AppendObjs(), bDontCreateObjects, IDocumentTimerAccess::BlockIdling(), bObjsDirect, SwSection::CalcHiddenFlag(), SwFrame::CheckDirChange(), SwLayoutCache::ClearImpl(), SwLayoutCache::CompareLayout(), SwLayoutFrame::ContainsContent(), SwSectionFrame::DelEmpty(), Delete, SwFrame::DestroyFrame(), SwFrameFormats::empty(), SwNode::EndOfSectionIndex(), SwFrame::FindFlyFrame(), SwTabFrame::FindMaster(), SwFrame::FindNextCnt(), SwFrame::FindPageFrame(), SwFrame::FindPrevCnt(), SwFrame::FindSctFrame(), SwTable::GCLines(), SwRootFrame::GetCurrShell(), SwSectionFrame::GetFollow(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentTimerAccess(), SwDoc::GetLayoutCache(), SwContentNode::getLayoutFrame(), SwFrame::GetNextLayoutLeaf(), SwNode::GetNodes(), SwDoc::GetNodes(), SwFrame::GetPrev(), IDocumentRedlineAccess::GetRedline(), SwNode::GetRedlineMergeFlag(), SwFrame::getRootFrame(), SwSectionNode::GetSection(), SwDoc::GetSpzFrameFormats(), SwTableNode::GetTable(), SwNode::GetTextNode(), SwFrame::GetUpper(), SwNode::Hidden, SwFrame::ImplFindFootnoteFrame(), Init(), SwFrame::InsertBehind(), SwViewShell::InvalidateAccessibleParaFlowRelation(), SwPageFrame::InvalidateContent(), SwPageFrame::InvalidateFlyContent(), SwFrame::InvalidateInfFlags(), SwFrame::InvalidatePage(), SwFrame::InvalidateSize(), SwRootFrame::IsCallbackActionEnabled(), SwFrame::IsColLocked(), SwFrame::IsColumnFrame(), SwNode::IsContentNode(), SwNode::IsCreateFrameWhenHidingRedlines(), SwNode::IsEndNode(), SwFlowFrame::IsFollow(), SwRootFrame::IsHideRedlines(), SwFrame::IsInFly(), SwFrame::IsInFootnote(), SwFrame::IsInSct(), SwFrame::IsInTab(), SwFrame::IsLayoutFrame(), SwFrame::IsSctFrame(), SwNode::IsSectionNode(), SwNode::IsStartNode(), SwNode::IsTableNode(), SwFrame::IsTextFrame(), SwNode::IsTextNode(), lcl_SetPos(), SwLayoutFrame::Lower(), SwTableFormulaUpdate::m_eFlags, SwContentNode::MakeFrame(), SwTableNode::MakeFrame(), SwSectionNode::MakeFrame(), sw::MakeTextFrame(), SwNode::NonFirst, PREP_QUOVADIS, SwFrame::Prepare(), SwFrame::RemoveFromLayout(), SAL_WARN, SwRootFrame::SetCallbackActionEnabled(), SwFlowFrame::SetFollow(), SwNode::StartOfSectionNode(), SwFlyStartNode, TBL_BOXPTR, IDocumentTimerAccess::UnblockIdling(), and IDocumentFieldsAccess::UpdateTableFields().

Referenced by SwFootnoteBossFrame::AppendFootnote(), SwTextFrame::ConnectFootnote(), SwRootFrame::Init(), SwFlyFrame::InsertCnt(), MakeFrames(), SwNode2LayImpl::RestoreUpperFrames(), SwCellFrame::SwCellFrame(), SwHeadFootFrame::SwHeadFootFrame(), and SwFlyFrame::UnchainFrames().

SwPageFrame* InsertNewPage ( SwPageDesc rDesc,
SwFrame pUpper,
bool  bOdd,
bool  bFirst,
bool  bInsertEmpty,
bool  bFootnote,
SwFrame pSibling 
)
bool Is_Lower_Of ( const SwFrame pCurrFrame,
const SdrObject pObj 
)
bool IsAnchoredObjShown ( SwTextFrame const &  rFrame,
SwFormatAnchor const &  rAnchor 
)
bool IsExtraData ( const SwDoc pDoc)
bool IsFrameInSameContext ( const SwFrame pInnerFrame,
const SwFrame pFrame 
)
void MakeFrames ( SwDoc pDoc,
const SwNodeIndex rSttIdx,
const SwNodeIndex rEndIdx 
)
void Notify ( SwFlyFrame pFly,
SwPageFrame pOld,
const SwRect rOld,
const SwRect pOldRect = nullptr 
)
void Notify_Background ( const SdrObject pObj,
SwPageFrame pPage,
const SwRect rRect,
const PrepareHint  eHint,
const bool  bInva 
)

Definition at line 3134 of file frmtool.cxx.

References SwAnchoredObject::AnchorFrame(), SwRect::Bottom(), SwLayoutFrame::ContainsContent(), FAR_AWAY, SwFrame::FindFlyFrame(), SwFrame::FindFooterOrHeader(), SwFrame::FindTabFrame(), SwContact::GetAnchoredObj(), SwAnchoredObject::GetAnchorFrame(), SwRootFrame::GetCurrShell(), SwLayoutFrame::GetFormat(), SwFlyFrame::GetFormat(), SwFrameAreaDefinition::getFrameArea(), SwFormatHoriOrient::GetHoriOrient(), SwFormat::GetHoriOrient(), SdrObject::GetLastBoundRect(), SwContentFrame::GetNextContentFrame(), SdrObject::GetOrdNum(), SdrObject::GetOrdNumDirect(), SwFrame::GetPrev(), SwFormatHoriOrient::GetRelationOrient(), SwFrame::getRootFrame(), SwPageFrame::GetSortedObjs(), SwFormatSurround::GetSurround(), SwFormat::GetSurround(), SwFrame::GetUpper(), GetUserCall(), SwFormatVertOrient::GetVertOrient(), SwFormat::GetVertOrient(), SwFlyFrame::GetVirtDrawObj(), SwFrame::InvalidatePos(), SwFrame::InvalidatePrt(), SwFrame::InvalidateSize(), SwViewShell::InvalidateWindows(), SwLayoutFrame::IsAnLower(), SwFlyFrame::IsAutoPos(), SwFrame::IsCellFrame(), SwFrame::IsColumnFrame(), SwFlyFrame::IsFlyAtContentFrame(), SwFlyFrame::IsFlyLayFrame(), SwFlowFrame::IsFollow(), SwFrame::IsInFly(), SwFrame::IsInTab(), SwFlyFrame::IsLowerOf(), SwRect::IsOver(), lcl_CheckFlowBack(), lcl_NotifyContent(), SwRect::Left(), SwLayoutFrame::Lower(), SwPostItHelper::NONE, PREP_FLY_ARRIVE, PREP_FLY_LEAVE, SwRect::Right(), and SwRect::Top().

Referenced by lcl_NotifyBackgroundOfObj(), SwContact::MoveObjToInvisibleLayer(), SwContact::MoveObjToVisibleLayer(), SwDrawContact::NotifyBackgrdOfAllVirtObjs(), SwFlyFreeFrame::NotifyBackground(), SwAnchoredDrawObject::NotifyBackground(), and SwFlyAtContentFrame::SetAbsPos().

void PaintCharacterBorder ( const SwFont rFont,
const SwRect rPaintArea,
const bool  bVerticalLayout,
const bool  bVerticalLayoutLRBT,
const bool  bJoinWithPrev,
const bool  bJoinWithNext 
)

Paint border around a run of characters using frame painting code.

Parameters
[in]rFontfont object of actual text, which specify the border
[in]rPaintArearectangle area in which line portion takes place
[in]bVerticalLayoutcorresponding text frame verticality
[in]bVerticalLayoutLRBTcorresponding text frame verticality (LRBT subset)
[in]bJoinWithPrevleave border with which actual border joins to the previous portion
[in]bJoinWithNextleave border with which actual border joins to the next portion

Definition at line 4727 of file paintfrm.cxx.

References drawinglayer::primitive2d::Primitive2DContainer::append(), basegfx::utils::createScaleTranslateB2DHomMatrix(), SwFont::GetAbsBottomBorder(), SwFont::GetAbsLeftBorder(), SwFont::GetAbsRightBorder(), SwFont::GetAbsShadowLocation(), SwFont::GetAbsTopBorder(), SwFont::GetOrientation(), SwViewShell::GetOut(), SwFont::GetShadowColor(), SwFont::GetShadowWidth(), SwRect::Height(), lcl_PaintShadow(), SwRect::Left(), SwPaintProperties::pBLines, SwPaintProperties::pSGlobalShell, SwAlignRect(), SwRect::Top(), and SwRect::Width().

Referenced by SwTextPaintInfo::DrawBorder().

void paintGraphicUsingPrimitivesHelper ( vcl::RenderContext rOutputDevice,
GraphicObject const &  rGraphicObj,
GraphicAttr const &  rGraphicAttr,
const basegfx::B2DHomMatrix rGraphicTransform,
const OUString &  rName,
const OUString &  rTitle,
const OUString &  rDescription 
)
void RegistFlys ( SwPageFrame ,
const SwLayoutFrame  
)
void RemoveHiddenObjsOfNode ( SwTextNode const &  rNode,
std::vector< sw::Extent >::const_iterator const *  pIter,
std::vector< sw::Extent >::const_iterator const *  pEnd,
SwTextNode const *  pFirstNode,
SwTextNode const *  pLastNode 
)
void RestoreContent ( SwFrame pSav,
SwLayoutFrame pParent,
SwFrame pSibling 
)
SwFrame* SaveContent ( SwLayoutFrame pLay,
SwFrame pStart = nullptr 
)
void SwAlignGrfRect ( SwRect pGrfRect,
const vcl::RenderContext rOut 
)

Method to pixel-align rectangle for drawing graphic object.

Because we are drawing graphics from the left-top-corner in conjunction with size coordinates, these coordinates have to be calculated at a pixel level. Thus, we convert the rectangle to pixel and then convert to left-top-corner and then get size of pixel rectangle back to logic. This calculation is necessary, because there's a different between the conversion from logic to pixel of a normal rectangle with its left-top- and right-bottom-corner and the same conversion of the same rectangle with left-top-corner and size.

NOTE: Call this method before each <GraphicObject.Draw(...)>

Definition at line 1213 of file paintfrm.cxx.

References tools::Rectangle::GetSize(), OutputDevice::LogicToPixel(), OutputDevice::PixelToLogic(), SwRect::Pos(), SwRect::SSize(), SwRect::SVRect(), and tools::Rectangle::TopLeft().

Referenced by lcl_DrawGraphic(), and SwNoTextFrame::PaintPicture().

void SwAlignRect ( SwRect rRect,
const SwViewShell pSh,
const vcl::RenderContext pRenderContext 
)

Variable Documentation

bool bDontCreateObjects
bool bObjsDirect

Definition at line 79 of file frmtool.cxx.

Referenced by InsertCnt_(), MakeFrames(), and SwHeadFootFrame::SwHeadFootFrame().

bool bSetCompletePaintOnInvalidate

Definition at line 81 of file frmtool.cxx.

Referenced by SwFlyAtContentFrame::MakeAll(), and SwContentNotify::~SwContentNotify().