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

#include <autocdlg.hxx>

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

Public Member Functions

 OfaAutocorrReplacePage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
 
virtual ~OfaAutocorrReplacePage () override
 
virtual bool FillItemSet (SfxItemSet *rSet) override
 
virtual void Reset (const SfxItemSet *rSet) override
 
virtual void ActivatePage (const SfxItemSet &) override
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet) override
 
void SetLanguage (LanguageType eSet)
 
void DeleteEntry (const OUString &sShort, const OUString &sLong)
 
void NewEntry (const OUString &sShort, const OUString &sLong, bool bKeepSourceFormatting)
 
- 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

 DECL_LINK (SelectHdl, weld::TreeView &, void)
 
 DECL_LINK (NewDelButtonHdl, weld::Button &, void)
 
 DECL_LINK (NewDelActionHdl, weld::Entry &, bool)
 
 DECL_LINK (EntrySizeAllocHdl, const Size &, void)
 
 DECL_LINK (ModifyHdl, weld::Entry &, void)
 
bool NewDelHdl (const weld::Widget *)
 
void RefillReplaceBox (bool bFromReset, LanguageType eOldLanguage, LanguageType eNewLanguage)
 

Private Attributes

StringChangeTable aChangesTable
 
OUString sModify
 
OUString sNew
 
std::set< OUString > aFormatText
 
std::map< LanguageType, DoubleStringArrayaDoubleStringTable
 
CollatorWrapper maCompareClass
 
std::unique_ptr< CharClasspCharClass
 
LanguageType eLang
 
bool bHasSelectionText
 
bool bFirstSelect:1
 
bool bReplaceEditChanged:1
 
bool bSWriter:1
 
std::vector< intm_aReplaceFixedWidths
 
std::unique_ptr< weld::CheckButtonm_xTextOnlyCB
 
std::unique_ptr< weld::Entrym_xShortED
 
std::unique_ptr< weld::Entrym_xReplaceED
 
std::unique_ptr< weld::TreeViewm_xReplaceTLB
 
std::unique_ptr< weld::Buttonm_xNewReplacePB
 
std::unique_ptr< weld::Buttonm_xReplacePB
 
std::unique_ptr< weld::Buttonm_xDeleteReplacePB
 
std::unique_ptr< weld::Containerm_xButtonBox
 

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

Definition at line 159 of file autocdlg.hxx.

Constructor & Destructor Documentation

◆ OfaAutocorrReplacePage()

OfaAutocorrReplacePage::OfaAutocorrReplacePage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)

◆ ~OfaAutocorrReplacePage()

OfaAutocorrReplacePage::~OfaAutocorrReplacePage ( )
overridevirtual

Definition at line 735 of file autocdlg.cxx.

References aChangesTable, aDoubleStringTable, and pCharClass.

Member Function Documentation

◆ ActivatePage()

void OfaAutocorrReplacePage::ActivatePage ( const SfxItemSet )
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 748 of file autocdlg.cxx.

References eLang, eLastDialogLanguage, SfxTabPage::GetDialogController(), and SetLanguage().

◆ Create()

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

Definition at line 743 of file autocdlg.cxx.

References rSet.

Referenced by OfaAutoCorrDlg::OfaAutoCorrDlg().

◆ DeactivatePage()

