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 Reference

#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 (const OUString &rThemeName)
 
GalleryBrowserMode GetMode () const
 
void SetMode (GalleryBrowserMode eMode)
 
weld::WidgetGetViewWindow () const
 
void Travel (GalleryBrowserTravel eTravel)
 
INetURLObject GetURL () const
 
OUString GetFilterName () const
 
sal_Int8 AcceptDrop (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 (const OString &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
 
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, SvtValueSet *, void)
 
 DECL_LINK (SelectTbxHdl, weld::ToggleButton &, void)
 
 DECL_LINK (PopupMenuHdl, const CommandEvent &, bool)
 
 DECL_LINK (KeyInputHdl, const KeyEvent &, bool)
 
 DECL_LINK (RowActivatedHdl, weld::TreeView &, bool)
 
 DECL_LINK (DragBeginHdl, weld::TreeView &, 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
 
VclPtr< VirtualDevicemxDev
 
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 ( weld::Builder rBuilder,
Gallery pGallery 
)
GalleryBrowser2::~GalleryBrowser2 ( )

Definition at line 415 of file galbrws2.cxx.

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

Member Function Documentation

sal_Int8 GalleryBrowser2::AcceptDrop ( DropTargetHelper rTarget)
GalleryBrowser2::DECL_LINK ( SelectObjectHdl  ,
weld::TreeView ,
void   
)
private
GalleryBrowser2::DECL_LINK ( SelectObjectValueSetHdl  ,
SvtValueSet ,
void   
)
private
GalleryBrowser2::DECL_LINK ( SelectTbxHdl  ,
weld::ToggleButton ,
void   
)
private
GalleryBrowser2::DECL_LINK ( PopupMenuHdl  ,
const CommandEvent ,
bool   
)
private
GalleryBrowser2::DECL_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)
private
GalleryBrowser2::DECL_LINK ( RowActivatedHdl  ,
weld::TreeView ,
bool   
)
private
GalleryBrowser2::DECL_LINK ( DragBeginHdl  ,
weld::TreeView ,
bool   
)
private
GalleryBrowser2::DECL_LINK ( VisRowsScrolledHdl  ,
weld::TreeView ,
void   
)
private
GalleryBrowser2::DECL_LINK ( SizeAllocHdl  ,
const Size ,
void   
)
private
GalleryBrowser2::DECL_STATIC_LINK ( GalleryBrowser2  ,
AsyncDispatch_Impl  ,
void ,
void   
)
void GalleryBrowser2::DispatchAdd ( const css::uno::Reference< css::frame::XDispatch > &  rxDispatch,
const css::util::URL &  rURL 
)
void GalleryBrowser2::Execute ( const OString &  rIdent)
sal_Int8 GalleryBrowser2::ExecuteDrop ( const ExecuteDropEvent rEvt)
OUString GalleryBrowser2::GetFilterName ( ) const
css::uno::Reference< css::frame::XFrame > GalleryBrowser2::GetFrame ( )
static
OUString GalleryBrowser2::GetItemText ( const SgaObject rObj,
GalleryItemFlags  nItemTextFlags 
)
static
GalleryBrowserMode GalleryBrowser2::GetMode ( ) const
inline
INetURLObject GalleryBrowser2::GetURL ( ) const

Definition at line 1209 of file galbrws2.cxx.

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

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

Definition at line 152 of file galbrws2.hxx.

References m_xTransformer.

weld::Widget * GalleryBrowser2::GetViewWindow ( ) const
sal_uInt32 GalleryBrowser2::ImplGetSelectedItemId ( const Point pSelPosPixel,
Point rSelPos 
)
private
void GalleryBrowser2::ImplSelectItemId ( sal_uInt32  nItemId)
private

Definition at line 992 of file galbrws2.cxx.

References ImplUpdateSelection(), mxIconView, and mxListView.

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

void GalleryBrowser2::ImplUpdateInfoBar ( )
private

Definition at line 921 of file galbrws2.cxx.

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

Referenced by ImplUpdateViews(), and Travel().

void GalleryBrowser2::ImplUpdateSelection ( )
private

Definition at line 928 of file galbrws2.cxx.

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

Referenced by ImplSelectItemId().

void GalleryBrowser2::ImplUpdateViews ( sal_uInt16  nSelectionId)
private
bool GalleryBrowser2::KeyInput ( const KeyEvent rEvt)
void GalleryBrowser2::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprivatevirtual
void GalleryBrowser2::SelectTheme ( const OUString &  rThemeName)
void GalleryBrowser2::SetMode ( GalleryBrowserMode  eMode)
void GalleryBrowser2::ShowContextMenu ( const CommandEvent rCEvt)
bool GalleryBrowser2::StartDrag ( )

Definition at line 485 of file galbrws2.cxx.

References m_xHelper, and mpCurTheme.

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

void GalleryBrowser2::TogglePreview ( )
void GalleryBrowser2::Travel ( GalleryBrowserTravel  eTravel)
void GalleryBrowser2::UpdateRows ( bool  bVisibleOnly)
private
bool GalleryBrowser2::ViewBoxHasFocus ( ) const

Definition at line 530 of file galbrws2.cxx.

References mxIconButton, and mxListButton.

Referenced by KeyInput().

Friends And Related Function Documentation

friend class GalleryBrowser
friend

Definition at line 72 of file galbrws2.hxx.

friend class svx::sidebar::GalleryControl
friend

Definition at line 73 of file galbrws2.hxx.

Member Data Documentation

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

Definition at line 95 of file galbrws2.hxx.

Referenced by GalleryBrowser2().

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

Definition at line 90 of file galbrws2.hxx.

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

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

Definition at line 96 of file galbrws2.hxx.

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

Size GalleryBrowser2::maPreviewSize
private

Definition at line 89 of file galbrws2.hxx.

Referenced by GalleryBrowser2(), and UpdateRows().

GalleryBrowserMode GalleryBrowser2::meInitMode = GALLERYBROWSERMODE_ICON
staticprivate

Definition at line 120 of file galbrws2.hxx.

Referenced by GalleryBrowser2(), and SetMode().

GalleryBrowserMode GalleryBrowser2::meLastMode
private

Definition at line 93 of file galbrws2.hxx.

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

GalleryBrowserMode GalleryBrowser2::meMode
private

Definition at line 92 of file galbrws2.hxx.

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

sal_uInt32 GalleryBrowser2::mnCurActionPos
private

Definition at line 91 of file galbrws2.hxx.

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

GalleryTheme* GalleryBrowser2::mpCurTheme
private
Gallery* GalleryBrowser2::mpGallery
private

Definition at line 77 of file galbrws2.hxx.

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

VclPtr<VirtualDevice> GalleryBrowser2::mxDev
private

Definition at line 88 of file galbrws2.hxx.

Referenced by GalleryBrowser2(), and UpdateRows().

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

Definition at line 82 of file galbrws2.hxx.

Referenced by GalleryBrowser2().

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

Definition at line 85 of file galbrws2.hxx.

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

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

Definition at line 80 of file galbrws2.hxx.

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

Definition at line 87 of file galbrws2.hxx.

Referenced by ImplUpdateInfoBar().

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

Definition at line 86 of file galbrws2.hxx.

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

std::unique_ptr<weld::TreeView> GalleryBrowser2::mxListView
private
std::unique_ptr<GalleryPreview> GalleryBrowser2::mxPreview
private
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: