LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
SwFormatHoriOrient Class Referencefinal

Defines the horizontal position of a fly frame. More...

#include <fmtornt.hxx>

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

Public Member Functions

 SwFormatHoriOrient (SwTwips nX=0, sal_Int16 eHori=css::text::HoriOrientation::NONE, sal_Int16 eRel=css::text::RelOrientation::PRINT_AREA, bool bPos=false)
 
 SwFormatHoriOrient (SwFormatHoriOrient const &)=default
 
virtual bool operator== (const SfxPoolItem &) const override
 "Pure virtual methods" of SfxPoolItem. More...
 
virtual SwFormatHoriOrientClone (SfxItemPool *pPool=nullptr) const override
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) override
 
sal_Int16 GetHoriOrient () const
 
sal_Int16 GetRelationOrient () const
 
void SetHoriOrient (sal_Int16 eNew)
 
void SetRelationOrient (sal_Int16 eNew)
 
SwTwips GetPos () const
 
void SetPos (SwTwips nNew)
 
bool IsPosToggle () const
 
void SetPosToggle (bool bNew)
 
void dumpAsXml (xmlTextWriterPtr pWriter) const override
 
- Public Member Functions inherited from SfxPoolItem
void AddRef (sal_uInt32 n=1) const
 
virtual ~SfxPoolItem ()
 
void SetWhich (sal_uInt16 nId)
 
sal_uInt16 Which () const
 
T & StaticWhichCast (TypedWhichId< T > nId)
 
const T & StaticWhichCast (TypedWhichId< T > nId) const
 
T * DynamicWhichCast (TypedWhichId< T > nId)
 
const T * DynamicWhichCast (TypedWhichId< T > nId) const
 
virtual bool operator== (const SfxPoolItem &) const=0
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool operator< (const SfxPoolItem &) const
 
virtual bool IsSortable () const
 
virtual bool HasLookup () const
 
virtual lookup_iterator Lookup (lookup_iterator, lookup_iterator end) const
 
virtual bool GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
 
virtual void ScaleMetrics (tools::Long lMult, tools::Long lDiv)
 
virtual bool HasMetrics () const
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId)
 
virtual SfxPoolItemClone (SfxItemPool *pPool=nullptr) const=0
 
std::unique_ptr< SfxPoolItemCloneSetWhich (sal_uInt16 nNewWhich) const
 
std::unique_ptr< T > CloneSetWhich (TypedWhichId< T > nId) const
 
sal_uInt32 GetRefCount () const
 
SfxItemKind GetKind () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
virtual boost::property_tree::ptree dumpAsJSON () const
 
virtual bool IsVoidItem () const
 

Private Attributes

SwTwips m_nXPos
 Contains always the current RelPos. More...
 
sal_Int16 m_eOrient
 
sal_Int16 m_eRelation
 
bool m_bPosToggle: 1
 Flip position on even pages. More...
 

Additional Inherited Members

- Public Types inherited from SfxPoolItem
typedef std::vector< SfxPoolItem * >::const_iterator lookup_iterator
 
- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 

Detailed Description

Defines the horizontal position of a fly frame.

For example: from left (orientation), by 1 cm (relative position), to the entire page (relation).

Definition at line 72 of file fmtornt.hxx.

Constructor & Destructor Documentation

◆ SwFormatHoriOrient() [1/2]

SwFormatHoriOrient::SwFormatHoriOrient ( SwTwips  nX = 0,
sal_Int16  eHori = css::text::HoriOrientation::NONE,
sal_Int16  eRel = css::text::RelOrientation::PRINT_AREA,
bool  bPos = false 
)

Definition at line 1462 of file atrfrm.cxx.

Referenced by Clone().

◆ SwFormatHoriOrient() [2/2]

SwFormatHoriOrient::SwFormatHoriOrient ( SwFormatHoriOrient const &  )
default

Member Function Documentation

◆ Clone()

SwFormatHoriOrient * SwFormatHoriOrient::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 1480 of file atrfrm.cxx.

References SwFormatHoriOrient().

Referenced by SwFEShell::NewFlyFrame().

◆ dumpAsXml()

void SwFormatHoriOrient::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 1552 of file atrfrm.cxx.

References m_bPosToggle, m_eOrient, m_eRelation, m_nXPos, and SfxPoolItem::Which().

◆ GetHoriOrient()

sal_Int16 SwFormatHoriOrient::GetHoriOrient ( ) const
inline

Definition at line 94 of file fmtornt.hxx.

Referenced by SwWrapTabPage::ActivatePage(), SwFmDrawPage::add(), SwDoc::AdjustCellWidth(), CalcClipRect(), SwTabFrame::CalcFlyOffsets(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), objectpositioning::SwToLayoutAnchoredObjectPosition::CalcPosition(), objectpositioning::SwAnchoredObjectPosition::CalcRelPosX(), SwEditWin::ChangeFly(), SwFlyFreeFrame::CheckClip(), SwFlyFrame::ChgRelPos(), WinwordAnchoring::ConvertPosition(), WW8TabDesc::CreateSwTable(), SwTextBoxHelper::doTextBoxPositioning(), objectpositioning::SwAnchoredObjectPosition::DrawAsideFly(), SwBaseShell::Execute(), SwDrawBaseShell::Execute(), SwXMLExport::ExportTableAutoStyles(), DocxAttributeOutput::FormatHorizOrientation(), WW8AttributeOutput::FormatHorizOrientation(), RtfAttributeOutput::FormatHorizOrientation(), DocxAttributeOutput::GetOLEStyle(), GetPresentation(), SwDrawBaseShell::GetState(), SwFrameShell::GetState(), AttributeOutputBase::GetTablePageSize(), GetTableWidth(), SwRootFrame::ImplCalcBrowseWidth(), SwFrameNotify::ImplDestroy(), SwFramePage::Init(), lcl_MinMaxNode(), lcl_NotifyNeighbours(), lcl_TableParamToItemSet(), WW8Export::MiserableRTLFrameFormatHack(), SwWW8ImplReader::MoveOutsideFly(), SwVirtFlyDrawObj::NbcMove(), SwFEShell::NewFlyFrame(), Notify_Background(), SwHTMLWriter::OutCSS1_FrameFormatOptions(), SwHTMLWriter::OutCSS1_TableFrameFormatOptions(), SwHTMLWriter::OutFrameFormatOptions(), OutHTML_SwTableNode(), DocxAttributeOutput::PopulateFrameProperties(), SvXMLExportItemMapper::QueryXMLValue(), WinwordAnchoring::SetAnchoring(), SwHTMLParser::SetAttr_(), SwFEShell::SetColRowWidthHeight(), SwTable::SetColWidth(), SwDoc::SetFlyFrameAnchor(), SwHTMLParser::SetSpace(), SwTable::SetTabCols(), DocxSdrExport::startDMLAnchorInline(), WW8AttributeOutput::TableDefinition(), DocxAttributeOutput::TableDefinition(), RtfAttributeOutput::TableOrientation(), WW8AttributeOutput::TableOrientation(), RtfAttributeOutput::TablePositioning(), WW8AttributeOutput::TablePositioning(), DocxAttributeOutput::WriteActiveXControl(), SwHTMLWriter::writeFrameFormatOptions(), PlcDrawObj::WritePlc(), and DocxSdrExport::writeVMLDrawing().

◆ GetPos()

SwTwips SwFormatHoriOrient::GetPos ( ) const
inline

◆ GetPresentation()

bool SwFormatHoriOrient::GetPresentation ( SfxItemPresentation  ePres,
MapUnit  eCoreMetric,
MapUnit  ePresMetric,
OUString &  rText,
const IntlWrapper rIntl 
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 378 of file attrdesc.cxx.

References EditResId(), GetHoriOrient(), GetPos(), SwPostItHelper::NONE, and SwResId().

◆ GetRelationOrient()

sal_Int16 SwFormatHoriOrient::GetRelationOrient ( ) const
inline

Definition at line 95 of file fmtornt.hxx.

Referenced by SwWrapTabPage::ActivatePage(), CalcClipRect(), objectpositioning::SwToLayoutAnchoredObjectPosition::CalcPosition(), objectpositioning::SwAnchoredObjectPosition::CalcRelPosX(), SwTextBoxHelper::changeAnchor(), SwDrawContact::Changed_(), SwAnchoredObject::CheckCharRect(), SwDoc::ChgAnchor(), SwFlyFrame::ChgRelPos(), SwHTMLWriter::CollectFlyFrames(), WinwordAnchoring::ConvertPosition(), SwTextBoxHelper::doTextBoxPositioning(), objectpositioning::SwAnchoredObjectPosition::DrawAsideFly(), SwDrawBaseShell::Execute(), DocxAttributeOutput::FormatHorizOrientation(), RtfAttributeOutput::FormatHorizOrientation(), DocxAttributeOutput::GetOLEStyle(), SwRootFrame::ImplCalcBrowseWidth(), SwFrameNotify::ImplDestroy(), SwWW8ImplReader::ImportGraf(), SwFramePage::Init(), lcl_MinMaxNode(), WW8Export::MiserableRTLFrameFormatHack(), SwVirtFlyDrawObj::NbcMove(), Notify_Background(), SwHTMLWriter::OutCSS1_FrameFormatOptions(), SwHTMLWriter::OutFrameFormatOptions(), DocxAttributeOutput::PopulateFrameProperties(), SwFlyAtContentFrame::SetAbsPos(), WinwordAnchoring::SetAnchoring(), SwDoc::SetFlyFrameAnchor(), DocxSdrExport::startDMLAnchorInline(), SwTextBoxHelper::syncFlyFrameAttr(), WW8AttributeOutput::TableDefinition(), WW8AttributeOutput::TableOrientation(), RtfAttributeOutput::TablePositioning(), WW8AttributeOutput::TablePositioning(), DocxAttributeOutput::WriteActiveXControl(), SwHTMLWriter::writeFrameFormatOptions(), and DocxSdrExport::writeVMLDrawing().

◆ IsPosToggle()

bool SwFormatHoriOrient::IsPosToggle ( ) const
inline

◆ operator==()

bool SwFormatHoriOrient::operator== ( const SfxPoolItem rAttr) const
overridevirtual

"Pure virtual methods" of SfxPoolItem.

Implements SfxPoolItem.

Definition at line 1471 of file atrfrm.cxx.

References m_bPosToggle, m_eOrient, m_eRelation, and m_nXPos.

◆ PutValue()

bool SwFormatHoriOrient::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overridevirtual

◆ QueryValue()

bool SwFormatHoriOrient::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual

◆ SetHoriOrient()

void SwFormatHoriOrient::SetHoriOrient ( sal_Int16  eNew)
inline

◆ SetPos()

void SwFormatHoriOrient::SetPos ( SwTwips  nNew)
inline

◆ SetPosToggle()

void SwFormatHoriOrient::SetPosToggle ( bool  bNew)
inline

◆ SetRelationOrient()

void SwFormatHoriOrient::SetRelationOrient ( sal_Int16  eNew)
inline

Member Data Documentation

◆ m_bPosToggle

bool SwFormatHoriOrient::m_bPosToggle
private

Flip position on even pages.

Definition at line 77 of file fmtornt.hxx.

Referenced by dumpAsXml(), and operator==().

◆ m_eOrient

sal_Int16 SwFormatHoriOrient::m_eOrient
private

Definition at line 75 of file fmtornt.hxx.

Referenced by dumpAsXml(), operator==(), PutValue(), and QueryValue().

◆ m_eRelation

sal_Int16 SwFormatHoriOrient::m_eRelation
private

Definition at line 76 of file fmtornt.hxx.

Referenced by dumpAsXml(), operator==(), PutValue(), and QueryValue().

◆ m_nXPos

SwTwips SwFormatHoriOrient::m_nXPos
private

Contains always the current RelPos.

Definition at line 74 of file fmtornt.hxx.

Referenced by dumpAsXml(), and operator==().


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