21#include <svx/svxids.hrc>
25#include <osl/diagnose.h>
32#include <drawview.hxx>
36#include <document.hxx>
70 if ( pDrView && !rMEvt.
IsLeft() && !bRet )
144 if ( pDrView && pDrView->
IsAction() )
177 if (pDrView && pDrView->
KeyInput(rKEvt, pWin))
186 bool bLeaveDraw =
false;
218 if(!(bDrawOle || bDrawChart || bDrawDraw))
242 OSL_ENSURE(pPV,
"PageView not available");
271 if ( pDrView || bForce )
276 pDrView->
GetScale( aScaleX, aScaleY );
282 if (nEndCol<20) nEndCol = 20;
283 if (nEndRow<20) nEndRow = 1000;
312 if (pOlView && pOlView->
GetWindow() ==
this)
328 rHdl.
AddHdl(std::make_unique<SdrHdl>(aPos, bNegativePage ? SdrHdlKind::Anchor_TR : SdrHdlKind::Anchor));
350 bool bActionItem =
false;
389 return p &&
p->AreObjectsMarked();
Base class for all functions.
bool IsDetectiveHit(const Point &rLogicPos)
virtual bool MouseButtonDown(const MouseEvent &rMEvt)
virtual bool MouseButtonUp(const MouseEvent &rMEvt)
virtual bool KeyInput(const KeyEvent &rKEvt)
virtual bool MouseMove(const MouseEvent &)
sal_uInt8 Command(const CommandEvent &rCEvt)
void SetWindow(vcl::Window *pWin)
const vcl::KeyCode & GetKeyCode() const
void SetOrigin(const Point &rOrigin)
void SetScaleY(const Fraction &rScaleY)
void SetScaleX(const Fraction &rScaleX)
const Point & GetPosPixel() const
vcl::Window * GetWindow() const
void ShowCursor(bool bGotoCursor=true, bool bActivate=false)
void setX(tools::Long nX)
constexpr tools::Long X() const
SC_DLLPUBLIC bool IsNegativePage(SCTAB nTab) const
SC_DLLPUBLIC bool GetTableArea(SCTAB nTab, SCCOL &rEndCol, SCROW &rEndRow, bool bCalcHiddens=false) const
static void CalcScale(const ScDocument &rDoc, SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, const OutputDevice *pDev, const Fraction &rZoomX, const Fraction &rZoomY, double nPPTX, double nPPTY, Fraction &rScaleX, Fraction &rScaleY)
void MarkDropObj(SdrObject *pObj)
void GetScale(Fraction &rFractX, Fraction &rFractY) const
bool DrawMouseMove(const MouseEvent &rMEvt)
MapMode GetDrawMapMode(bool bForce=false)
MapMode for the drawinglayer objects.
void DrawRedraw(ScOutputData &rOutputData, SdrLayerID nLayer)
virtual void GetFocus() override
bool DrawCommand(const CommandEvent &rCEvt)
bool DrawMouseButtonDown(const MouseEvent &rMEvt)
void UpdateStatusPosSize()
bool DrawKeyInput(const KeyEvent &rKEvt, vcl::Window *pWin)
void DrawSdrGrid(const tools::Rectangle &rDrawingRect, OutputDevice *pContentDev)
bool DrawMouseButtonUp(const MouseEvent &rMEvt)
void CreateAnchorHandle(SdrHdlList &rHdl, const ScAddress &rAddress)
void DrawMarkDropObj(SdrObject *pObj)
void DrawSelectiveObjects(SdrLayerID nLayer)
void SetDrawShell(bool bActive)
FuPoor * GetDrawFuncPtr()
void ResetBrushDocument()
SfxItemSet * GetDrawBrushSet() const
ScDrawView * GetScDrawView()
bool IsDrawSelMode() const
bool IsPaintBrushLocked() const
const ScViewOptions & GetOptions() const
const Fraction & GetZoomY() const
ScDocument & GetDocument() const
const MapMode & GetLogicMode(ScSplitPos eWhich)
Point GetPixPos(ScSplitPos eWhich) const
ScTabViewShell * GetViewShell() const
ScDBFunc * GetView() const
Point GetScrPos(SCCOL nWhereX, SCROW nWhereY, ScSplitPos eWhich, bool bAllowNeg=false, SCTAB nForTab=-1) const
const Fraction & GetZoomX() const
SfxBindings & GetBindings()
ScDrawView * GetScDrawView()
bool GetOption(ScViewOption eOpt) const
ScVObjMode GetObjMode(ScVObjType eObj) const
virtual void BrkAction() override
virtual bool IsAction() const override
virtual void TakeActionRect(tools::Rectangle &rRect) const override
void SetAttrToMarked(const SfxItemSet &rAttr, bool bReplaceAll)
void AddHdl(std::unique_ptr< SdrHdl > pHdl)
bool AreObjectsMarked() const
const tools::Rectangle & GetAllMarkedRect() const
const OutlinerView * GetTextEditOutlinerView() const
void LogicToPagePos(Point &rPnt) const
void DrawPageViewGrid(OutputDevice &rOut, const tools::Rectangle &rRect, Color aColor=COL_BLACK)
void setHideOle(bool bNew)
void setHideFormControl(bool bNew)
void setHideDraw(bool bNew)
SdrPageView * GetSdrPageView() const
void setHideChart(bool bNew)
bool IsGridVisible() const
void SetState(const SfxItemSet &rSet)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
SfxItemPool & GetPool() const
virtual void SetPointer(PointerStyle) override
sal_uInt16 GetCode() const
const MapMode & GetMapMode() const
::OutputDevice const * GetOutDev() const
Point PixelToLogic(const Point &rDevicePt) const
Size GetOutputSizePixel() const
constexpr ::Color COL_GRAY(0x80, 0x80, 0x80)
constexpr sal_uInt16 KEY_DELETE