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, const ::std::function< void()> &rThemeSlectionHandler)
 
 ~GalleryBrowser1 ()
 
void SelectTheme (sal_uInt16 nThemePos)
 
OUString GetSelectedTheme () const
 
void GrabFocus ()
 
- 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)
 

Private Member Functions

void ImplInsertThemeEntry (const GalleryThemeEntry *pEntry)
 
void ImplGetExecuteVector (std::vector< OString > &o_aExec)
 
void ImplExecute (const OString &rIdent)
 
void ImplGalleryThemeProperties (const OUString &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)
 

Static Private Member Functions

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

Private Attributes

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

Friends

class GalleryBrowser
 
class svx::sidebar::GalleryControl
 

Detailed Description

Definition at line 40 of file galbrws1.hxx.

Constructor & Destructor Documentation

GalleryBrowser1::GalleryBrowser1 ( weld::Builder rBuilder,
Gallery pGallery,
const ::std::function< void()> &  rThemeSlectionHandler 
)
GalleryBrowser1::~GalleryBrowser1 ( )

Definition at line 83 of file galbrws1.cxx.

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

Member Function Documentation

GalleryBrowser1::DECL_LINK ( ClickNewThemeHdl  ,
weld::Button ,
void   
)
private
GalleryBrowser1::DECL_LINK ( SelectThemeHdl  ,
weld::TreeView ,
void   
)
private
GalleryBrowser1::DECL_LINK ( PopupMenuHdl  ,
const CommandEvent ,
bool   
)
private
GalleryBrowser1::DECL_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)
private
void GalleryBrowser1::EndNewThemePropertiesDlgHdl ( sal_Int32  nResult)
private

Definition at line 234 of file galbrws1.cxx.

References ImplEndGalleryThemeProperties().

Referenced by ImplGalleryThemeProperties().

void GalleryBrowser1::EndThemePropertiesDlgHdl ( sal_Int32  nResult)
private

Definition at line 239 of file galbrws1.cxx.

References ImplEndGalleryThemeProperties().

Referenced by ImplGalleryThemeProperties().

OUString GalleryBrowser1::GetSelectedTheme ( ) const
inline

Definition at line 86 of file galbrws1.hxx.

Referenced by ImplExecute(), and ImplGetExecuteVector().

void GalleryBrowser1::GrabFocus ( )

Definition at line 311 of file galbrws1.cxx.

References mxNewTheme, and mxThemes.

void GalleryBrowser1::ImplEndGalleryThemeProperties ( bool  bCreateNew,
sal_Int32  nResult 
)
private
void GalleryBrowser1::ImplExecute ( const OString &  rIdent)
private
void GalleryBrowser1::ImplFillExchangeData ( const GalleryTheme pThm,
ExchangeData rData 
)
staticprivate
void GalleryBrowser1::ImplGalleryThemeProperties ( const OUString &  rThemeName,
bool  bCreateNew 
)
private
void GalleryBrowser1::ImplGetExecuteVector ( std::vector< OString > &  o_aExec)
private
void GalleryBrowser1::ImplInsertThemeEntry ( const GalleryThemeEntry pEntry)
private
void GalleryBrowser1::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprivatevirtual
void GalleryBrowser1::SelectTheme ( sal_uInt16  nThemePos)
inline

Definition at line 85 of file galbrws1.hxx.

Friends And Related Function Documentation

friend class GalleryBrowser
friend

Definition at line 42 of file galbrws1.hxx.

friend class svx::sidebar::GalleryControl
friend

Definition at line 43 of file galbrws1.hxx.

Member Data Documentation

OUString GalleryBrowser1::aImgDefault
private

Definition at line 54 of file galbrws1.hxx.

Referenced by ImplInsertThemeEntry().

OUString GalleryBrowser1::aImgNormal
private

Definition at line 53 of file galbrws1.hxx.

Referenced by ImplInsertThemeEntry().

OUString GalleryBrowser1::aImgReadOnly
private

Definition at line 55 of file galbrws1.hxx.

Referenced by ImplInsertThemeEntry().

::std::function<void ()> const GalleryBrowser1::maThemeSlectionHandler
private

Definition at line 57 of file galbrws1.hxx.

std::unique_ptr<ExchangeData> GalleryBrowser1::mpExchangeData
private
Gallery* GalleryBrowser1::mpGallery
private
std::unique_ptr<SfxItemSet> GalleryBrowser1::mpThemePropsDlgItemSet
private

Definition at line 51 of file galbrws1.hxx.

Referenced by ImplGalleryThemeProperties().

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

Definition at line 47 of file galbrws1.hxx.

Referenced by GalleryBrowser1(), and GrabFocus().

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

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