20#ifndef INCLUDED_SVX_INC_GALBRWS2_HXX
21#define INCLUDED_SVX_INC_GALBRWS2_HXX
27#include <com/sun/star/frame/XDispatch.hpp>
28#include <com/sun/star/frame/XFrame.hpp>
29#include <com/sun/star/uno/XComponentContext.hpp>
30#include <com/sun/star/util/XURLTransformer.hpp>
94 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
130 void SelectTheme( std::u16string_view rThemeName );
150 static css::uno::Reference< css::frame::XFrame >
GetFrame();
153 void Execute(std::u16string_view rIdent);
154 void DispatchAdd(
const css::uno::Reference<css::frame::XDispatch> &rxDispatch,
155 const css::util::URL &rURL);
177 : DropTargetHelper(rDropTarget)
OUString GetFilterName() const
const css::uno::Reference< css::util::XURLTransformer > & GetURLTransformer() const
sal_Int8 AcceptDrop(const DropTargetHelper &rTarget)
css::uno::Reference< css::uno::XComponentContext > m_xContext
friend class svx::sidebar::GalleryControl
void Travel(GalleryBrowserTravel eTravel)
static css::uno::Reference< css::frame::XFrame > GetFrame()
static GalleryBrowserMode meInitMode
std::unique_ptr< weld::CustomWeld > mxIconViewWin
DECL_LINK(PopupMenuHdl, const CommandEvent &, bool)
DECL_STATIC_LINK(GalleryBrowser2, AsyncDispatch_Impl, void *, void)
sal_uInt32 mnCurActionPos
std::unique_ptr< weld::Label > mxInfoBar
DECL_LINK(RowActivatedHdl, weld::TreeView &, bool)
GalleryTheme * mpCurTheme
void UpdateRows(bool bVisibleOnly)
DECL_LINK(VisRowsScrolledHdl, weld::TreeView &, void)
void ImplUpdateSelection()
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
DECL_LINK(SelectObjectValueSetHdl, ValueSet *, void)
DECL_LINK(SizeAllocHdl, const Size &, void)
void SelectTheme(std::u16string_view rThemeName)
DECL_LINK(SelectTbxHdl, weld::Toggleable &, void)
sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt)
GalleryBrowser2(weld::Builder &rBuilder, Gallery *pGallery)
bool ViewBoxHasFocus() const
rtl::Reference< GalleryTransferable > m_xHelper
void ImplSelectItemId(sal_uInt32 nItemId)
DECL_LINK(SelectObjectHdl, weld::TreeView &, void)
void ImplUpdateViews(sal_uInt16 nSelectionId)
std::unique_ptr< weld::TreeView > mxListView
weld::Widget * GetViewWindow() const
std::unique_ptr< weld::ToggleButton > mxListButton
void DispatchAdd(const css::uno::Reference< css::frame::XDispatch > &rxDispatch, const css::util::URL &rURL)
void Execute(std::u16string_view rIdent)
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
void SetMode(GalleryBrowserMode eMode)
friend class GalleryBrowser
bool KeyInput(const KeyEvent &rEvt)
bool ShowContextMenu(const CommandEvent &rCEvt)
css::uno::Reference< css::util::XURLTransformer > m_xTransformer
static OUString GetItemText(const SgaObject &rObj, GalleryItemFlags nItemTextFlags)
sal_uInt32 ImplGetSelectedItemId(const Point *pSelPosPixel, Point &rSelPos)
DECL_LINK(DragBeginHdl, bool &, bool)
INetURLObject GetURL() const
std::unique_ptr< GalleryPreview > mxPreview
std::unique_ptr< weld::ToggleButton > mxIconButton
std::unique_ptr< GalleryDragDrop > mxDragDropTargetHelper
GalleryBrowserMode GetMode() const
GalleryBrowserMode meMode
GalleryBrowserMode meLastMode
std::unique_ptr< weld::CustomWeld > mxPreviewWin
std::unique_ptr< GalleryIconView > mxIconView
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
GalleryDragDrop(GalleryBrowser2 *pParent, const css::uno::Reference< css::datatransfer::dnd::XDropTarget > &rDropTarget)
GalleryBrowser2 * m_pParent
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &) override
@ GALLERYBROWSERMODE_PREVIEW
@ GALLERYBROWSERMODE_NONE
@ GALLERYBROWSERMODE_ICON
@ GALLERYBROWSERMODE_LIST