LibreOffice Module sw (master) 1
|
#include <DocumentDrawModelManager.hxx>
Public Member Functions | |
DocumentDrawModelManager (SwDoc &i_rSwdoc) | |
void | InitDrawModel () |
void | ReleaseDrawModel () |
void | DrawNotifyUndoHdl () |
virtual const SwDrawModel * | GetDrawModel () const override |
Draw Model and id accessors. More... | |
virtual SwDrawModel * | GetDrawModel () override |
virtual SwDrawModel * | MakeDrawModel_ () override |
virtual SwDrawModel * | GetOrCreateDrawModel () override |
virtual SdrLayerID | GetHeavenId () const override |
virtual SdrLayerID | GetHellId () const override |
virtual SdrLayerID | GetControlsId () const override |
virtual SdrLayerID | GetInvisibleHeavenId () const override |
virtual SdrLayerID | GetInvisibleHellId () const override |
virtual SdrLayerID | GetInvisibleControlsId () const override |
virtual void | NotifyInvisibleLayers (SdrPageView &_rSdrPageView) override |
method to notify drawing page view about the invisible layers More... | |
virtual bool | IsVisibleLayerId (SdrLayerID _nLayerId) const override |
method to determine, if a layer ID belongs to the visible ones. More... | |
virtual SdrLayerID | GetInvisibleLayerIdByVisibleOne (SdrLayerID _nVisibleLayerId) override |
method to determine, if the corresponding invisible layer ID for a visible one. More... | |
virtual bool | Search (const SwPaM &rPaM, const SvxSearchItem &rSearchItem) override |
Searches text in shapes anchored inside rPaM. More... | |
virtual const SwDrawModel * | GetDrawModel () const =0 |
Draw Model and id accessors. More... | |
virtual SwDrawModel * | GetDrawModel ()=0 |
virtual SwDrawModel * | MakeDrawModel_ ()=0 |
virtual SwDrawModel * | GetOrCreateDrawModel ()=0 |
virtual SdrLayerID | GetHeavenId () const =0 |
virtual SdrLayerID | GetHellId () const =0 |
virtual SdrLayerID | GetControlsId () const =0 |
virtual SdrLayerID | GetInvisibleHeavenId () const =0 |
virtual SdrLayerID | GetInvisibleHellId () const =0 |
virtual SdrLayerID | GetInvisibleControlsId () const =0 |
virtual void | NotifyInvisibleLayers (SdrPageView &_rSdrPageView)=0 |
method to notify drawing page view about the invisible layers More... | |
virtual bool | IsVisibleLayerId (SdrLayerID _nLayerId) const =0 |
method to determine, if a layer ID belongs to the visible ones. More... | |
virtual SdrLayerID | GetInvisibleLayerIdByVisibleOne (SdrLayerID _nVisibleLayerId)=0 |
method to determine, if the corresponding invisible layer ID for a visible one. More... | |
virtual bool | Search (const SwPaM &rPaM, const SvxSearchItem &rSearchItem)=0 |
Searches text in shapes anchored inside rPaM. More... | |
Private Member Functions | |
DocumentDrawModelManager (DocumentDrawModelManager const &)=delete | |
DocumentDrawModelManager & | operator= (DocumentDrawModelManager const &)=delete |
Private Attributes | |
SwDoc & | m_rDoc |
std::unique_ptr< SwDrawModel > | mpDrawModel |
SdrLayerID | mnHeaven |
Draw Model Layer IDs LayerIds, Heaven == above document Hell == below document Controls == at the very top. More... | |
SdrLayerID | mnHell |
SdrLayerID | mnControls |
SdrLayerID | mnInvisibleHeaven |
SdrLayerID | mnInvisibleHell |
SdrLayerID | mnInvisibleControls |
Additional Inherited Members | |
Protected Member Functions inherited from IDocumentDrawModelAccess | |
virtual | ~IDocumentDrawModelAccess () |
Definition at line 33 of file DocumentDrawModelManager.hxx.
sw::DocumentDrawModelManager::DocumentDrawModelManager | ( | SwDoc & | i_rSwdoc | ) |
Definition at line 55 of file DocumentDrawModelManager.cxx.
|
privatedelete |
void sw::DocumentDrawModelManager::DrawNotifyUndoHdl | ( | ) |
Definition at line 350 of file DocumentDrawModelManager.cxx.
References mpDrawModel.
Referenced by SwDoc::ClearDoc(), and SwDoc::~SwDoc().
|
overridevirtual |
Implements IDocumentDrawModelAccess.
Definition at line 207 of file DocumentDrawModelManager.cxx.
References mnControls.
Referenced by GetInvisibleLayerIdByVisibleOne(), and IsVisibleLayerId().
|
overridevirtual |
Draw Model and id accessors.
Implements IDocumentDrawModelAccess.
Definition at line 162 of file DocumentDrawModelManager.cxx.
References mpDrawModel.
Referenced by GetOrCreateDrawModel(), and Search().
|
overridevirtual |
Implements IDocumentDrawModelAccess.
Definition at line 167 of file DocumentDrawModelManager.cxx.
References mpDrawModel.
|
overridevirtual |
Implements IDocumentDrawModelAccess.
Definition at line 197 of file DocumentDrawModelManager.cxx.
References mnHeaven.
Referenced by GetInvisibleLayerIdByVisibleOne(), and IsVisibleLayerId().
|
overridevirtual |
Implements IDocumentDrawModelAccess.
Definition at line 202 of file DocumentDrawModelManager.cxx.
References mnHell.
Referenced by GetInvisibleLayerIdByVisibleOne(), and IsVisibleLayerId().
|
overridevirtual |
Implements IDocumentDrawModelAccess.
Definition at line 222 of file DocumentDrawModelManager.cxx.
References mnInvisibleControls.
Referenced by GetInvisibleLayerIdByVisibleOne(), and IsVisibleLayerId().
|
overridevirtual |
Implements IDocumentDrawModelAccess.
Definition at line 212 of file DocumentDrawModelManager.cxx.
References mnInvisibleHeaven.
Referenced by GetInvisibleLayerIdByVisibleOne(), and IsVisibleLayerId().
|
overridevirtual |
Implements IDocumentDrawModelAccess.
Definition at line 217 of file DocumentDrawModelManager.cxx.
References mnInvisibleHell.
Referenced by GetInvisibleLayerIdByVisibleOne(), and IsVisibleLayerId().
|
overridevirtual |
method to determine, if the corresponding invisible layer ID for a visible one.
Note: If given layer ID is an invisible one, method returns given layer ID. Note: If given layer ID is unknown, method returns given layer ID.
_nVisibleLayerId | input parameter - visible layer ID for which the corresponding invisible one has to be returned. |
Implements IDocumentDrawModelAccess.
Definition at line 265 of file DocumentDrawModelManager.cxx.
References GetControlsId(), GetHeavenId(), GetHellId(), GetInvisibleControlsId(), GetInvisibleHeavenId(), and GetInvisibleHellId().
|
overridevirtual |
Implements IDocumentDrawModelAccess.
Definition at line 192 of file DocumentDrawModelManager.cxx.
References GetDrawModel(), and MakeDrawModel_().
void sw::DocumentDrawModelManager::InitDrawModel | ( | ) |
Definition at line 69 of file DocumentDrawModelManager.cxx.
References ADD_EXT_LEADING, SwDoc::AddDrawUndo(), EE_CHAR_FONTHEIGHT(), IDocumentSettingAccess::get(), SwDoc::GetAttrPool(), IDocumentLayoutAccess::GetCurrentViewShell(), SwRootFrame::GetDrawPage(), SwFrameAreaDefinition::getFrameArea(), GetHyphenator(), SwDoc::getIDocumentDeviceAccess(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentLinksAdministration(), SwDoc::getIDocumentSettingAccess(), SwDoc::GetIDocumentUndoRedo(), IDocumentLinksAdministration::GetLinkManager(), IDocumentDeviceAccess::getReferenceDevice(), sw::Ring< value_type >::GetRingContainer(), GetSpellChecker(), utl::ConfigManager::IsFuzzing(), m_rDoc, mnControls, mnHeaven, mnHell, mnInvisibleControls, mnInvisibleHeaven, mnInvisibleHell, mpDrawModel, ReleaseDrawModel(), SAL_INFO, SwDoc::SetCalcFieldValueHdl(), SwRootFrame::SetDrawPage(), SfxItemPool::SetPoolDefaultItem(), SdrPage::SetSize(), and SwRect::SSize().
Referenced by MakeDrawModel_().
|
overridevirtual |
method to determine, if a layer ID belongs to the visible ones.
Note: If given layer ID is unknown, method asserts and returns <false>.
_nLayerId | input parameter - layer ID, which has to be checked, if it belongs to the visible ones. |
Implements IDocumentDrawModelAccess.
Definition at line 240 of file DocumentDrawModelManager.cxx.
References GetControlsId(), GetHeavenId(), GetHellId(), GetInvisibleControlsId(), GetInvisibleHeavenId(), and GetInvisibleHellId().
|
overridevirtual |
Implements IDocumentDrawModelAccess.
Definition at line 172 of file DocumentDrawModelManager.cxx.
References IDocumentLayoutAccess::GetCurrentViewShell(), SwDoc::GetDocShell(), SwDoc::getIDocumentLayoutAccess(), sw::Ring< value_type >::GetRingContainer(), InitDrawModel(), m_rDoc, SwViewShell::MakeDrawView(), and mpDrawModel.
Referenced by GetOrCreateDrawModel().
|
overridevirtual |
method to notify drawing page view about the invisible layers
Implements IDocumentDrawModelAccess.
Definition at line 227 of file DocumentDrawModelManager.cxx.
References SdrPageView::SetLayerVisible().
|
privatedelete |
void sw::DocumentDrawModelManager::ReleaseDrawModel | ( | ) |
Definition at line 155 of file DocumentDrawModelManager.cxx.
References mpDrawModel.
Referenced by InitDrawModel(), and SwDoc::~SwDoc().
|
overridevirtual |
Searches text in shapes anchored inside rPaM.
Implements IDocumentDrawModelAccess.
Definition at line 297 of file DocumentDrawModelManager.cxx.
References DynCastSdrTextObj(), EE_PARA_MAX_COUNT, EE_TEXTPOS_MAX_COUNT, SwView::EnterShapeDrawTextMode(), SwFrameFormat::FindSdrObject(), SwDoc::GetAllFlyFormats(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SvxSearchItem::GetBackward(), SwDoc::GetDocShell(), GetDrawModel(), SdrModel::GetDrawOutliner(), SwViewShell::GetDrawView(), SdrTextObj::GetOutlinerParaObject(), SdrObjEditView::GetTextEditOutlinerView(), SwDocShell::GetView(), SwDocShell::GetWrtShell(), m_rDoc, pObject, RES_DRAWFRMFMT(), SwFEShell::SelectObj(), OutlinerView::SetSelection(), OutlinerView::StartSearchAndReplace(), and SwFormat::Which().
|
private |
Definition at line 66 of file DocumentDrawModelManager.hxx.
Referenced by InitDrawModel(), MakeDrawModel_(), and Search().
|
private |
Definition at line 77 of file DocumentDrawModelManager.hxx.
Referenced by GetControlsId(), and InitDrawModel().
|
private |
Draw Model Layer IDs LayerIds, Heaven == above document Hell == below document Controls == at the very top.
Definition at line 75 of file DocumentDrawModelManager.hxx.
Referenced by GetHeavenId(), and InitDrawModel().
|
private |
Definition at line 76 of file DocumentDrawModelManager.hxx.
Referenced by GetHellId(), and InitDrawModel().
|
private |
Definition at line 80 of file DocumentDrawModelManager.hxx.
Referenced by GetInvisibleControlsId(), and InitDrawModel().
|
private |
Definition at line 78 of file DocumentDrawModelManager.hxx.
Referenced by GetInvisibleHeavenId(), and InitDrawModel().
|
private |
Definition at line 79 of file DocumentDrawModelManager.hxx.
Referenced by GetInvisibleHellId(), and InitDrawModel().
|
private |
Definition at line 68 of file DocumentDrawModelManager.hxx.
Referenced by DrawNotifyUndoHdl(), GetDrawModel(), InitDrawModel(), MakeDrawModel_(), and ReleaseDrawModel().