LibreOffice Module sfx2 (master) 1
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | List of all members
ThumbnailViewItem Class Reference

#include <thumbnailviewitem.hxx>

Inheritance diagram for ThumbnailViewItem:
[legend]
Collaboration diagram for ThumbnailViewItem:
[legend]

Public Member Functions

 ThumbnailViewItem (ThumbnailView &rView, sal_uInt16 nId)
 
virtual ~ThumbnailViewItem ()
 
bool isVisible () const
 
void show (bool bVisible)
 
bool isSelected () const
 
void setSelection (bool state)
 
bool isHighlighted () const
 
void setHighlight (bool state)
 
bool isPinned () const
 
virtual tools::Rectangle updateHighlight (bool bVisible, const Point &rPoint)
 Updates own highlight status based on the aPoint position. More...
 
void setHelpText (const OUString &sText)
 Text to be used for the tooltip. More...
 
virtual OUString getHelpText () const
 
OUString const & getTitle () const
 
void setTitle (const OUString &rTitle)
 
css::uno::Reference< css::accessibility::XAccessible > const & GetAccessible (bool bIsTransientChildrenDisabled)
 
void setDrawArea (const tools::Rectangle &area)
 
const tools::RectanglegetDrawArea () const
 
void calculateItemsPosition (const tools::Long nThumbnailHeight, const tools::Long nPadding, sal_uInt32 nMaxTextLength, const ThumbnailItemAttributes *pAttrs)
 
virtual void Paint (drawinglayer::processor2d::BaseProcessor2D *pProcessor, const ThumbnailItemAttributes *pAttrs)
 
void addTextPrimitives (const OUString &rText, const ThumbnailItemAttributes *pAttrs, Point aPos, drawinglayer::primitive2d::Primitive2DContainer &rSeq)
 
virtual void MouseButtonUp (const MouseEvent &)
 

Static Public Member Functions

static rtl::Reference< drawinglayer::primitive2d::PolygonHairlinePrimitive2DcreateBorderLine (const basegfx::B2DPolygon &rPolygon)
 

Public Attributes

ThumbnailViewmrParent
 
sal_uInt16 mnId
 
bool mbVisible
 
bool mbBorder
 
bool mbSelected
 
bool mbHover
 
bool mbPinned
 
BitmapEx maPreview1
 
OUString maTitle
 
OUString maHelpText
 
css::uno::Reference< css::accessibility::XAccessible > mxAcc
 
bool mbPinnedDocumentHighlighted
 
BitmapEx maPinnedDocumentBitmap
 
BitmapEx maPinnedDocumentBitmapHiglighted
 

Protected Attributes

Point maTextPos
 
Point maPrev1Pos
 
Point maPinPos
 
tools::Rectangle maDrawArea
 

Detailed Description

Definition at line 65 of file thumbnailviewitem.hxx.

Constructor & Destructor Documentation

◆ ThumbnailViewItem()

ThumbnailViewItem::ThumbnailViewItem ( ThumbnailView rView,
sal_uInt16  nId 
)

Definition at line 52 of file thumbnailviewitem.cxx.

References mbVisible, mnId, mrParent, and nId.

◆ ~ThumbnailViewItem()

ThumbnailViewItem::~ThumbnailViewItem ( )
virtual

Definition at line 66 of file thumbnailviewitem.cxx.

References mxAcc.

Member Function Documentation

◆ addTextPrimitives()

void ThumbnailViewItem::addTextPrimitives ( const OUString &  rText,
const ThumbnailItemAttributes pAttrs,
Point  aPos,
drawinglayer::primitive2d::Primitive2DContainer rSeq 
)

◆ calculateItemsPosition()

void ThumbnailViewItem::calculateItemsPosition ( const tools::Long  nThumbnailHeight,
const tools::Long  nPadding,
sal_uInt32  nMaxTextLength,
const ThumbnailItemAttributes pAttrs 
)

◆ createBorderLine()

rtl::Reference< drawinglayer::primitive2d::PolygonHairlinePrimitive2D > ThumbnailViewItem::createBorderLine ( const basegfx::B2DPolygon rPolygon)
static

Definition at line 352 of file thumbnailviewitem.cxx.

Referenced by Paint(), and TemplateViewItem::Paint().

◆ GetAccessible()

uno::Reference< accessibility::XAccessible > const & ThumbnailViewItem::GetAccessible ( bool  bIsTransientChildrenDisabled)

◆ getDrawArea()

const tools::Rectangle & ThumbnailViewItem::getDrawArea ( ) const
inline

◆ getHelpText()

virtual OUString ThumbnailViewItem::getHelpText ( ) const
inlinevirtual

Reimplemented in RecentDocsViewItem.

Definition at line 113 of file thumbnailviewitem.hxx.

Referenced by ThumbnailView::RequestHelp().

◆ getTitle()

OUString const & ThumbnailViewItem::getTitle ( ) const
inline

◆ isHighlighted()

bool ThumbnailViewItem::isHighlighted ( ) const
inline

◆ isPinned()

bool ThumbnailViewItem::isPinned ( ) const
inline

◆ isSelected()

