LibreOffice Module sw (master) 1
|
Small Helper class: Prepares a test format. More...
Public Member Functions | |
SwTestFormat (SwTextFrame *pTextFrame, const SwFrame *pPrv, SwTwips nMaxHeight) | |
~SwTestFormat () | |
Private Attributes | |
SwTextFrame * | pFrame |
SwParaPortion * | pOldPara |
SwRect | aOldFrame |
SwRect | aOldPrt |
Small Helper class: Prepares a test format.
The frame is changed in size and position, its SwParaPortion is moved aside and a new one is created. To achieve this, run formatting with bTestFormat flag set. In the destructor the TextFrame is reset to its original state.
Definition at line 3244 of file txtfrm.cxx.
SwTestFormat::SwTestFormat | ( | SwTextFrame * | pTextFrame, |
const SwFrame * | pPrv, | ||
SwTwips | nMaxHeight | ||
) |
Definition at line 3254 of file txtfrm.cxx.
References aOldFrame, aOldPrt, SwBorderAttrs::CalcLeft(), SwBorderAttrs::CalcRight(), SwTextFrame::Format_(), SwBorderAttrAccess::Get(), SwRectFnSet::GetBottom(), SwRectFnSet::GetBottomMargin(), SwFrame::GetCache(), SwRootFrame::GetCurrShell(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetHeight(), SwViewShell::GetOut(), SwTextFrame::GetPara(), SwFrame::GetPrev(), SwFrame::getRootFrame(), SwRectFnSet::GetTop(), SwFrame::GetUpper(), SwRectFnSet::GetWidth(), SwTextFrame::HasPara(), SwTextFrame::IsSwapped(), SwRectFnSet::IsVert(), SwFrame::IsVertical(), pFrame, pOldPara, SwRect::Pos(), SwRectFnSet::SetHeight(), SwTextFrame::SetPara(), SwRectFnSet::SetPosX(), SwRectFnSet::SetPosY(), SwFrameAreaDefinition::FrameAreaWriteAccess::setSwRect(), SwRectFnSet::SetWidth(), and SwTextFrame::SwapWidthAndHeight().
SwTestFormat::~SwTestFormat | ( | ) |
Definition at line 3317 of file txtfrm.cxx.
References aOldFrame, aOldPrt, pFrame, pOldPara, SwTextFrame::SetPara(), SwFrameAreaDefinition::FrameAreaWriteAccess::setSwRect(), and SwFrameAreaDefinition::FramePrintAreaWriteAccess::setSwRect().
|
private |
Definition at line 3248 of file txtfrm.cxx.
Referenced by SwTestFormat(), and ~SwTestFormat().
|
private |
Definition at line 3248 of file txtfrm.cxx.
Referenced by SwTestFormat(), and ~SwTestFormat().
|
private |
Definition at line 3246 of file txtfrm.cxx.
Referenced by SwTestFormat(), and ~SwTestFormat().
|
private |
Definition at line 3247 of file txtfrm.cxx.
Referenced by SwTestFormat(), and ~SwTestFormat().