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

#include <AdditionsDialog.hxx>

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

Public Member Functions

 AdditionsDialog (weld::Window *pParent, const OUString &sAdditionsTag)
 
 ~AdditionsDialog () override
 
css::uno::Sequence< css::uno::Sequence< css::uno::Reference< css::deployment::XPackage > > > getInstalledExtensions ()
 
void SetProgress (const OUString &rProgress)
 
void ClearList ()
 
void RefreshUI ()
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Static Public Member Functions

static bool sortByComment (const AdditionInfo &a, const AdditionInfo &b)
 
static bool sortByRating (const AdditionInfo &a, const AdditionInfo &b)
 
static bool sortByDownload (const AdditionInfo &a, const AdditionInfo &b)
 
- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 

Public Attributes

css::uno::Reference< css::deployment::XExtensionManager > m_xExtensionManager
 
std::unique_ptr< weld::Entrym_xEntrySearch
 
std::unique_ptr< weld::Buttonm_xButtonClose
 
std::vector< std::shared_ptr< AdditionsItem > > m_aAdditionsItems
 
std::vector< AdditionInfom_aAllExtensionsVector
 
std::unique_ptr< weld::ScrolledWindowm_xContentWindow
 
std::unique_ptr< weld::Containerm_xContentGrid
 
std::unique_ptr< weld::Labelm_xLabelProgress
 
std::unique_ptr< weld::MenuButtonm_xGearBtn
 
::rtl::Reference< SearchAndParseThreadm_pSearchThread
 
OUString m_sURL
 
OUString m_sTag
 
size_t m_nMaxItemCount
 
size_t m_nCurrentListItemCount
 
i18nutil::SearchOptions2 m_searchOptions
 

Private Member Functions

 DECL_LINK (GearHdl, const OUString &, void)
 
 DECL_LINK (SearchUpdateHdl, weld::Entry &, void)
 
 DECL_LINK (ImplUpdateDataHdl, Timer *, void)
 
 DECL_LINK (FocusOut_Impl, weld::Widget &, void)
 
 DECL_LINK (CloseButtonHdl, weld::Button &, void)
 

Private Attributes

Timer m_aSearchDataTimer
 

Additional Inherited Members

- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 56 of file AdditionsDialog.hxx.

Constructor & Destructor Documentation

◆ AdditionsDialog()

AdditionsDialog::AdditionsDialog ( weld::Window pParent,
const OUString &  sAdditionsTag 
)

◆ ~AdditionsDialog()

AdditionsDialog::~AdditionsDialog ( )
override

Definition at line 496 of file AdditionsDialog.cxx.

References m_pSearchThread.

Member Function Documentation

◆ ClearList()

void AdditionsDialog::ClearList ( )

Definition at line 555 of file AdditionsDialog.cxx.

References m_aAdditionsItems.

Referenced by RefreshUI().

◆ DECL_LINK() [1/5]

AdditionsDialog::DECL_LINK ( CloseButtonHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/5]

AdditionsDialog::DECL_LINK ( FocusOut_Impl  ,
weld::Widget ,
void   
)
private

◆ DECL_LINK() [3/5]

AdditionsDialog::DECL_LINK ( GearHdl  ,
const OUString &  ,
void   
)
private

◆ DECL_LINK() [4/5]

AdditionsDialog::DECL_LINK ( ImplUpdateDataHdl  ,
Timer ,
void   
)
private

◆ DECL_LINK() [5/5]

AdditionsDialog::DECL_LINK ( SearchUpdateHdl  ,
weld::Entry ,
void   
)
private

◆ getInstalledExtensions()

uno::Sequence< uno::Sequence< uno::Reference< deployment::XPackage > > > AdditionsDialog::getInstalledExtensions ( )

◆ RefreshUI()

void AdditionsDialog::RefreshUI ( )

◆ SetProgress()

