LibreOffice Module sw (master)  1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes | List of all members
objectpositioning::SwAnchoredObjectPosition Class Referenceabstract

#include <anchoredobjectposition.hxx>

Inheritance diagram for objectpositioning::SwAnchoredObjectPosition:
[legend]
Collaboration diagram for objectpositioning::SwAnchoredObjectPosition:
[legend]

Public Member Functions

virtual void CalcPosition ()=0
 

Protected Member Functions

 SwAnchoredObjectPosition (SdrObject &_rDrawObj)
 
virtual ~SwAnchoredObjectPosition ()
 
SdrObjectGetObject () const
 
bool IsObjFly () const
 
SwAnchoredObjectGetAnchoredObj () const
 
SwFrameGetAnchorFrame () const
 
const SwFrameFormatGetFrameFormat () const
 
bool DoesObjFollowsTextFlow () const
 
bool DoesObjLayoutInCell () const
 
virtual bool IsAnchoredToChar () const
 
virtual const SwFrameToCharOrientFrame () const
 
virtual const SwRectToCharRect () const
 
virtual SwTwips ToCharTopOfLine () const
 
SwTwips GetTopForObjPos (const SwFrame &_rFrame, const SwRectFn &_fnRect, const bool _bVert) const
 helper method to determine top of a frame for the vertical object positioning More...
 
void GetVertAlignmentValues (const SwFrame &_rVertOrientFrame, const SwFrame &_rPageAlignLayFrame, const sal_Int16 _eRelOrient, SwTwips &_orAlignAreaHeight, SwTwips &_orAlignAreaOffset) const
 
SwTwips GetVertRelPos (const SwFrame &_rVertOrientFrame, const SwFrame &_rPageAlignLayFrame, const sal_Int16 _eVertOrient, const sal_Int16 _eRelOrient, const SwTwips _nVertPos, const SvxLRSpaceItem &_rLRSpacing, const SvxULSpaceItem &_rULSpacing, SwTwips &_roVertOffsetToFrameAnchorPos) const
 
SwTwips AdjustVertRelPos (const SwTwips nTopOfAnch, const bool bVert, const bool bVertL2R, const SwFrame &rPageAlignLayFrame, const SwTwips nProposedRelPosY, const bool bFollowTextFlow, const bool bCheckBottom=true) const
 adjust calculated vertical in order to keep object inside 'page' alignment layout frame. More...
 
SwTwips CalcRelPosX (const SwFrame &_rHoriOrientFrame, const SwEnvironmentOfAnchoredObject &_rEnvOfObj, const SwFormatHoriOrient &_rHoriOrient, const SvxLRSpaceItem &_rLRSpacing, const SvxULSpaceItem &_rULSpacing, const bool _bObjWrapThrough, const SwTwips _nRelPosY, SwTwips &_roHoriOffsetToFrameAnchorPos) const
 calculate relative horizontal position More...
 
SwTwips AdjustHoriRelPos (const SwFrame &_rPageAlignLayFrame, const SwTwips _nProposedRelPosX) const
 adjust calculated horizontal in order to keep object inside 'page' alignment layout frame for object type position TO_CNTNT More...
 
void GetHoriAlignmentValues (const SwFrame &_rHoriOrientFrame, const SwFrame &_rPageAlignLayFrame, const sal_Int16 _eRelOrient, const bool _bObjWrapThrough, SwTwips &_orAlignAreaWidth, SwTwips &_orAlignAreaOffset, bool &_obAlignedRelToPage) const
 determine alignment values for horizontal position of object More...
 
SwTwips AdjustHoriRelPosForDrawAside (const SwFrame &_rHoriOrientFrame, const SwTwips _nProposedRelPosX, const SwTwips _nRelPosY, const sal_Int16 _eHoriOrient, const sal_Int16 _eRelOrient, const SvxLRSpaceItem &_rLRSpacing, const SvxULSpaceItem &_rULSpacing, const bool _bEvenPage) const
 adjust calculated horizontal position in order to draw object aside other objects with same positioning More...
 
