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

Static preview of a slide. More...

#include <PresenterSlidePreview.hxx>

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

Public Member Functions

 PresenterSlidePreview (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId, const css::uno::Reference< css::drawing::framework::XPane > &rxAnchorPane, const ::rtl::Reference< PresenterController > &rpPresenterController)
 
virtual ~PresenterSlidePreview () override
 
 PresenterSlidePreview (const PresenterSlidePreview &)=delete
 
PresenterSlidePreviewoperator= (const PresenterSlidePreview &)=delete
 
virtual void SAL_CALL disposing () override
 
virtual css::uno::Reference< css::drawing::framework::XResourceId > SAL_CALL getResourceId () override
 
virtual sal_Bool SAL_CALL isAnchorOnly () 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 disposing (const css::lang::EventObject &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
 

Protected Attributes

::rtl::Reference< PresenterControllermpPresenterController
 

Private Member Functions

void SetSlide (const css::uno::Reference< css::drawing::XDrawPage > &rxPage)
 Set the given slide as the current slide of the called PresenterSlidePreview object. More...
 
void Paint (const css::awt::Rectangle &rBoundingBox)
 Paint the preview of the current slide centered in the window of the anchor pane. More...
 
void Resize ()
 React to a resize of the anchor pane. More...
 
void ThrowIfDisposed ()
 

Private Attributes

css::uno::Reference< css::drawing::framework::XResourceId > mxViewId
 
css::uno::Reference< css::drawing::XSlideRenderer > mxPreviewRenderer
 
css::uno::Reference< css::rendering::XBitmap > mxPreview
 This Image holds the preview of the current slide. More...
 
std::shared_ptr< PresenterBitmapContainermpBitmaps
 
css::uno::Reference< css::drawing::XDrawPage > mxCurrentSlide
 The current slide for which a preview is displayed. More...
 
double mnSlideAspectRatio
 
css::uno::Reference< css::awt::XWindow > mxWindow
 
css::uno::Reference< css::rendering::XCanvas > mxCanvas
 
- Private Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Static preview of a slide.

Typically used for the preview of the next slide. This implementation shows a preview of the slide given to the setCurrentSlide. For showing the next slide the PresenterViewFactory uses a derived class that overrides the setCurrentSlide() method.

Definition at line 52 of file PresenterSlidePreview.hxx.

Constructor & Destructor Documentation

sdext::presenter::PresenterSlidePreview::PresenterSlidePreview ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const css::uno::Reference< css::drawing::framework::XResourceId > &  rxViewId,
const css::uno::Reference< css::drawing::framework::XPane > &  rxAnchorPane,
const ::rtl::Reference< PresenterController > &  rpPresenterController 
)
sdext::presenter::PresenterSlidePreview::~PresenterSlidePreview ( )
overridevirtual

Definition at line 101 of file PresenterSlidePreview.cxx.

sdext::presenter::PresenterSlidePreview::PresenterSlidePreview ( const PresenterSlidePreview )
delete

Member Function Documentation

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

Definition at line 105 of file PresenterSlidePreview.cxx.

References mxCanvas, mxPreviewRenderer, mxWindow, and xComponent.

virtual void SAL_CALL sdext::presenter::PresenterSlidePreview::disposing ( const css::lang::EventObject &  rEvent)
overridevirtual
Reference< drawing::XDrawPage > SAL_CALL sdext::presenter::PresenterSlidePreview::getCurrentPage ( )
overridevirtual

Definition at line 188 of file PresenterSlidePreview.cxx.

References ThrowIfDisposed().

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

Definition at line 122 of file PresenterSlidePreview.cxx.

References mxViewId.

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

Definition at line 127 of file PresenterSlidePreview.cxx.

PresenterSlidePreview& sdext::presenter::PresenterSlidePreview::operator= ( const PresenterSlidePreview )
delete
void sdext::presenter::PresenterSlidePreview::Paint ( const css::awt::Rectangle &  rBoundingBox)
private
void sdext::presenter::PresenterSlidePreview::Resize ( )
private

