summaryrefslogtreecommitdiff
path: root/svx/source/gallery2/galctrl.cxx
diff options
context:
space:
mode:
authorOliver Specht <oliver.specht@cib.de>2024-02-29 17:15:23 +0100
committerGabor Kelemen <gabor.kelemen.extern@allotropia.de>2024-03-11 14:39:18 +0100
commit09c6204b6309321aa25c542f918fde9f5f3f7fe2 (patch)
tree374fff3f7745de22120d09b69f838cba9d0a2396 /svx/source/gallery2/galctrl.cxx
parentda6a23840d44c40da3989e7c2372b2b6d9ae95b5 (diff)
tdf#81880 Search the Gallery
Adds a search field to the gallery to search for icons titles. Wildcards '*' and '?' are supported Change-Id: I7a8ed2addef3031b77eeeec21889cf72b964ca26 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164167 Tested-by: Jenkins Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Diffstat (limited to 'svx/source/gallery2/galctrl.cxx')
-rw-r--r--svx/source/gallery2/galctrl.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/gallery2/galctrl.cxx b/svx/source/gallery2/galctrl.cxx
index 1c3ffbf0326b..05b64117577e 100644
--- a/svx/source/gallery2/galctrl.cxx
+++ b/svx/source/gallery2/galctrl.cxx
@@ -24,7 +24,7 @@
#include <sfx2/sfxsids.hrc>
#include <avmedia/mediaplayer.hxx>
#include <helpids.h>
-#include <galbrws2.hxx>
+#include <galbrws1.hxx>
#include <svx/galtheme.hxx>
#include <svx/galmisc.hxx>
#include <svx/galctrl.hxx>
@@ -36,7 +36,7 @@
#include <bitmaps.hlst>
#include <svl/itemset.hxx>
-GalleryPreview::GalleryPreview(GalleryBrowser2* pParent, std::unique_ptr<weld::ScrolledWindow> xScrolledWindow)
+GalleryPreview::GalleryPreview(GalleryBrowser1* pParent, std::unique_ptr<weld::ScrolledWindow> xScrolledWindow)
: mxScrolledWindow(std::move(xScrolledWindow))
, mpParent(pParent)
, mpTheme(nullptr)
@@ -150,7 +150,7 @@ bool GalleryPreview::KeyInput(const KeyEvent& rKEvt)
{
if(mpTheme)
{
- GalleryBrowser2* pBrowser = mpParent;
+ GalleryBrowser1* pBrowser = mpParent;
switch( rKEvt.GetKeyCode().GetCode() )
{
@@ -284,7 +284,7 @@ void GalleryIconView::drawTransparenceBackground(vcl::RenderContext& rOut, const
rOut.DrawCheckered(rPos, rSize, nLen, aW, aG);
}
-GalleryIconView::GalleryIconView(GalleryBrowser2* pParent, std::unique_ptr<weld::ScrolledWindow> xScrolledWindow)
+GalleryIconView::GalleryIconView(GalleryBrowser1* pParent, std::unique_ptr<weld::ScrolledWindow> xScrolledWindow)
: ValueSet(std::move(xScrolledWindow))
, mpParent(pParent)
, mpTheme(nullptr)
@@ -345,7 +345,7 @@ void GalleryIconView::UserDraw(const UserDrawEvent& rUDEvt)
if(pObj)
{
aBitmapEx = pObj->createPreviewBitmapEx(aSize);
- aItemTextTitle = GalleryBrowser2::GetItemText(*pObj, GalleryItemFlags::Title);
+ aItemTextTitle = GalleryBrowser1::GetItemText(*pObj, GalleryItemFlags::Title);
mpTheme->SetPreviewBitmapExAndStrings(nId - 1, aBitmapEx, aSize, aItemTextTitle, aItemTextPath);
}