LibreOffice Module sw (master)  1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
WinwordAnchoring Class Reference

#include <escher.hxx>

Inheritance diagram for WinwordAnchoring:
[legend]
Collaboration diagram for WinwordAnchoring:
[legend]

Public Member Functions

void WriteData (EscherEx &rEx) const override
 
void SetAnchoring (const SwFrameFormat &rFormat)
 
- Public Member Functions inherited from EscherExClientRecord_Base
 EscherExClientRecord_Base ()
 
virtual ~EscherExClientRecord_Base ()
 

Static Public Member Functions

static bool ConvertPosition (SwFormatHoriOrient &_iorHoriOri, SwFormatVertOrient &_iorVertOri, const SwFrameFormat &_rFrameFormat)
 method to perform conversion of positioning attributes with the help of corresponding layout information More...
 

Private Attributes

bool mbInline
 
sal_uInt32 mnXAlign
 
sal_uInt32 mnYAlign
 
sal_uInt32 mnXRelTo
 
sal_uInt32 mnYRelTo
 

Detailed Description

Definition at line 31 of file escher.hxx.

Member Function Documentation

bool WinwordAnchoring::ConvertPosition ( SwFormatHoriOrient _iorHoriOri,
SwFormatVertOrient _iorVertOri,
const SwFrameFormat _rFrameFormat 
)
static

method to perform conversion of positioning attributes with the help of corresponding layout information

#i30669# Because most of the Writer object positions doesn't correspond to the object positions in WW8, this method converts the positioning attributes. For this conversion the corresponding layout information is needed. If no layout information exists - e.g. no layout exists - no conversion is performed. No conversion is performed for as-character anchored objects. Whose object positions are already treated special in method <WriteData(..)>. Usage of method: Used by method <SetAnchoring(..)>, nothing else

Parameters
_iorHoriOriinput/output parameter - containing the current horizontal position attributes, which are converted by this method.
_iorVertOriinput/output parameter - containing the current vertical position attributes, which are converted by this method.
_rFrameFormatinput parameter - frame format of the anchored object
Returns
boolean, indicating, if a conversion has been performed.

#i30669# Because most of the Writer object positions doesn't correspond to the object positions in WW8, this method converts the positioning attributes. For this conversion the corresponding layout information is needed. If no layout information exists - e.g. no layout exists - no conversion is performed. No conversion is performed for as-character anchored objects. Whose object positions are already treated special in method <WriteData(..)>.

Parameters
_iorHoriOriinput/output parameter - containing the current horizontal position attributes, which are converted by this method.
_iorVertOriinput/output parameter - containing the current vertical position attributes, which are converted by this method.
_rFrameFormatinput parameter - frame format of the anchored object
Returns
boolean, indicating, if a conversion has been performed.

Definition at line 2441 of file wrtw8esh.cxx.

References BOTTOM, sw::BroadcastingModify::CallSwClientNotify(), sw::CONV2CHAR, sw::CONV2COL_OR_PARA, sw::CONV2LINE, sw::CONV2PG, SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SvxFormatBreakItem::GetBreak(), SwFormatAnchor::GetContentAnchor(), SwFormat::GetFollowTextFlow(), SwFormatHoriOrient::GetHoriOrient(), SwNodeIndex::GetNode(), SwFormatVertOrient::GetRelationOrient(), SwFormatHoriOrient::GetRelationOrient(), SfxBoolItem::GetValue(), SwFormatVertOrient::GetVertOrient(), SwFormatHoriOrient::IsPosToggle(), SwNode::IsTextNode(), LEFT, sw::WW8AnchorConvResult::m_aPos, sw::WW8AnchorConvResult::m_bConverted, SwPosition::nNode, sw::NO_CONV, sw::sidebar::NONE, RES_BREAK, RIGHT, SwFormatHoriOrient::SetHoriOrient(), SwFormatVertOrient::SetPos(), SwFormatHoriOrient::SetPos(), SwFormatVertOrient::SetVertOrient(), TOP, Point::X(), and Point::Y().

Referenced by SetAnchoring(), and PlcDrawObj::WritePlc().

void WinwordAnchoring::SetAnchoring ( const SwFrameFormat rFormat)
void WinwordAnchoring::WriteData ( EscherEx rEx) const
overridevirtual

Member Data Documentation

bool WinwordAnchoring::mbInline
private

Definition at line 68 of file escher.hxx.

Referenced by SetAnchoring(), and WriteData().

sal_uInt32 WinwordAnchoring::mnXAlign
private

Definition at line 69 of file escher.hxx.

Referenced by SetAnchoring(), and WriteData().

sal_uInt32 WinwordAnchoring::mnXRelTo
private

Definition at line 71 of file escher.hxx.

Referenced by SetAnchoring(), and WriteData().

sal_uInt32 WinwordAnchoring::mnYAlign
private

Definition at line 70 of file escher.hxx.

Referenced by SetAnchoring(), and WriteData().

sal_uInt32 WinwordAnchoring::mnYRelTo
private

Definition at line 72 of file escher.hxx.

Referenced by SetAnchoring(), and WriteData().


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