LibreOffice Module sfx2 (master) 1
Public Member Functions | Public Attributes | Private Attributes | List of all members
TemplateViewItem Class Referencefinal

#include <templateviewitem.hxx>

Inheritance diagram for TemplateViewItem:
Collaboration diagram for TemplateViewItem:

Public Member Functions

 TemplateViewItem (ThumbnailView &rView, sal_uInt16 nId)
virtual ~TemplateViewItem () override
void setPath (const OUString &rPath)
const OUString & getPath () const
void showDefaultIcon (bool bVal)
bool IsDefaultTemplate () const
tools::Rectangle getDefaultIconArea () const
virtual void Paint (drawinglayer::processor2d::BaseProcessor2D *pProcessor, const ThumbnailItemAttributes *pAttrs) override
- Public Member Functions inherited from ThumbnailViewItem
 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 &)

Public Attributes

sal_uInt16 mnRegionId
sal_uInt16 mnDocId
- Public Attributes inherited from ThumbnailViewItem
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

Private Attributes

OUString maPath
BitmapEx maDefaultBitmap
bool mbIsDefaultTemplate

Additional Inherited Members

- Static Public Member Functions inherited from ThumbnailViewItem
static rtl::Reference< drawinglayer::primitive2d::PolygonHairlinePrimitive2DcreateBorderLine (const basegfx::B2DPolygon &rPolygon)
- Protected Attributes inherited from ThumbnailViewItem
Point maTextPos
Point maPrev1Pos
Point maPinPos
tools::Rectangle maDrawArea

Detailed Description

Definition at line 14 of file templateviewitem.hxx.

Constructor & Destructor Documentation

◆ TemplateViewItem()

TemplateViewItem::TemplateViewItem ( ThumbnailView rView,
sal_uInt16  nId 

Definition at line 31 of file templateviewitem.cxx.

References nId.

◆ ~TemplateViewItem()

TemplateViewItem::~TemplateViewItem ( )

Definition at line 40 of file templateviewitem.cxx.

Member Function Documentation

◆ getDefaultIconArea()

tools::Rectangle TemplateViewItem::getDefaultIconArea ( ) const

◆ getPath()

const OUString & TemplateViewItem::getPath ( ) const

◆ IsDefaultTemplate()

bool TemplateViewItem::IsDefaultTemplate ( ) const

Definition at line 28 of file templateviewitem.hxx.

References mbIsDefaultTemplate.

Referenced by IMPL_LINK(), and TemplateDlgLocalView::insertFilteredItems().

◆ Paint()

void TemplateViewItem::Paint ( drawinglayer::processor2d::BaseProcessor2D pProcessor,
const ThumbnailItemAttributes pAttrs 

◆ setPath()

void TemplateViewItem::setPath ( const OUString &  rPath)

Definition at line 22 of file templateviewitem.hxx.

References maPath.

◆ showDefaultIcon()

void TemplateViewItem::showDefaultIcon ( bool  bVal)

Definition at line 26 of file templateviewitem.hxx.

References mbIsDefaultTemplate.

Referenced by IMPL_LINK(), and TemplateLocalView::RemoveDefaultTemplateIcon().

Member Data Documentation

◆ maDefaultBitmap

BitmapEx TemplateViewItem::maDefaultBitmap

Definition at line 41 of file templateviewitem.hxx.

Referenced by getDefaultIconArea(), and Paint().

◆ maPath

OUString TemplateViewItem::maPath

Definition at line 40 of file templateviewitem.hxx.

Referenced by getPath(), and setPath().

◆ mbIsDefaultTemplate

bool TemplateViewItem::mbIsDefaultTemplate

Definition at line 42 of file templateviewitem.hxx.

Referenced by IsDefaultTemplate(), Paint(), and showDefaultIcon().

◆ mnDocId

sal_uInt16 TemplateViewItem::mnDocId

◆ mnRegionId

sal_uInt16 TemplateViewItem::mnRegionId

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