LibreOffice Module sfx2 (master) 1
|
Class to display thumbnails with their names below their respective icons. More...
#include <thumbnailview.hxx>
Public Member Functions | |
ThumbnailView (std::unique_ptr< weld::ScrolledWindow > xWindow, std::unique_ptr< weld::Menu > xMenu) | |
virtual | ~ThumbnailView () override |
virtual bool | MouseMove (const MouseEvent &rMEvt) override |
virtual void | Reload () |
Updates information in the view; used only in RecentDocsView ATM. More... | |
void | AppendItem (std::unique_ptr< ThumbnailViewItem > pItem) |
void | RemoveItem (sal_uInt16 nItemId) |
virtual void | Clear () |
void | updateItems (std::vector< std::unique_ptr< ThumbnailViewItem > > items) |
size_t | GetItemPos (sal_uInt16 nItemId) const |
sal_uInt16 | GetItemId (size_t nPos) const |
sal_uInt16 | GetItemId (const Point &rPos) const |
virtual bool | renameItem (ThumbnailViewItem *pItem, const OUString &sNewTitle) |
bool | isDrawMnemonic () const |
void | setItemMaxTextLength (sal_uInt32 nLength) |
void | setItemDimensions (tools::Long ItemWidth, tools::Long ThumbnailHeight, tools::Long DisplayHeight, int itemPadding) |
void | SelectItem (sal_uInt16 nItemId) |
bool | IsItemSelected (sal_uInt16 nItemId) const |
void | deselectItems () |
deselect all current selected items. More... | |
void | ShowTooltips (bool bShowTooltips) |
void | DrawMnemonics (bool bDrawMnemonics) |
void | filterItems (const std::function< bool(const ThumbnailViewItem *) > &func) |
void | setItemStateHdl (const Link< const ThumbnailViewItem *, void > &aLink) |
virtual void | Resize () override |
virtual void | Show () override |
virtual void | Hide () override |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
Public Member Functions inherited from weld::CustomWidgetController | |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0 |
virtual void | Resize () |
virtual bool | MouseButtonDown (const MouseEvent &) |
virtual bool | MouseMove (const MouseEvent &) |
virtual bool | MouseButtonUp (const MouseEvent &) |
virtual void | GetFocus () |
virtual void | LoseFocus () |
virtual void | StyleUpdated () |
virtual bool | Command (const CommandEvent &) |
virtual bool | KeyInput (const KeyEvent &) |
virtual tools::Rectangle | GetFocusRect () |
virtual FactoryFunction | GetUITestFactory () const |
virtual OUString | RequestHelp (tools::Rectangle &) |
virtual OUString | GetHelpText () const |
Size const & | GetOutputSizePixel () const |
void | SetOutputSizePixel (const Size &rSize) |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) |
weld::DrawingArea * | GetDrawingArea () const |
void | Invalidate () |
void | Invalidate (const tools::Rectangle &rRect) |
virtual void | Show () |
virtual void | Hide () |
void | SetCursor (void *pData) |
void | GrabFocus () |
bool | HasFocus () const |
bool | HasChildFocus () const |
bool | IsVisible () const |
bool | IsReallyVisible () const |
bool | IsEnabled () const |
void | Enable () const |
void | Disable () const |
bool | IsActive () const |
int | GetTextHeight () const |
int | GetTextWidth (const OUString &rText) const |
OUString | GetAccessibleName () const |
OUString | GetAccessibleDescription () const |
void | CaptureMouse () |
bool | IsMouseCaptured () const |
Point | GetPointerPosPixel () const |
void | EnableRTL (bool bEnable) |
bool | IsRTLEnabled () const |
void | ReleaseMouse () |
void | SetPointer (PointerStyle ePointerStyle) |
void | SetHelpId (const OUString &rHelpId) |
void | SetAccessibleName (const OUString &rName) |
void | SetInputContext (const InputContext &rInputContext) |
void | SetCursorRect (const tools::Rectangle &rCursorRect, int nExtTextInputWidth) |
virtual int | GetSurroundingText (OUString &) |
virtual bool | DeleteSurroundingText (const Selection &) |
css::uno::Reference< css::datatransfer::dnd::XDropTarget > | GetDropTarget () |
css::uno::Reference< css::datatransfer::clipboard::XClipboard > | GetClipboard () const |
void | SetDragDataTransferable (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants) |
virtual bool | StartDrag () |
void | set_size_request (int nWidth, int nHeight) |
void | queue_resize () |
CustomWidgetController () | |
virtual | ~CustomWidgetController () |
CustomWidgetController (CustomWidgetController const &)=default | |
CustomWidgetController (CustomWidgetController &&)=default | |
CustomWidgetController & | operator= (CustomWidgetController const &)=default |
CustomWidgetController & | operator= (CustomWidgetController &&)=default |
Static Public Member Functions | |
static BitmapEx | readThumbnail (const OUString &msURL) |
Static Public Member Functions inherited from weld::CustomWidgetController | |
static bool | IsUpdateMode () |
Protected Member Functions | |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
virtual void | GetFocus () override |
virtual void | LoseFocus () override |
virtual OUString | RequestHelp (tools::Rectangle &rRect) override |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () override |
const css::uno::Reference< css::accessibility::XAccessible > & | getAccessible () const |
void | DrawItem (ThumbnailViewItem const *pItem) |
virtual void | OnItemDblClicked (ThumbnailViewItem *pItem) |
void | UpdateColors () |
void | CalculateItemPositions (bool bScrollBarUsed=false) |
void | MakeItemVisible (sal_uInt16 nId) |
void | ImplInit () |
void | ImplDeleteItems () |
size_t | ImplGetItem (const Point &rPoint) const |
ThumbnailViewItem * | ImplGetItem (size_t nPos) |
sal_uInt16 | ImplGetVisibleItemCount () const |
ThumbnailViewItem * | ImplGetVisibleItem (sal_uInt16 nVisiblePos) |
void | ImplFireAccessibleEvent (short nEventId, const css::uno::Any &rOldValue, const css::uno::Any &rNewValue) |
bool | ImplHasAccessibleListeners () const |
DECL_DLLPRIVATE_LINK (ImplScrollHdl, weld::ScrolledWindow &, void) | |
Friends | |
class | ThumbnailViewAcc |
class | ThumbnailViewItemAcc |
Class to display thumbnails with their names below their respective icons.
Definition at line 162 of file thumbnailview.hxx.
ThumbnailView::ThumbnailView | ( | std::unique_ptr< weld::ScrolledWindow > | xWindow, |
std::unique_ptr< weld::Menu > | xMenu | ||
) |
Definition at line 147 of file thumbnailview.cxx.
References ImplInit(), LINK, mxScrolledWindow, and NEVER.
|
overridevirtual |
Definition at line 161 of file thumbnailview.cxx.
References ImplDeleteItems(), mpItemAttrs, and mxAccessible.
void ThumbnailView::AppendItem | ( | std::unique_ptr< ThumbnailViewItem > | pItem | ) |
Definition at line 212 of file thumbnailview.cxx.
References maFilterFunc, mFilteredItemList, mItemList, and mpStartSelRange.
Referenced by sfx2::RecentDocsView::insertItem().
|
protected |
Definition at line 336 of file thumbnailview.cxx.
References ThumbnailViewItem::calculateItemsPosition(), Link< typename Arg, typename Ret >::Call(), ThumbnailViewItem::GetAccessible(), weld::CustomWidgetController::GetOutputSizePixel(), gnFineness, Size::Height(), i, ImplFireAccessibleEvent(), ImplHasAccessibleListeners(), ThumbnailViewItem::isPinned(), ThumbnailViewItem::isVisible(), maItemStateHdl, o3tl::make_unsigned(), mbAllowVScrollBar, mbHasVisibleItems, mbScroll, mFilteredItemList, mnCols, mnFirstLine, mnItemHeight, mnItemPadding, mnItemWidth, mnLines, mnThumbnailHeight, mnVisLines, mnVItemSpace, mpItemAttrs, mxScrolledWindow, ThumbnailViewItem::setDrawArea(), ThumbnailViewItem::show(), Size::Width(), x, and y.
Referenced by Clear(), TemplateLocalView::copyFrom(), filterItems(), MakeItemVisible(), TemplateLocalView::moveTemplates(), sfx2::RecentDocsView::Reload(), RemoveItem(), TemplateLocalView::removeTemplate(), and Resize().
|
virtual |
Reimplemented in sfx2::RecentDocsView.
Definition at line 1022 of file thumbnailview.cxx.
References CalculateItemPositions(), ImplDeleteItems(), weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsUpdateMode(), and mnFirstLine.
Referenced by sfx2::RecentDocsView::Clear().
|
overrideprotectedvirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 325 of file thumbnailview.cxx.
References mxAccessible, and ThumbnailViewAcc.
|
protected |
void ThumbnailView::deselectItems | ( | ) |
deselect all current selected items.
Definition at line 1151 of file thumbnailview.cxx.
References Link< typename Arg, typename Ret >::Call(), weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsUpdateMode(), maItemStateHdl, mItemList, and p.
Referenced by TemplateLocalView::Command(), TemplateDefaultView::createContextMenu(), KeyInput(), sfx2::RecentDocsView::LoseFocus(), MouseButtonDown(), TemplateDlgLocalView::reload(), TemplateLocalView::reload(), TemplateDlgLocalView::syncCursor(), and TemplateDlgLocalView::updateSelection().
|
protected |
Definition at line 310 of file thumbnailview.cxx.
References ThumbnailViewItem::getDrawArea(), weld::CustomWidgetController::Invalidate(), tools::Rectangle::IsEmpty(), and ThumbnailViewItem::isVisible().
Referenced by KeyInput(), and MouseButtonDown().
void ThumbnailView::DrawMnemonics | ( | bool | bDrawMnemonics | ) |
Definition at line 1172 of file thumbnailview.cxx.
References mbDrawMnemonics.
void ThumbnailView::filterItems | ( | const std::function< bool(const ThumbnailViewItem *) > & | func | ) |
Definition at line 1177 of file thumbnailview.cxx.
References CalculateItemPositions(), Link< typename Arg, typename Ret >::Call(), ThumbnailViewItem::GetAccessible(), i, ImplFireAccessibleEvent(), ImplHasAccessibleListeners(), weld::CustomWidgetController::Invalidate(), ThumbnailViewItem::isVisible(), maFilterFunc, maItemStateHdl, mFilteredItemList, mItemList, mnFirstLine, mpStartSelRange, n, ThumbnailViewItem::setSelection(), and ThumbnailViewItem::show().
Referenced by updateItems().
|
protected |
Definition at line 331 of file thumbnailview.cxx.
References mxAccessible.
Referenced by ThumbnailViewItemAcc::getAccessibleParent().
|
overrideprotectedvirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 927 of file thumbnailview.cxx.
References ThumbnailViewAcc::GetFocus(), ThumbnailViewAcc::getImplementation(), i, mbSelectOnFocus, mFilteredItemList, mItemList, ThumbnailViewItem::mnId, mxAccessible, n, and SelectItem().
sal_uInt16 ThumbnailView::GetItemId | ( | const Point & | rPos | ) | const |
Definition at line 1062 of file thumbnailview.cxx.
References GetItemId(), ImplGetItem(), and THUMBNAILVIEW_ITEM_NOTFOUND.
sal_uInt16 ThumbnailView::GetItemId | ( | size_t | nPos | ) | const |
Definition at line 1057 of file thumbnailview.cxx.
References mFilteredItemList, and nPos.
Referenced by ThumbnailViewAcc::getAccessibleAtPoint(), and GetItemId().
size_t ThumbnailView::GetItemPos | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 1047 of file thumbnailview.cxx.
References i, mFilteredItemList, mnId, n, and THUMBNAILVIEW_ITEM_NOTFOUND.
Referenced by ThumbnailViewAcc::getAccessibleAtPoint(), IsItemSelected(), RemoveItem(), SelectItem(), TemplateDlgLocalView::syncCursor(), and TemplateDlgLocalView::updateSelection().
|
inlineoverridevirtual |
Reimplemented from weld::CustomWidgetController.
Reimplemented in TemplateDlgLocalView.
Definition at line 229 of file thumbnailview.hxx.
References weld::CustomWidgetController::Hide().
Referenced by TemplateDlgLocalView::Hide(), and TemplateDlgLocalView::Show().
|
protected |
Definition at line 276 of file thumbnailview.cxx.
References Link< typename Arg, typename Ret >::Call(), ThumbnailViewItem::GetAccessible(), i, ImplFireAccessibleEvent(), ImplHasAccessibleListeners(), ThumbnailViewItem::isSelected(), ThumbnailViewItem::isVisible(), maItemStateHdl, mFilteredItemList, mItemList, mpStartSelRange, n, and ThumbnailViewItem::setSelection().
Referenced by Clear(), updateItems(), and ~ThumbnailView().
|
protected |
Definition at line 551 of file thumbnailview.cxx.
References ThumbnailViewAcc::FireAccessibleEvent(), ThumbnailViewAcc::getImplementation(), and mxAccessible.
Referenced by CalculateItemPositions(), filterItems(), ImplDeleteItems(), and SelectItem().
|
protected |
Definition at line 501 of file thumbnailview.cxx.
References i, mbHasVisibleItems, mFilteredItemList, and THUMBNAILVIEW_ITEM_NOTFOUND.
Referenced by TemplateLocalView::Command(), GetItemId(), MouseButtonDown(), sfx2::RecentDocsView::MouseButtonDown(), TemplateDefaultView::MouseButtonDown(), sfx2::RecentDocsView::MouseButtonUp(), TemplateDlgLocalView::syncCursor(), and TemplateDlgLocalView::updateSelection().
|
protected |
Definition at line 517 of file thumbnailview.cxx.
References mFilteredItemList, and nPos.
|
protected |
Definition at line 536 of file thumbnailview.cxx.
References ThumbnailViewItem::isVisible(), mItemList, and n.
Referenced by ThumbnailViewItemAcc::getAccessibleIndexInParent(), and ThumbnailViewAcc::getItem().
|
protected |
Definition at line 522 of file thumbnailview.cxx.
Referenced by ThumbnailViewAcc::getAccessibleChildCount(), ThumbnailViewItemAcc::getAccessibleIndexInParent(), and ThumbnailViewAcc::getItemCount().
|
protected |
Definition at line 559 of file thumbnailview.cxx.
References ThumbnailViewAcc::getImplementation(), ThumbnailViewAcc::HasAccessibleListeners(), and mxAccessible.
Referenced by CalculateItemPositions(), filterItems(), ImplDeleteItems(), and SelectItem().
|
protected |
Definition at line 233 of file thumbnailview.cxx.
References StyleSettings::GetActiveColor(), StyleSettings::GetActiveTextColor(), StyleSettings::GetFieldColor(), StyleSettings::GetHighlightColor(), StyleSettings::GetHighlightTextColor(), Application::GetSettings(), AllSettings::GetStyleSettings(), SvtOptionsDrawinglayer::GetTransparentSelectionPercent(), StyleSettings::GetWindowTextColor(), maFillColor, maFilterFunc, maHighlightColor, maHighlightTextColor, maSelectHighlightColor, maSelectHighlightTextColor, maTextColor, mbDrawMnemonics, mbHasVisibleItems, mbScroll, mbShowTooltips, mfHighlightTransparence, mFilteredItemList, mnCols, mnFirstLine, mnItemHeight, mnItemPadding, mnItemWidth, mnLines, mnVisLines, mpItemAttrs, mpStartSelRange, and UpdateColors().
Referenced by ThumbnailView().
|
inline |
Definition at line 194 of file thumbnailview.hxx.
Referenced by ThumbnailViewItem::addTextPrimitives().
bool ThumbnailView::IsItemSelected | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 1141 of file thumbnailview.cxx.
References GetItemPos(), ThumbnailViewItem::isSelected(), mFilteredItemList, and THUMBNAILVIEW_ITEM_NOTFOUND.
Referenced by ThumbnailViewAcc::getSelectedAccessibleChild(), ThumbnailViewAcc::getSelectedAccessibleChildCount(), and ThumbnailViewAcc::isAccessibleChildSelected().
|
overrideprotectedvirtual |
Reimplemented from weld::CustomWidgetController.
Reimplemented in TemplateDlgLocalView, TemplateLocalView, and TemplateDefaultView.
Definition at line 572 of file thumbnailview.cxx.
References Link< typename Arg, typename Ret >::Call(), deselectItems(), DrawItem(), vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), i, ThumbnailViewItem::isSelected(), vcl::KeyCode::IsShift(), KEY_DOWN, KEY_LEFT, KEY_RETURN, KEY_RIGHT, KEY_UP, maItemStateHdl, MakeItemVisible(), mFilteredItemList, mnCols, ThumbnailViewItem::mnId, mnLines, mpStartSelRange, OnItemDblClicked(), SelectItem(), and ThumbnailViewItem::setSelection().
Referenced by TemplateDlgLocalView::KeyInput(), TemplateLocalView::KeyInput(), and TemplateDefaultView::KeyInput().
|
overrideprotectedvirtual |
Reimplemented from weld::CustomWidgetController.
Reimplemented in sfx2::RecentDocsView.
Definition at line 960 of file thumbnailview.cxx.
References ThumbnailViewAcc::getImplementation(), ThumbnailViewAcc::LoseFocus(), and mxAccessible.
Referenced by sfx2::RecentDocsView::LoseFocus().
|
protected |
Definition at line 748 of file thumbnailview.cxx.
References CalculateItemPositions(), i, weld::CustomWidgetController::Invalidate(), mFilteredItemList, mnCols, mnFirstLine, ThumbnailViewItem::mnId, mnVisLines, and nPos.
Referenced by KeyInput(), and TemplateDlgLocalView::MakeItemVisible().
|
overrideprotectedvirtual |
Reimplemented from weld::CustomWidgetController.
Reimplemented in TemplateLocalView, sfx2::RecentDocsView, and TemplateDefaultView.
Definition at line 774 of file thumbnailview.cxx.
References Link< typename Arg, typename Ret >::Call(), deselectItems(), DrawItem(), MouseEvent::GetClicks(), MouseEvent::GetPosPixel(), weld::CustomWidgetController::GrabFocus(), i, ImplGetItem(), ThumbnailViewItem::isHighlighted(), MouseEvent::IsLeft(), MouseEvent::IsMod1(), ThumbnailViewItem::isSelected(), MouseEvent::IsShift(), maItemStateHdl, mFilteredItemList, mpStartSelRange, n, nPos, OnItemDblClicked(), and ThumbnailViewItem::setSelection().
Referenced by TemplateLocalView::MouseButtonDown(), and sfx2::RecentDocsView::MouseButtonDown().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 173 of file thumbnailview.cxx.
References MouseEvent::GetPosPixel(), i, weld::CustomWidgetController::Invalidate(), tools::Rectangle::IsEmpty(), MouseEvent::IsLeaveWindow(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsUpdateMode(), ThumbnailViewItem::mbVisible, mFilteredItemList, and ThumbnailViewItem::updateHighlight().
|
protectedvirtual |
Reimplemented in TemplateLocalView, and sfx2::RecentDocsView.
Definition at line 321 of file thumbnailview.cxx.
Referenced by KeyInput(), and MouseButtonDown().
|
overrideprotectedvirtual |
Implements weld::CustomWidgetController.
Reimplemented in sfx2::RecentDocsView.
Definition at line 892 of file thumbnailview.cxx.
References vcl::ALL, aSeq, drawinglayer::processor2d::createProcessor2DFromOutputDevice(), Color::getBColor(), weld::CustomWidgetController::GetOutputSizePixel(), i, ThumbnailViewItem::isVisible(), maFillColor, mItemList, mpItemAttrs, ThumbnailViewItem::Paint(), OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetBackground(), and OutputDevice::SetTextFillColor().
Referenced by sfx2::RecentDocsView::Paint().
|
static |
Definition at line 57 of file thumbnailview.cxx.
References utl::UcbStreamHelper::CreateStream(), vcl::PngImageReader::read(), and TOOLS_WARN_EXCEPTION.
Referenced by TemplateLocalView::fetchThumbnail().
|
inlinevirtual |
Updates information in the view; used only in RecentDocsView ATM.
Reimplemented in sfx2::RecentDocsView.
Definition at line 175 of file thumbnailview.hxx.
Referenced by RecentDocsViewItem::MouseButtonUp().
void ThumbnailView::RemoveItem | ( | sal_uInt16 | nItemId | ) |
Definition at line 979 of file thumbnailview.cxx.
References CalculateItemPositions(), Link< typename Arg, typename Ret >::Call(), GetItemPos(), weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsUpdateMode(), maItemStateHdl, mFilteredItemList, mItemList, mpStartSelRange, nPos, and THUMBNAILVIEW_ITEM_NOTFOUND.
Referenced by TemplateLocalView::moveTemplates(), and TemplateLocalView::removeTemplate().
|
virtual |
Reimplemented in TemplateLocalView.
Definition at line 51 of file thumbnailview.cxx.
Referenced by ThumbnailViewItem::setTitle().
|
overrideprotectedvirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 189 of file thumbnailview.cxx.
References tools::Rectangle::Contains(), ThumbnailViewItem::getDrawArea(), ThumbnailViewItem::getHelpText(), i, mbShowTooltips, ThumbnailViewItem::mbVisible, mFilteredItemList, and tools::Rectangle::TopLeft().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 970 of file thumbnailview.cxx.
References CalculateItemPositions(), weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), and weld::CustomWidgetController::IsUpdateMode().
void ThumbnailView::SelectItem | ( | sal_uInt16 | nItemId | ) |
Definition at line 1085 of file thumbnailview.cxx.
References Link< typename Arg, typename Ret >::Call(), ThumbnailViewItem::GetAccessible(), ThumbnailViewItemAcc::getImplementation(), GetItemPos(), ImplFireAccessibleEvent(), ImplHasAccessibleListeners(), weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), ThumbnailViewItem::isSelected(), weld::CustomWidgetController::IsUpdateMode(), maItemStateHdl, o3tl::make_unsigned(), mbScroll, mFilteredItemList, mnCols, mnFirstLine, mnVisLines, ThumbnailViewItem::setSelection(), and THUMBNAILVIEW_ITEM_NOTFOUND.
Referenced by GetFocus(), KeyInput(), ThumbnailViewAcc::selectAccessibleChild(), TemplateDlgLocalView::syncCursor(), and TemplateDlgLocalView::updateSelection().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 881 of file thumbnailview.cxx.
References weld::Widget::get_font(), weld::Widget::get_preferred_size(), weld::DrawingArea::get_ref_device(), OutputDevice::GetFont(), getFontAttributeFromVclFont(), mpItemAttrs, weld::CustomWidgetController::SetOutputSizePixel(), and weld::SetPointFont().
void ThumbnailView::setItemDimensions | ( | tools::Long | ItemWidth, |
tools::Long | ThumbnailHeight, | ||
tools::Long | DisplayHeight, | ||
int | itemPadding | ||
) |
Definition at line 1076 of file thumbnailview.cxx.
References mnDisplayHeight, mnItemHeight, mnItemPadding, mnItemWidth, and mnThumbnailHeight.
Referenced by sfx2::RecentDocsView::RecentDocsView(), and TemplateDefaultView::TemplateDefaultView().
void ThumbnailView::setItemMaxTextLength | ( | sal_uInt32 | nLength | ) |
Definition at line 1071 of file thumbnailview.cxx.
References mpItemAttrs, and nLength.
Referenced by sfx2::RecentDocsView::RecentDocsView().
|
inline |
Definition at line 219 of file thumbnailview.hxx.
|
inlineoverridevirtual |
Reimplemented from weld::CustomWidgetController.
Reimplemented in TemplateDlgLocalView.
Definition at line 223 of file thumbnailview.hxx.
References weld::CustomWidgetController::Show().
Referenced by TemplateDlgLocalView::Show().
void ThumbnailView::ShowTooltips | ( | bool | bShowTooltips | ) |
Definition at line 1167 of file thumbnailview.cxx.
References mbShowTooltips.
|
protected |
Definition at line 265 of file thumbnailview.cxx.
References Color::getBColor(), maFillColor, maHighlightColor, maHighlightTextColor, maSelectHighlightColor, maSelectHighlightTextColor, maTextColor, mfHighlightTransparence, and mpItemAttrs.
Referenced by ImplInit(), sfx2::RecentDocsView::RecentDocsView(), and TemplateDefaultView::TemplateDefaultView().
void ThumbnailView::updateItems | ( | std::vector< std::unique_ptr< ThumbnailViewItem > > | items | ) |
Definition at line 1035 of file thumbnailview.cxx.
References filterItems(), ImplDeleteItems(), maFilterFunc, mItemList, and mnFirstLine.
Referenced by TemplateLocalView::insertItems().
|
friend |
Definition at line 164 of file thumbnailview.hxx.
Referenced by CreateAccessible().
|
friend |
Definition at line 165 of file thumbnailview.hxx.
|
protected |
Background color of the thumbnail view widget.
Definition at line 310 of file thumbnailview.hxx.
Referenced by ImplInit(), Paint(), sfx2::RecentDocsView::RecentDocsView(), TemplateDefaultView::TemplateDefaultView(), and UpdateColors().
|
protected |
Definition at line 323 of file thumbnailview.hxx.
Referenced by AppendItem(), filterItems(), ImplInit(), and updateItems().
|
protected |
Color of the highlight (background) of the hovered item.
Definition at line 312 of file thumbnailview.hxx.
Referenced by ImplInit(), sfx2::RecentDocsView::RecentDocsView(), TemplateDefaultView::TemplateDefaultView(), and UpdateColors().
|
protected |
Color of the text for the highlighted item.
Definition at line 313 of file thumbnailview.hxx.
Referenced by ImplInit(), sfx2::RecentDocsView::RecentDocsView(), TemplateDefaultView::TemplateDefaultView(), and UpdateColors().
|
protected |
Definition at line 318 of file thumbnailview.hxx.
Referenced by CalculateItemPositions(), TemplateLocalView::Command(), TemplateDefaultView::createContextMenu(), deselectItems(), filterItems(), ImplDeleteItems(), TemplateDlgLocalView::KeyInput(), TemplateLocalView::KeyInput(), KeyInput(), MouseButtonDown(), RemoveItem(), and SelectItem().
|
protected |
Color of the highlight (background) of the selected and hovered item.
Definition at line 314 of file thumbnailview.hxx.
Referenced by ImplInit(), and UpdateColors().
|
protected |
Color of the text of the selected and hovered item.
Definition at line 315 of file thumbnailview.hxx.
Referenced by ImplInit(), and UpdateColors().
|
protected |
Text color.
Definition at line 311 of file thumbnailview.hxx.
Referenced by ImplInit(), sfx2::RecentDocsView::Paint(), sfx2::RecentDocsView::RecentDocsView(), TemplateDefaultView::TemplateDefaultView(), and UpdateColors().
|
protected |
Definition at line 305 of file thumbnailview.hxx.
Referenced by CalculateItemPositions().
|
protected |
Definition at line 308 of file thumbnailview.hxx.
Referenced by DrawMnemonics(), and ImplInit().
|
protected |
Definition at line 306 of file thumbnailview.hxx.
Referenced by CalculateItemPositions(), ImplGetItem(), and ImplInit().
|
protected |
Definition at line 304 of file thumbnailview.hxx.
Referenced by CalculateItemPositions(), ImplInit(), and SelectItem().
|
protected |
Definition at line 309 of file thumbnailview.hxx.
Referenced by GetFocus().
|
protected |
Definition at line 307 of file thumbnailview.hxx.
Referenced by ImplInit(), RequestHelp(), and ShowTooltips().
|
protected |
Transparence of the highlight.
Definition at line 316 of file thumbnailview.hxx.
Referenced by ImplInit(), sfx2::RecentDocsView::RecentDocsView(), TemplateDefaultView::TemplateDefaultView(), and UpdateColors().
|
protected |
Cache to store the filtered items.
Definition at line 291 of file thumbnailview.hxx.
Referenced by AppendItem(), CalculateItemPositions(), TemplateLocalView::Command(), filterItems(), ThumbnailViewAcc::getAccessibleAtPoint(), GetFocus(), GetItemId(), GetItemPos(), ImplDeleteItems(), ImplGetItem(), ImplInit(), TemplateDlgLocalView::insertFilteredItems(), IsItemSelected(), TemplateDlgLocalView::KeyInput(), TemplateLocalView::KeyInput(), KeyInput(), MakeItemVisible(), MouseButtonDown(), MouseMove(), RemoveItem(), RequestHelp(), SelectItem(), and TemplateDlgLocalView::syncCursor().
|
protected |
Definition at line 289 of file thumbnailview.hxx.
Referenced by AppendItem(), deselectItems(), filterItems(), GetFocus(), ImplDeleteItems(), ImplGetVisibleItem(), ImplGetVisibleItemCount(), TemplateLocalView::moveTemplates(), Paint(), sfx2::RecentDocsView::Paint(), TemplateLocalView::RemoveDefaultTemplateIcon(), RemoveItem(), and updateItems().
|
protected |
Definition at line 302 of file thumbnailview.hxx.
Referenced by CalculateItemPositions(), ImplInit(), KeyInput(), MakeItemVisible(), and SelectItem().
|
protected |
Definition at line 297 of file thumbnailview.hxx.
Referenced by setItemDimensions().
|
protected |
Definition at line 303 of file thumbnailview.hxx.
Referenced by CalculateItemPositions(), Clear(), filterItems(), ImplInit(), MakeItemVisible(), SelectItem(), and updateItems().
|
protected |
Definition at line 294 of file thumbnailview.hxx.
Referenced by CalculateItemPositions(), ImplInit(), and setItemDimensions().
|
protected |
Definition at line 295 of file thumbnailview.hxx.
Referenced by CalculateItemPositions(), ImplInit(), and setItemDimensions().
|
protected |
Definition at line 293 of file thumbnailview.hxx.
Referenced by CalculateItemPositions(), ImplInit(), and setItemDimensions().
|
protected |
Definition at line 300 of file thumbnailview.hxx.
Referenced by CalculateItemPositions(), ImplInit(), and KeyInput().
|
protected |
Definition at line 296 of file thumbnailview.hxx.
Referenced by CalculateItemPositions(), and setItemDimensions().
|
protected |
Definition at line 299 of file thumbnailview.hxx.
Referenced by CalculateItemPositions(), ImplInit(), MakeItemVisible(), and SelectItem().
|
protected |
Definition at line 298 of file thumbnailview.hxx.
Referenced by CalculateItemPositions().
|
protected |
Definition at line 319 of file thumbnailview.hxx.
Referenced by CalculateItemPositions(), ImplInit(), Paint(), SetDrawingArea(), setItemMaxTextLength(), UpdateColors(), and ~ThumbnailView().
|
protected |
Definition at line 292 of file thumbnailview.hxx.
Referenced by AppendItem(), filterItems(), ImplDeleteItems(), ImplInit(), KeyInput(), MouseButtonDown(), RemoveItem(), and TemplateDlgLocalView::syncCursor().
|
protected |
Definition at line 290 of file thumbnailview.hxx.
Referenced by CreateAccessible(), getAccessible(), GetFocus(), ImplFireAccessibleEvent(), ImplHasAccessibleListeners(), LoseFocus(), and ~ThumbnailView().
|
protected |
Definition at line 321 of file thumbnailview.hxx.
Referenced by TemplateDefaultView::createContextMenu(), and TemplateDlgLocalView::createContextMenu().
|
protected |
Definition at line 320 of file thumbnailview.hxx.
Referenced by CalculateItemPositions(), and ThumbnailView().