LibreOffice Module sd (master) 1
|
A simple manager of the positions of the panes of the presenter screen. More...
#include <PresenterWindowManager.hxx>
Public Types | |
enum | LayoutMode { LM_Standard , LM_Notes , LM_Generic } |
enum | ViewMode { VM_Standard , VM_Notes , VM_SlideOverview , VM_Help } |
Public Member Functions | |
PresenterWindowManager (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ::rtl::Reference< PresenterPaneContainer > pPaneContainer, ::rtl::Reference< PresenterController > pPresenterController) | |
virtual | ~PresenterWindowManager () override |
PresenterWindowManager (const PresenterWindowManager &)=delete | |
PresenterWindowManager & | operator= (const PresenterWindowManager &)=delete |
void SAL_CALL | disposing () override |
void | SetParentPane (const css::uno::Reference< css::drawing::framework::XPane > &rxPane) |
void | SetTheme (const std::shared_ptr< PresenterTheme > &rpTheme) |
void | NotifyViewCreation (const css::uno::Reference< css::drawing::framework::XView > &rxView) |
void | SetPanePosSizeAbsolute (const OUString &rsPaneURL, const double nX, const double nY, const double nWidth, const double nHeight) |
void | SetPaneBorderPainter (const ::rtl::Reference< PresenterPaneBorderPainter > &rPainter) |
void | Update () |
void | Layout () |
void | SetSlideSorterState (bool bIsActive) |
void | SetHelpViewState (bool bIsActive) |
void | SetPauseState (bool bIsPaused) |
void | SetViewMode (const ViewMode eMode) |
The high-level method to switch the view mode. More... | |
ViewMode | GetViewMode () const |
void | RestoreViewMode () |
Restore the layout mode (or slide sorter state) from the configuration. More... | |
void | AddLayoutListener (const css::uno::Reference< css::document::XEventListener > &rxListener) |
void | RemoveLayoutListener (const css::uno::Reference< css::document::XEventListener > &rxListener) |
virtual void SAL_CALL | windowResized (const css::awt::WindowEvent &rEvent) override |
virtual void SAL_CALL | windowMoved (const css::awt::WindowEvent &rEvent) override |
virtual void SAL_CALL | windowShown (const css::lang::EventObject &rEvent) override |
virtual void SAL_CALL | windowHidden (const css::lang::EventObject &rEvent) override |
virtual void SAL_CALL | windowPaint (const css::awt::PaintEvent &rEvent) override |
virtual void SAL_CALL | mousePressed (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | mouseReleased (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | mouseEntered (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | mouseExited (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | focusGained (const css::awt::FocusEvent &rEvent) override |
virtual void SAL_CALL | focusLost (const css::awt::FocusEvent &rEvent) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &rEvent) override |
Private Types | |
typedef ::std::vector< css::uno::Reference< css::document::XEventListener > > | LayoutListenerContainer |
Private Member Functions | |
void | SetLayoutMode (const LayoutMode eMode) |
void | PaintChildren (const css::awt::PaintEvent &rEvent) const |
void | UpdateWindowSize (const css::uno::Reference< css::awt::XWindow > &rxBorderWindow) |
void | PaintBackground (const css::awt::Rectangle &rUpdateBox) |
void | ProvideBackgroundBitmap () |
css::uno::Reference< css::rendering::XPolyPolygon2D > | CreateClipPolyPolygon () const |
void | StoreViewMode (const ViewMode eViewMode) |
void | LayoutStandardMode () |
void | LayoutNotesMode () |
void | LayoutSlideSorterMode () |
void | LayoutHelpMode () |
css::geometry::RealRectangle2D | LayoutToolBar () |
Layout the tool bar and return its outer bounding box. More... | |
css::awt::Size | CalculatePaneSize (const double nOuterWidth, const OUString &rsPaneURL) |
void | NotifyLayoutModeChange () |
Notify changes of the layout mode and of the slide sorter state. More... | |
void | NotifyDisposing () |
void | ThrowIfDisposed () const |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | mxComponentContext |
::rtl::Reference< PresenterController > | mpPresenterController |
css::uno::Reference< css::awt::XWindow > | mxParentWindow |
css::uno::Reference< css::rendering::XCanvas > | mxParentCanvas |
css::uno::Reference< css::uno::XInterface > | mxPaneBorderManager |
::rtl::Reference< PresenterPaneBorderPainter > | mpPaneBorderPainter |
::rtl::Reference< PresenterPaneContainer > | mpPaneContainer |
bool | mbIsLayoutPending |
bool | mbIsLayouting |
This flag is set to <TRUE> while the Layout() method is being executed. More... | |
std::shared_ptr< PresenterTheme > | mpTheme |
SharedBitmapDescriptor | mpBackgroundBitmap |
css::uno::Reference< css::rendering::XBitmap > | mxScaledBackgroundBitmap |
css::uno::Reference< css::rendering::XPolyPolygon2D > | mxClipPolygon |
LayoutMode | meLayoutMode |
bool | mbIsSlideSorterActive |
bool | mbIsHelpViewActive |
bool | mbisPaused |
LayoutListenerContainer | maLayoutListeners |
bool | mbIsMouseClickPending |
Additional Inherited Members | |
![]() | |
mutable::osl::Mutex | m_aMutex |
A simple manager of the positions of the panes of the presenter screen.
Uses relative coordinates of the four sides of each pane. Allows panes to be moved or resized with the mouse.
Definition at line 56 of file PresenterWindowManager.hxx.
|
private |
Definition at line 169 of file PresenterWindowManager.hxx.
Enumerator | |
---|---|
LM_Standard | |
LM_Notes | |
LM_Generic |
Definition at line 88 of file PresenterWindowManager.hxx.
Enumerator | |
---|---|
VM_Standard | |
VM_Notes | |
VM_SlideOverview | |
VM_Help |
Definition at line 93 of file PresenterWindowManager.hxx.
sdext::presenter::PresenterWindowManager::PresenterWindowManager | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
::rtl::Reference< PresenterPaneContainer > | pPaneContainer, | ||
::rtl::Reference< PresenterController > | pPresenterController | ||
) |
|
overridevirtual |
Definition at line 69 of file PresenterWindowManager.cxx.
|
delete |
void sdext::presenter::PresenterWindowManager::AddLayoutListener | ( | const css::uno::Reference< css::document::XEventListener > & | rxListener | ) |
Definition at line 519 of file PresenterWindowManager.cxx.
|
private |
Definition at line 798 of file PresenterWindowManager.cxx.
References mpPresenterController.
|
private |
Definition at line 989 of file PresenterWindowManager.cxx.
|
override |
Definition at line 73 of file PresenterWindowManager.cxx.
|
overridevirtual |
|
overridevirtual |
Definition at line 282 of file PresenterWindowManager.cxx.
|
overridevirtual |
Definition at line 287 of file PresenterWindowManager.cxx.
PresenterWindowManager::ViewMode sdext::presenter::PresenterWindowManager::GetViewMode | ( | ) | const |
Definition at line 448 of file PresenterWindowManager.cxx.
void sdext::presenter::PresenterWindowManager::Layout | ( | ) |
Definition at line 534 of file PresenterWindowManager.cxx.
References Exception.
|
private |
Definition at line 727 of file PresenterWindowManager.cxx.
|
private |
check whether RTL interface or not
check whether RTL interface or not
check whether RTL interface or not
check whether RTL interface or not
Definition at line 629 of file PresenterWindowManager.cxx.
References AllSettings::GetLayoutRTL().
|
private |
Definition at line 713 of file PresenterWindowManager.cxx.
|
private |
check whether RTL interface or not
check whether RTL interface or not
Definition at line 572 of file PresenterWindowManager.cxx.
References AllSettings::GetLayoutRTL().
|
private |
Layout the tool bar and return its outer bounding box.
Definition at line 743 of file PresenterWindowManager.cxx.
References sdext::presenter::PresenterToolBarView::GetPresenterToolBar().
|
overridevirtual |
Definition at line 270 of file PresenterWindowManager.cxx.
|
overridevirtual |
Definition at line 275 of file PresenterWindowManager.cxx.
|
overridevirtual |
Definition at line 255 of file PresenterWindowManager.cxx.
|
overridevirtual |
Definition at line 261 of file PresenterWindowManager.cxx.
References mpPresenterController.
|
private |
Definition at line 848 of file PresenterWindowManager.cxx.
References aEvent.
|
private |
Notify changes of the layout mode and of the slide sorter state.
Definition at line 823 of file PresenterWindowManager.cxx.
References aEvent.
void sdext::presenter::PresenterWindowManager::NotifyViewCreation | ( | const css::uno::Reference< css::drawing::framework::XView > & | rxView | ) |
Definition at line 144 of file PresenterWindowManager.cxx.
References Layout, and mpPresenterController.
|
delete |
|
private |
Definition at line 887 of file PresenterWindowManager.cxx.
|
private |
Definition at line 301 of file PresenterWindowManager.cxx.
References mpPresenterController.
|
private |
Definition at line 957 of file PresenterWindowManager.cxx.
void sdext::presenter::PresenterWindowManager::RemoveLayoutListener | ( | const css::uno::Reference< css::document::XEventListener > & | rxListener | ) |
Definition at line 525 of file PresenterWindowManager.cxx.
void sdext::presenter::PresenterWindowManager::RestoreViewMode | ( | ) |
Restore the layout mode (or slide sorter state) from the configuration.
Definition at line 460 of file PresenterWindowManager.cxx.
References sdext::presenter::PresenterConfigurationAccess::GetConfigurationNode(), and mxComponentContext.
void sdext::presenter::PresenterWindowManager::SetHelpViewState | ( | bool | bIsActive | ) |
Definition at line 390 of file PresenterWindowManager.cxx.
References Layout, and mpPresenterController.
|
private |
Definition at line 351 of file PresenterWindowManager.cxx.
References eMode, Layout, and mpPresenterController.
void sdext::presenter::PresenterWindowManager::SetPaneBorderPainter | ( | const ::rtl::Reference< PresenterPaneBorderPainter > & | rPainter | ) |
Definition at line 181 of file PresenterWindowManager.cxx.
void sdext::presenter::PresenterWindowManager::SetPanePosSizeAbsolute | ( | const OUString & | rsPaneURL, |
const double | nX, | ||
const double | nY, | ||
const double | nWidth, | ||
const double | nHeight | ||
) |
Definition at line 160 of file PresenterWindowManager.cxx.
void sdext::presenter::PresenterWindowManager::SetParentPane | ( | const css::uno::Reference< css::drawing::framework::XPane > & | rxPane | ) |
Definition at line 95 of file PresenterWindowManager.cxx.
void sdext::presenter::PresenterWindowManager::SetPauseState | ( | bool | bIsPaused | ) |
Definition at line 408 of file PresenterWindowManager.cxx.
void sdext::presenter::PresenterWindowManager::SetSlideSorterState | ( | bool | bIsActive | ) |
Definition at line 372 of file PresenterWindowManager.cxx.
References Layout, and mpPresenterController.
void sdext::presenter::PresenterWindowManager::SetTheme | ( | const std::shared_ptr< PresenterTheme > & | rpTheme | ) |
Definition at line 132 of file PresenterWindowManager.cxx.
void sdext::presenter::PresenterWindowManager::SetViewMode | ( | const ViewMode | eMode | ) |
The high-level method to switch the view mode.
Use this instead of SetLayoutMode and Set(Help|SlideSorter)State when possible.
Definition at line 418 of file PresenterWindowManager.cxx.
References eMode.
|
private |
|
private |
css::lang::DisposedException |
Definition at line 1032 of file PresenterWindowManager.cxx.
void sdext::presenter::PresenterWindowManager::Update | ( | ) |
Definition at line 1024 of file PresenterWindowManager.cxx.
References mpPresenterController.
|
private |
Definition at line 873 of file PresenterWindowManager.cxx.
|
overridevirtual |
Definition at line 224 of file PresenterWindowManager.cxx.
|
overridevirtual |
Definition at line 209 of file PresenterWindowManager.cxx.
References mpPresenterController.
|
overridevirtual |
Definition at line 228 of file PresenterWindowManager.cxx.
References Layout, and PaintChildren.
|
overridevirtual |
Definition at line 189 of file PresenterWindowManager.cxx.
References Layout, and mpPresenterController.
|
overridevirtual |
Definition at line 222 of file PresenterWindowManager.cxx.
|
private |
Definition at line 170 of file PresenterWindowManager.hxx.
|
private |
Definition at line 166 of file PresenterWindowManager.hxx.
|
private |
This flag is set to <TRUE> while the Layout() method is being executed.
Prevents windowMoved() and windowResized() from changing the window sizes.
Definition at line 159 of file PresenterWindowManager.hxx.
|
private |
Definition at line 154 of file PresenterWindowManager.hxx.
|
private |
Definition at line 171 of file PresenterWindowManager.hxx.
|
private |
Definition at line 167 of file PresenterWindowManager.hxx.
|
private |
Definition at line 165 of file PresenterWindowManager.hxx.
|
private |
Definition at line 164 of file PresenterWindowManager.hxx.
|
private |
Definition at line 161 of file PresenterWindowManager.hxx.
|
private |
Definition at line 152 of file PresenterWindowManager.hxx.
|
private |
Definition at line 153 of file PresenterWindowManager.hxx.
|
private |
Definition at line 148 of file PresenterWindowManager.hxx.
|
private |
Definition at line 160 of file PresenterWindowManager.hxx.
|
private |
Definition at line 163 of file PresenterWindowManager.hxx.
|
private |
Definition at line 147 of file PresenterWindowManager.hxx.
|
private |
Definition at line 151 of file PresenterWindowManager.hxx.
|
private |
Definition at line 150 of file PresenterWindowManager.hxx.
|
private |
Definition at line 149 of file PresenterWindowManager.hxx.
|
private |
Definition at line 162 of file PresenterWindowManager.hxx.