17#include <sfx2/strings.hrc>
19#include <officecfg/Office/Common.hxx>
25 std::unique_ptr<weld::Menu> xMenu)
static unsigned int GetDisplayBuiltInScreen()
static tools::Rectangle GetScreenPosSizePixel(unsigned int nScreen)
sal_uInt16 GetClicks() const
const Point & GetPosPixel() const
TemplateDefaultView(std::unique_ptr< weld::ScrolledWindow > xWindow, std::unique_ptr< weld::Menu > xMenu)
virtual bool KeyInput(const KeyEvent &rKEvt) override
virtual void showAllTemplates() override
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
std::vector< TemplateItemProperties > maAllTemplates
void ContextMenuSelectHdl(std::u16string_view rIdent)
void updateThumbnailDimensions(tools::Long itemMaxSize)
void insertItems(const std::vector< TemplateItemProperties > &rTemplates, bool isRegionSelected=true, bool bShowCategoryInTooltip=false)
Link< ThumbnailViewItem *, void > maOpenTemplateHdl
TemplateViewItem * maSelectedItem
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
void setSelection(bool state)
void deselectItems()
deselect all current selected items.
Link< const ThumbnailViewItem *, void > maItemStateHdl
size_t ImplGetItem(const Point &rPoint) const
virtual bool KeyInput(const KeyEvent &rKEvt) override
Color maHighlightColor
Color of the highlight (background) of the hovered item.
std::unique_ptr< weld::Menu > mxContextMenu
double mfHighlightTransparence
Transparence of the highlight.
Color maHighlightTextColor
Color of the text for the highlighted item.
void setItemDimensions(tools::Long ItemWidth, tools::Long ThumbnailHeight, tools::Long DisplayHeight, int itemPadding)
Color maTextColor
Text color.
Color maFillColor
Background color of the thumbnail view widget.
OUString SfxResId(TranslateId aId)
constexpr int gnItemPadding(5)
constexpr tools::Long gnTextHeight