bool DrawAsideFly (const SwFlyFrame *_pFly, const SwRect &_rObjRect, const SwFrame *_pObjContext, const sal_uLong _nObjIndex, const bool _bEvenPage, const sal_Int16 _eHoriOrient, const sal_Int16 _eRelOrient) const
 determine, if object has to draw aside given fly frame More...
 

Static Protected Member Functions

static void ToggleHoriOrientAndAlign (const bool _bToggleLeftRight, sal_Int16 &_ioeHoriOrient, sal_Int16 &_iopeRelOrient)
 toggle given horizontal orientation and relative alignment More...
 
static bool Minor_ (sal_Int16 _eRelOrient1, sal_Int16 _eRelOrient2, bool _bLeft)
 determine, if object has to draw aside another object More...
 

Private Member Functions

void GetInfoAboutObj ()
 determine information about object More...
 
SwTwips ImplAdjustVertRelPos (const SwTwips nTopOfAnch, const bool bVert, const bool bVertL2R, const SwFrame &rPageAlignLayFrame, const SwTwips nProposedRelPosY, const bool bFollowTextFlow, const bool bCheckBottom) const
 adjust calculated vertical in order to keep object inside 'page' alignment layout frame. More...
 
SwTwips ImplAdjustHoriRelPos (const SwFrame &_rPageAlignLayFrame, const SwTwips _nProposedRelPosX) const
 adjust calculated horizontal in order to keep object inside 'page' alignment layout frame. More...
 

Private Attributes

SdrObjectmrDrawObj
 
bool mbIsObjFly
 
SwAnchoredObjectmpAnchoredObj
 
SwFramempAnchorFrame
 
SwContactmpContact
 
const SwFrameFormatmpFrameFormat
 
bool mbFollowTextFlow
 
bool mbLayoutInCell = false
 
bool mbDoNotCaptureAnchoredObj
 

Detailed Description

Definition at line 40 of file anchoredobjectposition.hxx.

Constructor & Destructor Documentation

SwAnchoredObjectPosition::SwAnchoredObjectPosition ( SdrObject _rDrawObj)
protected

Definition at line 46 of file anchoredobjectposition.cxx.

References GetInfoAboutObj(), and mrDrawObj.

SwAnchoredObjectPosition::~SwAnchoredObjectPosition ( )
protectedvirtual

Definition at line 130 of file anchoredobjectposition.cxx.

Member Function Documentation

SwTwips objectpositioning::SwAnchoredObjectPosition::AdjustHoriRelPos ( const SwFrame _rPageAlignLayFrame,
const SwTwips  _nProposedRelPosX 
) const
inlineprotected

adjust calculated horizontal in order to keep object inside 'page' alignment layout frame for object type position TO_CNTNT

#i62875# - made inline, intrinsic actions moved to private method <ImplAdjustHoriRelPos>, which is only called, if <mbDoNotCaptureAnchoredObj> not set.

Parameters
_rPageAlignLayFrameinput parameter - layout frame, which determines the 'page area' the object has to be horizontal positioned in.
_nProposedRelPosXinput parameter - proposed relative horizontal position, which will be adjusted.
Returns
adjusted relative horizontal position in SwTwips.

Definition at line 268 of file anchoredobjectposition.hxx.

References ImplAdjustHoriRelPos().

Referenced by CalcRelPosX().

SwTwips SwAnchoredObjectPosition::AdjustHoriRelPosForDrawAside ( const SwFrame _rHoriOrientFrame,
const SwTwips  _nProposedRelPosX,
const SwTwips  _nRelPosY,
const sal_Int16  _eHoriOrient,
const sal_Int16  _eRelOrient,
const SvxLRSpaceItem _rLRSpacing,
const SvxULSpaceItem _rULSpacing,
const bool  _bEvenPage 
) const
protected

adjust calculated horizontal position in order to draw object aside other objects with same positioning

