LibreOffice Module cui (master) 1
Classes | Namespaces | Macros | Typedefs | Functions
SpellDialog.cxx File Reference
#include <memory>
#include "SpellAttrib.hxx"
#include <sfx2/bindings.hxx>
#include <sfx2/sfxsids.hrc>
#include <sfx2/viewfrm.hxx>
#include <svl/grabbagitem.hxx>
#include <svl/undo.hxx>
#include <tools/debug.hxx>
#include <unotools/lingucfg.hxx>
#include <editeng/colritem.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/langitem.hxx>
#include <editeng/splwrap.hxx>
#include <editeng/unolingu.hxx>
#include <editeng/wghtitem.hxx>
#include <linguistic/misc.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/linguistic2/XDictionary.hpp>
#include <com/sun/star/linguistic2/XSpellAlternatives.hpp>
#include <com/sun/star/linguistic2/XSearchableDictionaryList.hpp>
#include <com/sun/star/linguistic2/XSpellChecker1.hpp>
#include <sfx2/app.hxx>
#include <rtl/ustrbuf.hxx>
#include <vcl/specialchars.hxx>
#include <vcl/event.hxx>
#include <vcl/svapp.hxx>
#include <vcl/texteng.hxx>
#include <vcl/weld.hxx>
#include <svx/SpellDialogChildWindow.hxx>
#include <SpellDialog.hxx>
#include <optlingu.hxx>
#include <treeopt.hxx>
#include <svtools/colorcfg.hxx>
#include <svtools/langtab.hxx>
#include <sal/log.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <comphelper/lok.hxx>
Include dependency graph for SpellDialog.cxx:

Go to the source code of this file.

Classes

struct  SpellDialog_Impl
 
class  svx::SpellUndoAction_Impl
 
class  UndoChangeGroupGuard
 

Namespaces

namespace  svx
 

Macros

#define SPELLUNDO_START   200
 
#define SPELLUNDO_CHANGE_LANGUAGE   (SPELLUNDO_START + 1)
 
#define SPELLUNDO_CHANGE_TEXTENGINE   (SPELLUNDO_START + 2)
 
#define SPELLUNDO_CHANGE_NEXTERROR   (SPELLUNDO_START + 3)
 
#define SPELLUNDO_CHANGE_ADD_TO_DICTIONARY   (SPELLUNDO_START + 4)
 
#define SPELLUNDO_CHANGE_GROUP   (SPELLUNDO_START + 5)
 
#define SPELLUNDO_MOVE_ERROREND   (SPELLUNDO_START + 6)
 
#define SPELLUNDO_UNDO_EDIT_MODE   (SPELLUNDO_START + 7)
 
#define SPELLUNDO_ADD_IGNORE_RULE   (SPELLUNDO_START + 8)
 
#define INVALID   0
 
#define LEFT_NO   1
 
#define INSIDE_NO   2
 
#define RIGHT_NO   3
 
#define FULL   4
 
#define INSIDE_YES   5
 
#define BRACE   6
 
#define OUTSIDE_NO   7
 
#define OUTSIDE_YES   8
 
#define ACTION_UNDOEDIT   0
 
#define ACTION_CONTINUE   1
 
#define ACTION_SELECTFIELD   2
 
#define ACTION_EXPAND   3
 

Typedefs

typedef std::vector< LanguagePosition_Impl > LanguagePositions_Impl
 

