LibreOffice Module cui (master) 1
|
#include <AdditionsDialog.hxx>
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 Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () 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::Entry > | m_xEntrySearch |
std::unique_ptr< weld::Button > | m_xButtonClose |
std::vector< std::shared_ptr< AdditionsItem > > | m_aAdditionsItems |
std::vector< AdditionInfo > | m_aAllExtensionsVector |
std::unique_ptr< weld::ScrolledWindow > | m_xContentWindow |
std::unique_ptr< weld::Container > | m_xContentGrid |
std::unique_ptr< weld::Label > | m_xLabelProgress |
std::unique_ptr< weld::MenuButton > | m_xGearBtn |
::rtl::Reference< SearchAndParseThread > | m_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::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 56 of file AdditionsDialog.hxx.
AdditionsDialog::AdditionsDialog | ( | weld::Window * | pParent, |
const OUString & | sAdditionsTag | ||
) |
Definition at line 421 of file AdditionsDialog.cxx.
References i18nutil::SearchOptions2::AlgorithmType2, INetURLObject::All, CuiResId(), EDIT_UPDATEDATA_TIMEOUT, INetURLObject::encode(), LINK, m_aSearchDataTimer, m_nCurrentListItemCount, m_nMaxItemCount, m_pSearchThread, m_searchOptions, m_sTag, m_sURL, m_xButtonClose, m_xEntrySearch, m_xExtensionManager, m_xGearBtn, PAGE_SIZE, INetURLObject::PART_PCHAR, i18nutil::SearchOptions2::searchFlag, weld::DialogController::set_title(), Timer::SetInvokeHandler(), Timer::SetTimeout(), and i18nutil::SearchOptions2::transliterateFlags.
|
override |
Definition at line 496 of file AdditionsDialog.cxx.
References m_pSearchThread.
void AdditionsDialog::ClearList | ( | ) |
Definition at line 555 of file AdditionsDialog.cxx.
References m_aAdditionsItems.
Referenced by RefreshUI().
|
private |
|
private |
|
private |
|
private |
|
private |
uno::Sequence< uno::Sequence< uno::Reference< deployment::XPackage > > > AdditionsDialog::getInstalledExtensions | ( | ) |
Definition at line 510 of file AdditionsDialog.cxx.
References cppu::getCaughtException(), m_xExtensionManager, and TOOLS_WARN_EXCEPTION.
Referenced by SearchAndParseThread::CheckInstalledExtensions().
void AdditionsDialog::RefreshUI | ( | ) |
Definition at line 567 of file AdditionsDialog.cxx.
References ClearList(), m_nCurrentListItemCount, m_nMaxItemCount, m_pSearchThread, and PAGE_SIZE.
void AdditionsDialog::SetProgress | ( | const OUString & | rProgress | ) |
Definition at line 539 of file AdditionsDialog.cxx.
References m_xButtonClose, weld::GenericDialogController::m_xDialog, and m_xLabelProgress.
Referenced by SearchAndParseThread::execute().
|
static |
Definition at line 583 of file AdditionsDialog.cxx.
References a, and AdditionInfo::sCommentNumber.
|
static |
Definition at line 588 of file AdditionsDialog.cxx.
References a, and AdditionInfo::sDownloadNumber.
Referenced by SearchAndParseThread::execute().
|
static |
Definition at line 578 of file AdditionsDialog.cxx.
References a, and AdditionInfo::sRating.
std::vector<std::shared_ptr<AdditionsItem> > AdditionsDialog::m_aAdditionsItems |
Definition at line 71 of file AdditionsDialog.hxx.
Referenced by AdditionsItem::AdditionsItem(), SearchAndParseThread::Append(), SearchAndParseThread::CheckInstalledExtensions(), and ClearList().
std::vector<AdditionInfo> AdditionsDialog::m_aAllExtensionsVector |
Definition at line 72 of file AdditionsDialog.hxx.
Referenced by SearchAndParseThread::Append(), SearchAndParseThread::execute(), and SearchAndParseThread::Search().
|
private |
Definition at line 59 of file AdditionsDialog.hxx.
Referenced by AdditionsDialog().
size_t AdditionsDialog::m_nCurrentListItemCount |
Definition at line 86 of file AdditionsDialog.hxx.
Referenced by AdditionsDialog(), SearchAndParseThread::Append(), RefreshUI(), and SearchAndParseThread::Search().
size_t AdditionsDialog::m_nMaxItemCount |
Definition at line 85 of file AdditionsDialog.hxx.
Referenced by AdditionsDialog(), SearchAndParseThread::Append(), RefreshUI(), and SearchAndParseThread::Search().
::rtl::Reference<SearchAndParseThread> AdditionsDialog::m_pSearchThread |
Definition at line 80 of file AdditionsDialog.hxx.
Referenced by AdditionsDialog(), RefreshUI(), and ~AdditionsDialog().
i18nutil::SearchOptions2 AdditionsDialog::m_searchOptions |
Definition at line 87 of file AdditionsDialog.hxx.
Referenced by AdditionsDialog(), SearchAndParseThread::CheckInstalledExtensions(), and SearchAndParseThread::Search().
OUString AdditionsDialog::m_sTag |
Definition at line 83 of file AdditionsDialog.hxx.
Referenced by AdditionsDialog().
OUString AdditionsDialog::m_sURL |
Definition at line 82 of file AdditionsDialog.hxx.
Referenced by AdditionsDialog(), and SearchAndParseThread::execute().
std::unique_ptr<weld::Button> AdditionsDialog::m_xButtonClose |
Definition at line 70 of file AdditionsDialog.hxx.
Referenced by AdditionsDialog(), and SetProgress().
std::unique_ptr<weld::Container> AdditionsDialog::m_xContentGrid |
Definition at line 75 of file AdditionsDialog.hxx.
Referenced by SearchAndParseThread::Append().
std::unique_ptr<weld::ScrolledWindow> AdditionsDialog::m_xContentWindow |
Definition at line 74 of file AdditionsDialog.hxx.
std::unique_ptr<weld::Entry> AdditionsDialog::m_xEntrySearch |
Definition at line 69 of file AdditionsDialog.hxx.
Referenced by AdditionsDialog(), and SearchAndParseThread::Search().
css::uno::Reference<css::deployment::XExtensionManager> AdditionsDialog::m_xExtensionManager |
Definition at line 68 of file AdditionsDialog.hxx.
Referenced by AdditionsDialog(), and getInstalledExtensions().
std::unique_ptr<weld::MenuButton> AdditionsDialog::m_xGearBtn |
Definition at line 78 of file AdditionsDialog.hxx.
Referenced by AdditionsDialog().
std::unique_ptr<weld::Label> AdditionsDialog::m_xLabelProgress |
Definition at line 77 of file AdditionsDialog.hxx.
Referenced by SetProgress().