Parameters
_rHoriOrientFrameinput parameter - frame the horizontal position of the object is oriented at.
_nProposedRelPosXinput parameter - proposed relative horizontal position, which will be adjusted.
_nRelPosYinput parameter - relative vertical position
_eHoriOrientinput parameter - horizontal position of object
_eRelOrientinput parameter - alignment of object
_rLRSpacinginput parameter - left and right spacing of the object to the text
_rULSpacinginput parameter - upper and lower spacing of the object to the text
_bEvenPageinput parameter - boolean indicating, if object is on an even page.
Returns
adjusted relative horizontal position in SwTwips

Definition at line 913 of file anchoredobjectposition.cxx.

References Point::AdjustX(), Point::AdjustY(), SwRect::Bottom(), SwOrderIter::Bottom(), Column, DrawAsideFly(), FindContext(), SwFrame::FindPageFrame(), GetAnchoredObj(), GetAnchorFrame(), SwFlyFrame::GetFormat(), SwFrameAreaDefinition::getFrameArea(), SwNode::GetIndex(), SvxLRSpaceItem::GetLeft(), SvxULSpaceItem::GetLower(), SwFormat::GetLRSpace(), GetObject(), SdrObject::GetOrdNum(), SdrObject::GetOrdNumDirect(), SwRectFnSet::GetPos(), SvxLRSpaceItem::GetRight(), SwTextFrame::GetTextNodeFirst(), SwFormat::GetULSpace(), SvxULSpaceItem::GetUpper(), SwFlyFrame::GetVirtDrawObj(), SwRect::Height(), SwRectFnSet::IsVert(), SwRect::Left(), LEFT, SwOrderIter::Next(), SwRect::Right(), RIGHT, SwRect::SSize(), SwRect::Top(), and SwRect::Width().

Referenced by CalcRelPosX().

SwTwips objectpositioning::SwAnchoredObjectPosition::AdjustVertRelPos ( const SwTwips  nTopOfAnch,
const bool  bVert,
const bool  bVertL2R,
const SwFrame rPageAlignLayFrame,
const SwTwips  nProposedRelPosY,
const bool  bFollowTextFlow,
const bool  bCheckBottom = true 
) const
inlineprotected

adjust calculated vertical in order to keep object inside 'page' alignment layout frame.

#i31805# - add parameter <_bCheckBottom> #i26945# - add parameter <_bFollowTextFlow> #i62875# - made inline, intrinsic actions moved to private method <ImplAdjustVertRelPos>, which is only called, if <mbDoNotCaptureAnchoredObj> not set. OD 2009-09-01 #mongolianlayout# - add parameter <bVertL2R>

Parameters
nTopOfAnchinput parameter - 'vertical' position, at which the relative position of the object is calculated from.
bVertinput parameter - boolean, indicating, if object is in vertical layout.
bVertL2Rinput parameter - boolean, indicating, if object is in mongolian layout (vertical left-to-right layout).
rPageAlignLayFrameinput parameter - layout frame, which determines the 'page area' the object has to be vertical positioned in.
nProposedRelPosYinput parameter - proposed relative vertical position, which will be adjusted.
bFollowTextFlowinput parameter - value of attribute 'Follow text flow' of the anchored object.
bCheckBottominput parameter - boolean indicating, if bottom of anchored object has to be checked and thus, (if needed) the proposed relative position has to be adjusted. default value <true>

Definition at line 188 of file anchoredobjectposition.hxx.

References ImplAdjustVertRelPos().

Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition().

virtual void objectpositioning::SwAnchoredObjectPosition::CalcPosition ( )
pure virtual
SwTwips SwAnchoredObjectPosition::CalcRelPosX ( const SwFrame _rHoriOrientFrame,
const SwEnvironmentOfAnchoredObject _rEnvOfObj,
const SwFormatHoriOrient _rHoriOrient,
const SvxLRSpaceItem _rLRSpacing,
const SvxULSpaceItem _rULSpacing,
const bool  _bObjWrapThrough,
const SwTwips  _nRelPosY,
SwTwips _roHoriOffsetToFrameAnchorPos 
) const
protected

calculate relative horizontal position

#i26791# - add output parameter <_roHoriOffsetToFrameAnchorPos>

