summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-22 16:34:14 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-22 18:57:43 +0000
commit7419057e3ec4365748fa6456e207f40fd9e09c62 (patch)
treec7ae11659b42539efb0f8c6eef68c1ee14c10dca /svx
parentc4cd079b8f613084a99a83b95c3968b65cbd8900 (diff)
loplugin:unusedmethods in chart2..svx
Change-Id: Ifb6045885049733415895f58cdd911256f48323c Reviewed-on: https://gerrit.libreoffice.org/29187 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/dlgctrl.cxx89
-rw-r--r--svx/source/dialog/pagenumberlistbox.cxx8
-rw-r--r--svx/source/form/fmsrcimp.cxx52
-rw-r--r--svx/source/tbxctrls/SvxPresetListBox.cxx1
-rw-r--r--svx/source/xoutdev/xtable.cxx6
5 files changed, 2 insertions, 154 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index 662f62af4057..a9c8b598f815 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -1193,34 +1193,6 @@ void HatchingLB::Fill( const XHatchListRef &pList )
SetUpdateMode( true );
}
-void HatchingLB::Append( const XHatchEntry& rEntry, const Bitmap& rBitmap )
-{
- if(!rBitmap.IsEmpty())
- {
- InsertEntry(rEntry.GetName(), Image(rBitmap));
- }
- else
- {
- InsertEntry( rEntry.GetName() );
- }
-
- AdaptDropDownLineCountToMaximum();
-}
-
-void HatchingLB::Modify( const XHatchEntry& rEntry, sal_Int32 nPos, const Bitmap& rBitmap )
-{
- RemoveEntry( nPos );
-
- if( !rBitmap.IsEmpty() )
- {
- InsertEntry( rEntry.GetName(), Image(rBitmap), nPos );
- }
- else
- {
- InsertEntry( rEntry.GetName(), nPos );
- }
-}
-
// Fills the listbox (provisional) with strings
void FillAttrLB::Fill( const XHatchListRef &pList )
@@ -1286,34 +1258,6 @@ void GradientLB::Fill( const XGradientListRef &pList )
SetUpdateMode( true );
}
-void GradientLB::Append( const XGradientEntry& rEntry, const Bitmap& rBitmap )
-{
- if(!rBitmap.IsEmpty())
- {
- InsertEntry(rEntry.GetName(), Image(rBitmap));
- }
- else
- {
- InsertEntry( rEntry.GetName() );
- }
-
- AdaptDropDownLineCountToMaximum();
-}
-
-void GradientLB::Modify( const XGradientEntry& rEntry, sal_Int32 nPos, const Bitmap& rBitmap )
-{
- RemoveEntry( nPos );
-
- if(!rBitmap.IsEmpty())
- {
- InsertEntry( rEntry.GetName(), Image(rBitmap), nPos );
- }
- else
- {
- InsertEntry( rEntry.GetName(), nPos );
- }
-}
-
void GradientLB::SelectEntryByList( const XGradientListRef &pList, const OUString& rStr,
const XGradient& rGradient )
{
@@ -1457,39 +1401,6 @@ void BitmapLB::Fill( const XBitmapListRef &pList )
SetUpdateMode(true);
}
-void BitmapLB::Append(const Size& rSize, const XBitmapEntry& rEntry)
-{
- maBitmapEx = rEntry.GetGraphicObject().GetGraphic().GetBitmapEx();
-
- if(!maBitmapEx.IsEmpty())
- {
- formatBitmapExToSize(maBitmapEx, rSize);
- InsertEntry(rEntry.GetName(), Image(maBitmapEx));
- }
- else
- {
- InsertEntry(rEntry.GetName());
- }
-
- AdaptDropDownLineCountToMaximum();
-}
-
-void BitmapLB::Modify(const Size& rSize, const XBitmapEntry& rEntry, sal_Int32 nPos)
-{
- RemoveEntry(nPos);
- maBitmapEx = rEntry.GetGraphicObject().GetGraphic().GetBitmapEx();
-
- if(!maBitmapEx.IsEmpty())
- {
- formatBitmapExToSize(maBitmapEx, rSize);
- InsertEntry(rEntry.GetName(), Image(maBitmapEx), nPos);
- }
- else
- {
- InsertEntry(rEntry.GetName());
- }
-}
-
FillAttrLB::FillAttrLB(vcl::Window* pParent, WinBits aWB)
: ColorListBox(pParent, aWB)
{
diff --git a/svx/source/dialog/pagenumberlistbox.cxx b/svx/source/dialog/pagenumberlistbox.cxx
index 830139ba988d..d02767afa4a6 100644
--- a/svx/source/dialog/pagenumberlistbox.cxx
+++ b/svx/source/dialog/pagenumberlistbox.cxx
@@ -59,14 +59,6 @@ void PageNumberListBox::SetSelection( sal_uInt16 nPos )
SelectEntryPos( ( nSelPos != LISTBOX_ENTRY_NOTFOUND ) ? nSelPos : nUserPos );
}
-sal_uInt16 PageNumberListBox::GetSelection() const
-{
- const sal_Int32 nPos = GetSelectEntryPos();
- sal_uInt16 nData = (sal_uInt16)reinterpret_cast<sal_uLong>(GetEntryData( nPos ));
-
- return nData;
-}
-
Size PageNumberListBox::GetOptimalSize() const
{
return Size(150, ListBox::GetOptimalSize().Height());
diff --git a/svx/source/form/fmsrcimp.cxx b/svx/source/form/fmsrcimp.cxx
index 2d442be42ed5..f1f1f49e1842 100644
--- a/svx/source/form/fmsrcimp.cxx
+++ b/svx/source/form/fmsrcimp.cxx
@@ -65,23 +65,6 @@ using namespace ::com::sun::star::beans;
using namespace ::svxform;
-// = FmSearchThread
-
-void FmSearchThread::run()
-{
- osl_setThreadName("FmSearchThread");
-
- m_pEngine->SearchNextImpl();
-};
-
-
-void FmSearchThread::onTerminated()
-{
- m_aTerminationHdl.Call(this);
- delete this;
-}
-
-
// = FmRecordCountListener
// SMART_UNO_IMPLEMENTATION(FmRecordCountListener, UsrObject);
@@ -320,37 +303,6 @@ void FmSearchEngine::BuildAndInsertFieldInfo(const Reference< css::container::XI
}
-OUString FmSearchEngine::FormatField(const FieldInfo& rField)
-{
- if (!m_xFormatter.is())
- return OUString();
- // sonst werden Datumsflder zum Beispiel zu irgendeinem Default-Wert formatiert
-
- OUString sReturn;
- try
- {
- if (rField.bDoubleHandling)
- {
- double fValue = rField.xContents->getDouble();
- if (!rField.xContents->wasNull())
- sReturn = m_xFormatter->convertNumberToString(rField.nFormatKey, fValue);
- }
- else
- {
- OUString sValue = rField.xContents->getString();
- if (!rField.xContents->wasNull())
- sReturn = m_xFormatter->formatString(rField.nFormatKey, sValue);
- }
- }
- catch(...)
- {
- }
-
-
- return sReturn;
-}
-
-
OUString FmSearchEngine::FormatField(sal_Int32 nWhich)
{
DBG_ASSERT((sal_uInt32)nWhich < m_aControlTexts.size(), "FmSearchEngine::FormatField(sal_Int32) : invalid position !");
@@ -983,7 +935,7 @@ void FmSearchEngine::SearchNextImpl()
}
-IMPL_LINK_NOARG_TYPED(FmSearchEngine, OnSearchTerminated, FmSearchThread*, void)
+void FmSearchEngine::OnSearchTerminated()
{
if (!m_aProgressHandler.IsSet())
return;
@@ -1077,7 +1029,7 @@ void FmSearchEngine::ImplStartNextSearch()
m_bSearchingCurrently = true;
SearchNextImpl();
- LINK(this, FmSearchEngine, OnSearchTerminated).Call(nullptr);
+ OnSearchTerminated();
}
diff --git a/svx/source/tbxctrls/SvxPresetListBox.cxx b/svx/source/tbxctrls/SvxPresetListBox.cxx
index 55278124f70d..7ad3b628b429 100644
--- a/svx/source/tbxctrls/SvxPresetListBox.cxx
+++ b/svx/source/tbxctrls/SvxPresetListBox.cxx
@@ -31,7 +31,6 @@
SvxPresetListBox::SvxPresetListBox(vcl::Window* pParent, WinBits nWinStyle)
: ValueSet(pParent, nWinStyle),
nColCount(3),
- nRowCount(5),
aIconSize( Size(60,64) )
{
SetEdgeBlending(true);
diff --git a/svx/source/xoutdev/xtable.cxx b/svx/source/xoutdev/xtable.cxx
index c088d342c1fa..ecea27c39ac8 100644
--- a/svx/source/xoutdev/xtable.cxx
+++ b/svx/source/xoutdev/xtable.cxx
@@ -416,10 +416,4 @@ OUString XPropertyList::GetDefaultExt( XPropertyListType t )
return OUString();
}
-OUString XPropertyList::GetDefaultExtFilter( XPropertyListType t )
-{
- OUString aFilter( "*." );
- return aFilter + GetDefaultExt( t );
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */