LibreOffice Module sc (master) 1
Namespaces | Functions | Variables
inputwin.cxx File Reference
#include <memory>
#include <algorithm>
#include <string_view>
#include <editeng/eeitem.hxx>
#include <sfx2/app.hxx>
#include <editeng/adjustitem.hxx>
#include <editeng/editview.hxx>
#include <editeng/editstat.hxx>
#include <editeng/lspcitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/langitem.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/event.hxx>
#include <editeng/scriptspaceitem.hxx>
#include <vcl/commandevent.hxx>
#include <vcl/cursor.hxx>
#include <vcl/help.hxx>
#include <vcl/settings.hxx>
#include <svl/stritem.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weldutils.hxx>
#include <unotools/charclass.hxx>
#include <inputwin.hxx>
#include <scmod.hxx>
#include <global.hxx>
#include <scresid.hxx>
#include <strings.hrc>
#include <globstr.hrc>
#include <bitmaps.hlst>
#include <reffact.hxx>
#include <editutil.hxx>
#include <inputhdl.hxx>
#include <tabvwsh.hxx>
#include <document.hxx>
#include <docsh.hxx>
#include <appoptio.hxx>
#include <rangenam.hxx>
#include <rangeutl.hxx>
#include <docfunc.hxx>
#include <funcdesc.hxx>
#include <editeng/fontitem.hxx>
#include <AccessibleEditObject.hxx>
#include <AccessibleText.hxx>
#include <comphelper/lok.hxx>
#include <comphelper/string.hxx>
#include <com/sun/star/frame/XLayoutManager.hpp>
#include <helpids.h>
#include <output.hxx>
Include dependency graph for inputwin.cxx:

Go to the source code of this file.

Namespaces

namespace  com
 
namespace  com::sun
 
namespace  com::sun::star
 
namespace  com::sun::star::accessibility
 

Functions

static VclPtr< ScInputBarGrouplcl_chooseRuntimeImpl (vcl::Window *pParent, const SfxBindings *pBind)
 
 IMPL_LINK_NOARG (ScInputWindow, DropdownClickHdl, ToolBox *, void)
 
 IMPL_LINK_NOARG (ScInputBarGroup, ClickHdl, weld::Button &, void)
 
 IMPL_LINK_NOARG (ScTextWndGroup, Impl_ScrollHdl, weld::ScrolledWindow &, void)
 
static void lcl_ExtendEditFontAttribs (SfxItemSet &rSet)
 
static void lcl_ModifyRTLDefaults (SfxItemSet &rSet)
 
static void lcl_ModifyRTLVisArea (EditView *pEditView)
 
 IMPL_LINK_NOARG (ScTextWnd, ModifyHdl, LinkParamNone *, void)
 
 IMPL_LINK_NOARG (ScTextWnd, EditStatusHdl, EditStatus &, void)
 
static sal_Int32 findFirstNonMatchingChar (const OUString &rStr1, const OUString &rStr2)
 
