LibreOffice Module sdext (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 css::uno::Reference< css::frame::XController > &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
 
- Public Member Functions inherited from sdext::presenter::CachablePresenterView
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 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
 

Additional Inherited Members

- Protected Member Functions inherited from sdext::presenter::CachablePresenterView
 CachablePresenterView ()
 
 ~CachablePresenterView ()
 
- Protected Attributes inherited from sdext::presenter::CachablePresenterView
bool mbIsPresenterViewActive
 

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 55 of file PresenterNotesView.hxx.

Constructor & Destructor Documentation

sdext::presenter::PresenterNotesView::PresenterNotesView ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const css::uno::Reference< css::drawing::framework::XResourceId > &  rxViewId,
const css::uno::Reference< css::frame::XController > &  rxController,
const ::rtl::Reference< PresenterController > &  rpPresenterController 
)
explicit
sdext::presenter::PresenterNotesView::~PresenterNotesView ( )
overridevirtual

Definition at line 132 of file PresenterNotesView.cxx.

Member Function Documentation

void sdext::presenter::PresenterNotesView::ChangeFontSize ( const sal_Int32  nSizeChange)
void sdext::presenter::PresenterNotesView::CreateToolBar ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const ::rtl::Reference< PresenterController > &  rpPresenterController 
)
private
void SAL_CALL sdext::presenter::PresenterNotesView::disposing ( )
overridevirtual
virtual void SAL_CALL sdext::presenter::PresenterNotesView::disposing ( const css::lang::EventObject &  rEventObject)
overridevirtual
Reference< drawing::XDrawPage > SAL_CALL sdext::presenter::PresenterNotesView::getCurrentPage ( )
overridevirtual

Definition at line 340 of file PresenterNotesView.cxx.

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

Definition at line 311 of file PresenterNotesView.cxx.

References mxViewId.

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

Definition at line 642 of file PresenterNotesView.cxx.

References mpTextView.

void sdext::presenter::PresenterNotesView::Invalidate ( )
private
sal_Bool SAL_CALL sdext::presenter::PresenterNotesView::isAnchorOnly ( )
overridevirtual

Definition at line 316 of file PresenterNotesView.cxx.

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

Definition at line 388 of file PresenterNotesView.cxx.

void sdext::presenter::PresenterNotesView::Layout ( )
private
void sdext::presenter::PresenterNotesView::Paint ( const css::awt::Rectangle &  rUpdateBox)
private
void sdext::presenter::PresenterNotesView::PaintText ( const css::awt::Rectangle &  rUpdateBox)
private
void sdext::presenter::PresenterNotesView::PaintToolBar ( const css::awt::Rectangle &  rUpdateBox)
private
void sdext::presenter::PresenterNotesView::Scroll ( const double  nDistance)
private

Definition at line 579 of file PresenterNotesView.cxx.

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

Referenced by keyPressed().

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

Definition at line 323 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 218 of file PresenterNotesView.cxx.

References Invalidate(), Layout(), mpScrollBar, mpTextView, nCount, nIndex, sType, and UpdateScrollBar().

Referenced by setCurrentPage().

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

Definition at line 593 of file PresenterNotesView.cxx.

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

Referenced by PresenterNotesView().

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

Definition at line 647 of file PresenterNotesView.cxx.

References maTextBoundingBox, mnTop, mpFont, mpScrollBar, and mpTextView.

Referenced by ChangeFontSize(), Layout(), Scroll(), SetSlide(), and SetTop().

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

Definition at line 289 of file PresenterNotesView.cxx.

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

Definition at line 285 of file PresenterNotesView.cxx.

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

Definition at line 280 of file PresenterNotesView.cxx.

References Layout().

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

Definition at line 287 of file PresenterNotesView.cxx.

Member Data Documentation

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

Definition at line 131 of file PresenterNotesView.hxx.

Referenced by PaintToolBar(), and PresenterNotesView().

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

Definition at line 132 of file PresenterNotesView.hxx.

Referenced by Layout(), and PaintToolBar().

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

Definition at line 135 of file PresenterNotesView.hxx.

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

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

Definition at line 134 of file PresenterNotesView.hxx.

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

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

Definition at line 130 of file PresenterNotesView.hxx.

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

PresenterTheme::SharedFontDescriptor sdext::presenter::PresenterNotesView::mpFont
private
::rtl::Reference<PresenterController> sdext::presenter::PresenterNotesView::mpPresenterController
private
::rtl::Reference<PresenterScrollBar> sdext::presenter::PresenterNotesView::mpScrollBar
private
std::shared_ptr<PresenterTextView> sdext::presenter::PresenterNotesView::mpTextView
private
::rtl::Reference<PresenterToolBar> sdext::presenter::PresenterNotesView::mpToolBar
private

Definition at line 129 of file PresenterNotesView.hxx.

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

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

Definition at line 125 of file PresenterNotesView.hxx.

Referenced by setCurrentPage().

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

Definition at line 128 of file PresenterNotesView.hxx.

Referenced by CreateToolBar(), and disposing().

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

Definition at line 127 of file PresenterNotesView.hxx.

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

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

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