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 <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/langtab.hxx>
#include <sal/log.hxx>
#include <i18nlangtag/languagetag.hxx>
Include dependency graph for SpellDialog.cxx:

Go to the source code of this file.

Classes

struct  SpellDialog_Impl
 
class  svx::SpellUndoAction_Impl
 

Namespaces

 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::Button &, 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 OString &, rIdent, void)
 
 IMPL_LINK_NOARG (SpellDialog, ModifyHdl, LinkParamNone *, void)
 
 IMPL_LINK_NOARG (SpellDialog, CancelHdl, weld::Button &, void)
 
 IMPL_LINK (SentenceEditWindow_Impl, ToolbarHdl, const OString &, rCurItemId, void)
 
static void lcl_InsertBreakPosition_Impl (LanguagePositions_Impl &rBreakPositions, sal_Int32 nInsert, LanguageType eLanguage)
 

Macro Definition Documentation

#define ACTION_CONTINUE   1

Definition at line 1214 of file SpellDialog.cxx.

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

#define ACTION_EXPAND   3

Definition at line 1216 of file SpellDialog.cxx.

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

#define ACTION_SELECTFIELD   2

Definition at line 1215 of file SpellDialog.cxx.

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

#define ACTION_UNDOEDIT   0

Definition at line 1213 of file SpellDialog.cxx.

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

#define BRACE   6

Definition at line 1209 of file SpellDialog.cxx.

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

#define FULL   4

Definition at line 1207 of file SpellDialog.cxx.

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

#define INSIDE_NO   2

Definition at line 1205 of file SpellDialog.cxx.

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

#define INSIDE_YES   5

Definition at line 1208 of file SpellDialog.cxx.

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

#define INVALID   0

Definition at line 1203 of file SpellDialog.cxx.

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

#define LEFT_NO   1

Definition at line 1204 of file SpellDialog.cxx.

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

#define OUTSIDE_NO   7

Definition at line 1210 of file SpellDialog.cxx.

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

#define OUTSIDE_YES   8

Definition at line 1211 of file SpellDialog.cxx.

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

#define RIGHT_NO   3

Definition at line 1206 of file SpellDialog.cxx.

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

#define SPELLUNDO_ADD_IGNORE_RULE   (SPELLUNDO_START + 8)

Definition at line 80 of file SpellDialog.cxx.

Referenced by IMPL_LINK().

#define SPELLUNDO_CHANGE_ADD_TO_DICTIONARY   (SPELLUNDO_START + 4)
#define SPELLUNDO_CHANGE_GROUP   (SPELLUNDO_START + 5)
#define SPELLUNDO_CHANGE_LANGUAGE   (SPELLUNDO_START + 1)

Definition at line 73 of file SpellDialog.cxx.

Referenced by IMPL_LINK_NOARG().

#define SPELLUNDO_CHANGE_NEXTERROR   (SPELLUNDO_START + 3)

Definition at line 75 of file SpellDialog.cxx.

Referenced by IMPL_LINK(), and svx::SentenceEditWindow_Impl::MarkNextError().

#define SPELLUNDO_CHANGE_TEXTENGINE   (SPELLUNDO_START + 2)

Definition at line 74 of file SpellDialog.cxx.

Referenced by IMPL_LINK(), and IMPL_LINK_NOARG().

#define SPELLUNDO_MOVE_ERROREND   (SPELLUNDO_START + 6)

Definition at line 78 of file SpellDialog.cxx.

Referenced by svx::SentenceEditWindow_Impl::ChangeMarkedWord(), and IMPL_LINK().

#define SPELLUNDO_START   200

Definition at line 71 of file SpellDialog.cxx.

#define SPELLUNDO_UNDO_EDIT_MODE   (SPELLUNDO_START + 7)

Typedef Documentation

typedef std::vector<LanguagePosition_Impl> LanguagePositions_Impl

Definition at line 1823 of file SpellDialog.cxx.

Function Documentation

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

Definition at line 414 of file SpellDialog.cxx.

References SvxPrepareAutoCorrect().

IMPL_LINK ( SpellDialog  ,
IgnoreAllHdl  ,
weld::Button ,
rButton  ,
void   
)
IMPL_LINK ( SpellDialog  ,
DialogUndoHdl  ,
SpellUndoAction_Impl &  ,
rAction  ,
void   
)
IMPL_LINK ( SpellDialog  ,
AddToDictSelectHdl  ,
const OString &  ,
rIdent  ,
void   
)

Definition at line 812 of file SpellDialog.cxx.

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

Definition at line 1495 of file SpellDialog.cxx.

References vcl::GetGetSpecialCharsFunction().

IMPL_LINK_NOARG ( SpellDialog  ,
InitHdl  ,
void ,
void   
)

Definition at line 386 of file SpellDialog.cxx.

References m_xDialog.

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

Definition at line 447 of file SpellDialog.cxx.

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

Definition at line 502 of file SpellDialog.cxx.

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

Definition at line 508 of file SpellDialog.cxx.

References SPELLUNDO_CHANGE_GROUP.

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

Definition at line 600 of file SpellDialog.cxx.

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

Definition at line 667 of file SpellDialog.cxx.

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

Definition at line 807 of file SpellDialog.cxx.

IMPL_LINK_NOARG ( SpellDialog  ,
ModifyHdl  ,
LinkParamNone ,
void   
)

Definition at line 864 of file SpellDialog.cxx.

References SPELLUNDO_CHANGE_TEXTENGINE.

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

Definition at line 883 of file SpellDialog.cxx.

References Close.

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

Definition at line 1825 of file SpellDialog.cxx.

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