LibreOffice Module sd (master) 1
|
A simple tool bar that can display bitmapped buttons and labels. More...
#include <PresenterToolBar.hxx>
Classes | |
class | Context |
class | ElementContainerPart |
Public Types | |
enum | Anchor { Left , Center } |
typedef ::std::function< void()> | Action |
Public Member Functions | |
PresenterToolBar (const css::uno::Reference< css::uno::XComponentContext > &rxContext, css::uno::Reference< css::awt::XWindow > xWindow, css::uno::Reference< css::rendering::XCanvas > xCanvas, ::rtl::Reference< PresenterController > pPresenterController, const Anchor eAnchor) | |
virtual | ~PresenterToolBar () override |
PresenterToolBar (const PresenterToolBar &)=delete | |
PresenterToolBar & | operator= (const PresenterToolBar &)=delete |
void | Initialize (const OUString &rsConfigurationPath) |
virtual void SAL_CALL | disposing () override |
void | InvalidateArea (const css::awt::Rectangle &rRepaintBox, const bool bSynchronous) |
void | RequestLayout () |
css::geometry::RealSize2D const & | GetMinimalSize () |
const ::rtl::Reference< PresenterController > & | GetPresenterController () const |
const css::uno::Reference< css::uno::XComponentContext > & | GetComponentContext () const |
virtual void SAL_CALL | disposing (const css::lang::EventObject &rEventObject) override |
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 | mouseMoved (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | mouseDragged (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | setCurrentPage (const css::uno::Reference< css::drawing::XDrawPage > &rxSlide) override |
virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL | getCurrentPage () override |
Private Types | |
typedef std::shared_ptr< ElementContainerPart > | SharedElementContainerPart |
typedef ::std::vector< SharedElementContainerPart > | ElementContainer |
Private Member Functions | |
void | CreateControls (const OUString &rsConfigurationPath) |
void | Layout (const css::uno::Reference< css::rendering::XCanvas > &rxCanvas) |
css::geometry::RealSize2D | CalculatePartSize (const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const SharedElementContainerPart &rpPart, const bool bIsHorizontal) |
void | Paint (const css::awt::Rectangle &rUpdateBox, const css::rendering::ViewState &rViewState) |
void | UpdateSlideNumber () |
void | CheckMouseOver (const css::awt::MouseEvent &rEvent, const bool bOverWindow, const bool bMouseDown=false) |
void | ProcessEntry (const css::uno::Reference< css::beans::XPropertySet > &rProperties, Context const &rContext) |
void | ThrowIfDisposed () const |
Static Private Member Functions | |
static void | LayoutPart (const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const SharedElementContainerPart &rpPart, const css::geometry::RealRectangle2D &rBoundingBox, const css::geometry::RealSize2D &rPartSize, const bool bIsHorizontal) |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | mxComponentContext |
ElementContainer | maElementContainer |
SharedElementContainerPart | mpCurrentContainerPart |
css::uno::Reference< css::awt::XWindow > | mxWindow |
css::uno::Reference< css::rendering::XCanvas > | mxCanvas |
css::uno::Reference< css::presentation::XSlideShowController > | mxSlideShowController |
css::uno::Reference< css::drawing::XDrawPage > | mxCurrentSlide |
::rtl::Reference< PresenterController > | mpPresenterController |
bool | mbIsLayoutPending |
const Anchor | meAnchor |
css::geometry::RealSize2D | maMinimalSize |
The minimal size that is necessary to display all elements without overlap and with minimal gaps between them. More... | |
![]() | |
mutable::osl::Mutex | m_aMutex |
A simple tool bar that can display bitmapped buttons and labels.
At the moment there are buttons for moving to the next and previous slide and to the next effect. A label displays the index of the current slide and the total number of slides.
Definition at line 61 of file PresenterToolBar.hxx.
typedef ::std::function<void ()> sdext::presenter::PresenterToolBar::Action |
Definition at line 67 of file PresenterToolBar.hxx.
|
private |
Definition at line 144 of file PresenterToolBar.hxx.
|
private |
Definition at line 143 of file PresenterToolBar.hxx.
Enumerator | |
---|---|
Left | |
Center |
Definition at line 69 of file PresenterToolBar.hxx.
sdext::presenter::PresenterToolBar::PresenterToolBar | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
css::uno::Reference< css::awt::XWindow > | xWindow, | ||
css::uno::Reference< css::rendering::XCanvas > | xCanvas, | ||
::rtl::Reference< PresenterController > | pPresenterController, | ||
const Anchor | eAnchor | ||
) |
|
overridevirtual |
Definition at line 400 of file PresenterToolBar.cxx.
|
delete |
|
private |
Definition at line 792 of file PresenterToolBar.cxx.
|
private |
Definition at line 965 of file PresenterToolBar.cxx.
References AllSettings::GetLayoutRTL().
|
private |
Definition at line 578 of file PresenterToolBar.cxx.
References sdext::presenter::PresenterConfigurationAccess::GetConfigurationNode(), mpPresenterController, mxCanvas, sdext::presenter::PresenterToolBar::Context::mxCanvas, mxComponentContext, and sdext::presenter::PresenterToolBar::Context::mxPresenterHelper.
|
overridevirtual |
Definition at line 404 of file PresenterToolBar.cxx.
|
overridevirtual |
const Reference< XComponentContext > & sdext::presenter::PresenterToolBar::GetComponentContext | ( | ) | const |
Definition at line 470 of file PresenterToolBar.cxx.
References mxComponentContext.
|
overridevirtual |
Definition at line 572 of file PresenterToolBar.cxx.
geometry::RealSize2D const & sdext::presenter::PresenterToolBar::GetMinimalSize | ( | ) |
Definition at line 458 of file PresenterToolBar.cxx.
const ::rtl::Reference< PresenterController > & sdext::presenter::PresenterToolBar::GetPresenterController | ( | ) | const |
Definition at line 465 of file PresenterToolBar.cxx.
References mpPresenterController.
void sdext::presenter::PresenterToolBar::Initialize | ( | const OUString & | rsConfigurationPath | ) |
Definition at line 367 of file PresenterToolBar.cxx.
References mpPresenterController.
void sdext::presenter::PresenterToolBar::InvalidateArea | ( | const css::awt::Rectangle & | rRepaintBox, |
const bool | bSynchronous | ||
) |
Definition at line 434 of file PresenterToolBar.cxx.
References mpPresenterController.
|
private |
check whether RTL interface or not
Definition at line 672 of file PresenterToolBar.cxx.
References Center, AllSettings::GetLayoutRTL(), sdext::presenter::gnGapSize(), Left, mpPresenterController, nIndex, and Width.
|
staticprivate |
check whether RTL interface or not
Definition at line 825 of file PresenterToolBar.cxx.
References AllSettings::GetLayoutRTL().
|
overridevirtual |
Definition at line 556 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 536 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 542 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 550 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 524 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 530 of file PresenterToolBar.cxx.
|
delete |
|
private |
Definition at line 931 of file PresenterToolBar.cxx.
References mxCanvas.
|
private |
Definition at line 619 of file PresenterToolBar.cxx.
void sdext::presenter::PresenterToolBar::RequestLayout | ( | ) |
Definition at line 447 of file PresenterToolBar.cxx.
References mpPresenterController.
|
overridevirtual |
Definition at line 563 of file PresenterToolBar.cxx.
|
private |
css::lang::DisposedException | when the object has already been disposed. |
Definition at line 995 of file PresenterToolBar.cxx.
|
private |
Definition at line 950 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 497 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 490 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 500 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 485 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 492 of file PresenterToolBar.cxx.
|
private |
Definition at line 145 of file PresenterToolBar.hxx.
|
private |
The minimal size that is necessary to display all elements without overlap and with minimal gaps between them.
Definition at line 157 of file PresenterToolBar.hxx.
|
private |
Definition at line 152 of file PresenterToolBar.hxx.
|
private |
Definition at line 153 of file PresenterToolBar.hxx.
|
private |
Definition at line 146 of file PresenterToolBar.hxx.
|
private |
Definition at line 151 of file PresenterToolBar.hxx.
|
private |
Definition at line 148 of file PresenterToolBar.hxx.
|
private |
Definition at line 140 of file PresenterToolBar.hxx.
|
private |
Definition at line 150 of file PresenterToolBar.hxx.
|
private |
Definition at line 149 of file PresenterToolBar.hxx.
|
private |
Definition at line 147 of file PresenterToolBar.hxx.