LibreOffice Module sd (master) 1
|
A pane is a wrapper for a window and possibly for a tab bar (for view switching). More...
#include <Pane.hxx>
Public Member Functions | |
Pane (const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId, vcl::Window *pWindow) noexcept | |
Create a new Pane object that wraps the given window. More... | |
virtual | ~Pane () override |
virtual void SAL_CALL | disposing () override |
virtual vcl::Window * | GetWindow () |
This method is typically used to obtain a Window pointer from an XPane object. More... | |
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL | getWindow () override |
For a UNO API based implementation of a view this may the most important method of this class because the view is only interested in the window of the pane. More... | |
virtual css::uno::Reference< css::rendering::XCanvas > SAL_CALL | getCanvas () override |
virtual sal_Bool SAL_CALL | isVisible () override |
virtual void SAL_CALL | setVisible (sal_Bool bIsVisible) override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessible () override |
virtual void SAL_CALL | setAccessible (const css::uno::Reference< css::accessibility::XAccessible > &rxAccessible) override |
virtual css::uno::Reference< css::drawing::framework::XResourceId > SAL_CALL | getResourceId () override |
virtual sal_Bool SAL_CALL | isAnchorOnly () override |
For the typical pane it makes no sense to be displayed without a view. More... | |
Protected Member Functions | |
virtual css::uno::Reference< css::rendering::XCanvas > | CreateCanvas () |
Override this method, not getCanvas(), when you want to provide a different canvas. More... | |
void | ThrowIfDisposed () const |
Throw DisposedException when the object has already been disposed or is currently being disposed. More... | |
Protected Attributes | |
css::uno::Reference< css::drawing::framework::XResourceId > | mxPaneId |
VclPtr< vcl::Window > | mpWindow |
css::uno::Reference< css::awt::XWindow > | mxWindow |
css::uno::Reference< css::rendering::XCanvas > | mxCanvas |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
A pane is a wrapper for a window and possibly for a tab bar (for view switching).
Panes are unique resources.
This class has two responsibilities:
|
noexcept |
Create a new Pane object that wraps the given window.
rsPaneURL | The URL that is used by the configuration to identify the pane. The given URL has to be valid. |
pWindow | The VCL Window (usually this really is an sd::Window) that is wrapped by the new Pane object. The given pointer must not be NULL. |
Definition at line 35 of file Pane.cxx.
References mpWindow.
|
protectedvirtual |
Override this method, not getCanvas(), when you want to provide a different canvas.
css::uno::RuntimeException |
Reimplemented in sd::framework::FullScreenPane.
Definition at line 139 of file Pane.cxx.
References cppcanvas::VCLFactory::createSpriteCanvas(), and mpWindow.
Referenced by getCanvas().
|
overridevirtual |
Reimplemented in sd::framework::FullScreenPane.
Definition at line 50 of file Pane.cxx.
References mpWindow, and mxWindow.
Referenced by sd::framework::ChildWindowPane::disposing(), and sd::framework::FullScreenPane::disposing().
|
overridevirtual |
Reimplemented in sd::framework::FullScreenPane.
Definition at line 106 of file Pane.cxx.
References vcl::Window::GetAccessible(), GetWindow(), and ThrowIfDisposed().
|
overridevirtual |
Definition at line 73 of file Pane.cxx.
References CreateCanvas(), cppu::BaseMutex::m_aMutex, mxCanvas, and ThrowIfDisposed().
|
overridevirtual |
Definition at line 127 of file Pane.cxx.
References mxPaneId, and ThrowIfDisposed().
|
virtual |
This method is typically used to obtain a Window pointer from an XPane object.
Definition at line 56 of file Pane.cxx.
References mpWindow, and mxWindow.
Referenced by getAccessible(), isVisible(), sd::framework::FullScreenPane::setAccessible(), setAccessible(), and setVisible().
|
overridevirtual |
For a UNO API based implementation of a view this may the most important method of this class because the view is only interested in the window of the pane.
Definition at line 66 of file Pane.cxx.
References mxWindow, and ThrowIfDisposed().
Referenced by sd::framework::ChildWindowPane::getWindow().
|
overridevirtual |
For the typical pane it makes no sense to be displayed without a view.
Therefore this default implementation returns always <TRUE>.
Reimplemented in sd::framework::FrameWindowPane.
|
overridevirtual |
Reimplemented in sd::framework::FullScreenPane.
Definition at line 86 of file Pane.cxx.
References GetWindow(), vcl::Window::IsVisible(), and ThrowIfDisposed().
|
overridevirtual |
Reimplemented in sd::framework::FullScreenPane.
Definition at line 116 of file Pane.cxx.
References GetWindow(), vcl::Window::SetAccessible(), and ThrowIfDisposed().
|
overridevirtual |
Reimplemented in sd::framework::FullScreenPane.
Definition at line 97 of file Pane.cxx.
References GetWindow(), vcl::Window::Show(), and ThrowIfDisposed().
|
protected |
Throw DisposedException when the object has already been disposed or is currently being disposed.
Otherwise this method returns normally.
css::lang::DisposedException |
Definition at line 154 of file Pane.cxx.
Referenced by sd::framework::FullScreenPane::getAccessible(), getAccessible(), getCanvas(), getResourceId(), getWindow(), sd::framework::FullScreenPane::isVisible(), isVisible(), sd::framework::FullScreenPane::setAccessible(), setAccessible(), sd::framework::FullScreenPane::setVisible(), and setVisible().
|
protected |
Definition at line 110 of file Pane.hxx.
Referenced by CreateCanvas(), sd::framework::FullScreenPane::disposing(), disposing(), sd::framework::FullScreenPane::FullScreenPane(), GetWindow(), sd::framework::FullScreenPane::isVisible(), sd::framework::FullScreenPane::setAccessible(), and sd::framework::FullScreenPane::setVisible().
|
protected |
Definition at line 112 of file Pane.hxx.
Referenced by sd::framework::FullScreenPane::FullScreenPane(), and getCanvas().
|
protected |
Definition at line 109 of file Pane.hxx.
Referenced by getResourceId().
|
protected |
Definition at line 111 of file Pane.hxx.
Referenced by sd::framework::FullScreenPane::CreateCanvas(), disposing(), sd::framework::FullScreenPane::FullScreenPane(), GetWindow(), and getWindow().