LibreOffice Module cui (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
TPGalleryThemeProperties Class Reference

#include <cuigaldlg.hxx>

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

Public Member Functions

 TPGalleryThemeProperties (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
 
virtual ~TPGalleryThemeProperties () override
 
void SetXChgData (ExchangeData *pData)
 
const ExchangeDataGetXChgData () const
 
void StartSearchFiles (std::u16string_view _rFolderURL, short _nDlgResult)
 
- Public Member Functions inherited from SfxTabPage
void SetDialogController (SfxOkDialogController *pDialog)
 
virtual ~SfxTabPage () override
 
void set_visible (bool bVisible)
 
const SfxItemSetGetItemSet () const
 
virtual bool FillItemSet (SfxItemSet *)
 
virtual void Reset (const SfxItemSet *)
 
virtual bool DeferResetToFirstActivation ()
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet)
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData () const
 
virtual void FillUserData ()
 
virtual bool IsReadOnly () const
 
virtual void PageCreated (const SfxAllItemSet &aSet)
 
virtual void ChangesApplied ()
 
void SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
css::uno::Reference< css::frame::XFrame > GetFrame () const
 
const SfxItemSetGetDialogExampleSet () const
 
OUString GetHelpId () const
 
OUString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 
std::unordered_map< OUString, css::uno::Any > & getAdditionalProperties ()
 

Static Public Member Functions

static std::unique_ptr< SfxTabPageCreate (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
 
- Static Public Member Functions inherited from SfxTabPage
static const SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
static const T * GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 

Private Member Functions

virtual void Reset (const SfxItemSet *) override
 
virtual bool FillItemSet (SfxItemSet *) override
 
void FillFilterList ()
 
void SearchFiles ()
 
void TakeFiles ()
 
void DoPreview ()
 
void EndSearchProgressHdl (sal_Int32 nResult)
 
 DECL_LINK (ClickPreviewHdl, weld::Toggleable &, void)
 
 DECL_LINK (ClickSearchHdl, weld::Button &, void)
 
 DECL_LINK (ClickTakeHdl, weld::Button &, void)
 
 DECL_LINK (ClickTakeAllHdl, weld::Button &, void)
 
 DECL_LINK (SelectFoundHdl, weld::TreeView &, void)
 
 DECL_LINK (SelectFileTypeHdl, weld::ComboBox &, void)
 
 DECL_LINK (DClickFoundHdl, weld::TreeView &, bool)
 
 DECL_LINK (PreviewTimerHdl, Timer *, void)
 
 DECL_LINK (DialogClosedHdl, css::ui::dialogs::DialogClosedEvent *, void)
 

Static Private Member Functions

static OUString addExtension (const OUString &, std::u16string_view)
 

Private Attributes

ExchangeDatapData
 
std::vector< OUString > aFoundList
 
std::vector< std::unique_ptr< FilterEntry > > aFilterEntryList
 
Timer aPreviewTimer
 
OUString aLastFilterName
 
OUString aPreviewString
 
INetURLObject aURL
 
bool bEntriesFound
 
bool bInputAllowed
 
bool bTakeAll
 
bool bSearchRecursive
 
rtl::Reference< ::svt::DialogClosedListenerxDialogListener
 
css::uno::Reference< css::media::XPlayer > xMediaPlayer
 
css::uno::Reference< css::ui::dialogs::XFolderPicker2 > xFolderPicker
 
DialogGalleryPreview m_aWndPreview
 
std::unique_ptr< weld::ComboBoxm_xCbbFileType
 
std::unique_ptr< weld::TreeViewm_xLbxFound
 
std::unique_ptr< weld::Buttonm_xBtnSearch
 
std::unique_ptr< weld::Buttonm_xBtnTake
 
std::unique_ptr< weld::Buttonm_xBtnTakeAll
 
std::unique_ptr< weld::CheckButtonm_xCbxPreview
 
std::unique_ptr< weld::CustomWeldm_xWndPreview
 

Friends

class SearchThread
 
class TakeProgress
 
class TakeThread
 

Additional Inherited Members

- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 nSlot, bool bDeep=true) const
 
TypedWhichId< T > GetWhich (TypedWhichId< T > nSlot, bool bDeep=true) const
 
const SfxPoolItemGetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
const T * GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
SfxOkDialogControllerGetDialogController () const
 

Detailed Description

Definition at line 212 of file cuigaldlg.hxx.

Constructor & Destructor Documentation

◆ TPGalleryThemeProperties()

TPGalleryThemeProperties::TPGalleryThemeProperties ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)

