LibreOffice Module cui (master) 1
Macros | Functions | Variables
autocdlg.cxx File Reference
#include <sal/config.h>
#include <i18nutil/unicode.hxx>
#include <o3tl/safeint.hxx>
#include <utility>
#include <vcl/event.hxx>
#include <vcl/keycodes.hxx>
#include <vcl/settings.hxx>
#include <vcl/transfer.hxx>
#include <sfx2/app.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/viewsh.hxx>
#include <unotools/charclass.hxx>
#include <unotools/collatorwrapper.hxx>
#include <comphelper/processfactory.hxx>
#include <vcl/svapp.hxx>
#include <sfx2/module.hxx>
#include <svl/eitem.hxx>
#include <svl/cjkoptions.hxx>
#include <svl/ctloptions.hxx>
#include <svx/SmartTagMgr.hxx>
#include <com/sun/star/smarttags/XSmartTagRecognizer.hpp>
#include <rtl/strbuf.hxx>
#include <o3tl/temporary.hxx>
#include <osl/diagnose.h>
#include <tools/debug.hxx>
#include <autocdlg.hxx>
#include <editeng/acorrcfg.hxx>
#include <editeng/svxacorr.hxx>
#include <cui/cuicharmap.hxx>
#include <strings.hrc>
#include <dialmgr.hxx>
#include <svx/svxids.hrc>
Include dependency graph for autocdlg.cxx:

Go to the source code of this file.

Macros

#define CBCOL_FIRST   0
 
#define CBCOL_SECOND   1
 
#define CBCOL_BOTH   2
 
#define SGL_START   0
 
#define DBL_START   1
 
#define SGL_END   2
 
#define DBL_END   3
 

Functions

static bool lcl_FindEntry (weld::TreeView &rLB, const OUString &rEntry, CollatorWrapper const &rCmpClass)
 
 IMPL_LINK_NOARG (OfaAutoCorrDlg, SelectLanguageHdl, weld::ComboBox &, void)
 
 IMPL_LINK (OfaSwAutoFmtOptionsPage, SelectHdl, weld::TreeView &, rBox, void)
 
 IMPL_LINK_NOARG (OfaSwAutoFmtOptionsPage, DoubleClickEditHdl, weld::TreeView &, bool)
 
 IMPL_LINK_NOARG (OfaSwAutoFmtOptionsPage, EditHdl, weld::Button &, void)
 
 IMPL_LINK (OfaAutocorrReplacePage, SelectHdl, weld::TreeView &, rBox, void)
 
 IMPL_LINK (OfaAutocorrReplacePage, NewDelButtonHdl, weld::Button &, rBtn, void)
 
 IMPL_LINK (OfaAutocorrReplacePage, NewDelActionHdl, weld::Entry &, rEdit, bool)
 
 IMPL_LINK_NOARG (OfaAutocorrReplacePage, EntrySizeAllocHdl, const Size &, void)
 
 IMPL_LINK (OfaAutocorrReplacePage, ModifyHdl, weld::Entry &, rEdt, void)
 
static bool lcl_FindInArray (std::vector< OUString > &rStrings, std::u16string_view rString)
 
 IMPL_LINK (OfaAutocorrExceptPage, NewDelButtonHdl, weld::Button &, rBtn, void)
 
 IMPL_LINK (OfaAutocorrExceptPage, NewDelActionHdl, weld::Entry &, rEdit, bool)
 
 IMPL_LINK (OfaAutocorrExceptPage, SelectHdl, weld::TreeView &, rBox, void)
 
 IMPL_LINK (OfaAutocorrExceptPage, ModifyHdl, weld::Entry &, rEdt, void)
 
 IMPL_LINK (OfaQuoteTabPage, QuoteHdl, weld::Button &, rBtn, void)
 
 IMPL_LINK (OfaQuoteTabPage, StdQuoteHdl, weld::Button &, rBtn, void)
 
 IMPL_LINK_NOARG (OfaAutoCompleteTabPage, DeleteHdl, weld::Button &, void)
 
 IMPL_LINK (OfaAutoCompleteTabPage, CheckHdl, weld::Toggleable &, rBox, void)
 
 IMPL_LINK (OfaAutoCompleteTabPage, KeyReleaseHdl, const KeyEvent &, rEvent, bool)
 
 IMPL_LINK_NOARG (OfaSmartTagOptionsTabPage, ClickHdl, weld::Button &, void)
 Handler for the push button. More...
 
 IMPL_LINK_NOARG (OfaSmartTagOptionsTabPage, CheckHdl, weld::Toggleable &, void)
 Handler for the check box. More...
 
 IMPL_LINK_NOARG (OfaSmartTagOptionsTabPage, SelectHdl, weld::TreeView &, void)
 Handler for the list box. More...
 

