summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-21 14:20:18 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-22 07:02:13 +0000
commitb975aceec3c5f101916b525c10c44408b3e9da9d (patch)
tree3c94667ae8339141d2e7699f813f3ceee8a21fc6 /sw/inc
parent74d4168f8830f7bbec6b784c3fb774296d9adafa (diff)
loplugin:unusedmethods sw(part2)
Change-Id: Ib95638267c5a7df73ccdd179dd62ac7c9a53a5e4 Reviewed-on: https://gerrit.libreoffice.org/17262 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/SidebarWin.hxx3
-rw-r--r--sw/inc/docstyle.hxx1
-rw-r--r--sw/inc/ndgrf.hxx3
-rw-r--r--sw/inc/printdata.hxx1
-rw-r--r--sw/inc/shellio.hxx8
-rw-r--r--sw/inc/swabstdlg.hxx3
-rw-r--r--sw/inc/swbaslnk.hxx2
-rw-r--r--sw/inc/unochart.hxx4
-rw-r--r--sw/inc/unotxdoc.hxx13
-rw-r--r--sw/inc/view.hxx21
10 files changed, 8 insertions, 51 deletions
diff --git a/sw/inc/SidebarWin.hxx b/sw/inc/SidebarWin.hxx
index 21d7dc754d7d..7bbbb2ecffb1 100644
--- a/sw/inc/SidebarWin.hxx
+++ b/sw/inc/SidebarWin.hxx
@@ -108,7 +108,6 @@ class SwSidebarWin : public vcl::Window
void ExecuteCommand(sal_uInt16 nSlot);
void InitControls();
- void HidePostIt();
void DoResize();
void ResizeIfNecessary(long aOldHeight, long aNewHeight);
void SetScrollbar();
@@ -125,7 +124,7 @@ class SwSidebarWin : public vcl::Window
void SetSidebarPosition(sw::sidebarwindows::SidebarPosition eSidebarPosition);
void SetReadonly(bool bSet);
- bool IsReadOnly()
+ bool IsReadOnly()
{
return mbReadonly;
}
diff --git a/sw/inc/docstyle.hxx b/sw/inc/docstyle.hxx
index 05076412653c..f874ac57c457 100644
--- a/sw/inc/docstyle.hxx
+++ b/sw/inc/docstyle.hxx
@@ -209,7 +209,6 @@ public:
virtual void Remove( SfxStyleSheetBase* pStyle) SAL_OVERRIDE;
- void SetOrganizerMode( bool bMode ) { bOrganizer = bMode; }
bool IsOrganizerMode() const { return bOrganizer; }
virtual SfxStyleSheetIteratorPtr CreateIterator( SfxStyleFamily, sal_uInt16 nMask ) SAL_OVERRIDE;
diff --git a/sw/inc/ndgrf.hxx b/sw/inc/ndgrf.hxx
index 668c5f5ecc61..59bd4457f1e3 100644
--- a/sw/inc/ndgrf.hxx
+++ b/sw/inc/ndgrf.hxx
@@ -71,10 +71,7 @@ class SW_DLLPUBLIC SwGrfNode: public SwNoTextNode
void InsertLink( const OUString& rGrfName, const OUString& rFltName );
bool ImportGraphic( SvStream& rStrm );
- /** adjust return type and rename method to
- indicate that its an private one. */
- void DelStreamName();
DECL_LINK( SwapGraphic, GraphicObject* );
/** helper method to determine stream for the embedded graphic.
diff --git a/sw/inc/printdata.hxx b/sw/inc/printdata.hxx
index 54f008454af2..e7fdfefcad90 100644
--- a/sw/inc/printdata.hxx
+++ b/sw/inc/printdata.hxx
@@ -135,7 +135,6 @@ public:
/** Note: in the context where this class is used the pointers should always be valid
during the lifetime of this object */
- const SwPrintUIOptions & GetPrintUIOptions() const { return *m_pPrintUIOptions; }
const SwRenderData & GetRenderData() const { return *m_pRenderData; }
void SetPrintUIOptions( const SwPrintUIOptions *pOpt ) { m_pPrintUIOptions = pOpt; }
void SetRenderData( const SwRenderData *pData ) { m_pRenderData = pData; }
diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx
index 0e1eb957723f..6db4171cf202 100644
--- a/sw/inc/shellio.hxx
+++ b/sw/inc/shellio.hxx
@@ -280,8 +280,6 @@ class SW_DLLPUBLIC StgReader : public Reader
{
OUString aFltName;
-protected:
- sal_uLong OpenMainStream( tools::SvRef<SotStorageStream>& rRef, sal_uInt16& rBuffSize );
public:
virtual int GetReaderType() SAL_OVERRIDE;
OUString GetFltName() { return aFltName; }
@@ -312,7 +310,6 @@ public:
void SetBaseURL( const OUString& rURL );
bool IsOld() const;
- sal_uLong ConvertToNew(); // Convert text modules.
sal_uInt16 GetCount() const; // Get count text modules.
sal_uInt16 GetIndex( const OUString& ) const; // Get index of short names.
@@ -423,8 +420,6 @@ public:
void SetShowProgress( bool bFlag = false ) { bShowProgress = bFlag; }
- const OUString* GetOrigFileName() const { return pOrigFileName; }
-
const SwAsciiOptions& GetAsciiOptions() const { return aAscOpts; }
void SetAsciiOptions( const SwAsciiOptions& rOpt ) { aAscOpts = rOpt; }
@@ -450,9 +445,6 @@ public:
static SvStream& OutLong( SvStream& rStrm, long nVal );
static SvStream& OutULong( SvStream& rStrm, sal_uLong nVal );
- inline SvStream& OutLong( long nVal ) { return OutLong( Strm(), nVal ); }
- inline SvStream& OutULong( sal_uLong nVal ) { return OutULong( Strm(), nVal ); }
-
void SetStream(SvStream *const pStream);
SvStream& Strm();
diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx
index cb5ec2feb3f5..4accac06eaff 100644
--- a/sw/inc/swabstdlg.hxx
+++ b/sw/inc/swabstdlg.hxx
@@ -166,7 +166,6 @@ public:
class AbstractMultiTOXTabDialog : public VclAbstractDialog
{
public:
- virtual SwForm* GetForm(CurTOXType eType) = 0;
virtual CurTOXType GetCurrentTOXType() const = 0;
virtual SwTOXDescription& GetTOXDescription(CurTOXType eTOXTypes) = 0;
//from SfxTabDialog
@@ -312,7 +311,6 @@ class SwMailMergeConfigItem;
class AbstractMailMergeWizard : public VclAbstractDialog2
{
public:
- virtual void SetReloadDocument(const OUString& rURL) = 0;
virtual OUString GetReloadDocument() const = 0;
virtual bool ShowPage( sal_uInt16 nLevel ) = 0;
virtual sal_uInt16 GetRestartPage() const = 0;
@@ -462,7 +460,6 @@ public:
// for tabpage
virtual CreateTabPage GetTabPageCreatorFunc( sal_uInt16 nId ) = 0;
- virtual GetTabPageRanges GetTabPageRangesFunc( sal_uInt16 nId ) = 0;
protected:
~SwAbstractDialogFactory() {}
diff --git a/sw/inc/swbaslnk.hxx b/sw/inc/swbaslnk.hxx
index 3a09b6c91b2b..f8c4a54b5c95 100644
--- a/sw/inc/swbaslnk.hxx
+++ b/sw/inc/swbaslnk.hxx
@@ -56,8 +56,6 @@ public:
virtual const SwNode* GetAnchor() const;
- SwContentNode *GetContentNode() { return pContentNode; }
-
// For graphics only.
bool SwapIn( bool bWaitForData = false, bool bNativFormat = false );
diff --git a/sw/inc/unochart.hxx b/sw/inc/unochart.hxx
index 3f59dd3627f6..678d29456359 100644
--- a/sw/inc/unochart.hxx
+++ b/sw/inc/unochart.hxx
@@ -191,14 +191,12 @@ public:
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
- SwFrameFormat* GetFrameFormat() const { return const_cast<SwFrameFormat*>(static_cast<const SwFrameFormat*>(GetRegisteredIn())); }
-
void AddDataSequence( const SwTable &rTable, ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > &rxDataSequence );
void RemoveDataSequence( const SwTable &rTable, ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > &rxDataSequence );
// will send modifdied events for all data-sequences of the table
void InvalidateTable( const SwTable *pTable );
- bool DeleteBox( const SwTable *pTable, const SwTableBox &rBox );
+ bool DeleteBox( const SwTable *pTable, const SwTableBox &rBox );
void DisposeAllDataSequences( const SwTable *pTable );
// functionality needed to get notified about new added rows/cols
diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx
index 21907d4aa483..562752342036 100644
--- a/sw/inc/unotxdoc.hxx
+++ b/sw/inc/unotxdoc.hxx
@@ -156,7 +156,7 @@ private:
css::uno::Reference< css::container::XIndexAccess > * pxXEndnotes;
css::uno::Reference< css::beans::XPropertySet > * pxXEndnoteSettings;
css::uno::Reference< css::container::XNameAccess > * pxXReferenceMarks;
- css::uno::Reference< css::container::XEnumerationAccess > * pxXTextFieldTypes;
+ css::uno::Reference< css::container::XEnumerationAccess > * pxXTextFieldTypes;
css::uno::Reference< css::container::XNameAccess > * pxXTextFieldMasters;
css::uno::Reference< css::container::XNameAccess > * pxXTextSections;
css::uno::Reference< css::container::XNameAccess > * pxXBookmarks;
@@ -165,12 +165,12 @@ private:
css::uno::Reference< css::container::XNameAccess > * pxXGraphicObjects;
css::uno::Reference< css::container::XNameAccess > * pxXEmbeddedObjects;
css::uno::Reference< css::container::XNameAccess > * pxXStyleFamilies;
- mutable css::uno::Reference< css::style::XAutoStyles > * pxXAutoStyles;
- css::uno::Reference< css::container::XIndexReplace > * pxXChapterNumbering;
+ mutable css::uno::Reference< css::style::XAutoStyles > * pxXAutoStyles;
+ css::uno::Reference< css::container::XIndexReplace > * pxXChapterNumbering;
css::uno::Reference< css::container::XIndexAccess > * pxXDocumentIndexes;
- css::uno::Reference< css::beans::XPropertySet > * pxXLineNumberingProperties;
- css::uno::Reference< css::container::XNameAccess > * pxLinkTargetSupplier;
+ css::uno::Reference< css::beans::XPropertySet > * pxXLineNumberingProperties;
+ css::uno::Reference< css::container::XNameAccess > * pxLinkTargetSupplier;
css::uno::Reference< css::container::XEnumerationAccess >* pxXRedlines;
css::uno::Reference< css::container::XNameContainer> xXFormsContainer;
@@ -180,9 +180,8 @@ private:
SwXDocumentPropertyHelper* pPropertyHelper;
SwPrintUIOptions * m_pPrintUIOptions;
- SwRenderData * m_pRenderData;
+ SwRenderData * m_pRenderData;
- void GetBodyText();
void GetNumberFormatter();
css::uno::Reference<css::uno::XInterface> create(
diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx
index 1c09a8b8a909..4e07635a2082 100644
--- a/sw/inc/view.hxx
+++ b/sw/inc/view.hxx
@@ -268,12 +268,7 @@ class SW_DLLPUBLIC SwView: public SfxViewShell
SAL_DLLPRIVATE bool IsTextTool() const;
- // create control elements
- SAL_DLLPRIVATE void CreateBtns();
- DECL_DLLPRIVATE_LINK( BtnPage, Button * );
-
DECL_DLLPRIVATE_LINK_TYPED( TimeoutHdl, Timer*, void );
- DECL_DLLPRIVATE_LINK( UpdatePercentHdl, GraphicFilter* );
DECL_DLLPRIVATE_LINK( FieldPopupModeEndHdl, void* );
@@ -302,8 +297,6 @@ class SW_DLLPUBLIC SwView: public SfxViewShell
DECL_DLLPRIVATE_LINK( WindowChildEventListener, VclSimpleEvent* );
SAL_DLLPRIVATE void CalcVisArea( const Size &rPixelSz );
- SAL_DLLPRIVATE void CreatePageButtons(bool bShow);
-
// linguistics functions
SAL_DLLPRIVATE void HyphenateDocument();
SAL_DLLPRIVATE bool IsDrawTextHyphenate();
@@ -319,7 +312,6 @@ class SW_DLLPUBLIC SwView: public SfxViewShell
SAL_DLLPRIVATE void SpellEnd( SwConversionArgs *pConvArgs = 0 );
SAL_DLLPRIVATE void HyphStart( SvxSpellArea eSpell );
- SAL_DLLPRIVATE bool CheckSpecialContent();
SAL_DLLPRIVATE void SpellKontext(bool bOn = true)
{ m_bCenterCrsr = bOn; m_bAlwaysShowSel = bOn; }
@@ -341,8 +333,6 @@ class SW_DLLPUBLIC SwView: public SfxViewShell
SAL_DLLPRIVATE virtual void Move() SAL_OVERRIDE;
- SAL_DLLPRIVATE void DocumentStatsChanged();
-
public: // #i123922# Needs to be called from a 2nd place now as a helper method
SAL_DLLPRIVATE bool InsertGraphicDlg( SfxRequest& );
@@ -366,8 +356,6 @@ protected:
virtual void InnerResizePixel( const Point &rOfs, const Size &rSize ) SAL_OVERRIDE;
virtual void OuterResizePixel( const Point &rOfs, const Size &rSize ) SAL_OVERRIDE;
- void SetImageButtonColor(Color& rColor);
-
const SwFrameFormat* GetLastTableFrameFormat() const {return m_pLastTableFormat;}
void SetLastTableFrameFormat(const SwFrameFormat* pSet) {m_pLastTableFormat = pSet;}
@@ -453,12 +441,8 @@ public:
void SetTabRowFromDoc( bool b ) { m_bTabRowFromDoc = b; }
bool IsTabRowFromDoc() const { return m_bTabRowFromDoc; }
- // -> #i23726#
void SetNumRuleNodeFromDoc( SwTextNode * pNumRuleNode )
{ m_pNumRuleNodeFromDoc = pNumRuleNode; }
- void SetNumIndentFromDoc(bool b) { m_bNumIndentFromDoc = b; }
- bool IsNumIndentFromDoc() const { return NULL != m_pNumRuleNodeFromDoc; }
- // <- #i23726#
void DocSzChgd( const Size& rNewSize );
const Size& GetDocSz() const { return m_aDocSz; }
@@ -502,7 +486,6 @@ public:
void ChangeVRulerMetric(FieldUnit eUnit);
void GetVRulerMetric(FieldUnit& rToFill) const;
- bool StatTab() const { return m_pHRuler->IsVisible(); }
SvxRuler& GetHRuler() { return *m_pHRuler; }
SvxRuler& GetVRuler() { return *m_pVRuler; }
void InvalidateRulerPos();
@@ -511,13 +494,9 @@ public:
// Handler
void Execute(SfxRequest&);
- void ExecPageMove(SfxRequest&);
- void ExecStyle(SfxRequest&);
void ExecLingu(SfxRequest&);
- void ExecDataBase(SfxRequest&);
void ExecDlg(SfxRequest&);
void ExecDlgExt(SfxRequest&);
- void ExecDBDlg(SfxRequest &);
void ExecColl(SfxRequest&);
void ExecutePrint(SfxRequest&);
void ExecDraw(SfxRequest&);