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

#include <galbrws1.hxx>

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

Public Member Functions

 GalleryBrowser1 (weld::Builder &rBuilder, Gallery *pGallery, ::std::function< void()> aThemeSelectionHandler)
 
 ~GalleryBrowser1 ()
 
void SelectTheme (sal_uInt16 nThemePos)
 
OUString GetSelectedTheme () const
 
- 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)
 
virtual bool IsSdrView () const
 

Private Member Functions

void ImplInsertThemeEntry (const GalleryThemeEntry *pEntry)
 
void ImplGetExecuteVector (std::vector< OUString > &o_aExec)
 
void ImplExecute (std::u16string_view rIdent)
 
void ImplGalleryThemeProperties (std::u16string_view rThemeName, bool bCreateNew)
 
void EndNewThemePropertiesDlgHdl (sal_Int32 nResult)
 
void EndThemePropertiesDlgHdl (sal_Int32 nResult)
 
void ImplEndGalleryThemeProperties (bool bCreateNew, sal_Int32 nResult)
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
 DECL_LINK (ClickNewThemeHdl, weld::Button &, void)
 
 DECL_LINK (SelectThemeHdl, weld::TreeView &, void)
 
 DECL_LINK (PopupMenuHdl, const CommandEvent &, bool)
 
 DECL_LINK (KeyInputHdl, const KeyEvent &, bool)
 
 DECL_STATIC_LINK (GalleryBrowser1, OnMoreGalleriesClick, weld::Button &, void)
 

Static Private Member Functions

static void ImplFillExchangeData (const GalleryTheme *pThm, ExchangeData &rData)
 

Private Attributes

std::unique_ptr< weld::ButtonmxNewTheme
 
std::unique_ptr< weld::TreeViewmxThemes
 
std::unique_ptr< weld::ButtonmxMoreGalleries
 
GallerympGallery
 
std::unique_ptr< ExchangeDatampExchangeData
 
std::unique_ptr< SfxItemSetmpThemePropsDlgItemSet
 
OUString aImgNormal
 
OUString aImgDefault
 
OUString aImgReadOnly
 
::std::function< void()> maThemeSelectionHandler
 

Friends

class GalleryBrowser
 
class svx::sidebar::GalleryControl
 

Detailed Description

Definition at line 40 of file galbrws1.hxx.

Constructor & Destructor Documentation

◆ GalleryBrowser1()

GalleryBrowser1::GalleryBrowser1 ( weld::Builder rBuilder,
Gallery pGallery,
::std::function< void()>  aThemeSelectionHandler 
)

◆ ~GalleryBrowser1()

GalleryBrowser1::~GalleryBrowser1 ( )

Definition at line 84 of file galbrws1.cxx.

References SfxListener::EndListening(), mpExchangeData, and mpGallery.

Member Function Documentation

◆ DECL_LINK() [1/4]

GalleryBrowser1::DECL_LINK ( ClickNewThemeHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/4]

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

◆ DECL_LINK() [3/4]

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

◆ DECL_LINK() [4/4]

GalleryBrowser1::DECL_LINK ( SelectThemeHdl  ,
weld::TreeView ,
void   
)
private

◆ DECL_STATIC_LINK()

GalleryBrowser1::DECL_STATIC_LINK ( GalleryBrowser1  ,
OnMoreGalleriesClick  ,
weld::Button ,
void   
)
private

◆ EndNewThemePropertiesDlgHdl()

void GalleryBrowser1::EndNewThemePropertiesDlgHdl ( sal_Int32  nResult)
private

Definition at line 231 of file galbrws1.cxx.

References ImplEndGalleryThemeProperties().

Referenced by ImplGalleryThemeProperties().

◆ EndThemePropertiesDlgHdl()

void GalleryBrowser1::EndThemePropertiesDlgHdl ( sal_Int32  nResult)
private

Definition at line 236 of file galbrws1.cxx.

References ImplEndGalleryThemeProperties().

Referenced by ImplGalleryThemeProperties().

◆ GetSelectedTheme()

OUString GalleryBrowser1::GetSelectedTheme ( ) const
inline

Definition at line 88 of file galbrws1.hxx.

References mxThemes.

Referenced by ImplExecute(), and ImplGetExecuteVector().

◆ ImplEndGalleryThemeProperties()

void GalleryBrowser1::ImplEndGalleryThemeProperties ( bool  bCreateNew,
sal_Int32  nResult 
)
private

◆ ImplExecute()

void GalleryBrowser1::ImplExecute ( std::u16string_view  rIdent)
private

◆ ImplFillExchangeData()

void GalleryBrowser1::ImplFillExchangeData ( const GalleryTheme pThm,
ExchangeData rData 
)
staticprivate

◆ ImplGalleryThemeProperties()

void GalleryBrowser1::ImplGalleryThemeProperties ( std::u16string_view  rThemeName,
bool  bCreateNew 
)
private

◆ ImplGetExecuteVector()

void GalleryBrowser1::ImplGetExecuteVector ( std::vector< OUString > &  o_aExec)
private

◆ ImplInsertThemeEntry()

void GalleryBrowser1::ImplInsertThemeEntry ( const GalleryThemeEntry pEntry)
private

◆ Notify()

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

◆ SelectTheme()

void GalleryBrowser1::SelectTheme ( sal_uInt16  nThemePos)
inline

Definition at line 87 of file galbrws1.hxx.

References mxThemes.

Friends And Related Function Documentation

◆ GalleryBrowser

friend class GalleryBrowser
friend

Definition at line 42 of file galbrws1.hxx.

◆ svx::sidebar::GalleryControl

friend class svx::sidebar::GalleryControl
friend

Definition at line 43 of file galbrws1.hxx.

Member Data Documentation

◆ aImgDefault

OUString GalleryBrowser1::aImgDefault
private

Definition at line 55 of file galbrws1.hxx.

Referenced by ImplInsertThemeEntry().

◆ aImgNormal

OUString GalleryBrowser1::aImgNormal
private

Definition at line 54 of file galbrws1.hxx.

Referenced by ImplInsertThemeEntry().

◆ aImgReadOnly

OUString GalleryBrowser1::aImgReadOnly
private

Definition at line 56 of file galbrws1.hxx.

Referenced by ImplInsertThemeEntry().

◆ maThemeSelectionHandler

::std::function<void ()> GalleryBrowser1::maThemeSelectionHandler
private

Definition at line 58 of file galbrws1.hxx.

◆ mpExchangeData

std::unique_ptr<ExchangeData> GalleryBrowser1::mpExchangeData
private

◆ mpGallery

Gallery* GalleryBrowser1::mpGallery
private

◆ mpThemePropsDlgItemSet

std::unique_ptr<SfxItemSet> GalleryBrowser1::mpThemePropsDlgItemSet
private

Definition at line 52 of file galbrws1.hxx.

Referenced by ImplGalleryThemeProperties().

◆ mxMoreGalleries

std::unique_ptr<weld::Button> GalleryBrowser1::mxMoreGalleries
private

Definition at line 49 of file galbrws1.hxx.

Referenced by GalleryBrowser1().

◆ mxNewTheme

std::unique_ptr<weld::Button> GalleryBrowser1::mxNewTheme
private

Definition at line 47 of file galbrws1.hxx.

Referenced by GalleryBrowser1().

◆ mxThemes

std::unique_ptr<weld::TreeView> GalleryBrowser1::mxThemes
private

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