bool ThumbnailViewItem::isSelected ( ) const
inline

◆ isVisible()

bool ThumbnailViewItem::isVisible ( ) const
inline

◆ MouseButtonUp()

virtual void ThumbnailViewItem::MouseButtonUp ( const MouseEvent )
inlinevirtual

Reimplemented in RecentDocsViewItem.

Definition at line 136 of file thumbnailviewitem.hxx.

Referenced by sfx2::RecentDocsView::MouseButtonUp().

◆ Paint()

void ThumbnailViewItem::Paint ( drawinglayer::processor2d::BaseProcessor2D pProcessor,
const ThumbnailItemAttributes pAttrs 
)
virtual

◆ setDrawArea()

void ThumbnailViewItem::setDrawArea ( const tools::Rectangle area)

Definition at line 140 of file thumbnailviewitem.cxx.

References maDrawArea.

Referenced by ThumbnailView::CalculateItemPositions().

◆ setHelpText()

void ThumbnailViewItem::setHelpText ( const OUString &  sText)
inline

Text to be used for the tooltip.

Definition at line 111 of file thumbnailviewitem.hxx.

Referenced by TemplateLocalView::renameItem().

◆ setHighlight()

void ThumbnailViewItem::setHighlight ( bool  state)

Definition at line 84 of file thumbnailviewitem.cxx.

References mbHover.

Referenced by sfx2::RecentDocsView::MouseButtonUp(), and updateHighlight().

◆ setSelection()

void ThumbnailViewItem::setSelection ( bool  state)

◆ setTitle()

void ThumbnailViewItem::setTitle ( const OUString &  rTitle)

◆ show()

void ThumbnailViewItem::show ( bool  bVisible)

Definition at line 74 of file thumbnailviewitem.cxx.

References bVisible, and mbVisible.

Referenced by ThumbnailView::CalculateItemPositions(), and ThumbnailView::filterItems().

◆ updateHighlight()

tools::Rectangle ThumbnailViewItem::updateHighlight ( bool  bVisible,
const Point rPoint 
)
virtual

Updates own highlight status based on the aPoint position.

Returns rectangle that needs to be invalidated.

Reimplemented in RecentDocsViewItem.

Definition at line 89 of file thumbnailviewitem.cxx.

References bVisible, getDrawArea(), BitmapEx::GetSizePixel(), isHighlighted(), maPinnedDocumentBitmap, maPinPos, mbPinnedDocumentHighlighted, and setHighlight().

Referenced by ThumbnailView::MouseMove(), and RecentDocsViewItem::updateHighlight().

Member Data Documentation

◆ maDrawArea

tools::Rectangle ThumbnailViewItem::maDrawArea
protected

◆ maHelpText

OUString ThumbnailViewItem::maHelpText

Definition at line 78 of file thumbnailviewitem.hxx.

Referenced by TemplateLocalView::moveTemplates().

◆ maPinnedDocumentBitmap

BitmapEx ThumbnailViewItem::maPinnedDocumentBitmap

Definition at line 82 of file thumbnailviewitem.hxx.

Referenced by RecentDocsViewItem::MouseButtonUp(), Paint(), and updateHighlight().

◆ maPinnedDocumentBitmapHiglighted

BitmapEx ThumbnailViewItem::maPinnedDocumentBitmapHiglighted

Definition at line 83 of file thumbnailviewitem.hxx.

Referenced by Paint().

◆ maPinPos

Point ThumbnailViewItem::maPinPos
protected

◆ maPrev1Pos

Point ThumbnailViewItem::maPrev1Pos
protected

Definition at line 141 of file thumbnailviewitem.hxx.

Referenced by calculateItemsPosition(), Paint(), and TemplateViewItem::Paint().

◆ maPreview1

BitmapEx ThumbnailViewItem::maPreview1

◆ maTextPos

Point ThumbnailViewItem::maTextPos
protected

Definition at line 140 of file thumbnailviewitem.hxx.

Referenced by calculateItemsPosition(), Paint(), and TemplateViewItem::Paint().

◆ maTitle

OUString ThumbnailViewItem::maTitle

◆ mbBorder

bool ThumbnailViewItem::mbBorder

Definition at line 72 of file thumbnailviewitem.hxx.

Referenced by Paint().

◆ mbHover

bool ThumbnailViewItem::mbHover

◆ mbPinned

bool ThumbnailViewItem::mbPinned

Definition at line 75 of file thumbnailviewitem.hxx.

Referenced by Paint(), and RecentDocsViewItem::RecentDocsViewItem().

◆ mbPinnedDocumentHighlighted

bool ThumbnailViewItem::mbPinnedDocumentHighlighted

Definition at line 81 of file thumbnailviewitem.hxx.

Referenced by updateHighlight().

◆ mbSelected

bool ThumbnailViewItem::mbSelected

◆ mbVisible

bool ThumbnailViewItem::mbVisible

◆ mnId

sal_uInt16 ThumbnailViewItem::mnId

◆ mrParent

ThumbnailView& ThumbnailViewItem::mrParent

◆ mxAcc

css::uno::Reference< css::accessibility::XAccessible > ThumbnailViewItem::mxAcc

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