Definition at line 578 of file cuigaldlg.cxx.

References LINK, m_xLbxFound, pData, rSet, and xDialogListener.

◆ ~TPGalleryThemeProperties()

TPGalleryThemeProperties::~TPGalleryThemeProperties ( )
overridevirtual

Definition at line 634 of file cuigaldlg.cxx.

References aFilterEntryList, xDialogListener, and xMediaPlayer.

Member Function Documentation

◆ addExtension()

OUString TPGalleryThemeProperties::addExtension ( const OUString &  _rDisplayText,
std::u16string_view  _rExtension 
)
staticprivate

Definition at line 646 of file cuigaldlg.cxx.

Referenced by FillFilterList().

◆ Create()

std::unique_ptr< SfxTabPage > TPGalleryThemeProperties::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)
static

Definition at line 641 of file cuigaldlg.cxx.

References rSet.

Referenced by GalleryThemeProperties::GalleryThemeProperties().

◆ DECL_LINK() [1/9]

TPGalleryThemeProperties::DECL_LINK ( ClickPreviewHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [2/9]

TPGalleryThemeProperties::DECL_LINK ( ClickSearchHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/9]

TPGalleryThemeProperties::DECL_LINK ( ClickTakeAllHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [4/9]

TPGalleryThemeProperties::DECL_LINK ( ClickTakeHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [5/9]

TPGalleryThemeProperties::DECL_LINK ( DClickFoundHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [6/9]

TPGalleryThemeProperties::DECL_LINK ( DialogClosedHdl  ,
css::ui::dialogs::DialogClosedEvent *  ,
void   
)
private

◆ DECL_LINK() [7/9]

TPGalleryThemeProperties::DECL_LINK ( PreviewTimerHdl  ,
Timer ,
void   
)
private

◆ DECL_LINK() [8/9]

TPGalleryThemeProperties::DECL_LINK ( SelectFileTypeHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [9/9]

TPGalleryThemeProperties::DECL_LINK ( SelectFoundHdl  ,
weld::TreeView ,
void   
)
private

◆ DoPreview()

void TPGalleryThemeProperties::DoPreview ( )
private

◆ EndSearchProgressHdl()

void TPGalleryThemeProperties::EndSearchProgressHdl ( sal_Int32  nResult)
private

Definition at line 983 of file cuigaldlg.cxx.

References aFoundList, bEntriesFound, CuiResId(), m_xBtnTakeAll, m_xCbxPreview, and m_xLbxFound.

Referenced by SearchFiles().

◆ FillFilterList()

void TPGalleryThemeProperties::FillFilterList ( )
private

◆ FillItemSet()

virtual bool TPGalleryThemeProperties::FillItemSet ( SfxItemSet )
inlineoverrideprivatevirtual

Reimplemented from SfxTabPage.

Definition at line 245 of file cuigaldlg.hxx.

◆ GetXChgData()

const ExchangeData * TPGalleryThemeProperties::GetXChgData ( ) const
inline

Definition at line 269 of file cuigaldlg.hxx.

References pData.

Referenced by TakeThread::execute().

◆ Reset()

virtual void TPGalleryThemeProperties::Reset ( const SfxItemSet )
inlineoverrideprivatevirtual

Reimplemented from SfxTabPage.

Definition at line 244 of file cuigaldlg.hxx.

◆ SearchFiles()

void TPGalleryThemeProperties::SearchFiles ( )
private

◆ SetXChgData()

void TPGalleryThemeProperties::SetXChgData ( ExchangeData pData)

◆ StartSearchFiles()

void TPGalleryThemeProperties::StartSearchFiles ( std::u16string_view  _rFolderURL,
short  _nDlgResult 
)

Definition at line 624 of file cuigaldlg.cxx.

References aURL, bSearchRecursive, RET_OK, and SearchFiles().

◆ TakeFiles()

void TPGalleryThemeProperties::TakeFiles ( )
private

Friends And Related Function Documentation

◆ SearchThread

friend class SearchThread
friend

Definition at line 214 of file cuigaldlg.hxx.

◆ TakeProgress

friend class TakeProgress
friend

Definition at line 215 of file cuigaldlg.hxx.

◆ TakeThread

friend class TakeThread
friend

Definition at line 216 of file cuigaldlg.hxx.

Member Data Documentation

◆ aFilterEntryList

std::vector< std::unique_ptr<FilterEntry> > TPGalleryThemeProperties::aFilterEntryList
private

Definition at line 221 of file cuigaldlg.hxx.

Referenced by SearchThread::execute(), FillFilterList(), and ~TPGalleryThemeProperties().

◆ aFoundList

std::vector<OUString> TPGalleryThemeProperties::aFoundList
private

◆ aLastFilterName

OUString TPGalleryThemeProperties::aLastFilterName
private

Definition at line 223 of file cuigaldlg.hxx.

◆ aPreviewString

OUString TPGalleryThemeProperties::aPreviewString
private

Definition at line 224 of file cuigaldlg.hxx.

Referenced by DoPreview().

◆ aPreviewTimer

Timer TPGalleryThemeProperties::aPreviewTimer
private

Definition at line 222 of file cuigaldlg.hxx.

Referenced by SetXChgData().

◆ aURL

INetURLObject TPGalleryThemeProperties::aURL
private

Definition at line 225 of file cuigaldlg.hxx.

Referenced by SearchFiles(), and StartSearchFiles().

◆ bEntriesFound

bool TPGalleryThemeProperties::bEntriesFound
private

Definition at line 226 of file cuigaldlg.hxx.

Referenced by EndSearchProgressHdl(), and TakeFiles().

◆ bInputAllowed

bool TPGalleryThemeProperties::bInputAllowed
private

Definition at line 227 of file cuigaldlg.hxx.

Referenced by DoPreview().

◆ bSearchRecursive

bool TPGalleryThemeProperties::bSearchRecursive
private

Definition at line 229 of file cuigaldlg.hxx.

Referenced by SearchThread::execute(), and StartSearchFiles().

◆ bTakeAll

bool TPGalleryThemeProperties::bTakeAll
private

Definition at line 228 of file cuigaldlg.hxx.

Referenced by TakeThread::execute(), and TakeFiles().

◆ m_aWndPreview

DialogGalleryPreview TPGalleryThemeProperties::m_aWndPreview
private

Definition at line 235 of file cuigaldlg.hxx.

Referenced by DoPreview().

◆ m_xBtnSearch

std::unique_ptr<weld::Button> TPGalleryThemeProperties::m_xBtnSearch
private

Definition at line 238 of file cuigaldlg.hxx.

Referenced by SetXChgData().

◆ m_xBtnTake

std::unique_ptr<weld::Button> TPGalleryThemeProperties::m_xBtnTake
private

Definition at line 239 of file cuigaldlg.hxx.

Referenced by SetXChgData().

◆ m_xBtnTakeAll

std::unique_ptr<weld::Button> TPGalleryThemeProperties::m_xBtnTakeAll
private

Definition at line 240 of file cuigaldlg.hxx.

Referenced by EndSearchProgressHdl(), and SetXChgData().

◆ m_xCbbFileType

std::unique_ptr<weld::ComboBox> TPGalleryThemeProperties::m_xCbbFileType
private

Definition at line 236 of file cuigaldlg.hxx.

Referenced by SearchThread::execute(), FillFilterList(), SearchFiles(), and SetXChgData().

◆ m_xCbxPreview

std::unique_ptr<weld::CheckButton> TPGalleryThemeProperties::m_xCbxPreview
private

Definition at line 241 of file cuigaldlg.hxx.

Referenced by EndSearchProgressHdl(), and SetXChgData().

◆ m_xLbxFound

std::unique_ptr<weld::TreeView> TPGalleryThemeProperties::m_xLbxFound
private

◆ m_xWndPreview

std::unique_ptr<weld::CustomWeld> TPGalleryThemeProperties::m_xWndPreview
private

Definition at line 242 of file cuigaldlg.hxx.

◆ pData

ExchangeData* TPGalleryThemeProperties::pData
private

Definition at line 218 of file cuigaldlg.hxx.

Referenced by GetXChgData(), and SetXChgData().

◆ xDialogListener

rtl::Reference< ::svt::DialogClosedListener > TPGalleryThemeProperties::xDialogListener
private

Definition at line 231 of file cuigaldlg.hxx.

Referenced by TPGalleryThemeProperties(), and ~TPGalleryThemeProperties().

◆ xFolderPicker

css::uno::Reference< css::ui::dialogs::XFolderPicker2 > TPGalleryThemeProperties::xFolderPicker
private

Definition at line 233 of file cuigaldlg.hxx.

◆ xMediaPlayer

css::uno::Reference< css::media::XPlayer > TPGalleryThemeProperties::xMediaPlayer
private

Definition at line 232 of file cuigaldlg.hxx.

Referenced by DoPreview(), and ~TPGalleryThemeProperties().


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