LibreOffice Module sdext (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, const css::uno::Reference< css::awt::XWindow > &rxWindow, const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const ::rtl::Reference< PresenterController > &rpPresenterController, 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 |
![]() | |
virtual void | ActivatePresenterView () |
virtual void | DeactivatePresenterView () |
Called when the view is put into a cache. More... | |
virtual void | ReleaseView () |
Called before the view is disposed. More... | |
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 |
Additional Inherited Members | |
![]() | |
CachablePresenterView () | |
~CachablePresenterView () | |
![]() | |
bool | mbIsPresenterViewActive |
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 142 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, |
const css::uno::Reference< css::awt::XWindow > & | rxWindow, | ||
const css::uno::Reference< css::rendering::XCanvas > & | rxCanvas, | ||
const ::rtl::Reference< PresenterController > & | rpPresenterController, | ||
const Anchor | eAnchor | ||
) |
|
overridevirtual |
Definition at line 399 of file PresenterToolBar.cxx.
|
delete |
|
private |
Definition at line 791 of file PresenterToolBar.cxx.
|
private |
Definition at line 964 of file PresenterToolBar.cxx.
References AllSettings::GetLayoutRTL().
|
private |
Definition at line 577 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 403 of file PresenterToolBar.cxx.
|
overridevirtual |
const Reference< XComponentContext > & sdext::presenter::PresenterToolBar::GetComponentContext | ( | ) | const |
Definition at line 469 of file PresenterToolBar.cxx.
References mxComponentContext.
|
overridevirtual |
Definition at line 571 of file PresenterToolBar.cxx.
geometry::RealSize2D const & sdext::presenter::PresenterToolBar::GetMinimalSize | ( | ) |
Definition at line 457 of file PresenterToolBar.cxx.
const ::rtl::Reference< PresenterController > & sdext::presenter::PresenterToolBar::GetPresenterController | ( | ) | const |
Definition at line 464 of file PresenterToolBar.cxx.
References mpPresenterController.
void sdext::presenter::PresenterToolBar::Initialize | ( | const OUString & | rsConfigurationPath | ) |
Definition at line 366 of file PresenterToolBar.cxx.
References mpPresenterController.
void sdext::presenter::PresenterToolBar::InvalidateArea | ( | const css::awt::Rectangle & | rRepaintBox, |
const bool | bSynchronous | ||
) |
Definition at line 433 of file PresenterToolBar.cxx.
References mpPresenterController.
|
private |
check whether RTL interface or not
Definition at line 671 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 824 of file PresenterToolBar.cxx.
References AllSettings::GetLayoutRTL().
|
overridevirtual |
Definition at line 555 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 535 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 541 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 549 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 523 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 529 of file PresenterToolBar.cxx.
|
delete |
|
private |
Definition at line 930 of file PresenterToolBar.cxx.
References mxCanvas.
|
private |
Definition at line 618 of file PresenterToolBar.cxx.
void sdext::presenter::PresenterToolBar::RequestLayout | ( | ) |
Definition at line 446 of file PresenterToolBar.cxx.
References mpPresenterController.
|
overridevirtual |
Definition at line 562 of file PresenterToolBar.cxx.
|
private |
css::lang::DisposedException | when the object has already been disposed. |
Definition at line 994 of file PresenterToolBar.cxx.
|
private |
Definition at line 949 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 496 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 489 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 499 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 484 of file PresenterToolBar.cxx.
|
overridevirtual |
Definition at line 491 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 137 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.