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

#include <DocumentLayoutManager.hxx>

Inheritance diagram for sw::DocumentLayoutManager:
[legend]
Collaboration diagram for sw::DocumentLayoutManager:
[legend]

Public Member Functions

 DocumentLayoutManager (SwDoc &i_rSwdoc)
 
virtual const SwViewShellGetCurrentViewShell () const override
 Returns the layout set at the document. More...
 
virtual SwViewShellGetCurrentViewShell () override
 
virtual void SetCurrentViewShell (SwViewShell *pNew) override
 !!!The old layout must be deleted!!! More...
 
virtual const SwRootFrameGetCurrentLayout () const override
 
virtual SwRootFrameGetCurrentLayout () override
 
virtual bool HasLayout () const override
 
virtual const SwLayouterGetLayouter () const override
 
virtual SwLayouterGetLayouter () override
 
virtual void SetLayouter (SwLayouter *pNew) override
 
virtual SwFrameFormatMakeLayoutFormat (RndStdIds eRequest, const SfxItemSet *pSet) override
 Create a new format whose settings fit to the Request by default. More...
 
virtual void DelLayoutFormat (SwFrameFormat *pFormat) override
 Deletes the denoted format and its content. More...
 
virtual SwFrameFormatCopyLayoutFormat (const SwFrameFormat &rSrc, const SwFormatAnchor &rNewAnchor, bool bSetTextFlyAtt, bool bMakeFrames) override
 Copies the stated format (pSrc) to pDest and returns pDest. More...
 
void ClearSwLayouterEntries ()
 
virtual ~DocumentLayoutManager () override
 

Private Member Functions

 DocumentLayoutManager (DocumentLayoutManager const &)=delete
 
DocumentLayoutManageroperator= (DocumentLayoutManager const &)=delete
 

Private Attributes

SwDocm_rDoc
 
SwViewShellmpCurrentView
 
std::unique_ptr< SwLayoutermpLayouter
 css::frame::Controller for complex layout formatting like footnote/endnote in sections More...
 

Additional Inherited Members

- Protected Member Functions inherited from IDocumentLayoutAccess
virtual ~IDocumentLayoutAccess ()
 

Detailed Description

Definition at line 32 of file DocumentLayoutManager.hxx.

Constructor & Destructor Documentation

sw::DocumentLayoutManager::DocumentLayoutManager ( SwDoc i_rSwdoc)

Definition at line 49 of file DocumentLayoutManager.cxx.

References m_rDoc.

sw::DocumentLayoutManager::~DocumentLayoutManager ( )
overridevirtual

Definition at line 501 of file DocumentLayoutManager.cxx.

sw::DocumentLayoutManager::DocumentLayoutManager ( DocumentLayoutManager const &  )
privatedelete

Member Function Documentation

void sw::DocumentLayoutManager::ClearSwLayouterEntries ( )
SwFrameFormat * sw::DocumentLayoutManager::CopyLayoutFormat ( const SwFrameFormat rSource,
const SwFormatAnchor rNewAnchor,
bool  bSetTextFlyAtt,
bool  bMakeFrames 
)
overridevirtual

Copies the stated format (pSrc) to pDest and returns pDest.

If there's no pDest, it is created. If the source format is located in another document, also copy correctly in this case. The Anchor attribute's position is always set to 0!

Implements IDocumentLayoutAccess.

Definition at line 319 of file DocumentLayoutManager.cxx.

