|
LibreOffice Module sc (master) 1
|
#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>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::Rectangle > | convertPixelToLogical (const ScViewData &rViewData, const std::vector< tools::Rectangle > &rRectangles, tools::Rectangle &rBoundingBox) |
| static OString | rectanglesToString (const std::vector< tools::Rectangle > &rLogicRects) |
| #define SC_FILTERLISTBOX_LINES 12 |
Definition at line 166 of file gridwin.cxx.
| #define SCE_ALL 15 |
Definition at line 5375 of file gridwin.cxx.
| #define SCE_BOTTOM 2 |
Definition at line 5372 of file gridwin.cxx.
| #define SCE_LEFT 4 |
Definition at line 5373 of file gridwin.cxx.
| #define SCE_RIGHT 8 |
Definition at line 5374 of file gridwin.cxx.
| #define SCE_TOP 1 |
Definition at line 5371 of file gridwin.cxx.
| #define SCROLL_SENSITIVE 20 |
Definition at line 3856 of file gridwin.cxx.
|
static |
Definition at line 6207 of file gridwin.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustRight(), tools::Rectangle::Bottom(), ScViewData::GetPPTX(), ScViewData::GetPPTY(), tools::Rectangle::Left(), nPPTX, nPPTY, tools::Rectangle::Right(), tools::Rectangle::Top(), and tools::Rectangle::Union().
Referenced by ScGridWindow::UpdateDragRectOverlay(), ScGridWindow::UpdateKitSelection(), and ScGridWindow::updateOtherKitSelections().
| 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 | ( | ScGridWindow | , |
| PopupSpellingHdl | , | ||
| SpellCallbackInfo & | , | ||
| rInfo | , | ||
| void | |||
| ) |
Definition at line 502 of file gridwin.cxx.
References ScInputHandler::EnterHandler(), and SC_MOD.
| IMPL_LINK_NOARG | ( | ScFilterListBox | , |
| AsyncSelectHdl | , | ||
| void * | , | ||
| void | |||
| ) |
Definition at line 267 of file gridwin.cxx.
| 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 | ( | ScGridWindow | , |
| PopupModeEndHdl | , | ||
| weld::Popover & | , | ||
| void | |||
| ) |
Definition at line 487 of file gridwin.cxx.
References GrabFocus, and SAL_WARN_IF.
|
static |
Definition at line 4320 of file gridwin.cxx.
References TransferableDataHelper::GetSotStorageStream(), TransferableDataHelper::GetTransferableObjectDescriptor(), TransferableDataHelper::HasFormat(), TransferableObjectDescriptor::maClassName, SO3_SW_CLASSID, and SO3_SWWEB_CLASSID.
Referenced by ScGridWindow::ExecuteDrop(), and ScGridWindow::PasteSelection().
|
static |
Definition at line 4410 of file gridwin.cxx.
References TransferableDataHelper::HasFormat().
Referenced by ScGridWindow::ExecuteDrop().
|
static |
Definition at line 315 of file gridwin.cxx.
References ScRefCellValue::assign(), ATTR_HYPERLINK(), CELLTYPE_EDIT, CELLTYPE_FORMULA, ScRefCellValue::getFormula(), ScPatternAttr::GetItem(), ScDocument::GetPattern(), ScRefCellValue::getType(), ScRefCellValue::isEmpty(), and ScFormulaCell::IsHyperLinkCell().
Referenced by ScGridWindow::GetEditUrl(), and ScGridWindow::MouseButtonUp().
|
static |
Definition at line 351 of file gridwin.cxx.
References o3tl::convert(), tools::Rectangle::Left(), o3tl::mm100, o3tl::px, tools::Rectangle::Right(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), Point::setX(), o3tl::twip, and Point::X().
Referenced by ScGridWindow::HandleMouseButtonDown(), ScGridWindow::MouseButtonUp(), and ScGridWindow::MouseMove().
|
static |
Definition at line 2931 of file gridwin.cxx.
References MouseEvent::GetClicks(), MouseEvent::GetPosPixel(), MouseEvent::IsLeft(), MouseEvent::IsMiddle(), MouseEvent::IsMod1(), MouseEvent::IsMod2(), MouseEvent::IsMod3(), MouseEvent::IsRight(), MouseEvent::IsShift(), databar::MIDDLE, Point::X(), and Point::Y().
Referenced by ScGridWindow::PreNotify().
|
static |
Extract the MatrixEdges functions directly from the column ???
Definition at line 282 of file gridwin.cxx.
References ScRange::aEnd, ScRange::aStart, CELLTYPE_FORMULA, ScAddress::Col(), ScRefCellValue::getFormula(), ScFormulaCell::GetMatrixOrigin(), ScRefCellValue::getType(), ScDocument::IsBlockEditable(), ScAddress::Row(), and ScAddress::Tab().
Referenced by ScGridWindow::TestMouse().
|
static |
Definition at line 3919 of file gridwin.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScDocument::MaxCol(), ScDocument::MaxRow(), and ScAddress::Row().
Referenced by ScGridWindow::AcceptPrivateDrop().
|
static |
Definition at line 5377 of file gridwin.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScDocument::ColHidden(), ScDocument::FirstVisibleRow(), ScDocShell::GetDocument(), Marks, ScDocument::MaxCol(), ScDocument::MaxRow(), ScDocShell::PostPaint(), ScAddress::Row(), SCE_BOTTOM, SCE_LEFT, SCE_RIGHT, SCE_TOP, ScAddress::Tab(), and ScDocument::ValidRow().
Referenced by lcl_PaintRefChanged().
|
static |
Ignore sheet ?
Ignore sheet ?
Definition at line 5434 of file gridwin.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScDocument::ExtendMerge(), ScDocShell::GetDocument(), lcl_PaintOneRange(), ScRange::PutInOrder(), ScAddress::Row(), SCE_ALL, SCE_BOTTOM, SCE_LEFT, SCE_RIGHT, SCE_TOP, and ScAddress::Tab().
Referenced by ScGridWindow::RFMouseMove().
|
static |
Definition at line 3100 of file gridwin.cxx.
References ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetEditArea(), tools::Rectangle::Left(), vcl::Window::PixelToLogic(), vcl::Window::SetCursorRect(), and tools::Rectangle::SetRight().
Referenced by ScGridWindow::Command().
|
static |
Definition at line 3891 of file gridwin.cxx.
References ScRange::aStart, ScDocument::GetChangeTrack(), ScDocument::GetTableCount(), ScDocument::HasScenarioRange(), i, ScDocument::IsScenario(), and ScAddress::Tab().
Referenced by ScGridWindow::AcceptPrivateDrop().
|
static |
Definition at line 296 of file gridwin.cxx.
References ATTR_PROTECTION(), tools::Rectangle::Contains(), ScDocument::GetAttr(), ScPostIt::GetCaption(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocument(), ScProtectionAttr::GetHideCell(), SdrObject::GetLogicRect(), ScDocument::GetNote(), ScProtectionAttr::GetProtection(), ScViewData::GetSfxDocShell(), ScViewData::GetTabNo(), ScDrawLayer::IsNoteCaption(), SfxObjectShell::IsReadOnly(), ScDocument::IsTabProtected(), ScDrawView::LockInternalLayer(), and ScAddress::Tab().
Referenced by ScGridWindow::SelectForContextMenu().
|
static |
Definition at line 6234 of file gridwin.cxx.
Referenced by ScGridWindow::UpdateDragRectOverlay(), ScGridWindow::UpdateKitSelection(), and ScGridWindow::updateOtherKitSelections().