LibreOffice Module sfx2 (master) 1
|
#include <templateviewitem.hxx>
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::Rectangle & | getDrawArea () 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 | |
ThumbnailView & | mrParent |
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::PolygonHairlinePrimitive2D > | createBorderLine (const basegfx::B2DPolygon &rPolygon) |
Protected Attributes inherited from ThumbnailViewItem | |
Point | maTextPos |
Point | maPrev1Pos |
Point | maPinPos |
tools::Rectangle | maDrawArea |
Definition at line 14 of file templateviewitem.hxx.
TemplateViewItem::TemplateViewItem | ( | ThumbnailView & | rView, |
sal_uInt16 | nId | ||
) |
Definition at line 31 of file templateviewitem.cxx.
References nId.
|
overridevirtual |
Definition at line 40 of file templateviewitem.cxx.
tools::Rectangle TemplateViewItem::getDefaultIconArea | ( | ) | const |
Definition at line 44 of file templateviewitem.cxx.
References ThumbnailViewItem::getDrawArea(), BitmapEx::GetSizePixel(), tools::Rectangle::Left(), maDefaultBitmap, THUMBNAILVIEW_ITEM_CORNER, and tools::Rectangle::Top().
Referenced by Paint().
|
inline |
Definition at line 24 of file templateviewitem.hxx.
References maPath.
Referenced by IMPL_LINK(), IMPL_LINK_NOARG(), TemplateDlgLocalView::insertFilteredItems(), SfxTemplateManagerDlg::OnTemplateExport(), ViewFilter_Application::operator()(), and TemplateLocalView::RemoveDefaultTemplateIcon().
|
inline |
Definition at line 28 of file templateviewitem.hxx.
References mbIsDefaultTemplate.
Referenced by IMPL_LINK(), and TemplateDlgLocalView::insertFilteredItems().
|
overridevirtual |
Reimplemented from ThumbnailViewItem.
Definition at line 54 of file templateviewitem.cxx.
References ThumbnailViewItem::addTextPrimitives(), ThumbnailItemAttributes::aFillColor, ThumbnailItemAttributes::aHighlightColor, basegfx::B2DPolygon::append(), ThumbnailItemAttributes::aSelectHighlightColor, aSeq, COL_WHITE(), ThumbnailViewItem::createBorderLine(), createTranslateB2DHomMatrix(), ThumbnailItemAttributes::fHighlightTransparence, Color::getBColor(), getDefaultIconArea(), BitmapEx::GetSizePixel(), Point::getX(), Point::getY(), Size::Height(), maDefaultBitmap, ThumbnailViewItem::maDrawArea, ThumbnailViewItem::maPrev1Pos, ThumbnailViewItem::maPreview1, ThumbnailViewItem::maTextPos, ThumbnailViewItem::maTitle, ThumbnailViewItem::mbHover, mbIsDefaultTemplate, ThumbnailViewItem::mbSelected, drawinglayer::processor2d::BaseProcessor2D::process(), basegfx::B2DPolygon::setClosed(), TopLeft, Size::Width(), Point::X(), and Point::Y().
|
inline |
Definition at line 22 of file templateviewitem.hxx.
References maPath.
|
inline |
Definition at line 26 of file templateviewitem.hxx.
References mbIsDefaultTemplate.
Referenced by IMPL_LINK(), and TemplateLocalView::RemoveDefaultTemplateIcon().
|
private |
Definition at line 41 of file templateviewitem.hxx.
Referenced by getDefaultIconArea(), and Paint().
|
private |
Definition at line 40 of file templateviewitem.hxx.
|
private |
Definition at line 42 of file templateviewitem.hxx.
Referenced by IsDefaultTemplate(), Paint(), and showDefaultIcon().
sal_uInt16 TemplateViewItem::mnDocId |
Definition at line 36 of file templateviewitem.hxx.
Referenced by IMPL_LINK_NOARG(), TemplateLocalView::moveTemplates(), SfxTemplateManagerDlg::OnTemplateExport(), and TemplateLocalView::renameItem().
sal_uInt16 TemplateViewItem::mnRegionId |
Definition at line 35 of file templateviewitem.hxx.
Referenced by TemplateDlgLocalView::ContextMenuSelectHdl(), TemplateLocalView::ContextMenuSelectHdl(), IMPL_LINK_NOARG(), TemplateDlgLocalView::insertFilteredItems(), TemplateLocalView::moveTemplates(), SfxTemplateManagerDlg::OnTemplateExport(), and TemplateLocalView::renameItem().