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

Public Member Functions

 MouseOverManager (const Reference< container::XIndexAccess > &rxSlides, const std::shared_ptr< PresenterTheme > &rpTheme, const Reference< awt::XWindow > &rxInvalidateTarget, const std::shared_ptr< PresenterPaintManager > &rpPaintManager)
 
 MouseOverManager (const MouseOverManager &)=delete
 
MouseOverManageroperator= (const MouseOverManager &)=delete
 
void Paint (const sal_Int32 nSlideIndex, const Reference< rendering::XCanvas > &rxCanvas, const Reference< rendering::XPolyPolygon2D > &rxClip)
 
void SetSlide (const sal_Int32 nSlideIndex, const awt::Rectangle &rBox)
 

Private Member Functions

void SetCanvas (const Reference< rendering::XCanvas > &rxCanvas)
 
Reference< rendering::XBitmap > CreateBitmap (const OUString &rsText, const sal_Int32 nMaximalWidth) const
 Create a bitmap that shows the given text and is not wider than the given maximal width. More...
 
void Invalidate ()
 
geometry::IntegerSize2D CalculateLabelSize (const OUString &rsText) const
 
OUString GetFittingText (const OUString &rsText, const double nMaximalWidth) const
 
void PaintButtonBackground (const Reference< rendering::XCanvas > &rxCanvas, const geometry::IntegerSize2D &rSize) const
 

Private Attributes

Reference< rendering::XCanvas > mxCanvas
 
const Reference< container::XIndexAccess > mxSlides
 
SharedBitmapDescriptor mpLeftLabelBitmap
 
SharedBitmapDescriptor mpCenterLabelBitmap
 
SharedBitmapDescriptor mpRightLabelBitmap
 
PresenterTheme::SharedFontDescriptor mpFont
 
sal_Int32 mnSlideIndex
 
awt::Rectangle maSlideBoundingBox
 
OUString msText
 
Reference< rendering::XBitmap > mxBitmap
 
Reference< awt::XWindow > mxInvalidateTarget
 
std::shared_ptr< PresenterPaintManagermpPaintManager
 

Detailed Description

Definition at line 125 of file PresenterSlideSorter.cxx.

Constructor & Destructor Documentation

sdext::presenter::PresenterSlideSorter::MouseOverManager::MouseOverManager ( const Reference< container::XIndexAccess > &  rxSlides,
const std::shared_ptr< PresenterTheme > &  rpTheme,
const Reference< awt::XWindow > &  rxInvalidateTarget,
const std::shared_ptr< PresenterPaintManager > &  rpPaintManager 
)
sdext::presenter::PresenterSlideSorter::MouseOverManager::MouseOverManager ( const MouseOverManager )
delete

Member Function Documentation

geometry::IntegerSize2D sdext::presenter::PresenterSlideSorter::MouseOverManager::CalculateLabelSize ( const OUString &  rsText) const
private
Reference< rendering::XBitmap > sdext::presenter::PresenterSlideSorter::MouseOverManager::CreateBitmap ( const OUString &  rsText,
const sal_Int32  nMaximalWidth 
) const
private

Create a bitmap that shows the given text and is not wider than the given maximal width.

Definition at line 1528 of file PresenterSlideSorter.cxx.

References mpFont, sdext::presenter::PresenterSlideSorter::mxCanvas, and sdext::presenter::PresenterCanvasHelper::SetDeviceColor().

OUString sdext::presenter::PresenterSlideSorter::MouseOverManager::GetFittingText ( const OUString &  rsText,
const double  nMaximalWidth 
) const
private
void sdext::presenter::PresenterSlideSorter::MouseOverManager::Invalidate ( )
private

Definition at line 1699 of file PresenterSlideSorter.cxx.

MouseOverManager& sdext::presenter::PresenterSlideSorter::MouseOverManager::operator= ( const MouseOverManager )
delete
void sdext::presenter::PresenterSlideSorter::MouseOverManager::Paint ( const sal_Int32  nSlideIndex,
const Reference< rendering::XCanvas > &  rxCanvas,
const Reference< rendering::XPolyPolygon2D > &  rxClip 
)
void sdext::presenter::PresenterSlideSorter::MouseOverManager::PaintButtonBackground ( const Reference< rendering::XCanvas > &  rxCanvas,
const geometry::IntegerSize2D &  rSize 
) const
private
void sdext::presenter::PresenterSlideSorter::MouseOverManager::SetCanvas ( const Reference< rendering::XCanvas > &  rxCanvas)
private
void sdext::presenter::PresenterSlideSorter::MouseOverManager::SetSlide ( const sal_Int32  nSlideIndex,
const awt::Rectangle &  rBox 
)

Definition at line 1492 of file PresenterSlideSorter.cxx.

References msText, and mxBitmap.

Member Data Documentation

awt::Rectangle sdext::presenter::PresenterSlideSorter::MouseOverManager::maSlideBoundingBox
private

Definition at line 153 of file PresenterSlideSorter.cxx.

sal_Int32 sdext::presenter::PresenterSlideSorter::MouseOverManager::mnSlideIndex
private

Definition at line 152 of file PresenterSlideSorter.cxx.

SharedBitmapDescriptor sdext::presenter::PresenterSlideSorter::MouseOverManager::mpCenterLabelBitmap
private

Definition at line 149 of file PresenterSlideSorter.cxx.

Referenced by MouseOverManager().

PresenterTheme::SharedFontDescriptor sdext::presenter::PresenterSlideSorter::MouseOverManager::mpFont
private

Definition at line 151 of file PresenterSlideSorter.cxx.

Referenced by MouseOverManager().

SharedBitmapDescriptor sdext::presenter::PresenterSlideSorter::MouseOverManager::mpLeftLabelBitmap
private

Definition at line 148 of file PresenterSlideSorter.cxx.

Referenced by MouseOverManager().

std::shared_ptr<PresenterPaintManager> sdext::presenter::PresenterSlideSorter::MouseOverManager::mpPaintManager
private

Definition at line 157 of file PresenterSlideSorter.cxx.

SharedBitmapDescriptor sdext::presenter::PresenterSlideSorter::MouseOverManager::mpRightLabelBitmap
private

Definition at line 150 of file PresenterSlideSorter.cxx.

Referenced by MouseOverManager().

OUString sdext::presenter::PresenterSlideSorter::MouseOverManager::msText
private

Definition at line 154 of file PresenterSlideSorter.cxx.

Reference<rendering::XBitmap> sdext::presenter::PresenterSlideSorter::MouseOverManager::mxBitmap
private

Definition at line 155 of file PresenterSlideSorter.cxx.

Reference<rendering::XCanvas> sdext::presenter::PresenterSlideSorter::MouseOverManager::mxCanvas
private

Definition at line 146 of file PresenterSlideSorter.cxx.

Reference<awt::XWindow> sdext::presenter::PresenterSlideSorter::MouseOverManager::mxInvalidateTarget
private

Definition at line 156 of file PresenterSlideSorter.cxx.

const Reference<container::XIndexAccess> sdext::presenter::PresenterSlideSorter::MouseOverManager::mxSlides
private

Definition at line 147 of file PresenterSlideSorter.cxx.


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