LibreOffice Module svx (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
GalleryBrowser2 Class Referencefinal

#include <galbrws2.hxx>

Inheritance diagram for GalleryBrowser2:
[legend]
Collaboration diagram for GalleryBrowser2:
[legend]

Public Member Functions

 GalleryBrowser2 (weld::Builder &rBuilder, Gallery *pGallery)
 
 ~GalleryBrowser2 ()
 
void SelectTheme (std::u16string_view rThemeName)
 
GalleryBrowserMode GetMode () const
 
void SetMode (GalleryBrowserMode eMode)
 
weld::WidgetGetViewWindow () const
 
void Travel (GalleryBrowserTravel eTravel)
 
INetURLObject GetURL () const
 
OUString GetFilterName () const
 
sal_Int8 AcceptDrop (const DropTargetHelper &rTarget)
 
sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt)
 
bool StartDrag ()
 
void TogglePreview ()
 
void ShowContextMenu (const CommandEvent &rCEvt)
 
bool KeyInput (const KeyEvent &rEvt)
 
bool ViewBoxHasFocus () const
 
const css::uno::Reference< css::util::XURLTransformer > & GetURLTransformer () const
 
void Execute (std::string_view rIdent)
 
void DispatchAdd (const css::uno::Reference< css::frame::XDispatch > &rxDispatch, const css::util::URL &rURL)
 
 DECL_STATIC_LINK (GalleryBrowser2, AsyncDispatch_Impl, void *, void)
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 

Static Public Member Functions

static OUString GetItemText (const SgaObject &rObj, GalleryItemFlags nItemTextFlags)
 
static css::uno::Reference< css::frame::XFrame > GetFrame ()
 

Private Member Functions

void ImplUpdateViews (sal_uInt16 nSelectionId)
 
void ImplUpdateInfoBar ()
 
sal_uInt32 ImplGetSelectedItemId (const Point *pSelPosPixel, Point &rSelPos)
 
void ImplSelectItemId (sal_uInt32 nItemId)
 
void ImplUpdateSelection ()
 
void UpdateRows (bool bVisibleOnly)
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
 DECL_LINK (SelectObjectHdl, weld::TreeView &, void)
 
 DECL_LINK (SelectObjectValueSetHdl, ValueSet *, void)
 
 DECL_LINK (SelectTbxHdl, weld::Toggleable &, void)
 
 DECL_LINK (PopupMenuHdl, const CommandEvent &, bool)
 
 DECL_LINK (KeyInputHdl, const KeyEvent &, bool)
 
 DECL_LINK (RowActivatedHdl, weld::TreeView &, bool)
 
 DECL_LINK (DragBeginHdl, bool &, bool)
 
 DECL_LINK (VisRowsScrolledHdl, weld::TreeView &, void)
 
 DECL_LINK (SizeAllocHdl, const Size &, void)
 

Private Attributes

GallerympGallery
 
GalleryThemempCurTheme
 
std::unique_ptr< GalleryIconViewmxIconView
 
std::unique_ptr< weld::CustomWeldmxIconViewWin
 
std::unique_ptr< weld::TreeViewmxListView
 
std::unique_ptr< GalleryDragDropmxDragDropTargetHelper
 
std::unique_ptr< GalleryPreviewmxPreview
 
std::unique_ptr< weld::CustomWeldmxPreviewWin
 
std::unique_ptr< weld::ToggleButtonmxIconButton
 
std::unique_ptr< weld::ToggleButtonmxListButton
 
std::unique_ptr< weld::LabelmxInfoBar
 
Size maPreviewSize
 
rtl::Reference< GalleryTransferablem_xHelper
 
sal_uInt32 mnCurActionPos
 
GalleryBrowserMode meMode
 
GalleryBrowserMode meLastMode
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::util::XURLTransformer > m_xTransformer
 

Static Private Attributes

static GalleryBrowserMode meInitMode = GALLERYBROWSERMODE_ICON
 

Friends

class GalleryBrowser
 
class svx::sidebar::GalleryControl
 

Detailed Description

Definition at line 70 of file galbrws2.hxx.

Constructor & Destructor Documentation

◆ GalleryBrowser2()

GalleryBrowser2::GalleryBrowser2 ( weld::Builder rBuilder,
Gallery pGallery 
)

◆ ~GalleryBrowser2()

GalleryBrowser2::~GalleryBrowser2 ( )

Definition at line 400 of file galbrws2.cxx.

References mpCurTheme, mpGallery, and Gallery::ReleaseTheme().

Member Function Documentation

◆ AcceptDrop()

sal_Int8 GalleryBrowser2::AcceptDrop ( const DropTargetHelper rTarget)

◆ DECL_LINK() [1/9]

GalleryBrowser2::DECL_LINK ( DragBeginHdl  ,
bool &  ,
bool   
)
private

