LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sd::slidesorter::view::InsertionIndicatorOverlay Class Referencefinal

The insertion indicator is painted as a vertical or horizontal bar in the space between slides. More...

#include <SlsInsertionIndicatorOverlay.hxx>

Inheritance diagram for sd::slidesorter::view::InsertionIndicatorOverlay:
[legend]
Collaboration diagram for sd::slidesorter::view::InsertionIndicatorOverlay:
[legend]

Public Member Functions

 InsertionIndicatorOverlay (SlideSorter &rSlideSorter)
 
virtual ~InsertionIndicatorOverlay () override
 
virtual void SetLayerInvalidator (const SharedILayerInvalidator &rpInvalidator) override
 
void Create (const SdTransferable *pTransferable)
 
void SetLocation (const Point &rPosition)
 Given a position in model coordinates this method calculates the insertion marker both as an index in the document and as a location used for drawing the insertion indicator. More...
 
Size GetSize () const
 
virtual void Paint (OutputDevice &rDevice, const ::tools::Rectangle &rRepaintArea) override
 
bool IsVisible () const
 
void Hide ()
 
void Show ()
 
::tools::Rectangle GetBoundingBox () const
 
- Public Member Functions inherited from sd::slidesorter::view::ILayerPainter
virtual ~ILayerPainter ()
 
virtual void SetLayerInvalidator (const SharedILayerInvalidator &rpInvalidator)=0
 
virtual void Paint (OutputDevice &rDevice, const ::tools::Rectangle &rRepaintArea)=0
 

Private Member Functions

Point PaintRepresentatives (OutputDevice &rContent, const Size &rPreviewSize, const sal_Int32 nOffset, const ::std::vector< controller::TransferableData::Representative > &rPages) const
 
void PaintPageCount (OutputDevice &rDevice, const sal_Int32 nSelectionCount, const Size &rPreviewSize, const Point &rFirstPageOffset) const
 
void Create (const ::std::vector< controller::TransferableData::Representative > &rPages, const sal_Int32 nSelectionCount)
 Setup the insertion indicator by creating the icon. More...
 

Private Attributes

SlideSortermrSlideSorter
 
bool mbIsVisible
 
SharedILayerInvalidator mpLayerInvalidator
 
Point maLocation
 
BitmapEx maIcon
 
std::unique_ptr< FramePaintermpShadowPainter
 

Detailed Description

The insertion indicator is painted as a vertical or horizontal bar in the space between slides.

Definition at line 42 of file SlsInsertionIndicatorOverlay.hxx.

Constructor & Destructor Documentation

◆ InsertionIndicatorOverlay()

sd::slidesorter::view::InsertionIndicatorOverlay::InsertionIndicatorOverlay ( SlideSorter rSlideSorter)

Definition at line 64 of file SlsInsertionIndicatorOverlay.cxx.

◆ ~InsertionIndicatorOverlay()

sd::slidesorter::view::InsertionIndicatorOverlay::~InsertionIndicatorOverlay ( )
overridevirtual

Definition at line 72 of file SlsInsertionIndicatorOverlay.cxx.

References Hide(), and suppress_fun_call_w_exception.

Member Function Documentation

◆ Create() [1/2]

void sd::slidesorter::view::InsertionIndicatorOverlay::Create ( const ::std::vector< controller::TransferableData::Representative > &  rPages,
const sal_Int32  nSelectionCount 
)
private

◆ Create() [2/2]

void sd::slidesorter::view::InsertionIndicatorOverlay::Create ( const SdTransferable pTransferable)

◆ GetBoundingBox()

tools::Rectangle sd::slidesorter::view::InsertionIndicatorOverlay::GetBoundingBox ( ) const

◆ GetSize()

Size sd::slidesorter::view::InsertionIndicatorOverlay::GetSize ( ) const

◆ Hide()

void sd::slidesorter::view::InsertionIndicatorOverlay::Hide ( )

◆ IsVisible()

bool sd::slidesorter::view::InsertionIndicatorOverlay::IsVisible ( ) const
inline

Definition at line 66 of file SlsInsertionIndicatorOverlay.hxx.

References mbIsVisible.

Referenced by Paint(), and SetLocation().

◆ Paint()

void sd::slidesorter::view::InsertionIndicatorOverlay::Paint ( OutputDevice rDevice,
const ::tools::Rectangle rRepaintArea 
)
overridevirtual

◆ PaintPageCount()

void sd::slidesorter::view::InsertionIndicatorOverlay::PaintPageCount ( OutputDevice rDevice,
const sal_Int32  nSelectionCount,
const Size rPreviewSize,
const Point rFirstPageOffset 
) const
private

◆ PaintRepresentatives()

Point sd::slidesorter::view::InsertionIndicatorOverlay::PaintRepresentatives ( OutputDevice rContent,
const Size rPreviewSize,
const sal_Int32  nOffset,
const ::std::vector< controller::TransferableData::Representative > &  rPages 
) const
private

◆ SetLayerInvalidator()

void sd::slidesorter::view::InsertionIndicatorOverlay::SetLayerInvalidator ( const SharedILayerInvalidator rpInvalidator)
overridevirtual

◆ SetLocation()

void sd::slidesorter::view::InsertionIndicatorOverlay::SetLocation ( const Point rPosition)

Given a position in model coordinates this method calculates the insertion marker both as an index in the document and as a location used for drawing the insertion indicator.

Definition at line 274 of file SlsInsertionIndicatorOverlay.cxx.

References GetBoundingBox(), BitmapEx::GetSizePixel(), Size::Height(), IsVisible(), maIcon, maLocation, mpLayerInvalidator, and Size::Width().

◆ Show()

void sd::slidesorter::view::InsertionIndicatorOverlay::Show ( )

Member Data Documentation

◆ maIcon

BitmapEx sd::slidesorter::view::InsertionIndicatorOverlay::maIcon
private

Definition at line 78 of file SlsInsertionIndicatorOverlay.hxx.

Referenced by Create(), GetBoundingBox(), GetSize(), Paint(), and SetLocation().

◆ maLocation

Point sd::slidesorter::view::InsertionIndicatorOverlay::maLocation
private

Definition at line 77 of file SlsInsertionIndicatorOverlay.hxx.

Referenced by GetBoundingBox(), Paint(), and SetLocation().

◆ mbIsVisible

bool sd::slidesorter::view::InsertionIndicatorOverlay::mbIsVisible
private

Definition at line 74 of file SlsInsertionIndicatorOverlay.hxx.

Referenced by Hide(), IsVisible(), SetLayerInvalidator(), and Show().

◆ mpLayerInvalidator

SharedILayerInvalidator sd::slidesorter::view::InsertionIndicatorOverlay::mpLayerInvalidator
private

Definition at line 75 of file SlsInsertionIndicatorOverlay.hxx.

Referenced by Hide(), SetLayerInvalidator(), SetLocation(), and Show().

◆ mpShadowPainter

std::unique_ptr<FramePainter> sd::slidesorter::view::InsertionIndicatorOverlay::mpShadowPainter
private

Definition at line 79 of file SlsInsertionIndicatorOverlay.hxx.

Referenced by PaintRepresentatives().

◆ mrSlideSorter

SlideSorter& sd::slidesorter::view::InsertionIndicatorOverlay::mrSlideSorter
private

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