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

◆ PresenterSlidePreview() [1/2]

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 
)

◆ ~PresenterSlidePreview()

sdext::presenter::PresenterSlidePreview::~PresenterSlidePreview ( )
overridevirtual

Definition at line 96 of file PresenterSlidePreview.cxx.

◆ PresenterSlidePreview() [2/2]

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

Member Function Documentation

◆ disposing() [1/2]

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

Definition at line 100 of file PresenterSlidePreview.cxx.

References mxCanvas.

◆ disposing() [2/2]

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

◆ getCurrentPage()

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

Definition at line 183 of file PresenterSlidePreview.cxx.

◆ getResourceId()

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

Definition at line 117 of file PresenterSlidePreview.cxx.

◆ isAnchorOnly()

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

Definition at line 122 of file PresenterSlidePreview.cxx.

◆ operator=()

PresenterSlidePreview & sdext::presenter::PresenterSlidePreview::operator= ( const PresenterSlidePreview )
delete

◆ Paint()

void sdext::presenter::PresenterSlidePreview::Paint ( const css::awt::Rectangle &  rBoundingBox)
private

Paint the preview of the current slide centered in the window of the anchor pane.

Definition at line 200 of file PresenterSlidePreview.cxx.

References mpBitmaps, mpPresenterController, and mxCanvas.

◆ Resize()

void sdext::presenter::PresenterSlidePreview::Resize ( )
private

React to a resize of the anchor pane.

Definition at line 319 of file PresenterSlidePreview.cxx.

◆ setCurrentPage()

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

Definition at line 176 of file PresenterSlidePreview.cxx.

◆ SetSlide()

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 190 of file PresenterSlidePreview.cxx.

References mpPresenterController.

◆ ThrowIfDisposed()

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

Definition at line 340 of file PresenterSlidePreview.cxx.

◆ windowHidden()

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

Definition at line 145 of file PresenterSlidePreview.cxx.

◆ windowMoved()

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

Definition at line 136 of file PresenterSlidePreview.cxx.

◆ windowPaint()

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

Definition at line 149 of file PresenterSlidePreview.cxx.

References Paint.

◆ windowResized()

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

Definition at line 129 of file PresenterSlidePreview.cxx.

References Resize.

◆ windowShown()

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

Definition at line 138 of file PresenterSlidePreview.cxx.

References Resize.

Member Data Documentation

◆ mnSlideAspectRatio

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

Definition at line 116 of file PresenterSlidePreview.hxx.

◆ mpBitmaps

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

Definition at line 110 of file PresenterSlidePreview.hxx.

◆ mpPresenterController

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

Definition at line 98 of file PresenterSlidePreview.hxx.

◆ mxCanvas

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

Definition at line 119 of file PresenterSlidePreview.hxx.

◆ mxCurrentSlide

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.

◆ mxPreview

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.

◆ mxPreviewRenderer

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

Definition at line 102 of file PresenterSlidePreview.hxx.

◆ mxViewId

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

Definition at line 101 of file PresenterSlidePreview.hxx.

◆ mxWindow

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

Definition at line 118 of file PresenterSlidePreview.hxx.


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