LibreOffice Module sw (master) 1
|
Defines the horizontal position of a fly frame. More...
#include <fmtornt.hxx>
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 SwFormatHoriOrient * | Clone (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 SfxPoolItem * | Clone (SfxItemPool *pPool=nullptr) const=0 |
std::unique_ptr< SfxPoolItem > | CloneSetWhich (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) | |
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.
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().
|
default |
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 1480 of file atrfrm.cxx.
References SwFormatHoriOrient().
Referenced by SwFEShell::NewFlyFrame().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1552 of file atrfrm.cxx.
References m_bPosToggle, m_eOrient, m_eRelation, m_nXPos, and SfxPoolItem::Which().
|
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().
|
inline |
Definition at line 99 of file fmtornt.hxx.
Referenced by SwWrapTabPage::ActivatePage(), SwFmDrawPage::add(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), objectpositioning::SwToLayoutAnchoredObjectPosition::CalcPosition(), objectpositioning::SwAnchoredObjectPosition::CalcRelPosX(), SwDrawContact::Changed_(), SwTextBoxHelper::doTextBoxPositioning(), SwView::ExecTabWin(), SwDrawBaseShell::Execute(), DocxAttributeOutput::FormatHorizOrientation(), WW8AttributeOutput::FormatHorizOrientation(), RtfAttributeOutput::FormatHorizOrientation(), DocxAttributeOutput::GetOLEStyle(), GetPresentation(), SwRootFrame::ImplCalcBrowseWidth(), SwWW8ImplReader::ImportGraf(), SwFramePage::Init(), SwFlyAtContentFrame::MakeAll(), SwWW8ImplReader::MatchSdrItemsIntoFlySet(), SwVirtFlyDrawObj::NbcMove(), SwHTMLWriter::OutCSS1_FrameFormatOptions(), DocxAttributeOutput::PopulateFrameProperties(), QueryValue(), SwFEShell::RequestObjectResize(), SwUndoFormatAttr::RestoreFlyAnchor(), SwDoc::SetFlyFrameAnchor(), SwAnchoredDrawObject::SetPositioningAttr(), SwHTMLParser::SetSpace(), DocxSdrExport::startDMLAnchorInline(), SwTextBoxHelper::syncFlyFrameAttr(), WW8AttributeOutput::TableDefinition(), RtfAttributeOutput::TablePositioning(), WW8AttributeOutput::TablePositioning(), and PlcDrawObj::WritePlc().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 378 of file attrdesc.cxx.
References EditResId(), GetHoriOrient(), GetPos(), SwPostItHelper::NONE, and SwResId().
|
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().
|
inline |
Definition at line 102 of file fmtornt.hxx.
Referenced by SwWrapTabPage::ActivatePage(), objectpositioning::SwToLayoutAnchoredObjectPosition::CalcPosition(), objectpositioning::SwAnchoredObjectPosition::CalcRelPosX(), WinwordAnchoring::ConvertPosition(), objectpositioning::SwAnchoredObjectPosition::DrawAsideFly(), SwFrameShell::Execute(), SwDrawBaseShell::Execute(), DocxAttributeOutput::FormatHorizOrientation(), WW8AttributeOutput::FormatHorizOrientation(), DocxAttributeOutput::GetOLEStyle(), SwFramePage::Init(), SwVirtFlyDrawObj::NbcMove(), and QueryValue().
|
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.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1513 of file atrfrm.cxx.
References CONVERT_TWIPS, lcl_IntToRelation(), m_eOrient, m_eRelation, MID_HORIORIENT_ORIENT, MID_HORIORIENT_PAGETOGGLE, MID_HORIORIENT_POSITION, MID_HORIORIENT_RELATION, o3tl::mm100, SwPostItHelper::NONE, SetPos(), SetPosToggle(), and o3tl::toTwips().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1485 of file atrfrm.cxx.
References convertTwipToMm100(), GetPos(), IsPosToggle(), m_eOrient, m_eRelation, MID_HORIORIENT_ORIENT, MID_HORIORIENT_PAGETOGGLE, MID_HORIORIENT_POSITION, and MID_HORIORIENT_RELATION.
|
inline |
Definition at line 96 of file fmtornt.hxx.
Referenced by SwDoc::AdjustCellWidth(), SwEditWin::ChangeFly(), SwFlyFrame::ChgRelPos(), WinwordAnchoring::ConvertPosition(), WW8TabDesc::CreateSwTable(), SwTextBoxHelper::doTextBoxPositioning(), SwView::ExecTabWin(), SwDrawBaseShell::Execute(), SwFramePage::FillItemSet(), SwFEShell::ImpEndCreate(), ItemSetToTableParam(), SwVirtFlyDrawObj::NbcMove(), SvXMLImportItemMapper::PutXMLValue(), SwFlyFrameAttrMgr::SetAbsPos(), SwTable::SetColWidth(), SwFlyFrameAttrMgr::SetHorzOrientation(), SwFlyFrameAttrMgr::SetPos(), and SwTable::SetTabCols().
|
inline |
Definition at line 100 of file fmtornt.hxx.
Referenced by SwFmDrawPage::add(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), objectpositioning::SwToLayoutAnchoredObjectPosition::CalcPosition(), SwFlyFrame::ChgRelPos(), WinwordAnchoring::ConvertPosition(), WW8TabDesc::CreateSwTable(), SwTextBoxHelper::doTextBoxPositioning(), SwView::ExecTabWin(), SwDrawBaseShell::Execute(), SwFramePage::FillItemSet(), SwFlyAtContentFrame::MakeAll(), SwWW8ImplReader::MatchSdrItemsIntoFlySet(), PutValue(), SwDoc::SetFlyFrameAnchor(), SwFlyFrameAttrMgr::SetPos(), SwAnchoredDrawObject::SetPositioningAttr(), SwHTMLParser::SetSpace(), and SwTextBoxHelper::syncFlyFrameAttr().
|
inline |
Definition at line 103 of file fmtornt.hxx.
Referenced by SwFlyFrame::ChgRelPos(), SwFrameShell::Execute(), SwDrawBaseShell::Execute(), SwFramePage::FillItemSet(), SwWW8ImplReader::ProcessEscherAlign(), and PutValue().
|
inline |
Definition at line 97 of file fmtornt.hxx.
Referenced by SwDoc::ChgAnchor(), SwFlyFrame::ChgRelPos(), SwTextBoxHelper::doTextBoxPositioning(), SwDrawBaseShell::Execute(), SwFramePage::FillItemSet(), SwFEShell::ImpEndCreate(), SwVirtFlyDrawObj::NbcMove(), SwFlyFrameAttrMgr::SetAnchor(), SwHTMLParser::SetAttr_(), SwDoc::SetFlyFrameAnchor(), and SwTextBoxHelper::syncFlyFrameAttr().
|
private |
Flip position on even pages.
Definition at line 77 of file fmtornt.hxx.
Referenced by dumpAsXml(), and operator==().
|
private |
Definition at line 75 of file fmtornt.hxx.
Referenced by dumpAsXml(), operator==(), PutValue(), and QueryValue().
|
private |
Definition at line 76 of file fmtornt.hxx.
Referenced by dumpAsXml(), operator==(), PutValue(), and QueryValue().
|
private |
Contains always the current RelPos.
Definition at line 74 of file fmtornt.hxx.
Referenced by dumpAsXml(), and operator==().