LibreOffice Module sc (master)  1
Classes | Macros | Functions
gridwin.cxx File Reference
#include <scitems.hxx>
#include <memory>
#include <editeng/adjustitem.hxx>
#include <sot/storage.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/editview.hxx>
#include <editeng/editstat.hxx>
#include <editeng/flditem.hxx>
#include <editeng/justifyitem.hxx>
#include <editeng/unolingu.hxx>
#include <editeng/langitem.hxx>
#include <editeng/misspellrange.hxx>
#include <editeng/editobj.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/inputctx.hxx>
#include <vcl/settings.hxx>
#include <sot/formats.hxx>
#include <comphelper/classids.hxx>
#include <svx/svdview.hxx>
#include <editeng/outliner.hxx>
#include <svx/svdocapt.hxx>
#include <svx/svdpagv.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/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 <dociter.hxx>
#include <hints.hxx>
#include <spellcheckcontext.hxx>
#include <uiobject.hxx>
#include <undoblk.hxx>
#include <datamapper.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/string.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 <FilterFloatingWindow.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)
 
 IMPL_LINK_NOARG (ScGridWindow, PopupModeEndHdl, FloatingWindow *, 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

#define SC_FILTERLISTBOX_LINES   12

Definition at line 156 of file gridwin.cxx.

Referenced by ScGridWindow::ShowFilterMenu().

#define SCE_ALL   15

Definition at line 4888 of file gridwin.cxx.

Referenced by lcl_PaintRefChanged().

#define SCE_BOTTOM   2

Definition at line 4885 of file gridwin.cxx.

Referenced by lcl_PaintOneRange(), and lcl_PaintRefChanged().

#define SCE_LEFT   4

Definition at line 4886 of file gridwin.cxx.

Referenced by lcl_PaintOneRange(), and lcl_PaintRefChanged().

#define SCE_RIGHT   8

Definition at line 4887 of file gridwin.cxx.

Referenced by lcl_PaintOneRange(), and lcl_PaintRefChanged().

#define SCE_TOP   1

Definition at line 4884 of file gridwin.cxx.

Referenced by lcl_PaintOneRange(), and lcl_PaintRefChanged().

#define SCROLL_SENSITIVE   20

Definition at line 3372 of file gridwin.cxx.

Referenced by ScGridWindow::DropScroll().

Function Documentation

static std::vector<tools::Rectangle> convertPixelToLogical ( const ScViewData rViewData,
const std::vector< tools::Rectangle > &  rRectangles,
tools::Rectangle rBoundingBox 
)
static
IMPL_LINK ( ScFilterListBox  ,
KeyInputHdl  ,
const KeyEvent ,
rKeyEvent  ,
bool   
)

Definition at line 229 of file gridwin.cxx.

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

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

Definition at line 502 of file gridwin.cxx.

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

Definition at line 248 of file gridwin.cxx.

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

IMPL_LINK_NOARG ( ScFilterListBox  ,
AsyncSelectHdl  ,
void ,
void   
)

Definition at line 263 of file gridwin.cxx.

IMPL_LINK_NOARG ( ScGridWindow  ,
PopupModeEndHdl  ,
FloatingWindow ,
void   
)

Definition at line 491 of file gridwin.cxx.

References GrabFocus.

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

Definition at line 3927 of file gridwin.cxx.

References TransferableDataHelper::HasFormat().

Referenced by ScGridWindow::ExecuteDrop().

static bool lcl_GetHyperlinkCell ( ScDocument rDoc,
SCCOL rPosX,
SCROW  nPosY,
SCTAB  nTab,
ScRefCellValue rCell,
OUString &  rURL 
)
static
static void lcl_InitMouseEvent ( css::awt::MouseEvent &  rEvent,
const MouseEvent rEvt 
)
static
static bool lcl_IsEditableMatrix ( ScDocument rDoc,
const ScRange rRange 
)
static
static ScRange lcl_MakeDropRange ( const ScDocument rDoc,
SCCOL  nPosX,
SCROW  nPosY,
SCTAB  nTab,
const ScRange rSource 
)
static
static void lcl_PaintOneRange ( ScDocShell pDocSh,
const ScRange rRange,
sal_uInt16  nEdges 
)
static
static void lcl_PaintRefChanged ( ScDocShell pDocSh,
const ScRange rOldUn,
const ScRange rNewUn 
)
static
static void lcl_SetTextCursorPos ( ScViewData rViewData,
ScSplitPos  eWhich,
vcl::Window pWin 
)
static
static bool lcl_TestScenarioRedliningDrop ( const ScDocument pDoc,
const ScRange aDragRange 
)
static
static void lcl_UnLockComment ( ScDrawView pView,
const Point &  rPos,
const ScViewData rViewData 
)
static
static OString rectanglesToString ( const std::vector< tools::Rectangle > &  rLogicRects)
static