Parameters
_rHoriOrientFrameinput parameter - frame the horizontal position of the object is oriented at.
_rEnvOfObjinput parameter - object instance to retrieve environment information about the object
_rHoriOrientinput parameter - horizontal positioning and alignment, for which the relative position is calculated.
_rLRSpacinginput parameter - left and right spacing of the object to the text
_rULSpacinginput parameter - upper and lower spacing of the object to the text
_bObjWrapThroughinput parameter - boolean indicating, if object has wrap mode 'wrap through'.
_nRelPosYinput parameter - relative vertical position
_roHoriOffsetToFrameAnchorPosoutput parameter - 'horizontal' offset to frame anchor position according to the alignment
Returns
relative horizontal position in SwTwips

Definition at line 802 of file anchoredobjectposition.cxx.

References AdjustHoriRelPos(), AdjustHoriRelPosForDrawAside(), GetAnchoredObj(), GetAnchorFrame(), SwFrameAreaDefinition::getFrameArea(), GetHoriAlignmentValues(), objectpositioning::SwEnvironmentOfAnchoredObject::GetHoriEnvironmentLayoutFrame(), SwFormatHoriOrient::GetHoriOrient(), SvxLRSpaceItem::GetLeft(), SwRectFnSet::GetLeft(), SvxULSpaceItem::GetLower(), SwFormatHoriOrient::GetPos(), SwFormatHoriOrient::GetRelationOrient(), SvxLRSpaceItem::GetRight(), SvxULSpaceItem::GetUpper(), SwRectFnSet::GetWidth(), IsAnchoredToChar(), SwFormatHoriOrient::IsPosToggle(), SwFrame::IsRightToLeft(), SwRectFnSet::IsVert(), LEFT, mpContact, sw::sidebar::NONE, SwContact::ObjAnchoredAtChar(), SwContact::ObjAnchoredAtPara(), SwFrame::OnRightPage(), RIGHT, ToggleHoriOrientAndAlign(), and SwRectFnSet::XDiff().

Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition().

bool objectpositioning::SwAnchoredObjectPosition::DoesObjFollowsTextFlow ( ) const
inlineprotected
bool objectpositioning::SwAnchoredObjectPosition::DoesObjLayoutInCell ( ) const
inlineprotected
bool SwAnchoredObjectPosition::DrawAsideFly ( const SwFlyFrame _pFly,
const SwRect _rObjRect,
const SwFrame _pObjContext,
const sal_uLong  _nObjIndex,
const bool  _bEvenPage,
const sal_Int16  _eHoriOrient,
const sal_Int16  _eRelOrient 
) const
protected

determine, if object has to draw aside given fly frame

method used by <AdjustHoriRelPosForDrawAside(..)>

Parameters
_pFlyinput parameter - fly frame the draw aside check is done for.
_rObjRectinput parameter - proposed object rectangle
_pObjContextinput parameter - context of the object
_nObjIndexinput parameter - index of the anchor frame of the object
_bEvenPageinput parameter - boolean indicating, if object is on an even page.
_eHoriOrientinput parameter - horizontal position of object
_eRelOrientinput parameter - alignment of object
Returns
boolean indicating, if object has to be drawn aside given fly frame.

method used by <AdjustHoriRelPosForDrawAside(..)>

Definition at line 1050 of file anchoredobjectposition.cxx.

References SwRectFnSet::BottomDist(), Column, FindContext(), sw::FrameContainsNode(), GetAnchorFrame(), SwAnchoredObject::GetAnchorFrame(), SwFlyFrame::GetFormat(), SwFrameAreaDefinition::getFrameArea(), SwFormatHoriOrient::GetHoriOrient(), SwFormat::GetHoriOrient(), SwFormatHoriOrient::GetRelationOrient(), SwRectFnSet::GetTop(), SwFlyFrame::IsFlyAtContentFrame(), SwFormatHoriOrient::IsPosToggle(), LEFT, Minor_(), and ToggleHoriOrientAndAlign().

Referenced by AdjustHoriRelPosForDrawAside().