static ScNameInputType lcl_GetInputType (const OUString &rText)
 
 IMPL_LINK_NOARG (ScPosWnd, ModifyHdl, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (ScPosWnd, ActivateHdl, weld::ComboBox &, bool)
 
 IMPL_LINK (ScPosWnd, KeyInputHdl, const KeyEvent &, rKEvt, bool)
 
 IMPL_LINK_NOARG (ScPosWnd, OnAsyncGetFocus, void *, void)
 
 IMPL_LINK_NOARG (ScPosWnd, FocusInHdl, weld::Widget &, void)
 
 IMPL_LINK_NOARG (ScPosWnd, FocusOutHdl, weld::Widget &, void)
 

Variables

const tools::Long THESIZE = 1000000
 
const tools::Long INPUTLINE_INSET_MARGIN = 2
 
const tools::Long LEFT_OFFSET = 5
 
const tools::Long INPUTWIN_MULTILINES = 6
 
const tools::Long TOOLBOX_WINDOW_HEIGHT = 22
 
const tools::Long POSITION_COMBOBOX_WIDTH = 18
 
const int RESIZE_HOTSPOT_HEIGHT = 4
 
constexpr tools::Long gnBorderWidth = (INPUTLINE_INSET_MARGIN + 1) * 2
 
constexpr tools::Long gnBorderHeight = INPUTLINE_INSET_MARGIN + 1
 

Function Documentation

◆ findFirstNonMatchingChar()

static sal_Int32 findFirstNonMatchingChar ( const OUString &  rStr1,
const OUString &  rStr2 
)
static

Definition at line 2005 of file inputwin.cxx.

References i.

Referenced by ScTextWnd::SetTextString().

◆ IMPL_LINK()

IMPL_LINK ( ScPosWnd  ,
KeyInputHdl  ,
const KeyEvent ,
rKEvt  ,
bool   
)

Definition at line 2703 of file inputwin.cxx.

References KEY_ESCAPE, KEY_RETURN, and m_xWidget.

◆ IMPL_LINK_NOARG() [1/10]

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

Definition at line 1111 of file inputwin.cxx.

◆ IMPL_LINK_NOARG() [2/10]

IMPL_LINK_NOARG ( ScInputWindow  ,
DropdownClickHdl  ,
ToolBox ,
void   
)

Definition at line 1096 of file inputwin.cxx.

References Application::CreateBuilder(), and weld::GetPopupParent().

◆ IMPL_LINK_NOARG() [3/10]

IMPL_LINK_NOARG ( ScPosWnd  ,
ActivateHdl  ,
weld::ComboBox ,
bool   
)

Definition at line 2697 of file inputwin.cxx.

◆ IMPL_LINK_NOARG() [4/10]

IMPL_LINK_NOARG ( ScPosWnd  ,
FocusInHdl  ,
weld::Widget ,
void   
)

Definition at line 2739 of file inputwin.cxx.

References LINK, and Application::PostUserEvent().

◆ IMPL_LINK_NOARG() [5/10]

IMPL_LINK_NOARG ( ScPosWnd  ,
FocusOutHdl  ,
weld::Widget ,
void   
)

Definition at line 2747 of file inputwin.cxx.

References Application::RemoveUserEvent().

◆ IMPL_LINK_NOARG() [6/10]

IMPL_LINK_NOARG ( ScPosWnd  ,
ModifyHdl  ,
weld::ComboBox ,
void   
)

◆ IMPL_LINK_NOARG() [7/10]

IMPL_LINK_NOARG ( ScPosWnd  ,
OnAsyncGetFocus  ,
void *  ,
void   
)

Definition at line 2733 of file inputwin.cxx.

References m_xWidget.

◆ IMPL_LINK_NOARG() [8/10]

IMPL_LINK_NOARG ( ScTextWnd  ,
EditStatusHdl  ,
EditStatus ,
void   
)

Definition at line 1955 of file inputwin.cxx.

◆ IMPL_LINK_NOARG() [9/10]

IMPL_LINK_NOARG ( ScTextWnd  ,
ModifyHdl  ,
LinkParamNone ,
void   
)

◆ IMPL_LINK_NOARG() [10/10]

IMPL_LINK_NOARG ( ScTextWndGroup  ,
Impl_ScrollHdl  ,
weld::ScrolledWindow ,
void   
)

Definition at line 1331 of file inputwin.cxx.

◆ lcl_chooseRuntimeImpl()

static VclPtr< ScInputBarGroup > lcl_chooseRuntimeImpl ( vcl::Window pParent,
const SfxBindings pBind 
)
static

◆ lcl_ExtendEditFontAttribs()

static void lcl_ExtendEditFontAttribs ( SfxItemSet rSet)
static

◆ lcl_GetInputType()

static ScNameInputType lcl_GetInputType ( const OUString &  rText)
static

◆ lcl_ModifyRTLDefaults()

static void lcl_ModifyRTLDefaults ( SfxItemSet rSet)
static

◆ lcl_ModifyRTLVisArea()

static void lcl_ModifyRTLVisArea ( EditView pEditView)
static

Variable Documentation

◆ gnBorderHeight

constexpr tools::Long gnBorderHeight = INPUTLINE_INSET_MARGIN + 1
constexpr

◆ gnBorderWidth

constexpr tools::Long gnBorderWidth = (INPUTLINE_INSET_MARGIN + 1) * 2
constexpr

◆ INPUTLINE_INSET_MARGIN

const tools::Long INPUTLINE_INSET_MARGIN = 2

Definition at line 79 of file inputwin.cxx.

◆ INPUTWIN_MULTILINES

const tools::Long INPUTWIN_MULTILINES = 6

Definition at line 82 of file inputwin.cxx.

◆ LEFT_OFFSET

const tools::Long LEFT_OFFSET = 5

Definition at line 80 of file inputwin.cxx.

Referenced by ScInputWindow::Resize().

◆ POSITION_COMBOBOX_WIDTH

const tools::Long POSITION_COMBOBOX_WIDTH = 18

Definition at line 84 of file inputwin.cxx.

Referenced by ScPosWnd::ScPosWnd().

◆ RESIZE_HOTSPOT_HEIGHT

const int RESIZE_HOTSPOT_HEIGHT = 4

Definition at line 85 of file inputwin.cxx.

Referenced by ScInputWindow::IsPointerAtResizePos(), and ScInputWindow::Resize().

◆ THESIZE

const tools::Long THESIZE = 1000000

Definition at line 78 of file inputwin.cxx.

Referenced by ScTextWnd::MakeDialogEditView().

◆ TOOLBOX_WINDOW_HEIGHT

const tools::Long TOOLBOX_WINDOW_HEIGHT = 22

Definition at line 83 of file inputwin.cxx.

Referenced by ScInputWindow::MouseButtonDown(), and ScInputWindow::MouseMove().