summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-11 10:11:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-11 14:38:37 +0200
commitd4d037619638e1915d15dba81c38a1c9b3157972 (patch)
tree93260b9952c2be6dbb56c7c67eccfb4960608627 /sw/source
parent807d4382cb021d2ac3ea99d6757a7b368a32941d (diff)
loplugin:unusedmethods
Change-Id: I26a0da1ec9cda9030371977596053a45303756a0 Reviewed-on: https://gerrit.libreoffice.org/55609 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/draw/dcontact.cxx8
-rw-r--r--sw/source/uibase/dbui/dbmgr.cxx48
-rw-r--r--sw/source/uibase/inc/numprevw.hxx11
-rw-r--r--sw/source/uibase/inc/prcntfld.hxx21
-rw-r--r--sw/source/uibase/utlui/prcntfld.cxx8
5 files changed, 0 insertions, 96 deletions
diff --git a/sw/source/core/draw/dcontact.cxx b/sw/source/core/draw/dcontact.cxx
index 637c7b46e43b..41cd1ebef26f 100644
--- a/sw/source/core/draw/dcontact.cxx
+++ b/sw/source/core/draw/dcontact.cxx
@@ -347,14 +347,6 @@ void SwContact::MoveObjToLayer( const bool _bToVisible,
}
}
-// some virtual helper methods for information
-// about the object (Writer fly frame resp. drawing object)
-
-const SwIndex& SwContact::GetContentAnchorIndex() const
-{
- return GetContentAnchor().nContent;
-}
-
/// get minimum order number of anchored objects handled by with contact
sal_uInt32 SwContact::GetMinOrdNum() const
{
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index c1ea6ec85357..2aa434b40819 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -706,54 +706,6 @@ void SwDBManager::ImportDBEntry(SwWrtShell* pSh)
}
}
-// fill Listbox with tablelist
-bool SwDBManager::GetTableNames(ListBox* pListBox, const OUString& rDBName)
-{
- bool bRet = false;
- OUString sOldTableName(pListBox->GetSelectedEntry());
- pListBox->Clear();
- SwDSParam* pParam = FindDSConnection(rDBName, false);
- uno::Reference< sdbc::XConnection> xConnection;
- if(pParam && pParam->xConnection.is())
- xConnection = pParam->xConnection;
- else
- {
- if ( !rDBName.isEmpty() )
- xConnection = RegisterConnection( rDBName );
- }
- if(xConnection.is())
- {
- uno::Reference<sdbcx::XTablesSupplier> xTSupplier(xConnection, uno::UNO_QUERY);
- if(xTSupplier.is())
- {
- uno::Reference<container::XNameAccess> xTables = xTSupplier->getTables();
- uno::Sequence<OUString> aTables = xTables->getElementNames();
- const OUString* pTables = aTables.getConstArray();
- for(long i = 0; i < aTables.getLength(); i++)
- {
- const sal_Int32 nEntry = pListBox->InsertEntry(pTables[i]);
- pListBox->SetEntryData(nEntry, nullptr);
- }
- }
- uno::Reference<sdb::XQueriesSupplier> xQSupplier(xConnection, uno::UNO_QUERY);
- if(xQSupplier.is())
- {
- uno::Reference<container::XNameAccess> xQueries = xQSupplier->getQueries();
- uno::Sequence<OUString> aQueries = xQueries->getElementNames();
- const OUString* pQueries = aQueries.getConstArray();
- for(long i = 0; i < aQueries.getLength(); i++)
- {
- const sal_Int32 nEntry = pListBox->InsertEntry(pQueries[i]);
- pListBox->SetEntryData(nEntry, reinterpret_cast<void*>(1));
- }
- }
- if (!sOldTableName.isEmpty())
- pListBox->SelectEntry(sOldTableName);
- bRet = true;
- }
- return bRet;
-}
-
bool SwDBManager::GetTableNames(weld::ComboBoxText& rBox, const OUString& rDBName)
{
bool bRet = false;
diff --git a/sw/source/uibase/inc/numprevw.hxx b/sw/source/uibase/inc/numprevw.hxx
index 44aa3ccc5e34..ca18922226d9 100644
--- a/sw/source/uibase/inc/numprevw.hxx
+++ b/sw/source/uibase/inc/numprevw.hxx
@@ -47,17 +47,6 @@ class NumberingPreview : public vcl::Window
}
virtual ~NumberingPreview() override;
-
- void SetNumRule(const SwNumRule* pNum)
- {pActNum = pNum; Invalidate();};
- void SetPageWidth(long nPgWidth)
- {nPageWidth = nPgWidth;}
- void SetOutlineNames(const OUString* pNames)
- {pOutlineNames = pNames;}
- void SetPositionMode()
- { bPosition = true;}
- void SetLevel(sal_uInt16 nSet) {nActLevel = nSet;}
-
};
class SwNumberingPreview : public weld::CustomWidgetController
diff --git a/sw/source/uibase/inc/prcntfld.hxx b/sw/source/uibase/inc/prcntfld.hxx
index dc7436500e64..4e3e0c3f8a2e 100644
--- a/sw/source/uibase/inc/prcntfld.hxx
+++ b/sw/source/uibase/inc/prcntfld.hxx
@@ -59,17 +59,11 @@ public:
bool HasFocus() const { return m_pField->HasFocus(); }
void SetAccessibleName(const OUString& rName) { m_pField->SetAccessibleName(rName); }
void SetText(const OUString& rStr) { m_pField->SetText(rStr); }
- void SaveValue() { m_pField->SaveValue(); }
void ClearModifyFlag() { m_pField->ClearModifyFlag(); }
- OUString const & GetSavedValue() const { return m_pField->GetSavedValue(); }
- OUString GetText() const { return m_pField->GetText(); }
void SetMetricFieldMin(sal_Int64 nNewMin) { m_pField->SetMin(nNewMin); }
- void SetMetricFieldMax(sal_Int64 nNewMax) { m_pField->SetMax(nNewMax); }
void SetValue(sal_Int64 nNewValue) { m_pField->SetValue(nNewValue, FUNIT_NONE); }
- void SetLast(sal_Int64 nNewLast) { m_pField->SetLast(nNewLast); }
-
void SetPrcntValue(sal_Int64 nNewValue, FieldUnit eInUnit = FUNIT_NONE);
void SetUserValue(sal_Int64 nNewValue, FieldUnit eInUnit);
@@ -128,35 +122,21 @@ public:
void SetMetric(FieldUnit eUnit) { ::SetFieldUnit(*m_pField, eUnit); }
void set_sensitive(bool bEnable) { m_pField->set_sensitive(bEnable); }
bool has_focus() const { return m_pField->has_focus(); }
- void set_accessible_name(const OUString& rName) { m_pField->set_accessible_name(rName); }
- void set_text(const OUString& rStr) { m_pField->set_text(rStr); }
void save_value() { m_pField->save_value(); }
bool get_value_changed_from_saved() const { return m_pField->get_value_changed_from_saved(); }
- OUString get_text() const { return m_pField->get_text(); }
void SetMetricFieldMin(int nNewMin) { m_pField->set_min(nNewMin, FUNIT_NONE); }
void SetMetricFieldMax(int nNewMax) { m_pField->set_max(nNewMax, FUNIT_NONE); }
- int GetMetrixFieldMin() const { int nMin, nMax; m_pField->get_range(nMin, nMax, FUNIT_NONE); return nMin; }
-
- void set_value(int nNewValue) { m_pField->set_value(nNewValue, FUNIT_NONE); }
void SetPrcntValue(int nNewValue, FieldUnit eInUnit = FUNIT_NONE);
- void SetUserValue(int nNewValue, FieldUnit eInUnit);
-
- void SetBaseValue(int nNewValue, FieldUnit eInUnit);
-
int get_value(FieldUnit eOutUnit = FUNIT_NONE);
- bool IsValueModified();
-
void set_min(int nNewMin, FieldUnit eInUnit);
void set_max(int nNewMax, FieldUnit eInUnit);
int NormalizePercent(int nValue);
int DenormalizePercent(int nValue);
- int normalize(int nValue) const { return m_pField->normalize(nValue); }
-
void SetRefValue(int nValue);
int GetRealValue(FieldUnit eOutUnit);
@@ -164,7 +144,6 @@ public:
void ShowPercent(bool bPercent);
- void LockAutoCalculation(bool bLock) {bLockAutoCalculation = bLock;}
};
diff --git a/sw/source/uibase/utlui/prcntfld.cxx b/sw/source/uibase/utlui/prcntfld.cxx
index a67898c43789..5ded25dcd4d2 100644
--- a/sw/source/uibase/utlui/prcntfld.cxx
+++ b/sw/source/uibase/utlui/prcntfld.cxx
@@ -434,14 +434,6 @@ int SwPercentField::DenormalizePercent(int nValue)
return nValue;
}
-bool SwPercentField::IsValueModified()
-{
- if (m_pField->get_unit() == FUNIT_PERCENT)
- return true;
- else
- return m_pField->get_value_changed_from_saved();
-}
-
int SwPercentField::ImpPower10(sal_uInt16 n)
{
int nValue = 1;