LibreOffice Module sc (master) 1
Macros | Functions
validate.cxx File Reference
#include <com/sun/star/sheet/TableValidationVisibility.hpp>
#include <comphelper/string.hxx>
#include <svl/stritem.hxx>
#include <svl/eitem.hxx>
#include <svl/intitem.hxx>
#include <sfx2/app.hxx>
#include <o3tl/string_view.hxx>
#include <scresid.hxx>
#include <strings.hrc>
#include <stringutil.hxx>
#include <validat.hxx>
#include <validate.hxx>
#include <compiler.hxx>
#include <formula/opcode.hxx>
#include <tabvwsh.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/childwin.hxx>
#include <reffact.hxx>
#include <comphelper/lok.hxx>
Include dependency graph for validate.cxx:

Go to the source code of this file.

Macros

#define IS_MOBILE   (comphelper::LibreOfficeKit::isActive() && SfxViewShell::Current() && SfxViewShell::Current()->isLOKMobilePhone())
 
#define SC_VALIDDLG_ALLOW_ANY   0
 
#define SC_VALIDDLG_ALLOW_WHOLE   1
 
#define SC_VALIDDLG_ALLOW_DECIMAL   2
 
#define SC_VALIDDLG_ALLOW_DATE   3
 
#define SC_VALIDDLG_ALLOW_TIME   4
 
#define SC_VALIDDLG_ALLOW_RANGE   5
 
#define SC_VALIDDLG_ALLOW_LIST   6
 
#define SC_VALIDDLG_ALLOW_TEXTLEN   7
 
#define SC_VALIDDLG_ALLOW_CUSTOM   8
 
#define SC_VALIDDLG_DATA_EQUAL   0
 
#define SC_VALIDDLG_DATA_LESS   1
 
#define SC_VALIDDLG_DATA_GREATER   2
 
#define SC_VALIDDLG_DATA_EQLESS   3
 
#define SC_VALIDDLG_DATA_EQGREATER   4
 
#define SC_VALIDDLG_DATA_NOTEQUAL   5
 
#define SC_VALIDDLG_DATA_VALIDRANGE   6
 
#define SC_VALIDDLG_DATA_INVALIDRANGE   7
 
#define SC_VALIDDLG_DATA_DIRECT   8
 

