29#include <osl/diagnose.h>
33#include <document.hxx>
42#include <drawview.hxx>
55#include <officecfg/Office/Calc.hxx>
146 if ( pOld && pOld->
GetView() ==
this )
167 auto lRemoveWindows =
170 ScViewData& rOtherViewData = pOtherViewShell->GetViewData();
171 for (
int k = 0; k < 4; ++k)
233 OSL_ENSURE(pLayer,
"Where is the Draw Layer ??");
254 pLayer,aSfxRequest));
304 SfxHint aAccHint(SfxHintId::ScAccTableChanged);
318 for (
int i = 0;
i < 4;
i++)
339 ss << aDocSize.
Width() <<
", " << aDocSize.
Height();
340 OString sRect(ss.str());
396 SfxCallMode::SLOT | SfxCallMode::RECORD );
451 pDrawView->SetDragMode( SdrDragMode::Move );
463 if (bGraphicsChanged)
473 if ( bGrow || bShrink )
543 pWin->GetOutDev()->SetDigitLanguage( eNewLang );
578 if ( aRect.
Left() < 0 )
580 if ( aRect.
Top() < 0 )
606 while (nScrollX < 0 && nPosX > 0)
621 while (nScrollY < 0 && nPosY > 0)
666 if (!pCaption)
return;
672 aRect.
Union( aTailRect );
678 const int nBorderSize = 200;
690 if (pTabViewShell && pViewShell->
GetDocId() == pCurrentViewShell->
GetDocId())
692 for (
auto& pWin: pTabViewShell->
pGridWin)
694 if (pWin && pWin->IsVisible())
static bool GetLayoutRTL()
sal_uInt16 GetSlotID() const
Base class for all functions.
ScModelObj * GetModel() const
SC_DLLPUBLIC sal_uInt16 GetRowHeight(SCROW nRow, SCTAB nTab, bool bHiddenAsZero=true) const
SC_DLLPUBLIC sal_uInt16 GetColWidth(SCCOL nCol, SCTAB nTab, bool bHiddenAsZero=true) const
SC_DLLPUBLIC bool IsTabProtected(SCTAB nTab) const
SC_DLLPUBLIC SCCOL MaxCol() const
SC_DLLPUBLIC SCROW MaxRow() const
SC_DLLPUBLIC bool IsNegativePage(SCTAB nTab) const
bool IsDocEditable() const
SC_DLLPUBLIC ScDrawLayer * GetDrawLayer()
void StartAnimations(SCTAB nTab)
void SetAutoSpellContext(const std::shared_ptr< sc::SpellCheckContext > &ctx)
virtual Size getDocumentSize() final override
void SetSelectionTransfer(ScSelectionTransferObj *pNew)
ScSelectionTransferObj * GetSelectionTransfer() const
static LanguageType GetOptDigitLanguage()
Additional class containing cell annotation data.
SdrCaptionObj * GetCaption() const
Returns an existing note caption object.
ScTabView * GetView() const
void SheetChanged(bool bSameTabButMoved)
virtual const FmFormShell * GetFormShell() const override
void BroadcastAccessibility(const SfxHint &rHint)
bool IsDrawTextShell() const
bool HasAccessibilityObjects() const
void SetDrawShell(bool bActive)
VclPtr< ScTabSplitter > pHSplitter
void TabChanged(bool bSameTabButMoved=false)
Called after moving, copying, inserting or deleting a sheet.
std::array< VclPtr< ScColBar >, 2 > pColBar
bool IsDrawTextEdit() const
std::array< VclPtr< ScOutlineWindow >, 2 > pRowOutline
VclPtr< ScCornerButton > aCornerButton
std::unique_ptr< ScPageBreakData > pPageBreakData
void DigitLanguageChanged()
std::unique_ptr< ScViewSelectionEngine > pSelEngine
void MakeVisible(const tools::Rectangle &rHMMRect)
void ResetBrushDocument()
ScHeaderFunctionSet aHdrFunc
std::shared_ptr< sc::SpellCheckContext > mpSpellCheckCxt
void SetDrawFuncPtr(FuPoor *pFuncPtr)
VclPtr< ScrollAdaptor > aHScrollRight
void ScrollToObject(const SdrObject *pDrawObj)
static void OnLOKNoteStateChanged(const ScPostIt *pNote)
VclPtr< ScrollAdaptor > aVScrollTop
void DrawEnableAnim(bool bSet)
VclPtr< ScrollAdaptor > aVScrollBottom
std::array< VclPtr< ScGridWindow >, 4 > pGridWin
VclPtr< ScTabControl > pTabControl
SC_DLLPUBLIC void RefreshZoom()
void MakeDrawView(TriState nForceDesignMode)
void DoAddWin(ScGridWindow *pWin)
void SetBrushDocument(ScDocumentUniquePtr pNew, bool bLock)
void ViewOptionsHasChanged(bool bHScrollChanged, bool bGraphicsChanged)
VclPtr< ScTabSplitter > pVSplitter
void UpdateDrawTextOutliner()
SC_DLLPUBLIC void ScrollLines(tools::Long nDeltaX, tools::Long nDeltaY)
void UpdateAnchorHandles()
std::unique_ptr< sdr::overlay::OverlayObjectList > mxInputHintOO
ScViewData & GetViewData()
void SetZoom(const Fraction &rNewX, const Fraction &rNewY, bool bAll)
SvxZoomType GetZoomType() const
bool mbInlineWithScrollbar
ScGridWindow * GetActiveWin()
void UpdateIMap(SdrObject *pObj)
void SetPagebreakMode(bool bSet)
void InitScrollBar(ScrollAdaptor &rScrollBar, tools::Long nMaxVal, const Link< weld::Scrollbar &, void > &rLink)
std::unique_ptr< ScDrawView > pDrawView
std::array< VclPtr< ScRowBar >, 2 > pRowBar
bool IsDrawSelMode() const
std::unique_ptr< ScHeaderSelectionEngine > pHdrSelEng
std::unique_ptr< SfxItemSet > pDrawBrushSet
void SetActivePointer(PointerStyle nPointer)
void DrawMarkListHasChanged()
void SetDrawBrushSet(std::unique_ptr< SfxItemSet > pNew, bool bLock)
std::array< VclPtr< ScOutlineWindow >, 2 > pColOutline
ScDocumentUniquePtr pBrushDocument
VclPtr< ScCornerButton > aTopButton
ScViewFunctionSet aFunctionSet
VclPtr< vcl::Window > pFrameWin
bool HasPaintBrush() const
void RemoveWindowFromForeignEditView(SfxViewShell *pViewShell, ScSplitPos eWhich)
VclPtr< ScrollAdaptor > aHScrollLeft
void SetZoomType(SvxZoomType eNew, bool bAll)
SfxDispatcher & GetDispatcher()
void SetPagebreakMode(bool bSet)
const ScViewOptions & GetOptions() const
void SetZoomType(SvxZoomType eNew, bool bAll)
SvxZoomType GetZoomType() const
ScDocument & GetDocument() const
SCROW GetPosY(ScVSplitPos eWhich, SCTAB nForTab=-1) const
ScDocShell * GetDocShell() const
ScTabViewShell * GetViewShell() const
void UpdateOutlinerFlags(Outliner &rOutl) const
ScSplitPos GetActivePart() const
bool IsHScrollMode() const
void SetZoom(const Fraction &rNewX, const Fraction &rNewY, std::vector< SCTAB > &tabs)
bool IsThemedCursor() const
SfxObjectShell * GetSfxDocShell() const
SfxBindings & GetBindings()
bool HasEditView(ScSplitPos eWhich) const
SCCOL GetPosX(ScHSplitPos eWhich, SCTAB nForTab=-1) const
void SetSelectionEngine(ScViewSelectionEngine *pSelEngine)
const ScGridOptions & GetGridOptions() const
ScVObjMode GetObjMode(ScVObjType eObj) const
::basegfx::B2DPolygon getTailPolygon() const
virtual const tools::Rectangle & GetLogicRect() const override
SdrLayer * GetLayerPerID(SdrLayerID nID)
const OUString & GetName() const
virtual const tools::Rectangle & GetCurrentBoundRect() const
void Invalidate(sal_uInt16 nId)
void InvalidateAll(bool bWithMsg)
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
css::uno::Reference< css::frame::XController > GetController() const
static void forEachOtherView(ViewShellType *pThisViewShell, FunctionType f)
static void notifyDocumentSizeChanged(SfxViewShell const *pThisView, const OString &rPayload, vcl::ITiledRenderable *pDoc, bool bInvalidateAll=true)
SfxItemPool & GetPool() const
virtual void Invalidate(sal_uInt16 nId=0)
SfxFrame & GetFrame() const
ViewShellDocId GetDocId() const override
SfxViewFrame & GetViewFrame() const
static SAL_WARN_UNUSED_RESULT SfxViewShell * GetNext(const SfxViewShell &rPrev, bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr)
virtual void libreOfficeKitViewInvalidateTilesCallback(const tools::Rectangle *pRect, int nPart, int nMode) const override
static SAL_WARN_UNUSED_RESULT SfxViewShell * GetFirst(bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr)
virtual css::uno::Reference< css::frame::XModel > GetCurrentDocument() const
static SAL_WARN_UNUSED_RESULT SfxViewShell * Current()
constexpr tools::Long Height() const
void setWidth(tools::Long nWidth)
constexpr tools::Long Width() const
bool GetGridVisible() const
void SetTimeout(sal_uInt64 nTimeoutMs)
void SetInvokeHandler(const Link< Timer *, void > &rLink)
static void ClearPrimarySelection()
static VclPtr< reference_type > Create(Arg &&... arg)
B2DRange const & getB2DRange() const
Point LogicToPixel(const Point &rLogicPt) const
::OutputDevice const * GetOutDev() const
Size GetOutputSizePixel() const
std::unique_ptr< ScDocument, o3tl::default_delete< ScDocument > > ScDocumentUniquePtr
constexpr SdrLayerID SC_LAYER_HIDDEN(4)
constexpr SdrLayerID SC_LAYER_FRONT(0)
constexpr SdrLayerID SC_LAYER_INTERN(2)
constexpr SdrLayerID SC_LAYER_BACK(1)
constexpr SdrLayerID SC_LAYER_CONTROLS(3)
#define LINK(Instance, Class, Member)
Reference< XController > xController
#define SC_TABBAR_DEFWIDTH
const tools::Long nScrollX
const tools::Long nScrollY
ScHSplitPos WhichH(ScSplitPos ePos)
ScVSplitPos WhichV(ScSplitPos ePos)
WinBits const WB_SIZEABLE