void AdditionsDialog::SetProgress ( const OUString &  rProgress)

◆ sortByComment()

bool AdditionsDialog::sortByComment ( const AdditionInfo a,
const AdditionInfo b 
)
static

Definition at line 583 of file AdditionsDialog.cxx.

References a, and AdditionInfo::sCommentNumber.

◆ sortByDownload()

bool AdditionsDialog::sortByDownload ( const AdditionInfo a,
const AdditionInfo b 
)
static

Definition at line 588 of file AdditionsDialog.cxx.

References a, and AdditionInfo::sDownloadNumber.

Referenced by SearchAndParseThread::execute().

◆ sortByRating()

bool AdditionsDialog::sortByRating ( const AdditionInfo a,
const AdditionInfo b 
)
static

Definition at line 578 of file AdditionsDialog.cxx.

References a, and AdditionInfo::sRating.

Member Data Documentation

◆ m_aAdditionsItems

std::vector<std::shared_ptr<AdditionsItem> > AdditionsDialog::m_aAdditionsItems

◆ m_aAllExtensionsVector

std::vector<AdditionInfo> AdditionsDialog::m_aAllExtensionsVector

◆ m_aSearchDataTimer

Timer AdditionsDialog::m_aSearchDataTimer
private

Definition at line 59 of file AdditionsDialog.hxx.

Referenced by AdditionsDialog().

◆ m_nCurrentListItemCount

size_t AdditionsDialog::m_nCurrentListItemCount

◆ m_nMaxItemCount

size_t AdditionsDialog::m_nMaxItemCount

◆ m_pSearchThread

::rtl::Reference<SearchAndParseThread> AdditionsDialog::m_pSearchThread

Definition at line 80 of file AdditionsDialog.hxx.

Referenced by AdditionsDialog(), RefreshUI(), and ~AdditionsDialog().

◆ m_searchOptions

i18nutil::SearchOptions2 AdditionsDialog::m_searchOptions

◆ m_sTag

OUString AdditionsDialog::m_sTag

Definition at line 83 of file AdditionsDialog.hxx.

Referenced by AdditionsDialog().

◆ m_sURL

OUString AdditionsDialog::m_sURL

Definition at line 82 of file AdditionsDialog.hxx.

Referenced by AdditionsDialog(), and SearchAndParseThread::execute().

◆ m_xButtonClose

std::unique_ptr<weld::Button> AdditionsDialog::m_xButtonClose

Definition at line 70 of file AdditionsDialog.hxx.

Referenced by AdditionsDialog(), and SetProgress().

◆ m_xContentGrid

std::unique_ptr<weld::Container> AdditionsDialog::m_xContentGrid

Definition at line 75 of file AdditionsDialog.hxx.

Referenced by SearchAndParseThread::Append().

◆ m_xContentWindow

std::unique_ptr<weld::ScrolledWindow> AdditionsDialog::m_xContentWindow

Definition at line 74 of file AdditionsDialog.hxx.

◆ m_xEntrySearch

std::unique_ptr<weld::Entry> AdditionsDialog::m_xEntrySearch

Definition at line 69 of file AdditionsDialog.hxx.

Referenced by AdditionsDialog(), and SearchAndParseThread::Search().

◆ m_xExtensionManager

css::uno::Reference<css::deployment::XExtensionManager> AdditionsDialog::m_xExtensionManager

Definition at line 68 of file AdditionsDialog.hxx.

Referenced by AdditionsDialog(), and getInstalledExtensions().

◆ m_xGearBtn

std::unique_ptr<weld::MenuButton> AdditionsDialog::m_xGearBtn

Definition at line 78 of file AdditionsDialog.hxx.

Referenced by AdditionsDialog().

◆ m_xLabelProgress

std::unique_ptr<weld::Label> AdditionsDialog::m_xLabelProgress

Definition at line 77 of file AdditionsDialog.hxx.

Referenced by SetProgress().


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