Functions

 IMPL_LINK_NOARG (ScTPValidationValue, EditSetFocusHdl, formula::RefEdit &, void)
 
 IMPL_LINK (ScTPValidationValue, KillEditFocusHdl, formula::RefEdit &, rWnd, void)
 
 IMPL_LINK (ScTPValidationValue, KillButtonFocusHdl, formula::RefButton &, rWnd, void)
 
 IMPL_LINK_NOARG (ScTPValidationValue, SelectHdl, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (ScTPValidationValue, CheckHdl, weld::Toggleable &, void)
 
 IMPL_LINK_NOARG (ScTPValidationError, SelectActionHdl, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (ScTPValidationError, ClickSearchHdl, weld::Button &, void)
 
 IMPL_LINK_NOARG (ScTPValidationValue, ClickHdl, formula::RefButton &, void)
 

Macro Definition Documentation

◆ IS_MOBILE

#define IS_MOBILE   (comphelper::LibreOfficeKit::isActive() && SfxViewShell::Current() && SfxViewShell::Current()->isLOKMobilePhone())

Definition at line 49 of file validate.cxx.

◆ SC_VALIDDLG_ALLOW_ANY

#define SC_VALIDDLG_ALLOW_ANY   0

Definition at line 54 of file validate.cxx.

◆ SC_VALIDDLG_ALLOW_CUSTOM

#define SC_VALIDDLG_ALLOW_CUSTOM   8

Definition at line 62 of file validate.cxx.

◆ SC_VALIDDLG_ALLOW_DATE

#define SC_VALIDDLG_ALLOW_DATE   3

Definition at line 57 of file validate.cxx.

◆ SC_VALIDDLG_ALLOW_DECIMAL

#define SC_VALIDDLG_ALLOW_DECIMAL   2

Definition at line 56 of file validate.cxx.

◆ SC_VALIDDLG_ALLOW_LIST

#define SC_VALIDDLG_ALLOW_LIST   6

Definition at line 60 of file validate.cxx.

◆ SC_VALIDDLG_ALLOW_RANGE

#define SC_VALIDDLG_ALLOW_RANGE   5

Definition at line 59 of file validate.cxx.

◆ SC_VALIDDLG_ALLOW_TEXTLEN

#define SC_VALIDDLG_ALLOW_TEXTLEN   7

Definition at line 61 of file validate.cxx.

◆ SC_VALIDDLG_ALLOW_TIME

#define SC_VALIDDLG_ALLOW_TIME   4

Definition at line 58 of file validate.cxx.

◆ SC_VALIDDLG_ALLOW_WHOLE

#define SC_VALIDDLG_ALLOW_WHOLE   1

Definition at line 55 of file validate.cxx.

◆ SC_VALIDDLG_DATA_DIRECT

#define SC_VALIDDLG_DATA_DIRECT   8

Definition at line 75 of file validate.cxx.

◆ SC_VALIDDLG_DATA_EQGREATER

#define SC_VALIDDLG_DATA_EQGREATER   4

Definition at line 71 of file validate.cxx.

◆ SC_VALIDDLG_DATA_EQLESS

#define SC_VALIDDLG_DATA_EQLESS   3

Definition at line 70 of file validate.cxx.

◆ SC_VALIDDLG_DATA_EQUAL

#define SC_VALIDDLG_DATA_EQUAL   0

Definition at line 67 of file validate.cxx.

◆ SC_VALIDDLG_DATA_GREATER

#define SC_VALIDDLG_DATA_GREATER   2

Definition at line 69 of file validate.cxx.

◆ SC_VALIDDLG_DATA_INVALIDRANGE

#define SC_VALIDDLG_DATA_INVALIDRANGE   7

Definition at line 74 of file validate.cxx.

◆ SC_VALIDDLG_DATA_LESS

#define SC_VALIDDLG_DATA_LESS   1

Definition at line 68 of file validate.cxx.

◆ SC_VALIDDLG_DATA_NOTEQUAL

#define SC_VALIDDLG_DATA_NOTEQUAL   5

Definition at line 72 of file validate.cxx.

◆ SC_VALIDDLG_DATA_VALIDRANGE

#define SC_VALIDDLG_DATA_VALIDRANGE   6

Definition at line 73 of file validate.cxx.

Function Documentation

◆ IMPL_LINK() [1/2]

IMPL_LINK ( ScTPValidationValue  ,
KillButtonFocusHdl  ,
formula::RefButton ,
rWnd  ,
void   
)

Definition at line 621 of file validate.cxx.

◆ IMPL_LINK() [2/2]

IMPL_LINK ( ScTPValidationValue  ,
KillEditFocusHdl  ,
formula::RefEdit ,
rWnd  ,
void   
)

Definition at line 605 of file validate.cxx.

◆ IMPL_LINK_NOARG() [1/6]

IMPL_LINK_NOARG ( ScTPValidationError  ,
ClickSearchHdl  ,
weld::Button ,
void   
)

Definition at line 829 of file validate.cxx.

References SfxApplication::ChooseScript(), and GetFrameWeld().

◆ IMPL_LINK_NOARG() [2/6]

IMPL_LINK_NOARG ( ScTPValidationError  ,
SelectActionHdl  ,
weld::ComboBox ,
void   
)

Definition at line 819 of file validate.cxx.

References SC_VALERR_MACRO.

◆ IMPL_LINK_NOARG() [3/6]

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

Definition at line 692 of file validate.cxx.

◆ IMPL_LINK_NOARG() [4/6]

IMPL_LINK_NOARG ( ScTPValidationValue  ,
ClickHdl  ,
formula::RefButton ,
void   
)

Definition at line 921 of file validate.cxx.

◆ IMPL_LINK_NOARG() [5/6]

IMPL_LINK_NOARG ( ScTPValidationValue  ,
EditSetFocusHdl  ,
formula::RefEdit ,
void   
)

Definition at line 595 of file validate.cxx.

References nPos, and SC_VALIDDLG_ALLOW_RANGE.

◆ IMPL_LINK_NOARG() [6/6]

IMPL_LINK_NOARG ( ScTPValidationValue  ,
SelectHdl  ,
weld::ComboBox ,
void   
)