React to a resize of the anchor pane.

Definition at line 324 of file PresenterSlidePreview.cxx.

References mnSlideAspectRatio, mxCurrentSlide, mxPreview, mxPreviewRenderer, mxWindow, and SetSlide().

Referenced by windowResized(), and windowShown().

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

Definition at line 181 of file PresenterSlidePreview.cxx.

References SetSlide(), and ThrowIfDisposed().

void sdext::presenter::PresenterSlidePreview::SetSlide ( const css::uno::Reference< css::drawing::XDrawPage > &  rxPage)
private

Set the given slide as the current slide of the called PresenterSlidePreview object.

Definition at line 195 of file PresenterSlidePreview.cxx.

References mpPresenterController, mxCurrentSlide, mxPreview, and mxWindow.

Referenced by Resize(), and setCurrentPage().

void sdext::presenter::PresenterSlidePreview::ThrowIfDisposed ( )
private
Exceptions
css::lang::DisposedExceptionwhen the object has already been disposed.

Definition at line 345 of file PresenterSlidePreview.cxx.

Referenced by getCurrentPage(), setCurrentPage(), windowPaint(), windowResized(), and windowShown().

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

Definition at line 150 of file PresenterSlidePreview.cxx.

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

Definition at line 141 of file PresenterSlidePreview.cxx.

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

Definition at line 154 of file PresenterSlidePreview.cxx.

References mxWindow, Paint(), and ThrowIfDisposed().

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

Definition at line 134 of file PresenterSlidePreview.cxx.

References Resize(), and ThrowIfDisposed().

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

Definition at line 143 of file PresenterSlidePreview.cxx.

References Resize(), and ThrowIfDisposed().

Member Data Documentation

double sdext::presenter::PresenterSlidePreview::mnSlideAspectRatio
private

Definition at line 116 of file PresenterSlidePreview.hxx.

Referenced by Paint(), and Resize().

std::shared_ptr<PresenterBitmapContainer> sdext::presenter::PresenterSlidePreview::mpBitmaps
private

Definition at line 110 of file PresenterSlidePreview.hxx.

Referenced by Paint().

::rtl::Reference<PresenterController> sdext::presenter::PresenterSlidePreview::mpPresenterController
protected

Definition at line 98 of file PresenterSlidePreview.hxx.

Referenced by Paint(), and SetSlide().

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

Definition at line 119 of file PresenterSlidePreview.hxx.

Referenced by disposing(), and Paint().

css::uno::Reference<css::drawing::XDrawPage> sdext::presenter::PresenterSlidePreview::mxCurrentSlide
private

The current slide for which a preview is displayed.

This may or may not be the same as the current slide of the PresenterView.

Definition at line 115 of file PresenterSlidePreview.hxx.

Referenced by Paint(), Resize(), and SetSlide().

css::uno::Reference<css::rendering::XBitmap> sdext::presenter::PresenterSlidePreview::mxPreview
private

This Image holds the preview of the current slide.

After resize requests the image may be empty. This results eventually in a call to ProvideSlide() in order to created a preview in the correct new size.

Definition at line 109 of file PresenterSlidePreview.hxx.

Referenced by Paint(), Resize(), and SetSlide().

css::uno::Reference<css::drawing::XSlideRenderer> sdext::presenter::PresenterSlidePreview::mxPreviewRenderer
private

Definition at line 102 of file PresenterSlidePreview.hxx.

Referenced by disposing(), Paint(), and Resize().

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

Definition at line 101 of file PresenterSlidePreview.hxx.

Referenced by getResourceId(), and Paint().

css::uno::Reference<css::awt::XWindow> sdext::presenter::PresenterSlidePreview::mxWindow
private

Definition at line 118 of file PresenterSlidePreview.hxx.

Referenced by disposing(), Paint(), Resize(), SetSlide(), and windowPaint().


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