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

FlyAnchors. More...

#include <fmtanchr.hxx>

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

Public Member Functions

 SwFormatAnchor (RndStdIds eRnd=RndStdIds::FLY_AT_PAGE, sal_uInt16 nPageNum=0)
 
 SwFormatAnchor (const SwFormatAnchor &rCpy)
 
virtual ~SwFormatAnchor () override
 
SwFormatAnchoroperator= (const SwFormatAnchor &)
 
virtual bool operator== (const SfxPoolItem &) const override
 "pure virtual methods" of SfxPoolItem More...
 
virtual SfxPoolItemClone (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
 
RndStdIds GetAnchorId () const
 
sal_uInt16 GetPageNum () const
 
const SwPositionGetContentAnchor () const
 
sal_uInt32 GetOrder () const
 
void SetType (RndStdIds nRndId)
 
void SetPageNum (sal_uInt16 nNew)
 
void SetAnchor (const SwPosition *pPos)
 
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
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool operator< (const SfxPoolItem &) const
 
virtual bool IsSortable () const
 
virtual void ScaleMetrics (long lMult, long lDiv)
 
virtual bool HasMetrics () const
 
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 bool IsVoidItem () const
 

Private Attributes

std::unique_ptr< SwPositionm_pContentAnchor
 0 for page-bound frames. More...
 
RndStdIds m_eAnchorId
 
sal_uInt16 m_nPageNumber
 Page number for page-bound frames. More...
 
sal_uInt32 m_nOrder
 #i28701# - getting anchor positions ordered More...
 

Static Private Attributes

static sal_uInt32 m_nOrderCounter = 0
 

Additional Inherited Members

- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 

Detailed Description

FlyAnchors.

Definition at line 34 of file fmtanchr.hxx.

Constructor & Destructor Documentation

SwFormatAnchor::SwFormatAnchor ( RndStdIds  eRnd = RndStdIds::FLY_AT_PAGE,
sal_uInt16  nPageNum = 0 
)

Definition at line 1463 of file atrfrm.cxx.

Referenced by Clone().

SwFormatAnchor::SwFormatAnchor ( const SwFormatAnchor rCpy)

Definition at line 1471 of file atrfrm.cxx.

SwFormatAnchor::~SwFormatAnchor ( )
overridevirtual

Definition at line 1482 of file atrfrm.cxx.

Member Function Documentation

SfxPoolItem * SwFormatAnchor::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 1534 of file atrfrm.cxx.

References SwFormatAnchor().

void SwFormatAnchor::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual
RndStdIds SwFormatAnchor::GetAnchorId ( ) const
inline

Definition at line 65 of file fmtanchr.hxx.

Referenced by SwWrapTabPage::ActivatePage(), SwWW8FltAnchorStack::AddAnchor(), SwWW8ImplReader::AddAutoAnchor(), SwDrawView::AddCustomHdl(), SwFEShell::AlignFormulaToBaseline(), SwPageFrame::AppendDrawObjToPage(), AppendObj(), SwRootFrame::AssertPageFlys(), SwFlowFrame::BwdMoveNecessary(), CalcClipRect(), CalcContent(), CalcHeightWithFlys(), objectpositioning::SwToLayoutAnchoredObjectPosition::CalcPosition(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), SwDoc::Chainable(), SwAnchoredObject::CheckCharRectAndTopOfLine(), SwObjectFormatterTextFrame::CheckMovedFwdCondition(), SwDrawView::CheckPossibilities(), SwTaggedPDFHelper::CheckReopenTag(), SwFlyFrame::ChgRelPos(), SwHTMLParser::ClearFootnotesMarksInRange(), SwHTMLWriter::CollectFlyFrames(), CollectFrameAtNode(), SwDrawContact::ConnectToLayout(), SwAnchoredObject::ConsiderObjWrapInfluenceOnObjPos(), SwWW8ImplReader::ContainsSingleInlineGraphic(), SwWW8ImplReader::ConvertDrawTextToFly(), WinwordAnchoring::ConvertPosition(), SwXText::convertToTextFrame(), SwFEShell::Copy(), SwFEShell::CopyDrawSel(), sw::DocumentContentOperationsManager::CopyFlyInFlyImpl(), sw::DocumentLayoutManager::CopyLayoutFormat(), SwUndoSaveContent::DelContentIndex(), SwDoc::DeleteSelection(), SwUndoFlyBase::DelFly(), DelFlyInRange(), sw::DocumentContentOperationsManager::DelFullPara(), sw::DocumentLayoutManager::DelLayoutFormat(), SwXFrame::dispose(), SwXShape::dispose(), SwAccessibleMap::DoInvalidateShapeSelection(), SwTextFly::DrawTextOpaque(), DocxSdrExport::endDMLAnchorInline(), SwEnhancedPDFExportHelper::EnhancedPDFExport(), SwAnchoredObject::FindAnchorCharFrame(), SwFEShell::FindAnchorPos(), SwNode::FindPageDesc(), SwTextFly::ForEach(), WW8AttributeOutput::FormatAnchor(), RtfAttributeOutput::FormatAnchor(), SwDoc::GetAllFlyFormats(), SwBaseLink::GetAnchor(), SwXFrame::getAnchor(), SwUndoSetFlyFormat::GetAnchor(), SwXShape::getAnchor(), SwFEShell::GetAnchorId(), GetBodyTextNode(), SwHTMLWriter::GetControls(), SwAccessibleDocument::getExtendedAttributes(), SwFEShell::GetFlyFrameAttr(), SwFEShell::GetGraphicDefaultSize(), sw::access::SwAccessibleChild::GetParent(), SwXShape::getPropertyValue(), SwAccessibleSelectionHelper::getSelectedAccessibleChild(), SwAccessibleFrameBase::GetSelectedState(), SwTextFly::GetSurroundForTextWrap(), SwDoc::GetTextDirection(), SwTextFly::GetTop(), SwShapeDescriptor_Impl::GetVOrient(), WW8Glossary::HasBareGraphicEnd(), SwHTMLParser::HasCurrentParaFlys(), SwAutoFormat::HasObjects(), SwFEShell::ImpEndCreate(), SwRootFrame::ImplCalcBrowseWidth(), SwWW8ImplReader::ImportGraf(), SwFEShell::Insert(), sw::DocumentContentOperationsManager::InsertDrawObj(), SwHTMLParser::InsertDrawObject(), SwTextNode::InsertHint(), SwHTMLParser::InsertImage(), SwHTMLParser::InsertLineBreak(), SwWrtShell::InsertPostIt(), SwRootFrame::InvalidateAllObjPos(), SwAnchoredDrawObject::InvalidatePage_(), SwAccessibleMap::InvalidateShapeInParaSelection(), IsAnchoredObjShown(), sw::access::SwAccessibleChild::IsBoundAsChar(), IsEmptyBox(), SwFEShell::IsFlyInFly(), SwDoc::IsInHeaderFooter(), SwFrameFormat::IsLowerOf(), SwEditWin::IsOverHeaderFooterFly(), SwFEShell::IsSelObjProtected(), IsShown(), lcl_ArrangeLowers(), lcl_CpyBox(), lcl_FindAnchorLayPos(), lcl_FindAnchorPos(), lcl_InsertDrawLabel(), lcl_InsertLabel(), lcl_MakeAutoFrames(), lcl_MakeObjs(), lcl_MinMaxNode(), lcl_MoveAllLowerObjs(), lcl_ReAnchorAtContentFlyFrames(), lcl_RestoreAnchor(), lcl_SaveAnchor(), lcl_SetAnchor(), SwDoc::MakeFlyAndMove(), SwDoc::MakeFlySection(), SwDoc::MakeFlySection_(), SwFlyFrameFormat::MakeFrames(), SwWW8ImplReader::MakeGrafNotInContent(), SwContentFrame::MakePrtArea(), SwFlyLayFrame::Modify(), SwFlyAtContentFrame::Modify(), SwFEShell::MoveAnchor(), SwTextFrame::MoveFlyInCnt(), SwFEShell::NewFlyFrame(), SwViewShellImp::NotifySizeChg(), ObjAnchorOrder::operator()(), operator=(), operator==(), SwHTMLWriter::OutCSS1_FrameFormatBackground(), SwHTMLWriter::OutCSS1_FrameFormatOptions(), SwHTMLWriter::OutFrameFormatOptions(), WW8Export::OutGrf(), OutHTML_FrameFormatOLENode(), AttributeOutputBase::OutputFlyFrame(), WW8AttributeOutput::OutputFlyFrame_Impl(), SwTextFrame::Prepare(), SwUndoSetFlyFormat::PutAttr(), PutValue(), QueryValue(), SwReader::Read(), SwWW8ImplReader::Read_GrafLayer(), SwHTMLParser::RegisterFlyFrame(), SwPageFrame::RemoveDrawObjFromPage(), RemoveHiddenObjsOfNode(), SwWrapTabPage::Reset(), SwFramePage::Reset(), SwUndoFormatAttr::RestoreFlyAnchor(), SwUndoFormatAttr::SaveFlyAnchor(), SaveFlyInRange(), sw::DocumentDrawModelManager::Search(), SwDoc::SetAllUniqueFlyNames(), SwHTMLParser::SetAnchorAndAdjustment(), WinwordAnchoring::SetAnchoring(), SwHTMLParser::SetAttr_(), SwFltControlStack::SetAttrInDoc(), SwFEShell::SetDrawingAttr(), SwDoc::SetFlyFrameAnchor(), SwDoc::SetFrameFormatToFly(), SwUndoInserts::SetInsertRange(), SwXFrame::setPropertyValue(), SwXShape::setPropertyValue(), SwDoc::SortText(), SwDoc::SplitDoc(), DocxSdrExport::startDMLAnchorInline(), SwHTMLParser::StripTrailingPara(), sw_ChkAndSetNewAnchor(), SwDrawContact::SwClientNotify(), SwFlyAtContentFrame::SwFlyAtContentFrame(), SwHandleAnchorNodeChg::SwHandleAnchorNodeChg(), SwHTMLPosFlyFrame::SwHTMLPosFlyFrame(), SwPosFlyFrame::SwPosFlyFrame(), SwUndoInserts::SwUndoInserts(), SwUndoInsLayFormat::SwUndoInsLayFormat(), SwUndoTableToText::SwUndoTableToText(), SwNodes::TableToText(), WW8Export::TrueFrameBgBrush(), MSWordExportBase::TrueFrameDirection(), SwUndoSetFlyFormat::UndoImpl(), SwTextNode::Update(), sw::util::UpdateFramePositions(), DocxAttributeOutput::WriteActiveXControl(), DocxSdrExport::writeDMLDrawing(), SwHTMLWriter::writeFrameFormatOptions(), PlcDrawObj::WritePlc(), SwContentNotify::~SwContentNotify(), and SwPosFlyFrame::~SwPosFlyFrame().

const SwPosition* SwFormatAnchor::GetContentAnchor ( ) const
inline

Definition at line 67 of file fmtanchr.hxx.

Referenced by SwNode::AddAnchoredFly(), AppendObjsOfNode(), SwRootFrame::AssertFlyPages(), SwFlowFrame::BwdMoveNecessary(), SwRootFrame::CalcFrameRects(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), SwDoc::Chainable(), checkAndWriteFloatingTables(), SwAnchoredObject::CheckCharRect(), SwAnchoredObject::CheckCharRectAndTopOfLine(), SwAnchoredObject::CheckTopOfLine(), SwFlyFrame::ChgRelPos(), SwHTMLParser::ClearFootnotesMarksInRange(), SwHTMLWriter::CollectFlyFrames(), CollectFrameAtNode(), SwDrawContact::ConnectToLayout(), WinwordAnchoring::ConvertPosition(), SwXText::convertToTextFrame(), SwFEShell::Copy(), sw::DocumentContentOperationsManager::CopyFlyInFlyImpl(), sw::DocumentLayoutManager::CopyLayoutFormat(), WW8TabDesc::CreateSwTable(), SwUndoSaveContent::DelContentIndex(), SwUndoFlyBase::DelFly(), DelFlyInRange(), sw::DocumentContentOperationsManager::DelFullPara(), sw::DocumentLayoutManager::DelLayoutFormat(), SwXFrame::dispose(), SwXShape::dispose(), SwEnhancedPDFExportHelper::EnhancedPDFExport(), SwAnchoredObject::FindAnchorCharFrame(), SwNode::FindPageDesc(), SwDoc::GetAllFlyFormats(), SwBaseLink::GetAnchor(), SwXFrame::getAnchor(), SwXShape::getAnchor(), GetBodyTextNode(), SwHTMLWriter::GetControls(), SwAccessibleDocument::getExtendedAttributes(), SwXFrame::getPropertyValue(), SwXShape::getPropertyValue(), SwAccessibleFrameBase::GetSelectedState(), SwDoc::GetTextDirection(), SwTextFly::GetTop(), WW8Glossary::HasBareGraphicEnd(), SwHTMLParser::HasCurrentParaFlys(), SwAutoFormat::HasObjects(), SwFEShell::ImpEndCreate(), IMPL_LINK(), SwHTMLImageWatcher::init(), SwFEShell::Insert(), sw::DocumentContentOperationsManager::InsertDrawObj(), SwTextNode::InsertHint(), SwHTMLParser::InsertLineBreak(), SwUndoFlyBase::InsFly(), SwAccessibleMap::InvalidateShapeInParaSelection(), IsAnchoredObjShown(), IsEmptyBox(), SwOLENode::IsInGlobalDocSection(), SwDoc::IsInHeaderFooter(), SwFrameFormat::IsLowerOf(), SwEditWin::IsOverHeaderFooterFly(), SwNode::IsProtect(), IsShown(), lcl_AnchoredFrames(), lcl_CpyBox(), lcl_DelFormatIndices(), lcl_ExtractFramePositions(), lcl_FindAnchorLayPos(), lcl_InsertDrawLabel(), lcl_InsertLabel(), lcl_MakeAutoFrames(), lcl_MakeObjs(), lcl_MinMaxNode(), lcl_ReAnchorAtContentFlyFrames(), lcl_SaveAnchor(), SwDoc::MakeFlySection(), SwDoc::MakeFlySection_(), SwFlyFrameFormat::MakeFrames(), SwFlyLayFrame::Modify(), SwFlyAtContentFrame::Modify(), SwTextFrame::MoveFlyInCnt(), ObjAnchorOrder::operator()(), operator=(), operator==(), SwHTMLWriter::OutCSS1_FrameFormatBackground(), WW8AttributeOutput::OutputFlyFrame_Impl(), HTMLTable::PendingDrawObjectsInPaM(), SwUndoSetFlyFormat::PutAttr(), SwReader::Read(), RemoveHiddenObjsOfNode(), SwFramePage::Reset(), SwUndoFormatAttr::RestoreFlyAnchor(), SwUndoFormatAttr::SaveFlyAnchor(), SaveFlyInRange(), SwDoc::SetAllUniqueFlyNames(), SwHTMLParser::SetAttr_(), SwDoc::SetFlyFrameAnchor(), SetGrfFlySize(), SwUndoInserts::SetInsertRange(), SwXFrame::setPropertyValue(), SwXShape::setPropertyValue(), SwDoc::SortText(), SwDoc::SplitDoc(), SwHTMLParser::StripTrailingPara(), sw_ChkAndSetNewAnchor(), SwHandleAnchorNodeChg::SwHandleAnchorNodeChg(), SwHTMLPosFlyFrame::SwHTMLPosFlyFrame(), SwUndoInserts::SwUndoInserts(), SwUndoInsLayFormat::SwUndoInsLayFormat(), SwUndoTableToText::SwUndoTableToText(), SwNodes::TableToText(), WW8Export::TrueFrameBgBrush(), MSWordExportBase::TrueFrameDirection(), SwUndoSetFlyFormat::UndoImpl(), SwTextNode::Update(), sw::util::UpdateFramePositions(), DocxAttributeOutput::WriteTextBox(), DocxAttributeOutput::WriteVMLTextBox(), SwContentNotify::~SwContentNotify(), and SwFrameFormat::~SwFrameFormat().

sal_uInt32 SwFormatAnchor::GetOrder ( ) const
inline

Definition at line 69 of file fmtanchr.hxx.

Referenced by CollectFrameAtNode(), and ObjAnchorOrder::operator()().

sal_uInt16 SwFormatAnchor::GetPageNum ( ) const
inline
bool SwFormatAnchor::GetPresentation ( SfxItemPresentation  ePres,
MapUnit  eCoreMetric,
MapUnit  ePresMetric,
OUString &  rText,
const IntlWrapper rIntl 
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 433 of file attrdesc.cxx.

References SwResId().

Referenced by dumpAsXml().

SwFormatAnchor & SwFormatAnchor::operator= ( const SwFormatAnchor rAnchor)
bool SwFormatAnchor::operator== ( const SfxPoolItem rAttr) const
overridevirtual

"pure virtual methods" of SfxPoolItem

Implements SfxPoolItem.

Definition at line 1520 of file atrfrm.cxx.

References GetAnchorId(), GetContentAnchor(), GetPageNum(), m_eAnchorId, m_nPageNumber, and m_pContentAnchor.

bool SwFormatAnchor::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overridevirtual
bool SwFormatAnchor::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual
void SwFormatAnchor::SetAnchor ( const SwPosition pPos)
void SwFormatAnchor::SetPageNum ( sal_uInt16  nNew)
inline
void SwFormatAnchor::SetType ( RndStdIds  nRndId)
inline

Member Data Documentation

RndStdIds SwFormatAnchor::m_eAnchorId
private

Definition at line 39 of file fmtanchr.hxx.

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

sal_uInt32 SwFormatAnchor::m_nOrder
private

#i28701# - getting anchor positions ordered

Definition at line 43 of file fmtanchr.hxx.

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

sal_uInt32 SwFormatAnchor::m_nOrderCounter = 0
staticprivate

Definition at line 44 of file fmtanchr.hxx.

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

sal_uInt16 SwFormatAnchor::m_nPageNumber
private

Page number for page-bound frames.

Definition at line 40 of file fmtanchr.hxx.

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

std::unique_ptr<SwPosition> SwFormatAnchor::m_pContentAnchor
private

0 for page-bound frames.

Index for paragraph-bound frames. Position for character-bound frames.

Definition at line 36 of file fmtanchr.hxx.

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


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