LibreOffice Module sd (master) 1
|
This class contains (will contain) the implementation of methods that have not be accessible from the outside. More...
#include <ViewShellImplementation.hxx>
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 SvxIMapDlg * | GetImageMapDialog () |
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< ToolBarManagerLock > | mpUpdateLockForMouse |
Private Attributes | |
ViewShell & | mrViewShell |
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.
sd::ViewShell::Implementation::Implementation | ( | ViewShell & | rViewShell | ) |
Definition at line 58 of file ViewShellImplementation.cxx.
References mrViewShell.
sd::ViewShell::Implementation::~Implementation | ( | ) |
Definition at line 66 of file ViewShellImplementation.cxx.
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.
pPage | If 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().
|
static |
Return a pointer to the image map dialog that is displayed in some child window.
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().
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.
void sd::ViewShell::Implementation::ProcessModifyPageSlot | ( | SfxRequest & | rRequest, |
SdPage * | pCurrentPage, | ||
PageKind | ePageKind | ||
) |
Process the SID_MODIFY slot.
Definition at line 80 of file ViewShellImplementation.cxx.
References SfxUndoManager::AddUndoAction(), AUTOLAYOUT_END, AUTOLAYOUT_START, SfxItemSet::Count(), DBG_ASSERT, SfxRequest::Done(), SfxUndoManager::EnterListAction(), ERRCODE_BASIC_BAD_PROP_VALUE, ERRCODE_BASIC_WRONG_ARGS, StarBASIC::FatalError(), SfxItemSet::Get(), SfxRequest::GetArg(), SfxRequest::GetArgs(), SwViewShell::GetDoc(), SwViewShell::GetDrawView(), SdrModel::GetLayerAdmin(), SdrLayerAdmin::GetLayerID(), SdDrawDocument::GetMasterSdPage(), SdPage::GetName(), SdrPage::GetPageNum(), SdDrawDocument::GetSdPage(), CntUnencodedStringItem::GetValue(), GetValue, Handout, SfxRequest::Ignore(), SfxUndoManager::LeaveListAction(), mrViewShell, Notes, SdrObjEditView::SdrEndTextEdit(), SdResId(), SdrLayerIDSet::Set(), SdrLayerIDSet::SetAll(), SdPage::SetAutoLayout(), SdDrawDocument::SetChanged(), SdPage::SetName(), Standard, sUNO_LayerName_background, sUNO_LayerName_background_objects, sfx2::sidebar::Sidebar::TogglePanel(), SdrPage::TRG_GetMasterPageVisibleLayers(), SdrPage::TRG_HasMasterPage(), SdrPage::TRG_SetMasterPageVisibleLayers(), u, and SdrView::UnmarkAll().
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.
bool sd::ViewShell::Implementation::mbIsInitialized |
Set to true when the ViewShell::Init() method has been called.
Definition at line 40 of file ViewShellImplementation.hxx.
bool sd::ViewShell::Implementation::mbIsMainViewShell |
Definition at line 38 of file ViewShellImplementation.hxx.
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.
std::weak_ptr<ToolBarManagerLock> sd::ViewShell::Implementation::mpUpdateLockForMouse |
Definition at line 98 of file ViewShellImplementation.hxx.
|
private |
Definition at line 145 of file ViewShellImplementation.hxx.