summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-05-09 13:00:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-09 14:31:12 +0200
commit7f6d5dfb2244468e2faa7be05d4258692c6e84dc (patch)
tree8c03b0980c003a66f2a2683920c1557a3ada6e8e /include
parentb4009daccd11e416865efd5fd3c205c46691bb12 (diff)
loplugin:unusedmethods
Change-Id: I7b4d2e5e611935284e2902b0089950768dfb7717 Reviewed-on: https://gerrit.libreoffice.org/72036 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/formula/funcutl.hxx10
-rw-r--r--include/sfx2/basedlgs.hxx2
-rw-r--r--include/sfx2/templatelocalview.hxx44
-rw-r--r--include/sfx2/thumbnailview.hxx6
-rw-r--r--include/svl/eitem.hxx2
-rw-r--r--include/svl/macitem.hxx4
-rw-r--r--include/svtools/simptabl.hxx7
-rw-r--r--include/svx/ctredlin.hxx12
-rw-r--r--include/vcl/builder.hxx4
-rw-r--r--include/vcl/combobox.hxx2
-rw-r--r--include/vcl/scrbar.hxx1
-rw-r--r--include/vcl/treelistbox.hxx2
-rw-r--r--include/vcl/viewdataentry.hxx1
13 files changed, 0 insertions, 97 deletions
diff --git a/include/formula/funcutl.hxx b/include/formula/funcutl.hxx
index 92578e49f8ad..0ed0eb59f004 100644
--- a/include/formula/funcutl.hxx
+++ b/include/formula/funcutl.hxx
@@ -59,12 +59,6 @@ public:
void SetRefString( const OUString& rStr );
- /**
- * Flag reference valid or invalid, which in turn changes the visual
- * appearance of the control accordingly.
- */
- void SetRefValid(bool bValid);
-
using Edit::SetText;
void SetText( const OUString& rStr ) override;
@@ -202,10 +196,6 @@ public:
void SetReferences( IControlReferenceHandler* pDlg, RefEdit* pEdit );
void SetStartImage();
void SetEndImage();
- void DoRef()
- {
- Click();
- }
};
class FORMULA_DLLPUBLIC WeldRefButton
diff --git a/include/sfx2/basedlgs.hxx b/include/sfx2/basedlgs.hxx
index 9f712bd8632b..88f4af7d9b74 100644
--- a/include/sfx2/basedlgs.hxx
+++ b/include/sfx2/basedlgs.hxx
@@ -56,8 +56,6 @@ private:
protected:
SfxModalDialog(vcl::Window *pParent, const OUString& rID, const OUString& rUIXMLDescription);
- OUString& GetExtraData() { return aExtraData; }
-
public:
virtual ~SfxModalDialog() override;
virtual void dispose() override;
diff --git a/include/sfx2/templatelocalview.hxx b/include/sfx2/templatelocalview.hxx
index 329988c455fd..bc79b36a4bbe 100644
--- a/include/sfx2/templatelocalview.hxx
+++ b/include/sfx2/templatelocalview.hxx
@@ -86,44 +86,12 @@ public:
void showRegion (TemplateContainerItem const *pItem);
- void showRegion (const OUString &rName);
-
- void createContextMenu(const bool bIsDefault );
-
DECL_LINK(ContextMenuSelectHdl, Menu*, bool);
TemplateContainerItem* getRegion(OUString const & sStr);
- sal_uInt16 getRegionId (size_t pos) const;
-
- sal_uInt16 getRegionId (OUString const & sRegionName) const;
-
OUString getRegionName(const sal_uInt16 nRegionId) const;
- OUString getRegionItemName(const sal_uInt16 nItemId) const;
-
- std::vector<OUString> getFolderNames ();
-
- std::vector<TemplateItemProperties>
- getFilteredItems (const std::function<bool (const TemplateItemProperties&) > &rFunc) const;
-
- sal_uInt16 createRegion (const OUString &rName);
-
- bool renameRegion(const OUString &rTitle, const OUString &rNewTitle);
-
- bool removeRegion (const sal_uInt16 nItemId);
-
- bool removeTemplate (const sal_uInt16 nItemId, const sal_uInt16 nSrcItemId);
-
- bool moveTemplate (const ThumbnailViewItem* pItem, const sal_uInt16 nSrcItem,
- const sal_uInt16 nTargetItem);
-
- void moveTemplates (const std::set<const ThumbnailViewItem*,selection_cmp_fn> &rItems, const sal_uInt16 nTargetItem);
-
- bool copyFrom(TemplateContainerItem *pItem, const OUString &rPath);
-
- bool exportTo (const sal_uInt16 nItemId, const sal_uInt16 nRegionItemId, const OUString &rName);
-
virtual bool renameItem(ThumbnailViewItem* pItem, const OUString& sNewTitle) override;
virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
@@ -134,24 +102,14 @@ public:
virtual void KeyInput( const KeyEvent& rKEvt ) override;
- sal_uInt16 getCurRegionId () const { return mnCurRegionId;}
-
- void setOpenRegionHdl(const Link<void*,void> &rLink);
-
void setCreateContextMenuHdl(const Link<ThumbnailViewItem*,void> &rLink);
void setOpenTemplateHdl(const Link<ThumbnailViewItem*,void> &rLink);
void setEditTemplateHdl(const Link<ThumbnailViewItem*,void> &rLink);
- void setDeleteTemplateHdl(const Link<ThumbnailViewItem*,void> &rLink);
-
- void setDefaultTemplateHdl(const Link<ThumbnailViewItem*,void> &rLink);
-
void updateThumbnailDimensions(long itemMaxSize);
- void RemoveDefaultTemplateIcon( const OUString& rPath);
-
static BitmapEx scaleImg (const BitmapEx &rImg, long width, long height);
static BitmapEx getDefaultThumbnail( const OUString& rPath );
@@ -268,8 +226,6 @@ public:
void setDefaultTemplateHdl(const Link<ThumbnailViewItem*,void> &rLink);
- void updateThumbnailDimensions(long itemMaxSize);
-
void RemoveDefaultTemplateIcon( const OUString& rPath);
static BitmapEx scaleImg (const BitmapEx &rImg, long width, long height);
diff --git a/include/sfx2/thumbnailview.hxx b/include/sfx2/thumbnailview.hxx
index 1bc476a47fa5..825244b81445 100644
--- a/include/sfx2/thumbnailview.hxx
+++ b/include/sfx2/thumbnailview.hxx
@@ -226,12 +226,8 @@ public:
void ShowTooltips( bool bShowTooltips );
- void SetMultiSelectionEnabled( bool bIsMultiSelectionEnabled );
-
void filterItems (const std::function<bool (const ThumbnailViewItem*) > &func);
- void setItemStateHdl (const Link<const ThumbnailViewItem*,void> &aLink) { maItemStateHdl = aLink; }
-
virtual void Resize() override;
static BitmapEx readThumbnail(const OUString &msURL);
@@ -375,8 +371,6 @@ public:
virtual void Resize() override;
- static BitmapEx readThumbnail(const OUString &msURL);
-
virtual void Show() override
{
mxScrolledWindow->show();
diff --git a/include/svl/eitem.hxx b/include/svl/eitem.hxx
index eadf1321b8a9..4d42498f1fb9 100644
--- a/include/svl/eitem.hxx
+++ b/include/svl/eitem.hxx
@@ -78,8 +78,6 @@ public:
, m_bValue(bValue)
{ }
- SfxBoolItem(sal_uInt16 nWhich, SvStream & rStream);
-
bool GetValue() const { return m_bValue; }
void SetValue(bool const bTheValue) { m_bValue = bTheValue; }
diff --git a/include/svl/macitem.hxx b/include/svl/macitem.hxx
index a397cc6e3bb4..c38223c41d12 100644
--- a/include/svl/macitem.hxx
+++ b/include/svl/macitem.hxx
@@ -75,8 +75,6 @@ typedef std::map<SvMacroItemId, SvxMacro> SvxMacroTable;
#define SVX_MACROTBL_VERSION31 0
#define SVX_MACROTBL_VERSION40 1
-#define SVX_MACROTBL_AKTVERSION SVX_MACROTBL_VERSION40
-
class SVL_DLLPUBLIC SvxMacroTableDtor
{
private:
@@ -91,8 +89,6 @@ public:
void Read( SvStream & );
SvStream& Write( SvStream & ) const;
- static sal_uInt16 GetVersion() { return SVX_MACROTBL_AKTVERSION; }
-
bool empty() const { return aSvxMacroTable.empty(); }
// returns NULL if no entry exists, or a pointer to the internal value
diff --git a/include/svtools/simptabl.hxx b/include/svtools/simptabl.hxx
index 1238c7c051d6..1e46c0d9a436 100644
--- a/include/svtools/simptabl.hxx
+++ b/include/svtools/simptabl.hxx
@@ -100,22 +100,15 @@ public:
using SvHeaderTabListBox::SetTabs;
- void ClearHeader();
-
- void ShowTable();
-
void EnableTable();
void DisableTable();
bool IsEnabled() const;
void SortByCol(sal_uInt16, bool bDir=true);
- bool GetSortDirection(){ return bSortDirection;}
sal_uInt16 GetSortedCol(){ return nSortCol;}
SvLBoxItem* GetEntryAtPos( SvTreeListEntry* pEntry, sal_uInt16 nPos ) const;
- const CommandEvent& GetCommandEvent() const { return aCEvt; }
bool IsFocusOnCellEnabled() const { return IsCellFocusEnabled(); }
- void SetCommandHdl( const Link<SvSimpleTable*,void>& rLink ) { aCommandLink = rLink; }
HeaderBar& GetTheHeaderBar() { return *aHeaderBar; }
};
diff --git a/include/svx/ctredlin.hxx b/include/svx/ctredlin.hxx
index cb0f854821b5..4114042f8f51 100644
--- a/include/svx/ctredlin.hxx
+++ b/include/svx/ctredlin.hxx
@@ -75,14 +75,6 @@ public:
void* pData;
};
-/// Entries for list.
-class SAL_WARN_UNUSED SvxRedlinEntry : public SvTreeListEntry
-{
-public:
- SvxRedlinEntry();
- virtual ~SvxRedlinEntry() override;
-};
-
/// Class for the representation of Strings depending on the font.
class SAL_WARN_UNUSED SvLBoxColorString : public SvLBoxString
{
@@ -91,7 +83,6 @@ private:
Color aPrivColor;
public:
- SvLBoxColorString( const OUString& rStr, const Color& rCol);
SvLBoxColorString();
virtual ~SvLBoxColorString() override;
@@ -273,7 +264,6 @@ public:
void SetRefHdl( const Link<SvxTPFilter*,void>& rLink ) { aRefLink = rLink; }
void Enable( bool bEnable = true );
- void Disable();
// } Methods for Calc
};
@@ -307,8 +297,6 @@ public:
SvxTPView(weld::Container* pParent, weld::Builder* pTopLevel);
virtual ~SvxTPView() override;
- void InsertWriterHeader();
- void InsertCalcHeader();
SvxRedlinTable* GetTableControl() { return m_xViewData.get(); }
void EnableAccept(bool bFlag);
diff --git a/include/vcl/builder.hxx b/include/vcl/builder.hxx
index 5fdb061f7b1e..2fa8f445199f 100644
--- a/include/vcl/builder.hxx
+++ b/include/vcl/builder.hxx
@@ -481,10 +481,6 @@ public:
{
return m_pUIBuilder->get<T>(sID);
}
- PopupMenu* get_menu(const OString & sID)
- {
- return m_pUIBuilder->get_menu(sID);
- }
void setDeferredProperties()
{
if (!m_pUIBuilder)
diff --git a/include/vcl/combobox.hxx b/include/vcl/combobox.hxx
index 1571cca6961e..0080e39dfda5 100644
--- a/include/vcl/combobox.hxx
+++ b/include/vcl/combobox.hxx
@@ -78,8 +78,6 @@ public:
void EnableAutoSize( bool bAuto );
bool IsAutoSizeEnabled() const;
- void EnableDDAutoWidth( bool b );
-
virtual void SetText( const OUString& rStr ) override;
virtual void SetText( const OUString& rStr, const Selection& rNewSelection ) override;
diff --git a/include/vcl/scrbar.hxx b/include/vcl/scrbar.hxx
index e900b26b152e..8a2fffac0321 100644
--- a/include/vcl/scrbar.hxx
+++ b/include/vcl/scrbar.hxx
@@ -132,7 +132,6 @@ public:
void SetScrollHdl( const Link<ScrollBar*,void>& rLink ) { maScrollHdl = rLink; }
const Link<ScrollBar*,void>& GetScrollHdl() const { return maScrollHdl; }
void SetEndScrollHdl( const Link<ScrollBar*,void>& rLink ) { maEndScrollHdl = rLink; }
- const Link<ScrollBar*,void>& GetEndScrollHdl() const { return maEndScrollHdl; }
virtual Size GetOptimalSize() const override;
};
diff --git a/include/vcl/treelistbox.hxx b/include/vcl/treelistbox.hxx
index f99219d5f1ff..2f855e0a4b7b 100644
--- a/include/vcl/treelistbox.hxx
+++ b/include/vcl/treelistbox.hxx
@@ -437,8 +437,6 @@ public:
void SetSelectHdl( const Link<SvTreeListBox*,void>& rNewHdl ) {aSelectHdl=rNewHdl; }
void SetDeselectHdl( const Link<SvTreeListBox*,void>& rNewHdl ) {aDeselectHdl=rNewHdl; }
void SetDoubleClickHdl(const Link<SvTreeListBox*,bool>& rNewHdl) {aDoubleClickHdl=rNewHdl;}
- const Link<SvTreeListBox*,void>& GetSelectHdl() const { return aSelectHdl; }
- const Link<SvTreeListBox*,void>& GetDeselectHdl() const { return aDeselectHdl; }
const Link<SvTreeListBox*,bool>& GetDoubleClickHdl() const { return aDoubleClickHdl; }
void SetExpandingHdl(const Link<SvTreeListBox*,bool>& rNewHdl){aExpandingHdl=rNewHdl;}
void SetExpandedHdl(const Link<SvTreeListBox*,void>& rNewHdl){aExpandedHdl=rNewHdl;}
diff --git a/include/vcl/viewdataentry.hxx b/include/vcl/viewdataentry.hxx
index 8bf5c6a30b8a..5cbed9d6e3ea 100644
--- a/include/vcl/viewdataentry.hxx
+++ b/include/vcl/viewdataentry.hxx
@@ -68,7 +68,6 @@ public:
bool IsDragTarget() const { return mbDragTarget;}
void SetFocus( bool bFocus );
void SetSelected( bool bSelected );
- void SetHighlighted( bool bHighlighted );
void SetExpanded( bool bExpanded );
void SetSelectable( bool bSelectable );
void SetDragTarget( bool bDragTarget )