LibreOffice Module sd (master) 1
|
A drawing framework view of the notes of a slide. More...
#include <PresenterNotesView.hxx>
Public Member Functions | |
PresenterNotesView (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId, const ::rtl::Reference<::sd::DrawController > &rxController, const ::rtl::Reference< PresenterController > &rpPresenterController) | |
virtual | ~PresenterNotesView () override |
virtual void SAL_CALL | disposing () override |
void | SetSlide (const css::uno::Reference< css::drawing::XDrawPage > &rxNotesPage) |
Typically called from setCurrentSlide() with the notes page that is associated with the slide given to setCurrentSlide(). More... | |
void | ChangeFontSize (const sal_Int32 nSizeChange) |
const std::shared_ptr< PresenterTextView > & | GetTextView () 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 css::uno::Reference< css::drawing::framework::XResourceId > SAL_CALL | getResourceId () override |
virtual sal_Bool SAL_CALL | isAnchorOnly () 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 SAL_CALL | keyPressed (const css::awt::KeyEvent &rEvent) override |
virtual void SAL_CALL | keyReleased (const css::awt::KeyEvent &rEvent) override |
Private Member Functions | |
void | CreateToolBar (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const ::rtl::Reference< PresenterController > &rpPresenterController) |
void | Layout () |
void | Paint (const css::awt::Rectangle &rUpdateBox) |
void | PaintToolBar (const css::awt::Rectangle &rUpdateBox) |
void | PaintText (const css::awt::Rectangle &rUpdateBox) |
void | Invalidate () |
void | Scroll (const double nDistance) |
void | SetTop (const double nTop) |
void | UpdateScrollBar () |
Private Attributes | |
css::uno::Reference< css::drawing::framework::XResourceId > | mxViewId |
::rtl::Reference< PresenterController > | mpPresenterController |
css::uno::Reference< css::awt::XWindow > | mxParentWindow |
css::uno::Reference< css::rendering::XCanvas > | mxCanvas |
css::uno::Reference< css::drawing::XDrawPage > | mxCurrentNotesPage |
::rtl::Reference< PresenterScrollBar > | mpScrollBar |
css::uno::Reference< css::awt::XWindow > | mxToolBarWindow |
css::uno::Reference< css::rendering::XCanvas > | mxToolBarCanvas |
::rtl::Reference< PresenterToolBar > | mpToolBar |
::rtl::Reference< PresenterButton > | mpCloseButton |
css::util::Color | maSeparatorColor |
sal_Int32 | mnSeparatorYLocation |
css::geometry::RealRectangle2D | maTextBoundingBox |
SharedBitmapDescriptor | mpBackground |
double | mnTop |
PresenterTheme::SharedFontDescriptor | mpFont |
std::shared_ptr< PresenterTextView > | mpTextView |
![]() | |
mutable::osl::Mutex | m_aMutex |
A drawing framework view of the notes of a slide.
At the moment this is a simple text view that does not show the original formatting of the notes text.
Definition at line 57 of file PresenterNotesView.hxx.
|
explicit |
Definition at line 53 of file PresenterNotesView.cxx.
References sdext::presenter::PresenterButton::Create(), CreateToolBar(), disposing(), Layout(), m_aMutex, maSeparatorColor, mpCloseButton, mpFont, mpPresenterController, mpScrollBar, mpTextView, mxCanvas, mxParentWindow, and mxViewId.
|
overridevirtual |
Definition at line 120 of file PresenterNotesView.cxx.
void sdext::presenter::PresenterNotesView::ChangeFontSize | ( | const sal_Int32 | nSizeChange | ) |
Definition at line 586 of file PresenterNotesView.cxx.
References Any, Exception, Invalidate(), Layout(), mpFont, mpPresenterController, mpTextView, mxViewId, and UpdateScrollBar().
Referenced by keyPressed().
|
private |
Definition at line 169 of file PresenterNotesView.cxx.
References sdext::presenter::PresenterToolBar::Left, mpToolBar, mxCanvas, mxParentWindow, mxToolBarCanvas, and mxToolBarWindow.
Referenced by PresenterNotesView().
|
overridevirtual |
Definition at line 124 of file PresenterNotesView.cxx.
References mpCloseButton, mpScrollBar, mpToolBar, mxParentWindow, mxToolBarCanvas, mxToolBarWindow, and mxViewId.
Referenced by PresenterNotesView().
|
overridevirtual |
|
overridevirtual |
Definition at line 328 of file PresenterNotesView.cxx.
|
overridevirtual |
Definition at line 299 of file PresenterNotesView.cxx.
References mxViewId.
const std::shared_ptr< PresenterTextView > & sdext::presenter::PresenterNotesView::GetTextView | ( | ) | const |
Definition at line 621 of file PresenterNotesView.cxx.
References mpTextView.
|
private |
Definition at line 551 of file PresenterNotesView.cxx.
References sdext::presenter::PresenterGeometryHelper::ConvertRectangle(), maTextBoundingBox, mpPresenterController, and mxParentWindow.
Referenced by ChangeFontSize(), Scroll(), SetSlide(), and SetTop().
|
overridevirtual |
Definition at line 304 of file PresenterNotesView.cxx.
|
overridevirtual |
Definition at line 335 of file PresenterNotesView.cxx.
References ChangeFontSize(), gnLineScrollFactor(), mpFont, mpTextView, and Scroll().
|
overridevirtual |
Definition at line 376 of file PresenterNotesView.cxx.
|
private |
Definition at line 379 of file PresenterNotesView.cxx.
References AllSettings::GetLayoutRTL(), gnSpaceAboveSeparator(), gnSpaceBelowSeparator(), maTextBoundingBox, mnSeparatorYLocation, mpCloseButton, mpScrollBar, mpTextView, mpToolBar, mxParentWindow, mxToolBarWindow, and UpdateScrollBar().
Referenced by ChangeFontSize(), PresenterNotesView(), SetSlide(), and windowResized().
|
private |
Definition at line 468 of file PresenterNotesView.cxx.
References maTextBoundingBox, mpBackground, mpPresenterController, mpTextView, mxCanvas, mxParentWindow, mxViewId, PaintText(), and PaintToolBar().
Referenced by windowPaint().
|
private |
Definition at line 527 of file PresenterNotesView.cxx.
References sdext::presenter::PresenterGeometryHelper::ConvertRectangle(), sdext::presenter::PresenterGeometryHelper::Intersection(), maTextBoundingBox, mpBackground, mpPresenterController, and mxCanvas.
Referenced by Paint().
|
private |
Definition at line 492 of file PresenterNotesView.cxx.
References maSeparatorColor, maTextBoundingBox, mnSeparatorYLocation, mpBackground, mpPresenterController, mxCanvas, mxParentWindow, mxViewId, and sdext::presenter::PresenterCanvasHelper::SetDeviceColor().
Referenced by Paint().
|
private |
Definition at line 558 of file PresenterNotesView.cxx.
References Invalidate(), mnTop, mpTextView, and UpdateScrollBar().
Referenced by keyPressed().
|
overridevirtual |
Definition at line 311 of file PresenterNotesView.cxx.
References mxCurrentNotesPage, and SetSlide().
void sdext::presenter::PresenterNotesView::SetSlide | ( | const css::uno::Reference< css::drawing::XDrawPage > & | rxNotesPage | ) |
Typically called from setCurrentSlide() with the notes page that is associated with the slide given to setCurrentSlide().
Iterates over all text shapes on the given notes page and displays the concatenated text of these.
Definition at line 206 of file PresenterNotesView.cxx.
References Invalidate(), Layout(), mpScrollBar, mpTextView, nCount, nIndex, sType, u, and UpdateScrollBar().
Referenced by setCurrentPage().
|
private |
Definition at line 572 of file PresenterNotesView.cxx.
References Invalidate(), mnTop, mpTextView, and UpdateScrollBar().
|
private |
Definition at line 626 of file PresenterNotesView.cxx.
References maTextBoundingBox, mnTop, mpFont, mpScrollBar, and mpTextView.
Referenced by ChangeFontSize(), Layout(), Scroll(), SetSlide(), and SetTop().
|
overridevirtual |
Definition at line 277 of file PresenterNotesView.cxx.
|
overridevirtual |
Definition at line 273 of file PresenterNotesView.cxx.
|
overridevirtual |
Definition at line 281 of file PresenterNotesView.cxx.
References Paint().
|
overridevirtual |
Definition at line 268 of file PresenterNotesView.cxx.
References Layout().
|
overridevirtual |
Definition at line 275 of file PresenterNotesView.cxx.
|
private |
Definition at line 133 of file PresenterNotesView.hxx.
Referenced by PaintToolBar(), and PresenterNotesView().
|
private |
Definition at line 135 of file PresenterNotesView.hxx.
Referenced by Invalidate(), Layout(), Paint(), PaintText(), PaintToolBar(), and UpdateScrollBar().
|
private |
Definition at line 134 of file PresenterNotesView.hxx.
Referenced by Layout(), and PaintToolBar().
|
private |
Definition at line 137 of file PresenterNotesView.hxx.
Referenced by Scroll(), SetTop(), and UpdateScrollBar().
|
private |
Definition at line 136 of file PresenterNotesView.hxx.
Referenced by Paint(), PaintText(), and PaintToolBar().
|
private |
Definition at line 132 of file PresenterNotesView.hxx.
Referenced by disposing(), Layout(), and PresenterNotesView().
|
private |
Definition at line 138 of file PresenterNotesView.hxx.
Referenced by ChangeFontSize(), keyPressed(), PresenterNotesView(), and UpdateScrollBar().
|
private |
Definition at line 124 of file PresenterNotesView.hxx.
Referenced by ChangeFontSize(), Invalidate(), Paint(), PaintText(), PaintToolBar(), and PresenterNotesView().
|
private |
Definition at line 128 of file PresenterNotesView.hxx.
Referenced by disposing(), Layout(), PresenterNotesView(), SetSlide(), and UpdateScrollBar().
|
private |
Definition at line 139 of file PresenterNotesView.hxx.
Referenced by ChangeFontSize(), GetTextView(), keyPressed(), Layout(), Paint(), PresenterNotesView(), Scroll(), SetSlide(), SetTop(), and UpdateScrollBar().
|
private |
Definition at line 131 of file PresenterNotesView.hxx.
Referenced by CreateToolBar(), disposing(), and Layout().
|
private |
Definition at line 126 of file PresenterNotesView.hxx.
Referenced by CreateToolBar(), Paint(), PaintText(), PaintToolBar(), and PresenterNotesView().
|
private |
Definition at line 127 of file PresenterNotesView.hxx.
Referenced by setCurrentPage().
|
private |
Definition at line 125 of file PresenterNotesView.hxx.
Referenced by CreateToolBar(), disposing(), Invalidate(), Layout(), Paint(), PaintToolBar(), and PresenterNotesView().
|
private |
Definition at line 130 of file PresenterNotesView.hxx.
Referenced by CreateToolBar(), and disposing().
|
private |
Definition at line 129 of file PresenterNotesView.hxx.
Referenced by CreateToolBar(), disposing(), and Layout().
|
private |
Definition at line 123 of file PresenterNotesView.hxx.
Referenced by ChangeFontSize(), disposing(), getResourceId(), Paint(), PaintToolBar(), and PresenterNotesView().