SwAnchoredObject& objectpositioning::SwAnchoredObjectPosition::GetAnchoredObj ( ) const
inlineprotected
SwFrame& objectpositioning::SwAnchoredObjectPosition::GetAnchorFrame ( ) const
inlineprotected
const SwFrameFormat& objectpositioning::SwAnchoredObjectPosition::GetFrameFormat ( ) const
inlineprotected
void SwAnchoredObjectPosition::GetHoriAlignmentValues ( const SwFrame _rHoriOrientFrame,
const SwFrame _rPageAlignLayFrame,
const sal_Int16  _eRelOrient,
const bool  _bObjWrapThrough,
SwTwips _orAlignAreaWidth,
SwTwips _orAlignAreaOffset,
bool &  _obAlignedRelToPage 
) const
protected

determine alignment values for horizontal position of object

determine alignment value for horizontal position of object

Parameters
_rHoriOrientFrameinput parameter - frame the horizontal position of the object is oriented at.
_rPageAlignLayFrameinput parameter - layout frame, which determines the 'page area' the object has to be horizontal positioned in.
_eRelOrientinput parameter - horizontal relative alignment, for which the relative position is calculated.
_bToggleLeftRightinput parameter - boolean indicating, if left/right alignments have to be toggled.
_bObjWrapThroughinput parameter - boolean indicating, if object has wrap mode 'wrap through'. important note: value is only relevant, if _rHoriOrientFrame is a text frame.
_orAlignAreaWidthoutput parameter - width in SwTwips of the area the horizontal position is aligned to.
_orAlignAreaOffsetoutput parameter - offset in SwTwips of the area the horizontal position is aligned to. offset is given to the 'left' of the anchor position.
_obAlignedRelToPageoutput parameter - boolean indicating, that object is aligned to 'page area'.

Definition at line 594 of file anchoredobjectposition.cxx.

References SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetLeft(), SwRectFnSet::GetLeftMargin(), SwFrame::GetNext(), SwRectFnSet::GetPrtLeft(), SwRectFnSet::GetPrtRight(), SwRectFnSet::GetRight(), SwRectFnSet::GetRightMargin(), SwTextBoxHelper::getShapeWrapThrough(), SwRectFnSet::GetWidth(), SwRect::Height(), IsAnchoredToChar(), SwFrame::IsFooterFrame(), SwFrame::IsHeaderFrame(), SwFrame::IsPageFrame(), SwFrame::IsTextFrame(), SwRectFnSet::IsVert(), Lower, mpFrameFormat, ToCharOrientFrame(), ToCharRect(), and SwRectFnSet::XDiff().

Referenced by objectpositioning::SwToLayoutAnchoredObjectPosition::CalcPosition(), and CalcRelPosX().

void SwAnchoredObjectPosition::GetInfoAboutObj ( )
private

determine information about object

member <mbIsObjFly>, <mpAnchoredObj>, <mpAnchorFrame>, <mpContact> and <mpFrameFormat> are set

members <mbIsObjFly>, <mpFrameOfObj>, <mpAnchorFrame>, <mpContact>, <mbFollowTextFlow> and <mbDoNotCaptureAnchoredObj> are set

Definition at line 75 of file anchoredobjectposition.cxx.

References SwAnchoredObject::AnchorFrame(), DO_NOT_CAPTURE_DRAW_OBJS_ON_PAGE, IDocumentSettingAccess::get(), SwContact::GetAnchoredObj(), SwFormat::GetFollowTextFlow(), SwAnchoredObject::GetFrameFormat(), SwFormat::getIDocumentSettingAccess(), SwFormatFollowTextFlow::GetLayoutInCell(), GetUserCall(), SfxBoolItem::GetValue(), mbDoNotCaptureAnchoredObj, mbFollowTextFlow, mbIsObjFly, mbLayoutInCell, mpAnchoredObj, mpAnchorFrame, mpContact, mpFrameFormat, and mrDrawObj.

Referenced by SwAnchoredObjectPosition().

