LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
SwTranslateLangSelectDlg Class Referencefinal

#include <translatelangselect.hxx>

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

Public Member Functions

 SwTranslateLangSelectDlg (weld::Window *pParent, SwWrtShell &rSh)
 
- 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 std::optional< SwLanguageListItemGetSelectedLanguage ()
 
- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 

Static Public Attributes

static int selectedLangIdx = -1
 

Private Member Functions

 DECL_STATIC_LINK (SwTranslateLangSelectDlg, LangSelectHdl, weld::ComboBox &, void)
 
 DECL_LINK (LangSelectCancelHdl, weld::Button &, void)
 
 DECL_LINK (LangSelectTranslateHdl, weld::Button &, void)
 

Private Attributes

SwWrtShellm_rWrtSh
 
std::unique_ptr< weld::ComboBoxm_xLanguageListBox
 
std::unique_ptr< weld::Buttonm_xBtnCancel
 
std::unique_ptr< weld::Buttonm_xBtnTranslate
 
bool m_bTranslationStarted
 
bool m_bCancelTranslation
 

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 47 of file translatelangselect.hxx.

Constructor & Destructor Documentation

◆ SwTranslateLangSelectDlg()

SwTranslateLangSelectDlg::SwTranslateLangSelectDlg ( weld::Window pParent,
SwWrtShell rSh 
)

Member Function Documentation

◆ DECL_LINK() [1/2]

SwTranslateLangSelectDlg::DECL_LINK ( LangSelectCancelHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/2]

SwTranslateLangSelectDlg::DECL_LINK ( LangSelectTranslateHdl  ,
weld::Button ,
void   
)
private

◆ DECL_STATIC_LINK()

SwTranslateLangSelectDlg::DECL_STATIC_LINK ( SwTranslateLangSelectDlg  ,
LangSelectHdl  ,
weld::ComboBox ,
void   
)
private

◆ GetSelectedLanguage()

std::optional< SwLanguageListItem > SwTranslateLangSelectDlg::GetSelectedLanguage ( )
static

Member Data Documentation

◆ m_bCancelTranslation

bool SwTranslateLangSelectDlg::m_bCancelTranslation
private

Definition at line 61 of file translatelangselect.hxx.

◆ m_bTranslationStarted

bool SwTranslateLangSelectDlg::m_bTranslationStarted
private

Definition at line 60 of file translatelangselect.hxx.

◆ m_rWrtSh

SwWrtShell& SwTranslateLangSelectDlg::m_rWrtSh
private

Definition at line 55 of file translatelangselect.hxx.

◆ m_xBtnCancel

std::unique_ptr<weld::Button> SwTranslateLangSelectDlg::m_xBtnCancel
private

Definition at line 57 of file translatelangselect.hxx.

Referenced by SwTranslateLangSelectDlg().

◆ m_xBtnTranslate

std::unique_ptr<weld::Button> SwTranslateLangSelectDlg::m_xBtnTranslate
private

Definition at line 58 of file translatelangselect.hxx.

Referenced by SwTranslateLangSelectDlg().

◆ m_xLanguageListBox

std::unique_ptr<weld::ComboBox> SwTranslateLangSelectDlg::m_xLanguageListBox
private

Definition at line 56 of file translatelangselect.hxx.

Referenced by SwTranslateLangSelectDlg().

◆ selectedLangIdx

int SwTranslateLangSelectDlg::selectedLangIdx = -1
static

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