LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sdext::presenter::PresenterNotesView Class Reference

A drawing framework view of the notes of a slide. More...

#include <PresenterNotesView.hxx>

Inheritance diagram for sdext::presenter::PresenterNotesView:
[legend]
Collaboration diagram for sdext::presenter::PresenterNotesView:
[legend]

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< PresenterControllermpPresenterController
 
css::uno::Reference< css::awt::XWindow > mxParentWindow
 
css::uno::Reference< css::rendering::XCanvas > mxCanvas
 
css::uno::Reference< css::drawing::XDrawPage > mxCurrentNotesPage
 
::rtl::Reference< PresenterScrollBarmpScrollBar
 
css::uno::Reference< css::awt::XWindow > mxToolBarWindow
 
css::uno::Reference< css::rendering::XCanvas > mxToolBarCanvas
 
::rtl::Reference< PresenterToolBarmpToolBar
 
::rtl::Reference< PresenterButtonmpCloseButton
 
css::util::Color maSeparatorColor
 
sal_Int32 mnSeparatorYLocation
 
css::geometry::RealRectangle2D maTextBoundingBox
 
SharedBitmapDescriptor mpBackground
 
double mnTop
 
PresenterTheme::SharedFontDescriptor mpFont
 
std::shared_ptr< PresenterTextViewmpTextView
 
- Private Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PresenterNotesView()

sdext::presenter::PresenterNotesView::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 
)
explicit

◆ ~PresenterNotesView()

sdext::presenter::PresenterNotesView::~PresenterNotesView ( )
overridevirtual

Definition at line 120 of file PresenterNotesView.cxx.

Member Function Documentation

◆ ChangeFontSize()

void sdext::presenter::PresenterNotesView::ChangeFontSize ( const sal_Int32  nSizeChange)

◆ CreateToolBar()

void sdext::presenter::PresenterNotesView::CreateToolBar ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const ::rtl::Reference< PresenterController > &  rpPresenterController 
)
private

◆ disposing() [1/2]

void SAL_CALL sdext::presenter::PresenterNotesView::disposing ( )
overridevirtual

◆ disposing() [2/2]

virtual void SAL_CALL sdext::presenter::PresenterNotesView::disposing ( const css::lang::EventObject &  rEventObject)
overridevirtual

◆ getCurrentPage()

Reference< drawing::XDrawPage > SAL_CALL sdext::presenter::PresenterNotesView::getCurrentPage ( )
overridevirtual

Definition at line 328 of file PresenterNotesView.cxx.

◆ getResourceId()

Reference< XResourceId > SAL_CALL sdext::presenter::PresenterNotesView::getResourceId ( )
overridevirtual

Definition at line 299 of file PresenterNotesView.cxx.

References mxViewId.

◆ GetTextView()

const std::shared_ptr< PresenterTextView > & sdext::presenter::PresenterNotesView::GetTextView ( ) const

Definition at line 621 of file PresenterNotesView.cxx.

References mpTextView.

◆ Invalidate()

void sdext::presenter::PresenterNotesView::Invalidate ( )
private

◆ isAnchorOnly()

sal_Bool SAL_CALL sdext::presenter::PresenterNotesView::isAnchorOnly ( )
overridevirtual

Definition at line 304 of file PresenterNotesView.cxx.

◆ keyPressed()

void SAL_CALL sdext::presenter::PresenterNotesView::keyPressed ( const css::awt::KeyEvent &  rEvent)
overridevirtual

◆ keyReleased()

void SAL_CALL sdext::presenter::PresenterNotesView::keyReleased ( const css::awt::KeyEvent &  rEvent)
overridevirtual

Definition at line 376 of file PresenterNotesView.cxx.

◆ Layout()

void sdext::presenter::PresenterNotesView::Layout ( )
private

◆ Paint()

void sdext::presenter::PresenterNotesView::Paint ( const css::awt::Rectangle &  rUpdateBox)
private

◆ PaintText()

void sdext::presenter::PresenterNotesView::PaintText ( const css::awt::Rectangle &  rUpdateBox)
private

◆ PaintToolBar()

void sdext::presenter::PresenterNotesView::PaintToolBar ( const css::awt::Rectangle &  rUpdateBox)
private

◆ Scroll()

void sdext::presenter::PresenterNotesView::Scroll ( const double  nDistance)
private

Definition at line 558 of file PresenterNotesView.cxx.

References Invalidate(), mnTop, mpTextView, and UpdateScrollBar().

Referenced by keyPressed().

◆ setCurrentPage()

void SAL_CALL sdext::presenter::PresenterNotesView::setCurrentPage ( const css::uno::Reference< css::drawing::XDrawPage > &  rxSlide)
overridevirtual

Definition at line 311 of file PresenterNotesView.cxx.

References mxCurrentNotesPage, and SetSlide().

◆ 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().

◆ SetTop()