SdrObject& objectpositioning::SwAnchoredObjectPosition::GetObject ( ) const
inlineprotected
SwTwips SwAnchoredObjectPosition::GetTopForObjPos ( const SwFrame _rFrame,
const SwRectFn _fnRect,
const bool  _bVert 
) const
protected
void SwAnchoredObjectPosition::GetVertAlignmentValues ( const SwFrame _rVertOrientFrame,
const SwFrame _rPageAlignLayFrame,
const sal_Int16  _eRelOrient,
SwTwips _orAlignAreaHeight,
SwTwips _orAlignAreaOffset 
) const
protected
SwTwips SwAnchoredObjectPosition::GetVertRelPos ( const SwFrame _rVertOrientFrame,
const SwFrame _rPageAlignLayFrame,
const sal_Int16  _eVertOrient,
const sal_Int16  _eRelOrient,
const SwTwips  _nVertPos,
const SvxLRSpaceItem _rLRSpacing,
const SvxULSpaceItem _rULSpacing,
SwTwips _roVertOffsetToFrameAnchorPos 
) const
protected
SwTwips SwAnchoredObjectPosition::ImplAdjustHoriRelPos ( const SwFrame _rPageAlignLayFrame,
const SwTwips  _nProposedRelPosX 
) const
private

adjust calculated horizontal in order to keep object inside 'page' alignment layout frame.

#i62875# - method now private and renamed.

Definition at line 546 of file anchoredobjectposition.cxx.

References SwRect::Bottom(), GetAnchoredObj(), GetAnchorFrame(), SwFrameAreaDefinition::getFrameArea(), Size::Height(), SwFrame::IsVertical(), SwRect::Left(), SwRect::Right(), SSize, SwRect::Top(), and Size::Width().

Referenced by AdjustHoriRelPos().

SwTwips SwAnchoredObjectPosition::ImplAdjustVertRelPos ( const SwTwips  nTopOfAnch,
const bool  bVert,
const bool  bVertL2R,
const SwFrame rPageAlignLayFrame,
const SwTwips  nProposedRelPosY,
const bool  bFollowTextFlow,
const bool  bCheckBottom 
) const
private

adjust calculated vertical in order to keep object inside 'page' alignment layout frame.

#i28701# - parameter <_nTopOfAnch> and <_bVert> added #i31805# - add parameter <_bCheckBottom> #i26945# - add parameter <_bFollowTextFlow> #i62875# - method now private and renamed. OD 2009-09-01 #mongolianlayout# - add parameter <bVertL2R>

Definition at line 403 of file anchoredobjectposition.cxx.

References SwRect::Bottom(), CONSIDER_WRAP_ON_OBJECT_POSITION, DISABLE_OFF_PAGE_POSITIONING, FindFrameFormat(), SwFrame::FindPageFrame(), IDocumentSettingAccess::get(), GetAnchoredObj(), GetAnchorFrame(), SwFrameAreaDefinition::getFrameArea(), GetFrameFormat(), SwFormat::GetFrameSize(), SvxSizeItem::GetHeight(), SwFormat::getIDocumentSettingAccess(), GetObject(), SwFrame::GetUpper(), Size::Height(), SwRect::Height(), IsAnchoredToChar(), SwFrame::IsFooterFrame(), SwFrame::IsHeaderFrame(), SdrObject::IsTextBox(), SwTextBoxHelper::isTextBox(), SwRect::Left(), mpFrameFormat, RES_DRAWFRMFMT, SwRect::Right(), SwFormat::SetFormatAttr(), SSize, SwRect::Top(), and Size::Width().

Referenced by AdjustVertRelPos().

bool SwAnchoredObjectPosition::IsAnchoredToChar ( ) const
protectedvirtual
bool objectpositioning::SwAnchoredObjectPosition::IsObjFly ( ) const
inlineprotected
bool SwAnchoredObjectPosition::Minor_ ( sal_Int16  _eRelOrient1,
sal_Int16  _eRelOrient2,
bool  _bLeft 
)
staticprotected

determine, if object has to draw aside another object

the different alignments of the objects determines, if one has to draw aside another one. Thus, the given alignment are checked against each other, which one has to be drawn aside the other one. depending on parameter _bLeft check is done for left or right positioning. method used by <DrawAsideFly(..)>

