LibreOffice Module cui (master) 1
|
Smart tag options tab page. More...
#include <autocdlg.hxx>
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 SfxItemSet & | GetItemSet () 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 SfxItemSet * | GetDialogExampleSet () const |
OUString | GetHelpId () const |
OUString | GetConfigId () const |
bool | IsVisible () const |
weld::Window * | GetFrameWeld () const |
std::unordered_map< OUString, css::uno::Any > & | getAdditionalProperties () |
Static Public Member Functions | |
static std::unique_ptr< SfxTabPage > | Create (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet) |
Static Public Member Functions inherited from SfxTabPage | |
static const SfxPoolItem * | GetItem (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::CheckButton > | m_xMainCB |
std::unique_ptr< weld::TreeView > | m_xSmartTagTypesLB |
std::unique_ptr< weld::Button > | m_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 SfxPoolItem * | GetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true) |
const T * | GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true) |
SfxOkDialogController * | GetDialogController () const |
Smart tag options tab page.
This tab page is used to enable/disable smart tag types
Definition at line 369 of file autocdlg.hxx.
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.
|
overridevirtual |
Definition at line 2177 of file autocdlg.cxx.
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 2366 of file autocdlg.cxx.
References SfxTabPage::GetDialogController().
|
private |
Clears the m_aSmartTagTypesLB.
Clears m_xSmartTagTypesLB.
Definition at line 2208 of file autocdlg.cxx.
References i, m_xSmartTagTypesLB, and nCount.
Referenced by FillListBox().
|
static |
Definition at line 2181 of file autocdlg.cxx.
References rSet.
Referenced by OfaAutoCorrDlg::OfaAutoCorrDlg().
|
private |
Handler for the check box.
Enables/disables all controls in the tab page (except from the check box.
|
private |
Handler for the push button.
Calls the displayPropertyPage function of the smart tag recognizer associated with the currently selected smart tag type.
|
private |
Handler for the list box.
Enables/disables the properties push button if selection in the smart tag types list box changes.
|
overridevirtual |
Propagates the current settings to the smart tag manager.
Reimplemented from SfxTabPage.
Definition at line 2308 of file autocdlg.cxx.
References SvxAutoCorrCfg::Get(), SvxAutoCorrCfg::GetAutoCorrect(), SvxAutoCorrect::GetSwFlags(), i, SmartTagMgr::IsLabelTextWithSmartTags(), SmartTagMgr::IsSmartTagTypeEnabled(), m_xMainCB, m_xSmartTagTypesLB, nCount, SvxSwAutoFormatFlags::pSmartTagMgr, TRISTATE_TRUE, and SmartTagMgr::WriteConfiguration().
|
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 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().
|
overridevirtual |
Sets the controls based on the current settings at SmartTagMgr.
Reimplemented from SfxTabPage.
Definition at line 2350 of file autocdlg.cxx.
References FillListBox(), SvxAutoCorrCfg::Get(), SvxAutoCorrCfg::GetAutoCorrect(), SvxAutoCorrect::GetSwFlags(), SmartTagMgr::IsLabelTextWithSmartTags(), m_xMainCB, m_xSmartTagTypesLB, and SvxSwAutoFormatFlags::pSmartTagMgr.
|
private |
Definition at line 374 of file autocdlg.hxx.
Referenced by FillItemSet(), OfaSmartTagOptionsTabPage(), and Reset().
|
private |
Definition at line 376 of file autocdlg.hxx.
Referenced by OfaSmartTagOptionsTabPage().
|
private |
Definition at line 375 of file autocdlg.hxx.
Referenced by ClearListBox(), FillItemSet(), FillListBox(), OfaSmartTagOptionsTabPage(), and Reset().