summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-06-20 10:46:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-06-20 12:21:54 +0200
commit4aa2cc878dae3b34b16ccacd9358fda5e6d6a197 (patch)
treed4febfc07c5365baefdbe8e4aceafee8d3d75030 /sw/source
parente74a5bea04483dc96ef6d4b34edd8735ec73bcd8 (diff)
loplugin:unusedmethods
Change-Id: Ia216da9bd7764f2d21aaee761a02eafda88d892e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169257 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/inc/drawfont.hxx5
-rw-r--r--sw/source/filter/ww8/ww8scan.hxx1
-rw-r--r--sw/source/ui/dialog/macassgn.cxx28
-rw-r--r--sw/source/uibase/docvw/PostItMgr.cxx9
-rw-r--r--sw/source/uibase/inc/macassgn.hxx2
-rw-r--r--sw/source/uibase/inc/wrtsh.hxx2
-rw-r--r--sw/source/writerfilter/dmapper/DomainMapperTableManager.cxx8
-rw-r--r--sw/source/writerfilter/dmapper/DomainMapperTableManager.hxx1
-rw-r--r--sw/source/writerfilter/dmapper/PropertyMap.hxx5
-rw-r--r--sw/source/writerfilter/dmapper/TablePositionHandler.hxx12
10 files changed, 0 insertions, 73 deletions
diff --git a/sw/source/core/inc/drawfont.hxx b/sw/source/core/inc/drawfont.hxx
index c262cb931581..0251888959ff 100644
--- a/sw/source/core/inc/drawfont.hxx
+++ b/sw/source/core/inc/drawfont.hxx
@@ -435,11 +435,6 @@ public:
m_nLen = nNewLen;
}
- void SetLayoutContext(std::optional<SwLinePortionLayoutContext> nNew)
- {
- m_nLayoutContext = nNew;
- }
-
void SetWrong(sw::WrongListIterator *const pNew)
{
m_pWrong = pNew;
diff --git a/sw/source/filter/ww8/ww8scan.hxx b/sw/source/filter/ww8/ww8scan.hxx
index 320d3e3cb10e..b82cd1adb777 100644
--- a/sw/source/filter/ww8/ww8scan.hxx
+++ b/sw/source/filter/ww8/ww8scan.hxx
@@ -1080,7 +1080,6 @@ public:
~WW8ScannerBase();
bool AreThereFootnotes() const { return m_pFootnotePLCF->Count() > 0; };
bool AreThereEndnotes() const { return m_pEdnPLCF->Count() > 0; };
- tools::Long GetEndnoteCount() const { return m_pEdnPLCF->Count(); };
//If you use WW8Fc2Cp you are almost certainly doing the wrong thing
//when it comes to fastsaved files, avoid like the plague. For export
diff --git a/sw/source/ui/dialog/macassgn.cxx b/sw/source/ui/dialog/macassgn.cxx
index fe059dc04993..8eadf107eda5 100644
--- a/sw/source/ui/dialog/macassgn.cxx
+++ b/sw/source/ui/dialog/macassgn.cxx
@@ -100,32 +100,4 @@ SfxEventNamesItem SwMacroAssignDlg::AddEvents( DlgEventType eType )
return aItem;
}
-void SwMacroAssignDlg::INetFormatDlg(weld::Window* pParent, SwWrtShell& rSh, const SvxMacroItem& rItem,
- const std::function<void(const SvxMacroItem&)>& onItemSelectedFunc )
-{
- SfxItemSetFixed<RES_FRMMACRO, RES_FRMMACRO, SID_EVENTCONFIG, SID_EVENTCONFIG> aSet( rSh.GetAttrPool() );
- aSet.Put( rItem );
- aSet.Put( AddEvents( MACASSGN_INETFMT ) );
-
- SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
- VclPtr<SfxAbstractDialog> pMacroDlg( pFact->CreateEventConfigDialog(pParent, aSet,
- rSh.GetView().GetViewFrame().GetFrame().GetFrameInterface() ) );
- if ( !pMacroDlg )
- return;
- pMacroDlg->StartExecuteAsync(
- [pMacroDlg, onItemSelectedFunc] (sal_Int32 nResult)->void
- {
- if (nResult == RET_OK)
- {
- const SfxItemSet* pOutSet = pMacroDlg->GetOutputItemSet();
- if( const SvxMacroItem* pItem = pOutSet->GetItemIfSet( RES_FRMMACRO, false ))
- {
- onItemSelectedFunc(*pItem);
- }
- }
- pMacroDlg->disposeOnce();
- }
- );
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx
index afb2238c3a04..318fc9c5e197 100644
--- a/sw/source/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/uibase/docvw/PostItMgr.cxx
@@ -1814,15 +1814,6 @@ void SwPostItMgr::Hide()
}
}
-void SwPostItMgr::Show()
-{
- for (auto const& postItField : mvPostItFields)
- {
- postItField->mbShow = true;
- }
- LayoutPostIts();
-}
-
SwAnnotationWin* SwPostItMgr::GetSidebarWin( const SfxBroadcaster* pBroadcaster) const
{
for (auto const& postItField : mvPostItFields)
diff --git a/sw/source/uibase/inc/macassgn.hxx b/sw/source/uibase/inc/macassgn.hxx
index 29da5e6eb7a8..4e26c39fa92b 100644
--- a/sw/source/uibase/inc/macassgn.hxx
+++ b/sw/source/uibase/inc/macassgn.hxx
@@ -40,8 +40,6 @@ class SwMacroAssignDlg
{
public:
static SfxEventNamesItem AddEvents(DlgEventType eType);
- static void INetFormatDlg(weld::Window* pParent, SwWrtShell& rSh, const SvxMacroItem& rItem,
- const std::function<void(const SvxMacroItem&)>& onItemSelectedFunc);
};
#endif
diff --git a/sw/source/uibase/inc/wrtsh.hxx b/sw/source/uibase/inc/wrtsh.hxx
index 2412c7749bb2..2abebb09d35a 100644
--- a/sw/source/uibase/inc/wrtsh.hxx
+++ b/sw/source/uibase/inc/wrtsh.hxx
@@ -239,8 +239,6 @@ typedef bool (SwWrtShell::*FNSimpleMove)();
{ SimpleMove( &SwWrtShell::BwdPara_, false/*bSelect*/ ); }
void FwdSentence( bool bSelect = false )
{ SimpleMove( &SwWrtShell::FwdSentence_, bSelect ); }
- void EndSentence( bool bSelect = false )
- { SimpleMove( &SwWrtShell::EndSentence_, bSelect ); }
void BwdSentence( bool bSelect = false )
{ SimpleMove( &SwWrtShell::BwdSentence_, bSelect ); }
diff --git a/sw/source/writerfilter/dmapper/DomainMapperTableManager.cxx b/sw/source/writerfilter/dmapper/DomainMapperTableManager.cxx
index 499a2a580ad2..c38b6ae09e46 100644
--- a/sw/source/writerfilter/dmapper/DomainMapperTableManager.cxx
+++ b/sw/source/writerfilter/dmapper/DomainMapperTableManager.cxx
@@ -410,14 +410,6 @@ uno::Sequence<beans::PropertyValue> DomainMapperTableManager::getCurrentTablePos
return uno::Sequence< beans::PropertyValue >();
}
-TablePositionHandler* DomainMapperTableManager::getCurrentTableRealPosition()
-{
- if ( !m_aTablePositions.empty( ) && m_aTablePositions.back() )
- return m_aTablePositions.back().get();
- else
- return nullptr;
-}
-
const TableParagraphVectorPtr & DomainMapperTableManager::getCurrentParagraphs( )
{
return m_aParagraphsToEndTable.top( );
diff --git a/sw/source/writerfilter/dmapper/DomainMapperTableManager.hxx b/sw/source/writerfilter/dmapper/DomainMapperTableManager.hxx
index 6b5cee85743f..9174b88ed92c 100644
--- a/sw/source/writerfilter/dmapper/DomainMapperTableManager.hxx
+++ b/sw/source/writerfilter/dmapper/DomainMapperTableManager.hxx
@@ -95,7 +95,6 @@ public:
/// Turn the attributes collected so far in m_aTableLook into a property and clear the container.
void finishTableLook();
css::uno::Sequence<css::beans::PropertyValue> getCurrentTablePosition();
- TablePositionHandler* getCurrentTableRealPosition();
virtual void cellProps(const TablePropertyMapPtr& pProps) override
{
diff --git a/sw/source/writerfilter/dmapper/PropertyMap.hxx b/sw/source/writerfilter/dmapper/PropertyMap.hxx
index a232604ccbff..565b42c020e4 100644
--- a/sw/source/writerfilter/dmapper/PropertyMap.hxx
+++ b/sw/source/writerfilter/dmapper/PropertyMap.hxx
@@ -364,9 +364,6 @@ public:
return m_sPageStyleName;
}
- bool getFirstPageHeader() { return m_bFirstPageHeaderLinkToPrevious; }
- bool getFirstPageFooter() { return m_bFirstPageFooterLinkToPrevious; }
-
// @throws css::beans::UnknownPropertyException
// @throws css::beans::PropertyVetoException
// @throws css::lang::IllegalArgumentException
@@ -391,8 +388,6 @@ public:
void SetPageNumber( sal_Int32 nSet ) { m_nPageNumber = nSet; }
void SetPageNumberType( sal_Int32 nSet ) { m_nPageNumberType = nSet; }
void SetBreakType( sal_Int32 nSet ) { m_nBreakType = nSet; }
- // GetBreakType returns -1 if the breakType has not yet been identified for the section
- sal_Int32 GetBreakType() const { return m_nBreakType; }
void SetLeftMargin( sal_Int32 nSet ) { m_nLeftMargin = nSet; }
sal_Int32 GetLeftMargin() const { return m_nLeftMargin; }
diff --git a/sw/source/writerfilter/dmapper/TablePositionHandler.hxx b/sw/source/writerfilter/dmapper/TablePositionHandler.hxx
index 353c34d169f8..8ef0f87495f0 100644
--- a/sw/source/writerfilter/dmapper/TablePositionHandler.hxx
+++ b/sw/source/writerfilter/dmapper/TablePositionHandler.hxx
@@ -37,18 +37,6 @@ class TablePositionHandler : public LoggedProperties
void lcl_sprm(Sprm& sprm) override;
public:
- sal_Int32 getY() const { return m_nY; }
- sal_Int32 getX() const { return m_nX; }
- sal_Int32 getLeftFromText() const { return m_nLeftFromText; }
- sal_Int32 getRightFromText() const { return m_nRightFromText; }
- sal_Int32 getTopFromText() const { return m_nTopFromText; }
- sal_Int32 getBottomFromText() const { return m_nBottomFromText; }
-
- const OUString& getVertAnchor() const { return m_aVertAnchor; }
- const OUString& getYSpec() const { return m_aYSpec; }
- const OUString& getHorzAnchor() const { return m_aHorzAnchor; }
- const OUString& getXSpec() const { return m_aXSpec; }
-
void setTableOverlap(Id nTableOverlap) { m_nTableOverlap = nTableOverlap; }
TablePositionHandler();