LibreOffice Module sc (master) 1
Classes | Macros | Functions
gridwin.cxx File Reference
#include <scitems.hxx>
#include <cstdlib>
#include <memory>
#include <editeng/adjustitem.hxx>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <sot/storage.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/editobj.hxx>
#include <editeng/editstat.hxx>
#include <editeng/editview.hxx>
#include <editeng/flditem.hxx>
#include <editeng/justifyitem.hxx>
#include <editeng/outliner.hxx>
#include <editeng/misspellrange.hxx>
#include <o3tl/unit_conversion.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/ipclient.hxx>
#include <svl/stritem.hxx>
#include <svl/sharedstringpool.hxx>
#include <vcl/canvastools.hxx>
#include <vcl/commandevent.hxx>
#include <vcl/cursor.hxx>
#include <vcl/dialoghelper.hxx>
#include <vcl/inputctx.hxx>
#include <vcl/settings.hxx>
#include <vcl/virdev.hxx>
#include <vcl/weldutils.hxx>
#include <sot/formats.hxx>
#include <comphelper/classids.hxx>
#include <comphelper/scopeguard.hxx>
#include <svx/svdview.hxx>
#include <svx/svdocapt.hxx>
#include <svx/svdpagv.hxx>
#include <svtools/optionsdrawinglayer.hxx>
#include <com/sun/star/sheet/DataPilotFieldFilter.hpp>
#include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>
#include <com/sun/star/sheet/DataPilotTableHeaderData.hpp>
#include <com/sun/star/sheet/MemberResultFlags.hpp>
#include <com/sun/star/sheet/TableValidationVisibility.hpp>
#include <com/sun/star/awt/KeyModifier.hpp>
#include <com/sun/star/awt/MouseButton.hpp>
#include <com/sun/star/awt/XVclWindowPeer.hpp>
#include <com/sun/star/script/vba/VBAEventId.hpp>
#include <com/sun/star/script/vba/XVBAEventProcessor.hpp>
#include <com/sun/star/text/textfield/Type.hpp>
#include <gridwin.hxx>
#include <tabvwsh.hxx>
#include <docsh.hxx>
#include <viewdata.hxx>
#include <tabview.hxx>
#include <select.hxx>
#include <scmod.hxx>
#include <document.hxx>
#include <attrib.hxx>
#include <dbdata.hxx>
#include <stlpool.hxx>
#include <printfun.hxx>
#include <cbutton.hxx>
#include <sc.hrc>
#include <helpids.h>
#include <globstr.hrc>
#include <strings.hrc>
#include <editutil.hxx>
#include <scresid.hxx>
#include <inputhdl.hxx>
#include <uiitems.hxx>
#include <formulacell.hxx>
#include <patattr.hxx>
#include <notemark.hxx>
#include <rfindlst.hxx>
#include <output.hxx>
#include <docfunc.hxx>
#include <dbdocfun.hxx>
#include <dpobject.hxx>
#include <transobj.hxx>
#include <drwtrans.hxx>
#include <seltrans.hxx>
#include <sizedev.hxx>
#include <AccessibilityHints.hxx>
#include <dpsave.hxx>
#include <viewuno.hxx>
#include <compiler.hxx>
#include <editable.hxx>
#include <fillinfo.hxx>
#include <filterentries.hxx>
#include <drwlayer.hxx>
#include <validat.hxx>
#include <tabprotection.hxx>
#include <postit.hxx>
#include <dpcontrol.hxx>
#include <checklistmenu.hxx>
#include <clipparam.hxx>
#include <overlayobject.hxx>
#include <cellsuno.hxx>
#include <drawview.hxx>
#include <dragdata.hxx>
#include <cliputil.hxx>
#include <queryentry.hxx>
#include <markdata.hxx>
#include <externalrefmgr.hxx>
#include <spellcheckcontext.hxx>
#include <uiobject.hxx>
#include <undoblk.hxx>
#include <datamapper.hxx>
#include <inputopt.hxx>
#include <queryparam.hxx>
#include <SparklineList.hxx>
#include <officecfg/Office/Common.hxx>
#include <svx/PaletteManager.hxx>
#include <svx/sdrpagewindow.hxx>
#include <svx/sdr/overlay/overlaymanager.hxx>
#include <vcl/svapp.hxx>
#include <vcl/uitest/logger.hxx>
#include <vcl/uitest/eventdescription.hxx>
#include <svx/sdr/overlay/overlayselection.hxx>
#include <comphelper/lok.hxx>
#include <sfx2/lokhelper.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <vector>
#include <boost/property_tree/json_parser.hpp>
#include <FilterListBox.hxx>
Include dependency graph for gridwin.cxx:

Go to the source code of this file.

Classes

struct  ScGridWindow::MouseEventState
 

Macros

#define SC_FILTERLISTBOX_LINES   12
 
#define SCROLL_SENSITIVE   20
 
#define SCE_TOP   1
 
#define SCE_BOTTOM   2
 
#define SCE_LEFT   4
 
#define SCE_RIGHT   8
 
#define SCE_ALL   15
 

Functions

 IMPL_LINK (ScFilterListBox, KeyInputHdl, const KeyEvent &, rKeyEvent, bool)
 
 IMPL_LINK_NOARG (ScFilterListBox, SelectHdl, weld::TreeView &, bool)
 
 IMPL_LINK_NOARG (ScFilterListBox, AsyncSelectHdl, void *, void)
 
static bool lcl_IsEditableMatrix (ScDocument &rDoc, const ScRange &rRange)
 
static void lcl_UnLockComment (ScDrawView *pView, const Point &rPos, const ScViewData &rViewData)
 
static bool lcl_GetHyperlinkCell (ScDocument &rDoc, SCCOL &rPosX, SCROW nPosY, SCTAB nTab, ScRefCellValue &rCell, OUString &rURL)
 
static void lcl_GetMirror (Point &rPoint, tools::Rectangle &rRect, const tools::Long nWidth)
 
 IMPL_LINK_NOARG (ScGridWindow, PopupModeEndHdl, weld::Popover &, void)
 
 IMPL_LINK (ScGridWindow, PopupSpellingHdl, SpellCallbackInfo &, rInfo, void)
 
static void lcl_InitMouseEvent (css::awt::MouseEvent &rEvent, const MouseEvent &rEvt)
 
static void lcl_SetTextCursorPos (ScViewData &rViewData, ScSplitPos eWhich, vcl::Window *pWin)
 
static bool lcl_TestScenarioRedliningDrop (const ScDocument *pDoc, const ScRange &aDragRange)
 
static ScRange lcl_MakeDropRange (const ScDocument &rDoc, SCCOL nPosX, SCROW nPosY, SCTAB nTab, const ScRange &rSource)
 
static SotClipboardFormatId lcl_GetDropFormatId (const uno::Reference< datatransfer::XTransferable > &xTransfer, bool bPreferText)
 
static SotClipboardFormatId lcl_GetDropLinkId (const uno::Reference< datatransfer::XTransferable > &xTransfer)
 
static void lcl_PaintOneRange (ScDocShell *pDocSh, const ScRange &rRange, sal_uInt16 nEdges)
 
static void lcl_PaintRefChanged (ScDocShell *pDocSh, const ScRange &rOldUn, const ScRange &rNewUn)
 
static std::vector< tools::RectangleconvertPixelToLogical (const ScViewData &rViewData, const std::vector< tools::Rectangle > &rRectangles, tools::Rectangle &rBoundingBox)
 
static OString rectanglesToString (const std::vector< tools::Rectangle > &rLogicRects)
 

Macro Definition Documentation

◆ SC_FILTERLISTBOX_LINES

#define SC_FILTERLISTBOX_LINES   12

Definition at line 166 of file gridwin.cxx.

◆ SCE_ALL

#define SCE_ALL   15

Definition at line 5375 of file gridwin.cxx.

◆ SCE_BOTTOM

#define SCE_BOTTOM   2

Definition at line 5372 of file gridwin.cxx.

◆ SCE_LEFT

#define SCE_LEFT   4

Definition at line 5373 of file gridwin.cxx.

◆ SCE_RIGHT

#define SCE_RIGHT   8

Definition at line 5374 of file gridwin.cxx.

◆ SCE_TOP

#define SCE_TOP   1

Definition at line 5371 of file gridwin.cxx.

◆ SCROLL_SENSITIVE

#define SCROLL_SENSITIVE   20

Definition at line 3856 of file gridwin.cxx.

Function Documentation

◆ convertPixelToLogical()