◆ DECL_LINK() [2/9]

GalleryBrowser2::DECL_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)
private

◆ DECL_LINK() [3/9]

GalleryBrowser2::DECL_LINK ( PopupMenuHdl  ,
const CommandEvent ,
bool   
)
private

◆ DECL_LINK() [4/9]

GalleryBrowser2::DECL_LINK ( RowActivatedHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [5/9]

GalleryBrowser2::DECL_LINK ( SelectObjectHdl  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [6/9]

GalleryBrowser2::DECL_LINK ( SelectObjectValueSetHdl  ,
ValueSet ,
void   
)
private

◆ DECL_LINK() [7/9]

GalleryBrowser2::DECL_LINK ( SelectTbxHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [8/9]

GalleryBrowser2::DECL_LINK ( SizeAllocHdl  ,
const Size ,
void   
)
private

◆ DECL_LINK() [9/9]

GalleryBrowser2::DECL_LINK ( VisRowsScrolledHdl  ,
weld::TreeView ,
void   
)
private

◆ DECL_STATIC_LINK()

GalleryBrowser2::DECL_STATIC_LINK ( GalleryBrowser2  ,
AsyncDispatch_Impl  ,
void *  ,
void   
)

◆ DispatchAdd()

void GalleryBrowser2::DispatchAdd ( const css::uno::Reference< css::frame::XDispatch > &  rxDispatch,
const css::util::URL &  rURL 
)

◆ Execute()

void GalleryBrowser2::Execute ( std::string_view  rIdent)

◆ ExecuteDrop()

sal_Int8 GalleryBrowser2::ExecuteDrop ( const ExecuteDropEvent rEvt)

◆ GetFilterName()

OUString GalleryBrowser2::GetFilterName ( ) const

◆ GetFrame()

css::uno::Reference< css::frame::XFrame > GalleryBrowser2::GetFrame ( )
static

◆ GetItemText()

OUString GalleryBrowser2::GetItemText ( const SgaObject &  rObj,
GalleryItemFlags  nItemTextFlags 
)
static

◆ GetMode()

GalleryBrowserMode GalleryBrowser2::GetMode ( ) const
inline

◆ GetURL()

INetURLObject GalleryBrowser2::GetURL ( ) const

Definition at line 1191 of file galbrws2.cxx.

References aURL, GalleryTheme::GetObjectURL(), mnCurActionPos, and mpCurTheme.

◆ GetURLTransformer()

const css::uno::Reference< css::util::XURLTransformer > & GalleryBrowser2::GetURLTransformer ( ) const
inline

Definition at line 151 of file galbrws2.hxx.

References m_xTransformer.

◆ GetViewWindow()

weld::Widget * GalleryBrowser2::GetViewWindow ( ) const

◆ ImplGetSelectedItemId()

sal_uInt32 GalleryBrowser2::ImplGetSelectedItemId ( const Point pSelPosPixel,
Point rSelPos 
)
private

◆ ImplSelectItemId()

void GalleryBrowser2::ImplSelectItemId ( sal_uInt32  nItemId)
private

Definition at line 978 of file galbrws2.cxx.

References ImplUpdateSelection(), mxIconView, and mxListView.

Referenced by ImplUpdateViews(), ShowContextMenu(), and Travel().

◆ ImplUpdateInfoBar()

void GalleryBrowser2::ImplUpdateInfoBar ( )
private

Definition at line 907 of file galbrws2.cxx.

References GalleryTheme::GetName(), mpCurTheme, and mxInfoBar.

Referenced by ImplUpdateViews(), and Travel().

◆ ImplUpdateSelection()

void GalleryBrowser2::ImplUpdateSelection ( )
private

Definition at line 914 of file galbrws2.cxx.

References GALLERYBROWSERMODE_ICON, GetMode(), m_xHelper, mpCurTheme, mxIconView, and mxListView.

Referenced by ImplSelectItemId().

◆ ImplUpdateViews()

void GalleryBrowser2::ImplUpdateViews ( sal_uInt16  nSelectionId)
private

◆ KeyInput()

bool GalleryBrowser2::KeyInput ( const KeyEvent rEvt)

◆ Notify()

void GalleryBrowser2::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprivatevirtual

◆ SelectTheme()

void GalleryBrowser2::SelectTheme ( std::u16string_view  rThemeName)

◆ SetMode()

void GalleryBrowser2::SetMode ( GalleryBrowserMode  eMode)

◆ ShowContextMenu()

void GalleryBrowser2::ShowContextMenu ( const CommandEvent rCEvt)

◆ StartDrag()

bool GalleryBrowser2::StartDrag ( )

Definition at line 470 of file galbrws2.cxx.

References m_xHelper, and mpCurTheme.

Referenced by GalleryPreview::StartDrag(), and GalleryIconView::StartDrag().

◆ TogglePreview()

void GalleryBrowser2::TogglePreview ( )

◆ Travel()

void GalleryBrowser2::Travel ( GalleryBrowserTravel  eTravel)

◆ UpdateRows()

void GalleryBrowser2::UpdateRows ( bool  bVisibleOnly)
private

◆ ViewBoxHasFocus()

bool GalleryBrowser2::ViewBoxHasFocus ( ) const

Definition at line 516 of file galbrws2.cxx.

References mxIconButton, and mxListButton.

Referenced by KeyInput().

Friends And Related Function Documentation

◆ GalleryBrowser

friend class GalleryBrowser
friend

Definition at line 72 of file galbrws2.hxx.

◆ svx::sidebar::GalleryControl

friend class svx::sidebar::GalleryControl
friend

Definition at line 73 of file galbrws2.hxx.

Member Data Documentation

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > GalleryBrowser2::m_xContext
private

Definition at line 94 of file galbrws2.hxx.

Referenced by GalleryBrowser2().

◆ m_xHelper

rtl::Reference<GalleryTransferable> GalleryBrowser2::m_xHelper
private

Definition at line 89 of file galbrws2.hxx.

Referenced by ImplUpdateSelection(), SelectTheme(), and StartDrag().

◆ m_xTransformer

css::uno::Reference< css::util::XURLTransformer > GalleryBrowser2::m_xTransformer
private

Definition at line 95 of file galbrws2.hxx.

Referenced by DispatchAdd(), GalleryBrowser2(), and GetURLTransformer().

◆ maPreviewSize

Size GalleryBrowser2::maPreviewSize
private

Definition at line 88 of file galbrws2.hxx.

Referenced by UpdateRows().

◆ meInitMode

GalleryBrowserMode GalleryBrowser2::meInitMode = GALLERYBROWSERMODE_ICON
staticprivate

Definition at line 119 of file galbrws2.hxx.

Referenced by GalleryBrowser2(), and SetMode().

◆ meLastMode

GalleryBrowserMode GalleryBrowser2::meLastMode
private

Definition at line 92 of file galbrws2.hxx.

Referenced by Execute(), ImplGetSelectedItemId(), Notify(), SelectTheme(), SetMode(), and TogglePreview().

◆ meMode

GalleryBrowserMode GalleryBrowser2::meMode
private

Definition at line 91 of file galbrws2.hxx.

Referenced by GetMode(), SelectTheme(), and SetMode().

◆ mnCurActionPos

sal_uInt32 GalleryBrowser2::mnCurActionPos
private

Definition at line 90 of file galbrws2.hxx.

Referenced by DispatchAdd(), Execute(), GetFilterName(), GetURL(), and ShowContextMenu().

◆ mpCurTheme

GalleryTheme* GalleryBrowser2::mpCurTheme
private

◆ mpGallery

Gallery* GalleryBrowser2::mpGallery
private

Definition at line 77 of file galbrws2.hxx.

Referenced by SelectTheme(), and ~GalleryBrowser2().

◆ mxDragDropTargetHelper

std::unique_ptr<GalleryDragDrop> GalleryBrowser2::mxDragDropTargetHelper
private

Definition at line 82 of file galbrws2.hxx.

Referenced by GalleryBrowser2().

◆ mxIconButton

std::unique_ptr<weld::ToggleButton> GalleryBrowser2::mxIconButton
private

Definition at line 85 of file galbrws2.hxx.

Referenced by GalleryBrowser2(), SelectTheme(), SetMode(), and ViewBoxHasFocus().

◆ mxIconView

std::unique_ptr<GalleryIconView> GalleryBrowser2::mxIconView
private

◆ mxIconViewWin

std::unique_ptr<weld::CustomWeld> GalleryBrowser2::mxIconViewWin
private

Definition at line 80 of file galbrws2.hxx.

◆ mxInfoBar

std::unique_ptr<weld::Label> GalleryBrowser2::mxInfoBar
private

Definition at line 87 of file galbrws2.hxx.

Referenced by ImplUpdateInfoBar().

◆ mxListButton

std::unique_ptr<weld::ToggleButton> GalleryBrowser2::mxListButton
private

Definition at line 86 of file galbrws2.hxx.

Referenced by GalleryBrowser2(), SelectTheme(), SetMode(), and ViewBoxHasFocus().

◆ mxListView

std::unique_ptr<weld::TreeView> GalleryBrowser2::mxListView
private

◆ mxPreview

std::unique_ptr<GalleryPreview> GalleryBrowser2::mxPreview
private

◆ mxPreviewWin

std::unique_ptr<weld::CustomWeld> GalleryBrowser2::mxPreviewWin
private

Definition at line 84 of file galbrws2.hxx.


The documentation for this class was generated from the following files: