LibreOffice Module cui (master) 1
|
#include <autocdlg.hxx>
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 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 | |
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, DoubleStringArray > | aDoubleStringTable |
CollatorWrapper | maCompareClass |
std::unique_ptr< CharClass > | pCharClass |
LanguageType | eLang |
bool | bHasSelectionText |
bool | bFirstSelect:1 |
bool | bReplaceEditChanged:1 |
bool | bSWriter:1 |
std::vector< int > | m_aReplaceFixedWidths |
std::unique_ptr< weld::CheckButton > | m_xTextOnlyCB |
std::unique_ptr< weld::Entry > | m_xShortED |
std::unique_ptr< weld::Entry > | m_xReplaceED |
std::unique_ptr< weld::TreeView > | m_xReplaceTLB |
std::unique_ptr< weld::Button > | m_xNewReplacePB |
std::unique_ptr< weld::Button > | m_xReplacePB |
std::unique_ptr< weld::Button > | m_xDeleteReplacePB |
std::unique_ptr< weld::Container > | m_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 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 |
Definition at line 159 of file autocdlg.hxx.
OfaAutocorrReplacePage::OfaAutocorrReplacePage | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const SfxItemSet & | rSet | ||
) |
Definition at line 682 of file autocdlg.cxx.
References bSWriter, eLastDialogLanguage, SfxModule::GetActiveModule(), LanguageTag::getLocale(), SfxApplication::GetModule(), getProcessComponentContext(), LINK, CollatorWrapper::loadDefaultCollator(), m_aReplaceFixedWidths, m_xButtonBox, m_xDeleteReplacePB, m_xNewReplacePB, m_xReplaceED, m_xReplacePB, m_xReplaceTLB, m_xShortED, maCompareClass, pCharClass, rSet, sModify, and sNew.
|
overridevirtual |
Definition at line 735 of file autocdlg.cxx.
References aChangesTable, aDoubleStringTable, and pCharClass.
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 748 of file autocdlg.cxx.
References eLang, eLastDialogLanguage, SfxTabPage::GetDialogController(), and SetLanguage().
|
static |
Definition at line 743 of file autocdlg.cxx.
References rSet.
Referenced by OfaAutoCorrDlg::OfaAutoCorrDlg().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 755 of file autocdlg.cxx.
|
private |
|
private |
|
private |
|
private |
|
private |
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().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 760 of file autocdlg.cxx.
References aChangesTable, StringChangeList::aDeletedEntries, StringChangeList::aNewEntries, bHasSelectionText, SfxObjectShell::Current(), SvxAutoCorrCfg::Get(), SvxAutoCorrCfg::GetAutoCorrect(), SvxAutoCorrect::MakeCombinedChanges(), DoubleString::pUserData, SvxAutoCorrect::PutText(), DoubleString::sLong, and DoubleString::sShort.
|
private |
Definition at line 1037 of file autocdlg.cxx.
References bHasSelectionText, bReplaceEditChanged, bSWriter, CollatorWrapper::compareString(), DBG_ASSERT, DeleteEntry(), m_xDeleteReplacePB, m_xNewReplacePB, m_xReplaceED, m_xReplaceTLB, m_xShortED, m_xTextOnlyCB, maCompareClass, nCount, NewEntry(), nPos, sId, and weld::toId().
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().
|
private |
Definition at line 801 of file autocdlg.cxx.
References aChangesTable, aDoubleStringTable, aFormatText, bSWriter, eLang, m_aReplaceFixedWidths, m_xReplaceTLB, nIndex, and DoubleString::pUserData.
Referenced by Reset(), and SetLanguage().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 906 of file autocdlg.cxx.
References eLang, m_xShortED, and RefillReplaceBox().
void OfaAutocorrReplacePage::SetLanguage | ( | LanguageType | eSet | ) |
Definition at line 912 of file autocdlg.cxx.
References eLang, eLastDialogLanguage, LanguageTag::getLocale(), comphelper::getProcessComponentContext(), CollatorWrapper::loadDefaultCollator(), m_xShortED, maCompareClass, pCharClass, and RefillReplaceBox().
Referenced by ActivatePage(), and IMPL_LINK_NOARG().
|
private |
Definition at line 163 of file autocdlg.hxx.
Referenced by DeleteEntry(), FillItemSet(), NewEntry(), RefillReplaceBox(), and ~OfaAutocorrReplacePage().
|
private |
Definition at line 170 of file autocdlg.hxx.
Referenced by RefillReplaceBox(), and ~OfaAutocorrReplacePage().
|
private |
Definition at line 168 of file autocdlg.hxx.
Referenced by RefillReplaceBox().
|
private |
Definition at line 176 of file autocdlg.hxx.
|
private |
Definition at line 175 of file autocdlg.hxx.
Referenced by FillItemSet(), NewDelHdl(), and NewEntry().
|
private |
Definition at line 177 of file autocdlg.hxx.
Referenced by NewDelHdl().
|
private |
Definition at line 178 of file autocdlg.hxx.
Referenced by NewDelHdl(), OfaAutocorrReplacePage(), and RefillReplaceBox().
|
private |
Definition at line 173 of file autocdlg.hxx.
Referenced by ActivatePage(), DeleteEntry(), NewEntry(), RefillReplaceBox(), Reset(), and SetLanguage().
|
private |
Definition at line 180 of file autocdlg.hxx.
Referenced by OfaAutocorrReplacePage(), and RefillReplaceBox().
|
private |
Definition at line 188 of file autocdlg.hxx.
Referenced by OfaAutocorrReplacePage().
|
private |
Definition at line 187 of file autocdlg.hxx.
Referenced by NewDelHdl(), and OfaAutocorrReplacePage().
|
private |
Definition at line 185 of file autocdlg.hxx.
Referenced by NewDelHdl(), and OfaAutocorrReplacePage().
|
private |
Definition at line 183 of file autocdlg.hxx.
Referenced by NewDelHdl(), and OfaAutocorrReplacePage().
|
private |
Definition at line 186 of file autocdlg.hxx.
Referenced by OfaAutocorrReplacePage().
|
private |
Definition at line 184 of file autocdlg.hxx.
Referenced by NewDelHdl(), OfaAutocorrReplacePage(), and RefillReplaceBox().
|
private |
Definition at line 182 of file autocdlg.hxx.
Referenced by NewDelHdl(), OfaAutocorrReplacePage(), Reset(), and SetLanguage().
|
private |
Definition at line 181 of file autocdlg.hxx.
Referenced by NewDelHdl().
|
private |
Definition at line 171 of file autocdlg.hxx.
Referenced by NewDelHdl(), OfaAutocorrReplacePage(), and SetLanguage().
|
private |
Definition at line 172 of file autocdlg.hxx.
Referenced by OfaAutocorrReplacePage(), SetLanguage(), and ~OfaAutocorrReplacePage().
|
private |
Definition at line 165 of file autocdlg.hxx.
Referenced by OfaAutocorrReplacePage().
|
private |
Definition at line 166 of file autocdlg.hxx.
Referenced by OfaAutocorrReplacePage().