static std::vector< tools::Rectangle > convertPixelToLogical ( const ScViewData rViewData,
const std::vector< tools::Rectangle > &  rRectangles,
tools::Rectangle rBoundingBox 
)
static

◆ IMPL_LINK() [1/2]

IMPL_LINK ( ScFilterListBox  ,
KeyInputHdl  ,
const KeyEvent ,
rKeyEvent  ,
bool   
)

Definition at line 233 of file gridwin.cxx.

References vcl::KeyCode::GetCode(), vcl::KeyCode::GetModifier(), KEY_ESCAPE, and KEY_TAB.

◆ IMPL_LINK() [2/2]

IMPL_LINK ( ScGridWindow  ,
PopupSpellingHdl  ,
SpellCallbackInfo ,
rInfo  ,
void   
)

Definition at line 502 of file gridwin.cxx.

References ScInputHandler::EnterHandler(), and SC_MOD.

◆ IMPL_LINK_NOARG() [1/3]

IMPL_LINK_NOARG ( ScFilterListBox  ,
AsyncSelectHdl  ,
void *  ,
void   
)

Definition at line 267 of file gridwin.cxx.

◆ IMPL_LINK_NOARG() [2/3]

IMPL_LINK_NOARG ( ScFilterListBox  ,
SelectHdl  ,
weld::TreeView ,
bool   
)

Definition at line 252 of file gridwin.cxx.

References LINK, nPos, and Application::PostUserEvent().

◆ IMPL_LINK_NOARG() [3/3]

IMPL_LINK_NOARG ( ScGridWindow  ,
PopupModeEndHdl  ,
weld::Popover ,
void   
)

Definition at line 487 of file gridwin.cxx.

References GrabFocus, and SAL_WARN_IF.

◆ lcl_GetDropFormatId()

static SotClipboardFormatId lcl_GetDropFormatId ( const uno::Reference< datatransfer::XTransferable > &  xTransfer,
bool  bPreferText 
)
static

◆ lcl_GetDropLinkId()

static SotClipboardFormatId lcl_GetDropLinkId ( const uno::Reference< datatransfer::XTransferable > &  xTransfer)
static

Definition at line 4410 of file gridwin.cxx.

References TransferableDataHelper::HasFormat().

Referenced by ScGridWindow::ExecuteDrop().

◆ lcl_GetHyperlinkCell()

static bool lcl_GetHyperlinkCell ( ScDocument rDoc,
SCCOL rPosX,
SCROW  nPosY,
SCTAB  nTab,
ScRefCellValue rCell,
OUString &  rURL 
)
static

◆ lcl_GetMirror()

static void lcl_GetMirror ( Point rPoint,
tools::Rectangle rRect,
const tools::Long  nWidth 
)
static

◆ lcl_InitMouseEvent()

static void lcl_InitMouseEvent ( css::awt::MouseEvent &  rEvent,
const MouseEvent rEvt 
)
static

◆ lcl_IsEditableMatrix()

static bool lcl_IsEditableMatrix ( ScDocument rDoc,
const ScRange rRange 
)
static

◆ lcl_MakeDropRange()

static ScRange lcl_MakeDropRange ( const ScDocument rDoc,
SCCOL  nPosX,
SCROW  nPosY,
SCTAB  nTab,
const ScRange rSource 
)
static

◆ lcl_PaintOneRange()

static void lcl_PaintOneRange ( ScDocShell pDocSh,
const ScRange rRange,
sal_uInt16  nEdges 
)
static

◆ lcl_PaintRefChanged()

static void lcl_PaintRefChanged ( ScDocShell pDocSh,
const ScRange rOldUn,
const ScRange rNewUn 
)
static

◆ lcl_SetTextCursorPos()

static void lcl_SetTextCursorPos ( ScViewData rViewData,
ScSplitPos  eWhich,
vcl::Window pWin 
)
static

◆ lcl_TestScenarioRedliningDrop()

static bool lcl_TestScenarioRedliningDrop ( const ScDocument pDoc,
const ScRange aDragRange 
)
static

◆ lcl_UnLockComment()

static void lcl_UnLockComment ( ScDrawView pView,
const Point rPos,
const ScViewData rViewData 
)
static

◆ rectanglesToString()

static OString rectanglesToString ( const std::vector< tools::Rectangle > &  rLogicRects)
static