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

Smart tag options tab page. More...

#include <autocdlg.hxx>

Inheritance diagram for OfaSmartTagOptionsTabPage:
Collaboration diagram for OfaSmartTagOptionsTabPage:

Public Member Functions

 OfaSmartTagOptionsTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
 construction via Create() More...
virtual ~OfaSmartTagOptionsTabPage () override
virtual bool FillItemSet (SfxItemSet *rSet) override
 Propagates the current settings to the smart tag manager. More...
virtual void Reset (const SfxItemSet *rSet) override
 Sets the controls based on the current settings at SmartTagMgr. More...
virtual void ActivatePage (const SfxItemSet &) override
- 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 *rAttrSet)
- 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

void FillListBox (const SmartTagMgr &rSmartTagMgr)
 Inserts items into m_aSmartTagTypesLB. More...
void ClearListBox ()
 Clears the m_aSmartTagTypesLB. More...
 DECL_LINK (CheckHdl, weld::Toggleable &, void)
 Handler for the check box. More...
 DECL_LINK (ClickHdl, weld::Button &, void)
 Handler for the push button. More...
 DECL_LINK (SelectHdl, weld::TreeView &, void)
 Handler for the list box. More...

Private Attributes

std::unique_ptr< weld::CheckButtonm_xMainCB
std::unique_ptr< weld::TreeViewm_xSmartTagTypesLB
std::unique_ptr< weld::Buttonm_xPropertiesPB

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

Smart tag options tab page.

This tab page is used to enable/disable smart tag types

Definition at line 369 of file autocdlg.hxx.

Constructor & Destructor Documentation

◆ OfaSmartTagOptionsTabPage()

OfaSmartTagOptionsTabPage::OfaSmartTagOptionsTabPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 

construction via Create()

Definition at line 2159 of file autocdlg.cxx.

References weld::Check, LINK, m_xMainCB, m_xPropertiesPB, m_xSmartTagTypesLB, and rSet.

◆ ~OfaSmartTagOptionsTabPage()

OfaSmartTagOptionsTabPage::~OfaSmartTagOptionsTabPage ( )

Definition at line 2177 of file autocdlg.cxx.

Member Function Documentation

◆ ActivatePage()

void OfaSmartTagOptionsTabPage::ActivatePage ( const SfxItemSet )

Reimplemented from SfxTabPage.

Definition at line 2366 of file autocdlg.cxx.

References SfxTabPage::GetDialogController().

◆ ClearListBox()

void OfaSmartTagOptionsTabPage::ClearListBox ( )

Clears the m_aSmartTagTypesLB.

Clears m_xSmartTagTypesLB.

Definition at line 2208 of file autocdlg.cxx.

References i, m_xSmartTagTypesLB, and nCount.

Referenced by FillListBox().

◆ Create()

std::unique_ptr< SfxTabPage > OfaSmartTagOptionsTabPage::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rAttrSet 

Definition at line 2181 of file autocdlg.cxx.

References rSet.

Referenced by OfaAutoCorrDlg::OfaAutoCorrDlg().

◆ DECL_LINK() [1/3]

OfaSmartTagOptionsTabPage::DECL_LINK ( CheckHdl  ,
weld::Toggleable ,

Handler for the check box.

Enables/disables all controls in the tab page (except from the check box.

◆ DECL_LINK() [2/3]

OfaSmartTagOptionsTabPage::DECL_LINK ( ClickHdl  ,
weld::Button ,

Handler for the push button.

Calls the displayPropertyPage function of the smart tag recognizer associated with the currently selected smart tag type.

◆ DECL_LINK() [3/3]

OfaSmartTagOptionsTabPage::DECL_LINK ( SelectHdl  ,
weld::TreeView ,

Handler for the list box.

Enables/disables the properties push button if selection in the smart tag types list box changes.

◆ FillItemSet()

bool OfaSmartTagOptionsTabPage::FillItemSet ( SfxItemSet rSet)

◆ FillListBox()

void OfaSmartTagOptionsTabPage::FillListBox ( const SmartTagMgr rSmartTagMgr)

Inserts items into m_aSmartTagTypesLB.

Inserts items into m_xSmartTagTypesLB.

Reads out the smart tag types supported by the SmartTagMgr and inserts the associated strings into the list box.

Definition at line 2222 of file autocdlg.cxx.

References aName, ClearListBox(), LanguageTag::convertToLocale(), eLastDialogLanguage, SmartTagMgr::GetRecognizer(), SmartTagMgr::GetSmartTagCaption(), i, SmartTagMgr::IsSmartTagTypeEnabled(), m_xSmartTagTypesLB, SmartTagMgr::NumberOfRecognizers(), weld::toId(), TRISTATE_FALSE, and TRISTATE_TRUE.

Referenced by Reset().

◆ Reset()

void OfaSmartTagOptionsTabPage::Reset ( const SfxItemSet rSet)

Member Data Documentation

◆ m_xMainCB

std::unique_ptr<weld::CheckButton> OfaSmartTagOptionsTabPage::m_xMainCB

Definition at line 374 of file autocdlg.hxx.

Referenced by FillItemSet(), OfaSmartTagOptionsTabPage(), and Reset().

◆ m_xPropertiesPB

std::unique_ptr<weld::Button> OfaSmartTagOptionsTabPage::m_xPropertiesPB

Definition at line 376 of file autocdlg.hxx.

Referenced by OfaSmartTagOptionsTabPage().

◆ m_xSmartTagTypesLB

std::unique_ptr<weld::TreeView> OfaSmartTagOptionsTabPage::m_xSmartTagTypesLB

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