Parameters
_eRelOrient1input parameter - alignment 1
_eRelOrient2input parameter - alignment 2
_bLeftinput parameter - boolean indicating, if check is done for left or for right positioning.
Returns
boolean indicating, if an object with an alignment <_eRelOrient1> has to be drawn aside an object with an alignment <_eRelOrient2>

the different alignments of the objects determines, if one has to draw aside another one. Thus, the given alignment are checked against each other, which one has to be drawn aside the other one. depending on parameter _bLeft check is done for left or right positioning. method used by <DrawAsideFly(..)>

one array entry for each value in text::RelOrientation

one array entry for each value in text::RelOrientation

Definition at line 1102 of file anchoredobjectposition.cxx.

Referenced by DrawAsideFly().

const SwFrame * SwAnchoredObjectPosition::ToCharOrientFrame ( ) const
protectedvirtual
const SwRect * SwAnchoredObjectPosition::ToCharRect ( ) const
protectedvirtual
SwTwips SwAnchoredObjectPosition::ToCharTopOfLine ( ) const
protectedvirtual
void SwAnchoredObjectPosition::ToggleHoriOrientAndAlign ( const bool  _bToggleLeftRight,
sal_Int16 &  _ioeHoriOrient,
sal_Int16 &  _iopeRelOrient 
)
staticprotected

toggle given horizontal orientation and relative alignment

Parameters
_bToggleLeftRightinput parameter - boolean indicating, if horizontal orientation and relative alignment has to be toggled.
_ioeHoriOrientinput/output parameter - horizontal orientation, that is toggled, if needed.
_iopeRelOrientoptional input/output parameter (default value NULL)
  • if set, relative alignment, that is toggled, if needed.

Definition at line 747 of file anchoredobjectposition.cxx.

References LEFT, and RIGHT.

Referenced by objectpositioning::SwToLayoutAnchoredObjectPosition::CalcPosition(), CalcRelPosX(), and DrawAsideFly().

Member Data Documentation

bool objectpositioning::SwAnchoredObjectPosition::mbDoNotCaptureAnchoredObj
private

Definition at line 61 of file anchoredobjectposition.hxx.

Referenced by GetInfoAboutObj().

bool objectpositioning::SwAnchoredObjectPosition::mbFollowTextFlow
private

Definition at line 57 of file anchoredobjectposition.hxx.

Referenced by DoesObjFollowsTextFlow(), and GetInfoAboutObj().

bool objectpositioning::SwAnchoredObjectPosition::mbIsObjFly
private

Definition at line 47 of file anchoredobjectposition.hxx.

Referenced by GetInfoAboutObj(), and IsObjFly().

bool objectpositioning::SwAnchoredObjectPosition::mbLayoutInCell = false
private

Definition at line 58 of file anchoredobjectposition.hxx.

Referenced by DoesObjLayoutInCell(), and GetInfoAboutObj().

SwAnchoredObject* objectpositioning::SwAnchoredObjectPosition::mpAnchoredObj
private

Definition at line 49 of file anchoredobjectposition.hxx.

Referenced by GetAnchoredObj(), and GetInfoAboutObj().

SwFrame* objectpositioning::SwAnchoredObjectPosition::mpAnchorFrame
private

Definition at line 51 of file anchoredobjectposition.hxx.

Referenced by GetAnchorFrame(), and GetInfoAboutObj().

SwContact* objectpositioning::SwAnchoredObjectPosition::mpContact
private

Definition at line 53 of file anchoredobjectposition.hxx.

Referenced by CalcRelPosX(), and GetInfoAboutObj().

const SwFrameFormat* objectpositioning::SwAnchoredObjectPosition::mpFrameFormat
private
SdrObject& objectpositioning::SwAnchoredObjectPosition::mrDrawObj
private

Definition at line 44 of file anchoredobjectposition.hxx.

Referenced by GetInfoAboutObj(), GetObject(), and SwAnchoredObjectPosition().


The documentation for this class was generated from the following files: