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:
[legend]
Collaboration diagram for OfaSmartTagOptionsTabPage:
[legend]

Public Member Functions

 OfaSmartTagOptionsTabPage (TabPageParent pParent, 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
 
virtual void dispose () override
 
const SfxItemSetGetItemSet () const
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet)
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData ()
 
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 SfxItemSetGetDialogExampleSet () const
 
OString GetConfigId () const
 
weld::WindowGetDialogFrameWeld () const
 

Static Public Member Functions

static VclPtr< SfxTabPageCreate (TabPageParent pParent, 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::ToggleButton &, 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 (vcl::Window *pParent, const OString &rID, const OUString &rUIXMLDescription, const SfxItemSet *rAttrSet)
 
 SfxTabPage (TabPageParent pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 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
 
- Protected Attributes inherited from SfxTabPage
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 

Detailed Description

Smart tag options tab page.

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

Definition at line 380 of file autocdlg.hxx.

Constructor & Destructor Documentation

OfaSmartTagOptionsTabPage::OfaSmartTagOptionsTabPage ( TabPageParent  pParent,
const SfxItemSet rSet 
)

construction via Create()

Definition at line 2116 of file autocdlg.cxx.

References LINK, m_xMainCB, m_xPropertiesPB, and m_xSmartTagTypesLB.

OfaSmartTagOptionsTabPage::~OfaSmartTagOptionsTabPage ( )
overridevirtual

Definition at line 2136 of file autocdlg.cxx.

Member Function Documentation

void OfaSmartTagOptionsTabPage::ActivatePage ( const SfxItemSet )
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 2322 of file autocdlg.cxx.

References SfxTabPage::GetDialogController().

void OfaSmartTagOptionsTabPage::ClearListBox ( )
private

Clears the m_aSmartTagTypesLB.

Clears m_xSmartTagTypesLB.

Definition at line 2164 of file autocdlg.cxx.

References i, and m_xSmartTagTypesLB.

Referenced by FillListBox().

VclPtr< SfxTabPage > OfaSmartTagOptionsTabPage::Create ( TabPageParent  pParent,
const SfxItemSet rAttrSet 
)
static

Definition at line 2141 of file autocdlg.cxx.

References VclPtr< reference_type >::Create().

Referenced by OfaAutoCorrDlg::OfaAutoCorrDlg().

OfaSmartTagOptionsTabPage::DECL_LINK ( CheckHdl  ,
weld::ToggleButton ,
void   
)
private

Handler for the check box.

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

OfaSmartTagOptionsTabPage::DECL_LINK ( ClickHdl  ,
weld::Button ,
void   
)
private

Handler for the push button.

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

OfaSmartTagOptionsTabPage::DECL_LINK ( SelectHdl  ,
weld::TreeView ,
void   
)
private

Handler for the list box.

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

bool OfaSmartTagOptionsTabPage::FillItemSet ( SfxItemSet rSet)
overridevirtual
void OfaSmartTagOptionsTabPage::FillListBox ( const SmartTagMgr rSmartTagMgr)
private

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 2178 of file autocdlg.cxx.

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

Referenced by Reset().

void OfaSmartTagOptionsTabPage::Reset ( const SfxItemSet rSet)
overridevirtual

Member Data Documentation

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

Definition at line 387 of file autocdlg.hxx.

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

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

Definition at line 389 of file autocdlg.hxx.

Referenced by OfaSmartTagOptionsTabPage().

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

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