Functions

 IMPL_LINK_NOARG (SpellDialog, InitHdl, void *, void)
 
 IMPL_LINK (SpellDialog, ExtClickHdl, weld::Button &, rBtn, void)
 
 IMPL_LINK_NOARG (SpellDialog, CheckGrammarHdl, weld::Toggleable &, void)
 
 IMPL_LINK_NOARG (SpellDialog, DoubleClickChangeHdl, weld::TreeView &, bool)
 
 IMPL_LINK_NOARG (SpellDialog, ChangeHdl, weld::Button &, void)
 
 IMPL_LINK_NOARG (SpellDialog, ChangeAllHdl, weld::Button &, void)
 
 IMPL_LINK (SpellDialog, IgnoreAllHdl, weld::Button &, rButton, void)
 
 IMPL_LINK_NOARG (SpellDialog, UndoHdl, weld::Button &, void)
 
 IMPL_LINK (SpellDialog, DialogUndoHdl, SpellUndoAction_Impl &, rAction, void)
 
 IMPL_LINK_NOARG (SpellDialog, IgnoreHdl, weld::Button &, void)
 
 IMPL_LINK_NOARG (SpellDialog, LanguageSelectHdl, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (SpellDialog, AddToDictClickHdl, weld::Button &, void)
 
 IMPL_LINK (SpellDialog, AddToDictSelectHdl, const OUString &, rIdent, void)
 
 IMPL_LINK_NOARG (SpellDialog, ModifyHdl, LinkParamNone *, void)
 
 IMPL_LINK_NOARG (SpellDialog, CancelHdl, weld::Button &, void)
 
 IMPL_LINK (SentenceEditWindow_Impl, ToolbarHdl, const OUString &, rCurItemId, void)
 
static void lcl_InsertBreakPosition_Impl (LanguagePositions_Impl &rBreakPositions, sal_Int32 nInsert, LanguageType eLanguage)
 

Macro Definition Documentation

◆ ACTION_CONTINUE

#define ACTION_CONTINUE   1

Definition at line 1257 of file SpellDialog.cxx.

◆ ACTION_EXPAND

#define ACTION_EXPAND   3

Definition at line 1259 of file SpellDialog.cxx.

◆ ACTION_SELECTFIELD

#define ACTION_SELECTFIELD   2

Definition at line 1258 of file SpellDialog.cxx.

◆ ACTION_UNDOEDIT

#define ACTION_UNDOEDIT   0

Definition at line 1256 of file SpellDialog.cxx.

◆ BRACE

#define BRACE   6

Definition at line 1252 of file SpellDialog.cxx.

◆ FULL

#define FULL   4

Definition at line 1250 of file SpellDialog.cxx.

◆ INSIDE_NO

#define INSIDE_NO   2

Definition at line 1248 of file SpellDialog.cxx.

◆ INSIDE_YES

#define INSIDE_YES   5

Definition at line 1251 of file SpellDialog.cxx.

◆ INVALID

#define INVALID   0

Definition at line 1246 of file SpellDialog.cxx.

◆ LEFT_NO

#define LEFT_NO   1

Definition at line 1247 of file SpellDialog.cxx.

◆ OUTSIDE_NO

#define OUTSIDE_NO   7

Definition at line 1253 of file SpellDialog.cxx.

◆ OUTSIDE_YES

#define OUTSIDE_YES   8

Definition at line 1254 of file SpellDialog.cxx.

◆ RIGHT_NO

#define RIGHT_NO   3

Definition at line 1249 of file SpellDialog.cxx.

◆ SPELLUNDO_ADD_IGNORE_RULE

#define SPELLUNDO_ADD_IGNORE_RULE   (SPELLUNDO_START + 8)

Definition at line 83 of file SpellDialog.cxx.

◆ SPELLUNDO_CHANGE_ADD_TO_DICTIONARY

#define SPELLUNDO_CHANGE_ADD_TO_DICTIONARY   (SPELLUNDO_START + 4)

Definition at line 79 of file SpellDialog.cxx.

◆ SPELLUNDO_CHANGE_GROUP

#define SPELLUNDO_CHANGE_GROUP   (SPELLUNDO_START + 5)

Definition at line 80 of file SpellDialog.cxx.

◆ SPELLUNDO_CHANGE_LANGUAGE

#define SPELLUNDO_CHANGE_LANGUAGE   (SPELLUNDO_START + 1)

Definition at line 76 of file SpellDialog.cxx.

◆ SPELLUNDO_CHANGE_NEXTERROR

#define SPELLUNDO_CHANGE_NEXTERROR   (SPELLUNDO_START + 3)

Definition at line 78 of file SpellDialog.cxx.

◆ SPELLUNDO_CHANGE_TEXTENGINE

#define SPELLUNDO_CHANGE_TEXTENGINE   (SPELLUNDO_START + 2)

Definition at line 77 of file SpellDialog.cxx.

◆ SPELLUNDO_MOVE_ERROREND

#define SPELLUNDO_MOVE_ERROREND   (SPELLUNDO_START + 6)

Definition at line 81 of file SpellDialog.cxx.

◆ SPELLUNDO_START

#define SPELLUNDO_START   200

Definition at line 74 of file SpellDialog.cxx.

◆ SPELLUNDO_UNDO_EDIT_MODE

#define SPELLUNDO_UNDO_EDIT_MODE   (SPELLUNDO_START + 7)

Definition at line 82 of file SpellDialog.cxx.

Typedef Documentation

◆ LanguagePositions_Impl

typedef std::vector<LanguagePosition_Impl> LanguagePositions_Impl

Definition at line 1875 of file SpellDialog.cxx.

Function Documentation

◆ IMPL_LINK() [1/5]

IMPL_LINK ( SentenceEditWindow_Impl  ,
ToolbarHdl  ,
const OUString &  ,
rCurItemId  ,
void   
)

Definition at line 1538 of file SpellDialog.cxx.

References vcl::GetGetSpecialCharsFunction().

◆ IMPL_LINK() [2/5]

IMPL_LINK ( SpellDialog  ,
AddToDictSelectHdl  ,
const OUString &  ,
rIdent  ,
void   
)

Definition at line 848 of file SpellDialog.cxx.

◆ IMPL_LINK() [3/5]

IMPL_LINK ( SpellDialog  ,
DialogUndoHdl  ,
SpellUndoAction_Impl &  ,
rAction  ,
void   
)

◆ IMPL_LINK() [4/5]

IMPL_LINK ( SpellDialog  ,
ExtClickHdl  ,
weld::Button ,
rBtn  ,
void   
)

Definition at line 428 of file SpellDialog.cxx.

References SvxPrepareAutoCorrect().

◆ IMPL_LINK() [5/5]

IMPL_LINK ( SpellDialog  ,
IgnoreAllHdl  ,
weld::Button ,
rButton  ,
void   
)

◆ IMPL_LINK_NOARG() [1/11]

IMPL_LINK_NOARG ( SpellDialog  ,
AddToDictClickHdl  ,
weld::Button ,
void   
)

Definition at line 843 of file SpellDialog.cxx.

◆ IMPL_LINK_NOARG() [2/11]

IMPL_LINK_NOARG ( SpellDialog  ,
CancelHdl  ,
weld::Button ,
void   
)

Definition at line 918 of file SpellDialog.cxx.

References Close.

◆ IMPL_LINK_NOARG() [3/11]

IMPL_LINK_NOARG ( SpellDialog  ,
ChangeAllHdl  ,
weld::Button ,
void   
)

◆ IMPL_LINK_NOARG() [4/11]

IMPL_LINK_NOARG ( SpellDialog  ,
ChangeHdl  ,
weld::Button ,
void   
)

Definition at line 548 of file SpellDialog.cxx.

◆ IMPL_LINK_NOARG() [5/11]

IMPL_LINK_NOARG ( SpellDialog  ,
CheckGrammarHdl  ,
weld::Toggleable ,
void   
)

Definition at line 463 of file SpellDialog.cxx.

◆ IMPL_LINK_NOARG() [6/11]

IMPL_LINK_NOARG ( SpellDialog  ,
DoubleClickChangeHdl  ,
weld::TreeView ,
bool   
)

Definition at line 521 of file SpellDialog.cxx.

◆ IMPL_LINK_NOARG() [7/11]

IMPL_LINK_NOARG ( SpellDialog  ,
IgnoreHdl  ,
weld::Button ,
void   
)

Definition at line 704 of file SpellDialog.cxx.

◆ IMPL_LINK_NOARG() [8/11]

IMPL_LINK_NOARG ( SpellDialog  ,
InitHdl  ,
void *  ,
void   
)

Definition at line 397 of file SpellDialog.cxx.

References m_xDialog.

◆ IMPL_LINK_NOARG() [9/11]

IMPL_LINK_NOARG ( SpellDialog  ,
LanguageSelectHdl  ,
weld::ComboBox ,
void   
)

◆ IMPL_LINK_NOARG() [10/11]

IMPL_LINK_NOARG ( SpellDialog  ,
ModifyHdl  ,
LinkParamNone ,
void   
)

Definition at line 899 of file SpellDialog.cxx.

References SPELLUNDO_CHANGE_TEXTENGINE.

◆ IMPL_LINK_NOARG() [11/11]

IMPL_LINK_NOARG ( SpellDialog  ,
UndoHdl  ,
weld::Button ,
void   
)

Definition at line 637 of file SpellDialog.cxx.

◆ lcl_InsertBreakPosition_Impl()

static void lcl_InsertBreakPosition_Impl ( LanguagePositions_Impl rBreakPositions,
sal_Int32  nInsert,
LanguageType  eLanguage 
)
static

Definition at line 1877 of file SpellDialog.cxx.

Referenced by svx::SentenceEditWindow_Impl::CreateSpellPortions().