loplugin:unusedmethods

Change-Id: Ib80bf740b664b4b8ab24e209d7690d8027473c5a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197938
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
This commit is contained in:
Noel Grandin
2026-01-23 15:33:54 +01:00
parent 585d1728be
commit 5b9e6ccfa8
15 changed files with 21 additions and 27 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ public:
rtl::Reference<SdrObject> CreateXFormsControl( const svx::OXFormsDescriptor &_rDesc );
virtual void MarkListHasChanged() override;
virtual void AddDeviceToPaintView(OutputDevice& rNewDev, vcl::Window* pWindow) override;
virtual void AddDeviceToPaintView(OutputDevice& rNewDev) override;
virtual void DeleteDeviceFromPaintView(OutputDevice& rOldDev) override;
static void createControlLabelPair(
+1 -5
View File
@@ -62,9 +62,6 @@ private:
// the OutputDevice this window represents
VclPtr<OutputDevice> mpOutputDevice;
/// In case mrOutputDevice is a buffer for a vcl::Window, this is the window.
VclPtr<vcl::Window> mpWindow;
// the SdrPaintView this window belongs to
SdrPaintView& mrPaintView;
@@ -90,7 +87,7 @@ private:
void impCreateOverlayManager();
public:
SdrPaintWindow(SdrPaintView& rNewPaintView, OutputDevice& rOut, vcl::Window* pWindow = nullptr);
SdrPaintWindow(SdrPaintView& rNewPaintView, OutputDevice& rOut);
~SdrPaintWindow();
// allow reference to patched, see patchPaintWindow/unpatchPaintWindow
@@ -99,7 +96,6 @@ public:
// data read accesses
OutputDevice& GetOutputDevice() const { return *mpOutputDevice; }
vcl::Window* GetWindow() const { return mpWindow; }
// OVERLAYMANAGER
rtl::Reference< sdr::overlay::OverlayManager > const & GetOverlayManager() const;
+1 -1
View File
@@ -286,7 +286,7 @@ public:
void SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr);
// Intern: at mounting new OutlinerView...
virtual void AddDeviceToPaintView(OutputDevice& rNewDev, vcl::Window* pWindow) override;
virtual void AddDeviceToPaintView(OutputDevice& rNewDev) override;
virtual void DeleteDeviceFromPaintView(OutputDevice& rOldWin) override;
sal_uInt16 GetSelectionLevel() const;
+1 -1
View File
@@ -311,7 +311,7 @@ public:
SdrPageView* GetSdrPageView() const { return mpPageView.get(); }
// A SdrView can be output to multiple devices at the same time
virtual void AddDeviceToPaintView(OutputDevice& rNewDev, vcl::Window* pWindow);
virtual void AddDeviceToPaintView(OutputDevice& rNewDev);
virtual void DeleteDeviceFromPaintView(OutputDevice& rOldDev);
void SetLayerVisible(const OUString& rName, bool bShow);
+2 -2
View File
@@ -240,7 +240,7 @@ void ScTabView::MakeDrawView( TriState nForceDesignMode )
if (pGridWin[i])
{
if ( SC_SPLIT_BOTTOMLEFT != static_cast<ScSplitPos>(i) )
pDrawView->AddDeviceToPaintView(*pGridWin[i]->GetOutDev(), nullptr);
pDrawView->AddDeviceToPaintView(*pGridWin[i]->GetOutDev());
}
pDrawView->RecalcScale();
for (i=0; i<4; i++)
@@ -273,7 +273,7 @@ void ScTabView::DoAddWin( ScGridWindow* pWin )
{
if (pDrawView)
{
pDrawView->AddDeviceToPaintView(*pWin->GetOutDev(), nullptr);
pDrawView->AddDeviceToPaintView(*pWin->GetOutDev());
pWin->DrawLayerCreated();
}
pWin->SetAutoSpellContext(mpSpellCheckCxt);
+1 -1
View File
@@ -98,7 +98,7 @@ public:
static SdrTextObj* CreateTitleTextObject(SdPage* pPage);
static SdrTextObj* CreateOutlineTextObject(SdPage* pPage);
virtual void AddDeviceToPaintView(OutputDevice& rDev, vcl::Window* pWindow) override;
virtual void AddDeviceToPaintView(OutputDevice& rDev) override;
virtual void DeleteDeviceFromPaintView(OutputDevice& rDev) override;
OutlinerView* GetViewByWindow(vcl::Window const * pWin) const override;
+1 -1
View File
@@ -597,7 +597,7 @@ void ShowWindow::DeleteWindowFromPaintView()
void ShowWindow::AddWindowToPaintView()
{
if( mpViewShell->GetView() )
mpViewShell->GetView()->AddDeviceToPaintView( *GetOutDev(), nullptr );
mpViewShell->GetView()->AddDeviceToPaintView( *GetOutDev() );
sal_uInt16 nChild = GetChildCount();
while (nChild)
+2 -2
View File
@@ -980,7 +980,7 @@ bool SlideshowImpl::startPreview(
if( mpView )
{
mpView->AddDeviceToPaintView( *mpShowWindow->GetOutDev(), nullptr );
mpView->AddDeviceToPaintView( *mpShowWindow->GetOutDev() );
mpView->SetAnimationPause( true );
}
@@ -1169,7 +1169,7 @@ bool SlideshowImpl::startShow( PresentationSettingsEx const * pPresSettings )
if( mpView )
{
mpView->AddDeviceToPaintView( *mpShowWindow->GetOutDev(), nullptr );
mpView->AddDeviceToPaintView( *mpShowWindow->GetOutDev() );
mpView->SetAnimationPause( true );
}
+2 -2
View File
@@ -414,7 +414,7 @@ void OutlineView::DisconnectFromApplication()
Application::RemoveEventListener(LINK(this, OutlineView, AppEventListenerHdl));
}
void OutlineView::AddDeviceToPaintView(OutputDevice& rDev, vcl::Window* pWindow)
void OutlineView::AddDeviceToPaintView(OutputDevice& rDev)
{
bool bAdded = false;
bool bValidArea = false;
@@ -448,7 +448,7 @@ void OutlineView::AddDeviceToPaintView(OutputDevice& rDev, vcl::Window* pWindow)
// white background in Outliner
rDev.SetBackground( Wallpaper( aWhiteColor ) );
::sd::View::AddDeviceToPaintView(rDev, pWindow);
::sd::View::AddDeviceToPaintView(rDev);
}
void OutlineView::DeleteDeviceFromPaintView(OutputDevice& rDev)
+2 -2
View File
@@ -171,9 +171,9 @@ namespace
}
void FmFormView::AddDeviceToPaintView(OutputDevice& rNewDev, vcl::Window* pWindow)
void FmFormView::AddDeviceToPaintView(OutputDevice& rNewDev)
{
E3dView::AddDeviceToPaintView(rNewDev, pWindow);
E3dView::AddDeviceToPaintView(rNewDev);
// look up the PageViewWindow for the newly inserted window, and care for it
// #i39269# / 2004-12-20 / frank.schoenheit@sun.com
+1 -2
View File
@@ -239,9 +239,8 @@ void SdrPaintWindow::impCreateOverlayManager()
mxOverlayManager = mrPaintView.CreateOverlayManager(GetOutputDevice());
}
SdrPaintWindow::SdrPaintWindow(SdrPaintView& rNewPaintView, OutputDevice& rOut, vcl::Window* pWindow)
SdrPaintWindow::SdrPaintWindow(SdrPaintView& rNewPaintView, OutputDevice& rOut)
: mpOutputDevice(&rOut),
mpWindow(pWindow),
mrPaintView(rNewPaintView),
mbTemporaryTarget(false), // #i72889#
mbOutputToWindow(OUTDEV_WINDOW == mpOutputDevice->GetOutDevType()),
+2 -2
View File
@@ -2570,9 +2570,9 @@ void SdrObjEditView::SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveH
SdrGlueEditView::SetStyleSheet(pStyleSheet, bDontRemoveHardAttr);
}
void SdrObjEditView::AddDeviceToPaintView(OutputDevice& rNewDev, vcl::Window* pWindow)
void SdrObjEditView::AddDeviceToPaintView(OutputDevice& rNewDev)
{
SdrGlueEditView::AddDeviceToPaintView(rNewDev, pWindow);
SdrGlueEditView::AddDeviceToPaintView(rNewDev);
if (mxWeakTextEditObj.get() && !mbTextEditOnlyOneView
&& rNewDev.GetOutDevType() == OUTDEV_WINDOW)
+3 -3
View File
@@ -175,7 +175,7 @@ SdrPaintView::SdrPaintView(SdrModel& rSdrModel, OutputDevice* pOut)
SetDefaultStyleSheet(GetModel().GetDefaultStyleSheet(), true);
if (pOut)
AddDeviceToPaintView(*pOut, nullptr);
AddDeviceToPaintView(*pOut);
maColorConfig.AddListener(this);
onChangeColorConfig();
@@ -405,9 +405,9 @@ void SdrPaintView::HideSdrPage()
}
}
void SdrPaintView::AddDeviceToPaintView(OutputDevice& rNewDev, vcl::Window *pWindow)
void SdrPaintView::AddDeviceToPaintView(OutputDevice& rNewDev)
{
SdrPaintWindow* pNewPaintWindow = new SdrPaintWindow(*this, rNewDev, pWindow);
SdrPaintWindow* pNewPaintWindow = new SdrPaintWindow(*this, rNewDev);
maPaintWindows.emplace_back(pNewPaintWindow);
if(mpPageView)
-1
View File
@@ -681,7 +681,6 @@ public:
SAL_DLLPRIVATE virtual std::unique_ptr<SfxTabPage> CreatePrintOptionsPage(weld::Container* pPage, weld::DialogController* pController,
const SfxItemSet& rSet) override;
static SvxSearchItem* GetSearchItem() { return s_pSrchItem; }
static void SetSearchItem(SvxSearchItem* pSearchItem) { s_pSrchItem = pSearchItem; }
/// See SfxViewShell::getPart().
int getPart() const override;
+1 -1
View File
@@ -1562,7 +1562,7 @@ bool SwViewShell::SmoothScroll( tools::Long lXDiff, tools::Long lYDiff, const to
if(!HasDrawView())
MakeDrawView();
SdrView* pDrawView = GetDrawView();
pDrawView->AddDeviceToPaintView(*pVout, nullptr);
pDrawView->AddDeviceToPaintView(*pVout);
// clear mpWin during DLPrePaint2 to get paint preparation for mpOut, but set it again
// immediately afterwards. There are many decisions in SW which imply that Printing