Variables

static LanguageType eLastDialogLanguage = LANGUAGE_SYSTEM
 

Macro Definition Documentation

◆ CBCOL_BOTH

#define CBCOL_BOTH   2

Definition at line 214 of file autocdlg.cxx.

◆ CBCOL_FIRST

#define CBCOL_FIRST   0

Definition at line 212 of file autocdlg.cxx.

◆ CBCOL_SECOND

#define CBCOL_SECOND   1

Definition at line 213 of file autocdlg.cxx.

◆ DBL_END

#define DBL_END   3

Definition at line 1795 of file autocdlg.cxx.

◆ DBL_START

#define DBL_START   1

Definition at line 1793 of file autocdlg.cxx.

◆ SGL_END

#define SGL_END   2

Definition at line 1794 of file autocdlg.cxx.

◆ SGL_START

#define SGL_START   0

Definition at line 1792 of file autocdlg.cxx.

Function Documentation

◆ IMPL_LINK() [1/13]

IMPL_LINK ( OfaAutoCompleteTabPage  ,
CheckHdl  ,
weld::Toggleable ,
rBox  ,
void   
)

Definition at line 2102 of file autocdlg.cxx.

◆ IMPL_LINK() [2/13]

IMPL_LINK ( OfaAutoCompleteTabPage  ,
KeyReleaseHdl  ,
const KeyEvent ,
rEvent  ,
bool   
)

◆ IMPL_LINK() [3/13]

IMPL_LINK ( OfaAutocorrExceptPage  ,
ModifyHdl  ,
weld::Entry ,
rEdt  ,
void   
)

Definition at line 1521 of file autocdlg.cxx.

References lcl_FindEntry().

◆ IMPL_LINK() [4/13]

IMPL_LINK ( OfaAutocorrExceptPage  ,
NewDelActionHdl  ,
weld::Entry ,
rEdit  ,
bool   
)

Definition at line 1466 of file autocdlg.cxx.

◆ IMPL_LINK() [5/13]

IMPL_LINK ( OfaAutocorrExceptPage  ,
NewDelButtonHdl  ,
weld::Button ,
rBtn  ,
void   
)

Definition at line 1461 of file autocdlg.cxx.

◆ IMPL_LINK() [6/13]

IMPL_LINK ( OfaAutocorrExceptPage  ,
SelectHdl  ,
weld::TreeView ,
rBox  ,
void   
)

Definition at line 1505 of file autocdlg.cxx.

◆ IMPL_LINK() [7/13]

IMPL_LINK ( OfaAutocorrReplacePage  ,
ModifyHdl  ,
weld::Entry ,
rEdt  ,
void   
)

Definition at line 1107 of file autocdlg.cxx.

◆ IMPL_LINK() [8/13]

IMPL_LINK ( OfaAutocorrReplacePage  ,
NewDelActionHdl  ,
weld::Entry ,
rEdit  ,
bool   
)

Definition at line 1020 of file autocdlg.cxx.

◆ IMPL_LINK() [9/13]

IMPL_LINK ( OfaAutocorrReplacePage  ,
NewDelButtonHdl  ,
weld::Button ,
rBtn  ,
void   
)

Definition at line 1015 of file autocdlg.cxx.

◆ IMPL_LINK() [10/13]

IMPL_LINK ( OfaAutocorrReplacePage  ,
SelectHdl  ,
weld::TreeView ,
rBox  ,
void   
)

Definition at line 928 of file autocdlg.cxx.

◆ IMPL_LINK() [11/13]

IMPL_LINK ( OfaQuoteTabPage  ,
QuoteHdl  ,
weld::Button ,
rBtn  ,
void   
)

◆ IMPL_LINK() [12/13]

IMPL_LINK ( OfaQuoteTabPage  ,
StdQuoteHdl  ,
weld::Button ,
rBtn  ,
void   
)

Definition at line 1870 of file autocdlg.cxx.

◆ IMPL_LINK() [13/13]

IMPL_LINK ( OfaSwAutoFmtOptionsPage  ,
SelectHdl  ,
weld::TreeView ,
rBox  ,
void   
)

Definition at line 633 of file autocdlg.cxx.

◆ IMPL_LINK_NOARG() [1/8]

IMPL_LINK_NOARG ( OfaAutoCompleteTabPage  ,
DeleteHdl  ,
weld::Button ,
void   
)

Definition at line 2087 of file autocdlg.cxx.

References nPos.

◆ IMPL_LINK_NOARG() [2/8]

IMPL_LINK_NOARG ( OfaAutoCorrDlg  ,
SelectLanguageHdl  ,
weld::ComboBox ,
void   
)

◆ IMPL_LINK_NOARG() [3/8]

IMPL_LINK_NOARG ( OfaAutocorrReplacePage  ,
EntrySizeAllocHdl  ,
const Size ,
void   
)

Definition at line 1025 of file autocdlg.cxx.

References x, and y.

◆ IMPL_LINK_NOARG() [4/8]

IMPL_LINK_NOARG ( OfaSmartTagOptionsTabPage  ,
CheckHdl  ,
weld::Toggleable ,
void   
)

Handler for the check box.

Definition at line 2274 of file autocdlg.cxx.

◆ IMPL_LINK_NOARG() [5/8]

IMPL_LINK_NOARG ( OfaSmartTagOptionsTabPage  ,
ClickHdl  ,
weld::Button ,
void   
)

Handler for the push button.

Definition at line 2260 of file autocdlg.cxx.

References LanguageTag::convertToLocale(), eLastDialogLanguage, and nPos.

◆ IMPL_LINK_NOARG() [6/8]

IMPL_LINK_NOARG ( OfaSmartTagOptionsTabPage  ,
SelectHdl  ,
weld::TreeView ,
void   
)

Handler for the list box.

Definition at line 2290 of file autocdlg.cxx.

References LanguageTag::convertToLocale(), eLastDialogLanguage, and nPos.

◆ IMPL_LINK_NOARG() [7/8]

IMPL_LINK_NOARG ( OfaSwAutoFmtOptionsPage  ,
DoubleClickEditHdl  ,
weld::TreeView ,
bool   
)

Definition at line 638 of file autocdlg.cxx.

◆ IMPL_LINK_NOARG() [8/8]

IMPL_LINK_NOARG ( OfaSwAutoFmtOptionsPage  ,
EditHdl  ,
weld::Button ,
void   
)

◆ lcl_FindEntry()

static bool lcl_FindEntry ( weld::TreeView rLB,
const OUString &  rEntry,
CollatorWrapper const &  rCmpClass 
)
static

◆ lcl_FindInArray()

static bool lcl_FindInArray ( std::vector< OUString > &  rStrings,
std::u16string_view  rString 
)
static

Definition at line 1194 of file autocdlg.cxx.

Referenced by OfaAutocorrExceptPage::FillItemSet().

Variable Documentation

◆ eLastDialogLanguage

LanguageType eLastDialogLanguage = LANGUAGE_SYSTEM
static