void sdext::presenter::PresenterNotesView::SetTop ( const double  nTop)
private

Definition at line 572 of file PresenterNotesView.cxx.

References Invalidate(), mnTop, mpTextView, and UpdateScrollBar().

◆ UpdateScrollBar()

void sdext::presenter::PresenterNotesView::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().

◆ windowHidden()

void SAL_CALL sdext::presenter::PresenterNotesView::windowHidden ( const css::lang::EventObject &  rEvent)
overridevirtual

Definition at line 277 of file PresenterNotesView.cxx.

◆ windowMoved()

void SAL_CALL sdext::presenter::PresenterNotesView::windowMoved ( const css::awt::WindowEvent &  rEvent)
overridevirtual

Definition at line 273 of file PresenterNotesView.cxx.

◆ windowPaint()

void SAL_CALL sdext::presenter::PresenterNotesView::windowPaint ( const css::awt::PaintEvent &  rEvent)
overridevirtual

Definition at line 281 of file PresenterNotesView.cxx.

References Paint().

◆ windowResized()

void SAL_CALL sdext::presenter::PresenterNotesView::windowResized ( const css::awt::WindowEvent &  rEvent)
overridevirtual

Definition at line 268 of file PresenterNotesView.cxx.

References Layout().

◆ windowShown()

void SAL_CALL sdext::presenter::PresenterNotesView::windowShown ( const css::lang::EventObject &  rEvent)
overridevirtual

Definition at line 275 of file PresenterNotesView.cxx.

Member Data Documentation

◆ maSeparatorColor

css::util::Color sdext::presenter::PresenterNotesView::maSeparatorColor
private

Definition at line 133 of file PresenterNotesView.hxx.

Referenced by PaintToolBar(), and PresenterNotesView().

◆ maTextBoundingBox

css::geometry::RealRectangle2D sdext::presenter::PresenterNotesView::maTextBoundingBox
private

◆ mnSeparatorYLocation

sal_Int32 sdext::presenter::PresenterNotesView::mnSeparatorYLocation
private

Definition at line 134 of file PresenterNotesView.hxx.

Referenced by Layout(), and PaintToolBar().

◆ mnTop

double sdext::presenter::PresenterNotesView::mnTop
private

Definition at line 137 of file PresenterNotesView.hxx.

Referenced by Scroll(), SetTop(), and UpdateScrollBar().

◆ mpBackground

SharedBitmapDescriptor sdext::presenter::PresenterNotesView::mpBackground
private

Definition at line 136 of file PresenterNotesView.hxx.

Referenced by Paint(), PaintText(), and PaintToolBar().

◆ mpCloseButton

::rtl::Reference<PresenterButton> sdext::presenter::PresenterNotesView::mpCloseButton
private

Definition at line 132 of file PresenterNotesView.hxx.

Referenced by disposing(), Layout(), and PresenterNotesView().

◆ mpFont

PresenterTheme::SharedFontDescriptor sdext::presenter::PresenterNotesView::mpFont
private

◆ mpPresenterController

::rtl::Reference<PresenterController> sdext::presenter::PresenterNotesView::mpPresenterController
private

◆ mpScrollBar

::rtl::Reference<PresenterScrollBar> sdext::presenter::PresenterNotesView::mpScrollBar
private

◆ mpTextView

std::shared_ptr<PresenterTextView> sdext::presenter::PresenterNotesView::mpTextView
private

◆ mpToolBar

::rtl::Reference<PresenterToolBar> sdext::presenter::PresenterNotesView::mpToolBar
private

Definition at line 131 of file PresenterNotesView.hxx.

Referenced by CreateToolBar(), disposing(), and Layout().

◆ mxCanvas

css::uno::Reference<css::rendering::XCanvas> sdext::presenter::PresenterNotesView::mxCanvas
private

◆ mxCurrentNotesPage

css::uno::Reference<css::drawing::XDrawPage> sdext::presenter::PresenterNotesView::mxCurrentNotesPage
private

Definition at line 127 of file PresenterNotesView.hxx.

Referenced by setCurrentPage().

◆ mxParentWindow

css::uno::Reference<css::awt::XWindow> sdext::presenter::PresenterNotesView::mxParentWindow
private

◆ mxToolBarCanvas

css::uno::Reference<css::rendering::XCanvas> sdext::presenter::PresenterNotesView::mxToolBarCanvas
private

Definition at line 130 of file PresenterNotesView.hxx.

Referenced by CreateToolBar(), and disposing().

◆ mxToolBarWindow

css::uno::Reference<css::awt::XWindow> sdext::presenter::PresenterNotesView::mxToolBarWindow
private

Definition at line 129 of file PresenterNotesView.hxx.

Referenced by CreateToolBar(), disposing(), and Layout().

◆ mxViewId

css::uno::Reference<css::drawing::framework::XResourceId> sdext::presenter::PresenterNotesView::mxViewId
private

The documentation for this class was generated from the following files: