LibreOffice Module sd (master) 1
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | List of all members
sd::ViewShell::Implementation Class Reference

This class contains (will contain) the implementation of methods that have not be accessible from the outside. More...

#include <ViewShellImplementation.hxx>

Collaboration diagram for sd::ViewShell::Implementation:
[legend]

Classes

class  ToolBarManagerLock
 This update lock for the ToolBarManager exists in order to avoid problems with tool bars being displayed while the mouse button is pressed. More...
 

Public Member Functions

 Implementation (ViewShell &rViewShell)
 
 ~Implementation () COVERITY_NOEXCEPT_FALSE
 
void ProcessModifyPageSlot (SfxRequest &rRequest, SdPage *pCurrentPage, PageKind ePageKind)
 Process the SID_MODIFY slot. More...
 
void AssignLayout (SfxRequest const &rRequest, PageKind ePageKind)
 Assign the given layout to the given page. More...
 
SfxInterfaceId GetViewId () const
 Determine the view id of the view shell. More...
 

Static Public Member Functions

static SvxIMapDlgGetImageMapDialog ()
 Return a pointer to the image map dialog that is displayed in some child window. More...
 

Public Attributes

bool mbIsMainViewShell
 
bool mbIsInitialized
 Set to true when the ViewShell::Init() method has been called. More...
 
bool mbArrangeActive
 Set to true while ViewShell::ArrangeGUIElements() is being executed. More...
 
ViewShellManager::SharedShellFactory mpSubShellFactory
 Remember a link to the sub shell factory, so that it can be unregistered at the ViewShellManager when a ViewShell is deleted. More...
 
std::weak_ptr< ToolBarManagerLockmpUpdateLockForMouse
 

Private Attributes

ViewShellmrViewShell
 

Detailed Description

This class contains (will contain) the implementation of methods that have not be accessible from the outside.

Definition at line 35 of file ViewShellImplementation.hxx.

Constructor & Destructor Documentation

◆ Implementation()

sd::ViewShell::Implementation::Implementation ( ViewShell rViewShell)

Definition at line 58 of file ViewShellImplementation.cxx.

References mrViewShell.

◆ ~Implementation()

sd::ViewShell::Implementation::~Implementation ( )

Definition at line 66 of file ViewShellImplementation.cxx.

Member Function Documentation

◆ AssignLayout()

void sd::ViewShell::Implementation::AssignLayout ( SfxRequest const &  rRequest,
PageKind  ePageKind 
)

Assign the given layout to the given page.

This method is at the moment merely a front end for ProcessModifyPageSlot.

Parameters
pPageIf a NULL pointer is given then this call is ignored.

Definition at line 226 of file ViewShellImplementation.cxx.

References SfxRequest::AppendItem(), SfxRequest::GetArg(), SdPage::GetAutoLayout(), SwViewShell::GetDoc(), SdrLayerAdmin::GetLayerID(), SdPage::GetName(), SdPage::GetPageKind(), CntUInt32Item::GetValue(), Handout, SdrLayerIDSet::IsSet(), mrViewShell, SdrLayerIDSet::SetAll(), sUNO_LayerName_background, sUNO_LayerName_background_objects, and SdrPage::TRG_GetMasterPageVisibleLayers().

◆ GetImageMapDialog()

SvxIMapDlg * sd::ViewShell::Implementation::GetImageMapDialog ( )
static

Return a pointer to the image map dialog that is displayed in some child window.

Returns
Returns <NULL> when the image map dialog is not available.

Definition at line 306 of file ViewShellImplementation.cxx.

References SfxViewFrame::Current(), SfxViewFrame::GetChildWindow(), and SfxChildWindow::GetController().

Referenced by sd::DrawViewShell::ExecIMap(), sd::DrawViewShell::FuTemporary(), and sd::DrawViewShell::GetIMapState().

◆ GetViewId()

SfxInterfaceId sd::ViewShell::Implementation::GetViewId ( ) const

Determine the view id of the view shell.

This corresponds to the view id stored in the SfxViewFrame class.

We can not use the view of that class because with the introduction of the multi pane GUI we do not switch the SfxViewShell anymore when switching the view in the center pane. The view id of the SfxViewFrame is thus not modified and we can not set it from the outside.

The view id is still needed for the SFX to determine on start up (e.g. after loading a document) which ViewShellBase sub class to use. These sub classes–like OutlineViewShellBase–exist only to be used by the SFX as factories. They only set the initial pane configuration, nothing more.

So what we do here in essence is to return one of the ViewShellFactoryIds that can be used to select the factory that creates the ViewShellBase subclass with the initial pane configuration that has in the center pane a view shell of the same type as mrViewShell.

Definition at line 275 of file ViewShellImplementation.cxx.

References sd::DRAW_FACTORY_ID, sd::IMPRESS_FACTORY_ID, mrViewShell, sd::OUTLINE_FACTORY_ID, sd::PRESENTATION_FACTORY_ID, sd::SLIDE_SORTER_FACTORY_ID, sd::ViewShell::ST_DRAW, sd::ViewShell::ST_HANDOUT, sd::ViewShell::ST_IMPRESS, sd::ViewShell::ST_NONE, sd::ViewShell::ST_NOTES, sd::ViewShell::ST_OUTLINE, sd::ViewShell::ST_PRESENTATION, sd::ViewShell::ST_SIDEBAR, and sd::ViewShell::ST_SLIDE_SORTER.

◆ ProcessModifyPageSlot()

void sd::ViewShell::Implementation::ProcessModifyPageSlot ( SfxRequest rRequest,
SdPage pCurrentPage,
PageKind  ePageKind 
)

Member Data Documentation

◆ mbArrangeActive

bool sd::ViewShell::Implementation::mbArrangeActive

Set to true while ViewShell::ArrangeGUIElements() is being executed.

It is used as guard against recursive execution.

Definition at line 44 of file ViewShellImplementation.hxx.

◆ mbIsInitialized

bool sd::ViewShell::Implementation::mbIsInitialized

Set to true when the ViewShell::Init() method has been called.

Definition at line 40 of file ViewShellImplementation.hxx.

◆ mbIsMainViewShell

bool sd::ViewShell::Implementation::mbIsMainViewShell

Definition at line 38 of file ViewShellImplementation.hxx.

◆ mpSubShellFactory

ViewShellManager::SharedShellFactory sd::ViewShell::Implementation::mpSubShellFactory

Remember a link to the sub shell factory, so that it can be unregistered at the ViewShellManager when a ViewShell is deleted.

Definition at line 49 of file ViewShellImplementation.hxx.

◆ mpUpdateLockForMouse

std::weak_ptr<ToolBarManagerLock> sd::ViewShell::Implementation::mpUpdateLockForMouse

Definition at line 98 of file ViewShellImplementation.hxx.

◆ mrViewShell

ViewShell& sd::ViewShell::Implementation::mrViewShell
private

Definition at line 145 of file ViewShellImplementation.hxx.


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