DeactivateRC OfaAutocorrReplacePage::DeactivatePage ( SfxItemSet pSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 755 of file autocdlg.cxx.

◆ DECL_LINK() [1/5]

OfaAutocorrReplacePage::DECL_LINK ( EntrySizeAllocHdl  ,
const Size ,
void   
)
private

◆ DECL_LINK() [2/5]

OfaAutocorrReplacePage::DECL_LINK ( ModifyHdl  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [3/5]

OfaAutocorrReplacePage::DECL_LINK ( NewDelActionHdl  ,
weld::Entry ,
bool   
)
private

◆ DECL_LINK() [4/5]

OfaAutocorrReplacePage::DECL_LINK ( NewDelButtonHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [5/5]

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

◆ DeleteEntry()

void OfaAutocorrReplacePage::DeleteEntry ( const OUString &  sShort,
const OUString &  sLong 
)

Definition at line 989 of file autocdlg.cxx.

References aChangesTable, eLang, and i.

Referenced by NewDelHdl().

◆ FillItemSet()

bool OfaAutocorrReplacePage::FillItemSet ( SfxItemSet rSet)
overridevirtual

◆ NewDelHdl()

bool OfaAutocorrReplacePage::NewDelHdl ( const weld::Widget pBtn)
private

◆ NewEntry()

void OfaAutocorrReplacePage::NewEntry ( const OUString &  sShort,
const OUString &  sLong,
bool  bKeepSourceFormatting 
)

Definition at line 961 of file autocdlg.cxx.

References aChangesTable, bHasSelectionText, eLang, and i.

Referenced by NewDelHdl().

◆ RefillReplaceBox()

void OfaAutocorrReplacePage::RefillReplaceBox ( bool  bFromReset,
LanguageType  eOldLanguage,
LanguageType  eNewLanguage 
)
private

◆ Reset()

void OfaAutocorrReplacePage::Reset ( const SfxItemSet rSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 906 of file autocdlg.cxx.

References eLang, m_xShortED, and RefillReplaceBox().

◆ SetLanguage()

void OfaAutocorrReplacePage::SetLanguage ( LanguageType  eSet)

Member Data Documentation

◆ aChangesTable

StringChangeTable OfaAutocorrReplacePage::aChangesTable
private

◆ aDoubleStringTable

std::map<LanguageType, DoubleStringArray> OfaAutocorrReplacePage::aDoubleStringTable
private

Definition at line 170 of file autocdlg.hxx.

Referenced by RefillReplaceBox(), and ~OfaAutocorrReplacePage().

◆ aFormatText

std::set<OUString> OfaAutocorrReplacePage::aFormatText
private

Definition at line 168 of file autocdlg.hxx.

Referenced by RefillReplaceBox().

◆ bFirstSelect

bool OfaAutocorrReplacePage::bFirstSelect
private

Definition at line 176 of file autocdlg.hxx.

◆ bHasSelectionText

bool OfaAutocorrReplacePage::bHasSelectionText
private

Definition at line 175 of file autocdlg.hxx.

Referenced by FillItemSet(), NewDelHdl(), and NewEntry().

◆ bReplaceEditChanged

bool OfaAutocorrReplacePage::bReplaceEditChanged
private

Definition at line 177 of file autocdlg.hxx.

Referenced by NewDelHdl().

◆ bSWriter

bool OfaAutocorrReplacePage::bSWriter
private

Definition at line 178 of file autocdlg.hxx.

Referenced by NewDelHdl(), OfaAutocorrReplacePage(), and RefillReplaceBox().

◆ eLang

LanguageType OfaAutocorrReplacePage::eLang
private

Definition at line 173 of file autocdlg.hxx.

Referenced by ActivatePage(), DeleteEntry(), NewEntry(), RefillReplaceBox(), Reset(), and SetLanguage().

◆ m_aReplaceFixedWidths

std::vector<int> OfaAutocorrReplacePage::m_aReplaceFixedWidths
private

Definition at line 180 of file autocdlg.hxx.

Referenced by OfaAutocorrReplacePage(), and RefillReplaceBox().

◆ m_xButtonBox

std::unique_ptr<weld::Container> OfaAutocorrReplacePage::m_xButtonBox
private

Definition at line 188 of file autocdlg.hxx.

Referenced by OfaAutocorrReplacePage().

◆ m_xDeleteReplacePB

std::unique_ptr<weld::Button> OfaAutocorrReplacePage::m_xDeleteReplacePB
private

Definition at line 187 of file autocdlg.hxx.

Referenced by NewDelHdl(), and OfaAutocorrReplacePage().

◆ m_xNewReplacePB

std::unique_ptr<weld::Button> OfaAutocorrReplacePage::m_xNewReplacePB
private

Definition at line 185 of file autocdlg.hxx.

Referenced by NewDelHdl(), and OfaAutocorrReplacePage().

◆ m_xReplaceED

std::unique_ptr<weld::Entry> OfaAutocorrReplacePage::m_xReplaceED
private

Definition at line 183 of file autocdlg.hxx.

Referenced by NewDelHdl(), and OfaAutocorrReplacePage().

◆ m_xReplacePB

std::unique_ptr<weld::Button> OfaAutocorrReplacePage::m_xReplacePB
private

Definition at line 186 of file autocdlg.hxx.

Referenced by OfaAutocorrReplacePage().

◆ m_xReplaceTLB

std::unique_ptr<weld::TreeView> OfaAutocorrReplacePage::m_xReplaceTLB
private

Definition at line 184 of file autocdlg.hxx.

Referenced by NewDelHdl(), OfaAutocorrReplacePage(), and RefillReplaceBox().

◆ m_xShortED

std::unique_ptr<weld::Entry> OfaAutocorrReplacePage::m_xShortED
private

Definition at line 182 of file autocdlg.hxx.

Referenced by NewDelHdl(), OfaAutocorrReplacePage(), Reset(), and SetLanguage().

◆ m_xTextOnlyCB

std::unique_ptr<weld::CheckButton> OfaAutocorrReplacePage::m_xTextOnlyCB
private

Definition at line 181 of file autocdlg.hxx.

Referenced by NewDelHdl().

◆ maCompareClass

CollatorWrapper OfaAutocorrReplacePage::maCompareClass
private

Definition at line 171 of file autocdlg.hxx.

Referenced by NewDelHdl(), OfaAutocorrReplacePage(), and SetLanguage().

◆ pCharClass

std::unique_ptr<CharClass> OfaAutocorrReplacePage::pCharClass
private

Definition at line 172 of file autocdlg.hxx.

Referenced by OfaAutocorrReplacePage(), SetLanguage(), and ~OfaAutocorrReplacePage().

◆ sModify

OUString OfaAutocorrReplacePage::sModify
private

Definition at line 165 of file autocdlg.hxx.

Referenced by OfaAutocorrReplacePage().

◆ sNew

OUString OfaAutocorrReplacePage::sNew
private

Definition at line 166 of file autocdlg.hxx.

Referenced by OfaAutocorrReplacePage().


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