References IDocumentUndoRedo::AppendUndo(), sw::BroadcastingModify::CallSwClientNotify(), SwFormat::CopyAttrs(), SwDoc::CopyFrameFormat(), sw::DocumentContentOperationsManager::CopyWithFlyInFly(), IDocumentUndoRedo::DoesUndo(), SwNode::EndOfSectionNode(), SwDoc::FindFlyByName(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormat::GetAttrSet(), SwFormat::GetContent(), SwFormatAnchor::GetContentAnchor(), SwFormatContent::GetContentIdx(), SwDoc::GetDfltFrameFormat(), SwFormat::GetDoc(), SwDoc::GetDocumentContentOperationsManager(), SwNodes::GetEndOfAutotext(), SwDoc::GetIDocumentUndoRedo(), SwIndex::GetIndex(), SwFormat::GetName(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwXFrame::GetOrCreateSdrObject(), SwTextBoxHelper::getOtherTextBoxFormat(), SwClient::GetRegisteredIn(), SwNode::GetTextNode(), SwDoc::GetUniqueFrameName(), SwDoc::GetUniqueGrfName(), SwDoc::GetUniqueOLEName(), Grf, SwTextNode::InsertItem(), SwDoc::IsCopyIsMove(), SwDoc::IsInHeaderFooter(), SwDoc::IsInMailMerge(), SwDoc::IsInReading(), m_rDoc, sw::MAKE_FRAMES, SwDoc::MakeDrawFrameFormat(), SwNodes::MakeEmptySection(), SwDoc::MakeFlyFrameFormat(), SwFrameFormat::MakeFrames(), SwPosition::nContent, SwPosition::nNode, Ole, RES_CHAIN, RES_DRAWFRMFMT, RES_FLYFRMFMT, SwFormat::ResetFormatAttr(), SwFormat::SetFormatAttr(), SwFrameFormat::SetName(), SwFormatContent::SetNewContentIdx(), SwFrameFormat::SetOtherTextBoxFormat(), SwFormatAnchor::SetType(), SwFlyStartNode, and SwFormat::Which().

void sw::DocumentLayoutManager::DelLayoutFormat ( SwFrameFormat pFormat)
overridevirtual
const SwRootFrame * sw::DocumentLayoutManager::GetCurrentLayout ( ) const
overridevirtual

Implements IDocumentLayoutAccess.

Definition at line 71 of file DocumentLayoutManager.cxx.

References GetCurrentViewShell(), and SwViewShell::GetLayout().

SwRootFrame * sw::DocumentLayoutManager::GetCurrentLayout ( )
overridevirtual

Implements IDocumentLayoutAccess.

Definition at line 78 of file DocumentLayoutManager.cxx.

References GetCurrentViewShell(), and SwViewShell::GetLayout().

const SwViewShell * sw::DocumentLayoutManager::GetCurrentViewShell ( ) const
overridevirtual

Returns the layout set at the document.

Implements IDocumentLayoutAccess.

Definition at line 55 of file DocumentLayoutManager.cxx.

References mpCurrentView.

Referenced by GetCurrentLayout().

SwViewShell * sw::DocumentLayoutManager::GetCurrentViewShell ( )
overridevirtual

Implements IDocumentLayoutAccess.

Definition at line 60 of file DocumentLayoutManager.cxx.

References mpCurrentView.

const SwLayouter * sw::DocumentLayoutManager::GetLayouter ( ) const
overridevirtual

Implements IDocumentLayoutAccess.

Definition at line 96 of file DocumentLayoutManager.cxx.

References mpLayouter.

SwLayouter * sw::DocumentLayoutManager::GetLayouter ( )
overridevirtual

Implements IDocumentLayoutAccess.

Definition at line 91 of file DocumentLayoutManager.cxx.

References mpLayouter.

bool sw::DocumentLayoutManager::HasLayout ( ) const
overridevirtual

Implements IDocumentLayoutAccess.

Definition at line 85 of file DocumentLayoutManager.cxx.

References mpCurrentView.

SwFrameFormat * sw::DocumentLayoutManager::MakeLayoutFormat ( RndStdIds  eRequest,
const SfxItemSet pSet 
)
overridevirtual
DocumentLayoutManager& sw::DocumentLayoutManager::operator= ( DocumentLayoutManager const &  )
privatedelete
void sw::DocumentLayoutManager::SetCurrentViewShell ( SwViewShell pNew)
overridevirtual

!!!The old layout must be deleted!!!

Implements IDocumentLayoutAccess.

Definition at line 65 of file DocumentLayoutManager.cxx.

References mpCurrentView.

void sw::DocumentLayoutManager::SetLayouter ( SwLayouter pNew)
overridevirtual

Implements IDocumentLayoutAccess.

Definition at line 101 of file DocumentLayoutManager.cxx.

References mpLayouter.

Member Data Documentation

SwDoc& sw::DocumentLayoutManager::m_rDoc
private
SwViewShell* sw::DocumentLayoutManager::mpCurrentView
private

Definition at line 67 of file DocumentLayoutManager.hxx.

Referenced by GetCurrentViewShell(), HasLayout(), and SetCurrentViewShell().

std::unique_ptr<SwLayouter> sw::DocumentLayoutManager::mpLayouter
private

css::frame::Controller for complex layout formatting like footnote/endnote in sections

Definition at line 68 of file DocumentLayoutManager.hxx.

Referenced by GetLayouter(), and SetLayouter().


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