diff options
Diffstat (limited to 'sw/inc/view.hxx')
-rw-r--r-- | sw/inc/view.hxx | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx index 9d096d9171d8..c57d8d228f92 100644 --- a/sw/inc/view.hxx +++ b/sw/inc/view.hxx @@ -294,8 +294,11 @@ class SW_DLLPUBLIC SwView: public SfxViewShell DECL_DLLPRIVATE_LINK( TimeoutHdl, Timer*, void ); - inline tools::Long GetXScroll() const; - inline tools::Long GetYScroll() const; + // coverity[ tainted_data_return : FALSE ] version 2023.12.2 + tools::Long GetXScroll() const { return (m_aVisArea.GetWidth() * nScrollX) / 100; } + // coverity[ tainted_data_return : FALSE ] version 2023.12.2 + tools::Long GetYScroll() const { return (m_aVisArea.GetHeight() * nScrollY) / 100; } + SAL_DLLPRIVATE Point AlignToPixel(const Point& rPt) const; SAL_DLLPRIVATE void CalcPt( Point* pPt,const tools::Rectangle& rRect, sal_uInt16 nRangeX, @@ -590,9 +593,10 @@ public: } // hand over Shell - SfxShell *GetCurShell() { return m_pShell; } - SwDocShell *GetDocShell(); - inline const SwDocShell *GetDocShell() const; + SfxShell *GetCurShell() { return m_pShell; } + SwDocShell *GetDocShell(); + const SwDocShell *GetDocShell() const { return const_cast<SwView*>(this)->GetDocShell(); } + virtual FmFormShell *GetFormShell() override { return m_pFormShell; } virtual const FmFormShell *GetFormShell() const override { return m_pFormShell; } @@ -738,21 +742,6 @@ public: void BringToAttention(const SwNode* pNode); }; -inline tools::Long SwView::GetXScroll() const -{ - return (m_aVisArea.GetWidth() * nScrollX) / 100; -} - -inline tools::Long SwView::GetYScroll() const -{ - return (m_aVisArea.GetHeight() * nScrollY) / 100; -} - -inline const SwDocShell *SwView::GetDocShell() const -{ - return const_cast<SwView*>(this)->GetDocShell(); -} - std::unique_ptr<SfxTabPage> CreatePrintOptionsPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet &rOptions, bool bPreview); |