LibreOffice Module sc (master) 1
Macros | Functions
inputhdl.cxx File Reference
#include <iterator>
#include <memory>
#include <string_view>
#include <inputhdl.hxx>
#include <scitems.hxx>
#include <editeng/eeitem.hxx>
#include <sfx2/app.hxx>
#include <editeng/acorrcfg.hxx>
#include <formula/errorcodes.hxx>
#include <editeng/adjustitem.hxx>
#include <editeng/brushitem.hxx>
#include <svtools/colorcfg.hxx>
#include <editeng/colritem.hxx>
#include <editeng/editobj.hxx>
#include <editeng/editstat.hxx>
#include <editeng/editview.hxx>
#include <editeng/langitem.hxx>
#include <editeng/svxacorr.hxx>
#include <editeng/unolingu.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/justifyitem.hxx>
#include <editeng/misspellrange.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/printer.hxx>
#include <svl/numformat.hxx>
#include <svl/zforlist.hxx>
#include <unotools/localedatawrapper.hxx>
#include <unotools/charclass.hxx>
#include <utility>
#include <vcl/help.hxx>
#include <vcl/jsdialog/executor.hxx>
#include <vcl/commandevent.hxx>
#include <vcl/cursor.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
#include <tools/urlobj.hxx>
#include <formula/formulahelper.hxx>
#include <formula/funcvarargs.h>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <comphelper/lok.hxx>
#include <osl/diagnose.h>
#include <attrib.hxx>
#include <inputwin.hxx>
#include <tabvwsh.hxx>
#include <docsh.hxx>
#include <scmod.hxx>
#include <formulaopt.hxx>
#include <uiitems.hxx>
#include <global.hxx>
#include <sc.hrc>
#include <globstr.hrc>
#include <scresid.hxx>
#include <patattr.hxx>
#include <viewdata.hxx>
#include <document.hxx>
#include <docpool.hxx>
#include <editutil.hxx>
#include <appoptio.hxx>
#include <docoptio.hxx>
#include <validat.hxx>
#include <rfindlst.hxx>
#include <inputopt.hxx>
#include <simpleformulacalc.hxx>
#include <compiler.hxx>
#include <editable.hxx>
#include <funcdesc.hxx>
#include <markdata.hxx>
#include <tokenarray.hxx>
#include <gridwin.hxx>
#include <output.hxx>
#include <fillinfo.hxx>
Include dependency graph for inputhdl.cxx:

Go to the source code of this file.

Macros

#define RANGEFIND_MAX   128
 

Functions

static void incPos (const sal_Unicode c, sal_Int32 &rPos, ESelection &rSel)
 
static void lcl_Replace (EditView *pView, const OUString &rNewStr, const ESelection &rOldSel)
 
static OUString GetEditText (const EditEngine *pEng)
 
static void lcl_RemoveTabs (OUString &rStr)
 
static void lcl_RemoveLineEnd (OUString &rStr)
 
static sal_Int32 lcl_MatchParenthesis (const OUString &rStr, sal_Int32 nPos)
 
 IMPL_LINK (ScInputHandler, ShowHideTipVisibleParentListener, VclWindowEvent &, rEvent, void)
 
 IMPL_LINK (ScInputHandler, ShowHideTipVisibleSecParentListener, VclWindowEvent &, rEvent, void)
 
static OUString lcl_Calculate (const OUString &rFormula, ScDocument &rDoc, const ScAddress &rPos)
 
static void lcl_SetTopSelection (EditView *pEditView, ESelection &rSel)
 
 IMPL_LINK_NOARG (ScInputHandler, ModifyHdl, LinkParamNone *, void)
 
static bool lcl_IsNumber (std::u16string_view aString)
 
static void lcl_SelectionToEnd (EditView *pView)
 
 IMPL_LINK_NOARG (ScInputHandler, DelayTimer, Timer *, void)
 

Macro Definition Documentation

◆ RANGEFIND_MAX

#define RANGEFIND_MAX   128

Definition at line 98 of file inputhdl.cxx.

Function Documentation

◆ GetEditText()

static OUString GetEditText ( const EditEngine pEng)
static

◆ IMPL_LINK() [1/2]

IMPL_LINK ( ScInputHandler  ,
ShowHideTipVisibleParentListener  ,
VclWindowEvent ,
rEvent  ,
void   
)

Definition at line 1086 of file inputhdl.cxx.

◆ IMPL_LINK() [2/2]

IMPL_LINK ( ScInputHandler  ,
ShowHideTipVisibleSecParentListener  ,
VclWindowEvent ,
rEvent  ,
void   
)

Definition at line 1093 of file inputhdl.cxx.

◆ IMPL_LINK_NOARG() [1/2]

IMPL_LINK_NOARG ( ScInputHandler  ,
DelayTimer  ,
Timer ,
void   
)

New method at ScModule to query if function autopilot is open

Definition at line 4405 of file inputhdl.cxx.

References SfxViewFrame::Current(), SfxViewFrame::GetChildWindow(), and SC_MOD.

◆ IMPL_LINK_NOARG() [2/2]

IMPL_LINK_NOARG ( ScInputHandler  ,
ModifyHdl  ,
LinkParamNone ,
void   
)

◆ incPos()

static void incPos ( const sal_Unicode  c,
sal_Int32 &  rPos,
ESelection rSel 
)
inlinestatic

◆ lcl_Calculate()

static OUString lcl_Calculate ( const OUString &  rFormula,
ScDocument rDoc,
const ScAddress rPos 
)
static

◆ lcl_IsNumber()

static bool lcl_IsNumber ( std::u16string_view  aString)
static
Returns
true if rString only contains digits (no autocorrect then)

Definition at line 3044 of file inputhdl.cxx.

References i.

Referenced by ScInputHandler::EnterHandler().

◆ lcl_MatchParenthesis()

static sal_Int32 lcl_MatchParenthesis ( const OUString &  rStr,
sal_Int32  nPos 
)
static

Definition at line 730 of file inputhdl.cxx.

References nPos, and p.

Referenced by ScInputHandler::ShowArgumentsTip(), and ScInputHandler::UpdateParenthesis().

◆ lcl_RemoveLineEnd()

static void lcl_RemoveLineEnd ( OUString &  rStr)
static

Definition at line 724 of file inputhdl.cxx.

References convertLineEnd(), and LINEEND_LF.

Referenced by ScInputHandler::NextAutoEntry(), and ScInputHandler::UseColData().

◆ lcl_RemoveTabs()

static void lcl_RemoveTabs ( OUString &  rStr)
static

◆ lcl_Replace()

static void lcl_Replace ( EditView pView,
const OUString &  rNewStr,
const ESelection rOldSel 
)
static

◆ lcl_SelectionToEnd()

static void lcl_SelectionToEnd ( EditView pView)
static

◆ lcl_SetTopSelection()

static void lcl_SetTopSelection ( EditView pEditView,
ESelection rSel 
)
static