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

#include <cfg.hxx>

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

Public Member Functions

 SvxIconSelectorDialog (weld::Window *pWindow, css::uno::Reference< css::ui::XImageManager > xImageManager, css::uno::Reference< css::ui::XImageManager > xParentImageManager)
 
virtual ~SvxIconSelectorDialog () override
 
css::uno::Reference< css::graphic::XGraphic > GetSelectedIcon ()
 
 DECL_LINK (SelectHdl, ValueSet *, void)
 
 DECL_LINK (ImportHdl, weld::Button &, void)
 
 DECL_LINK (DeleteHdl, weld::Button &, void)
 
- 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
 

Private Member Functions

bool ReplaceGraphicItem (const OUString &aURL)
 
bool ImportGraphic (const OUString &aURL)
 
void ImportGraphics (const css::uno::Sequence< OUString > &aURLs)
 

Private Attributes

sal_Int32 m_nExpectedSize
 
css::uno::Reference< css::ui::XImageManager > m_xImageManager
 
css::uno::Reference< css::ui::XImageManager > m_xParentImageManager
 
css::uno::Reference< css::ui::XImageManager > m_xImportedImageManager
 
css::uno::Reference< css::graphic::XGraphicProvider > m_xGraphProvider
 
std::vector< css::uno::Reference< css::graphic::XGraphic > > m_aGraphics
 
std::unique_ptr< ValueSetm_xTbSymbol
 
std::unique_ptr< weld::CustomWeldm_xTbSymbolWin
 
std::unique_ptr< weld::Labelm_xFtNote
 
std::unique_ptr< weld::Buttonm_xBtnImport
 
std::unique_ptr< weld::Buttonm_xBtnDelete
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 620 of file cfg.hxx.

Constructor & Destructor Documentation

◆ SvxIconSelectorDialog()

SvxIconSelectorDialog::SvxIconSelectorDialog ( weld::Window pWindow,
css::uno::Reference< css::ui::XImageManager >  xImageManager,
css::uno::Reference< css::ui::XImageManager >  xParentImageManager 
)

◆ ~SvxIconSelectorDialog()

SvxIconSelectorDialog::~SvxIconSelectorDialog ( )
overridevirtual

Definition at line 2867 of file cfg.cxx.

Member Function Documentation

◆ DECL_LINK() [1/3]

SvxIconSelectorDialog::DECL_LINK ( DeleteHdl  ,
weld::Button ,
void   
)

◆ DECL_LINK() [2/3]

SvxIconSelectorDialog::DECL_LINK ( ImportHdl  ,
weld::Button ,
void   
)

◆ DECL_LINK() [3/3]

SvxIconSelectorDialog::DECL_LINK ( SelectHdl  ,
ValueSet ,
void   
)

◆ GetSelectedIcon()

uno::Reference< graphic::XGraphic > SvxIconSelectorDialog::GetSelectedIcon ( )

Definition at line 2871 of file cfg.cxx.

References m_aGraphics, m_xTbSymbol, nId, and result.

Referenced by IMPL_LINK().

◆ ImportGraphic()

bool SvxIconSelectorDialog::ImportGraphic ( const OUString &  aURL)
private

◆ ImportGraphics()

void SvxIconSelectorDialog::ImportGraphics ( const css::uno::Sequence< OUString > &  aURLs)
private

◆ ReplaceGraphicItem()

bool SvxIconSelectorDialog::ReplaceGraphicItem ( const OUString &  aURL)
private

Member Data Documentation

◆ m_aGraphics

std::vector<css::uno::Reference<css::graphic::XGraphic> > SvxIconSelectorDialog::m_aGraphics
private

Definition at line 637 of file cfg.hxx.

Referenced by GetSelectedIcon(), ImportGraphic(), ReplaceGraphicItem(), and SvxIconSelectorDialog().

◆ m_nExpectedSize

sal_Int32 SvxIconSelectorDialog::m_nExpectedSize
private

Definition at line 623 of file cfg.hxx.

Referenced by ImportGraphic(), ReplaceGraphicItem(), and SvxIconSelectorDialog().

◆ m_xBtnDelete

std::unique_ptr<weld::Button> SvxIconSelectorDialog::m_xBtnDelete
private

Definition at line 643 of file cfg.hxx.

Referenced by SvxIconSelectorDialog().

◆ m_xBtnImport

std::unique_ptr<weld::Button> SvxIconSelectorDialog::m_xBtnImport
private

Definition at line 642 of file cfg.hxx.

Referenced by SvxIconSelectorDialog().

◆ m_xFtNote

std::unique_ptr<weld::Label> SvxIconSelectorDialog::m_xFtNote
private

Definition at line 641 of file cfg.hxx.

Referenced by SvxIconSelectorDialog().

◆ m_xGraphProvider

css::uno::Reference< css::graphic::XGraphicProvider > SvxIconSelectorDialog::m_xGraphProvider
private

Definition at line 635 of file cfg.hxx.

Referenced by ImportGraphic(), ReplaceGraphicItem(), and SvxIconSelectorDialog().

◆ m_xImageManager

css::uno::Reference< css::ui::XImageManager > SvxIconSelectorDialog::m_xImageManager
private

Definition at line 626 of file cfg.hxx.

Referenced by SvxIconSelectorDialog().

◆ m_xImportedImageManager

css::uno::Reference< css::ui::XImageManager > SvxIconSelectorDialog::m_xImportedImageManager
private

Definition at line 632 of file cfg.hxx.

Referenced by ImportGraphic(), ImportGraphics(), ReplaceGraphicItem(), and SvxIconSelectorDialog().

◆ m_xParentImageManager

css::uno::Reference< css::ui::XImageManager > SvxIconSelectorDialog::m_xParentImageManager
private

Definition at line 629 of file cfg.hxx.

Referenced by SvxIconSelectorDialog().

◆ m_xTbSymbol

std::unique_ptr<ValueSet> SvxIconSelectorDialog::m_xTbSymbol
private

Definition at line 639 of file cfg.hxx.

Referenced by GetSelectedIcon(), ImportGraphic(), ReplaceGraphicItem(), and SvxIconSelectorDialog().

◆ m_xTbSymbolWin

std::unique_ptr<weld::CustomWeld> SvxIconSelectorDialog::m_xTbSymbolWin
private

Definition at line 640 of file cfg.hxx.


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