summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-22 15:08:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-22 18:56:58 +0000
commitc4cd079b8f613084a99a83b95c3968b65cbd8900 (patch)
tree16051edcfd1f7109aefa08af6d71da0687b20f8a /sc/source/ui
parentba3d6d8a39d31316923d2326059c07b0a7e3c05e (diff)
loplugin:unusedmethods in sc..vcl
Change-Id: I70fcf95dfd3db05b4fd6e5cee37866f673d3afa8 Reviewed-on: https://gerrit.libreoffice.org/29183 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/condformat/condformatdlgitem.cxx9
-rw-r--r--sc/source/ui/docshell/impex.cxx43
-rw-r--r--sc/source/ui/inc/condformatdlgitem.hxx1
-rw-r--r--sc/source/ui/inc/docsh.hxx1
-rw-r--r--sc/source/ui/inc/impex.hxx1
-rw-r--r--sc/source/ui/optdlg/calcoptionsdlg.hxx2
6 files changed, 0 insertions, 57 deletions
diff --git a/sc/source/ui/condformat/condformatdlgitem.cxx b/sc/source/ui/condformat/condformatdlgitem.cxx
index a4ef079c75de..dc038c806ba5 100644
--- a/sc/source/ui/condformat/condformatdlgitem.cxx
+++ b/sc/source/ui/condformat/condformatdlgitem.cxx
@@ -11,15 +11,6 @@
#include "scitems.hxx"
#include "condformatdlgitem.hxx"
-ScCondFormatDlgItem::ScCondFormatDlgItem():
- SfxPoolItem(SCITEM_CONDFORMATDLGDATA),
- mpCondFormats(),
- mnItem(-1),
- meDialogType(condformat::dialog::CONDITION),
- mbManaged(false)
-{
-}
-
ScCondFormatDlgItem::ScCondFormatDlgItem(std::shared_ptr<ScConditionalFormatList> pCondFormats,
sal_Int32 nItem, bool bManaged):
SfxPoolItem(SCITEM_CONDFORMATDLGDATA),
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index 85efd9ab8219..930c7942d4b4 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -136,49 +136,6 @@ ScImportExport::ScImportExport( ScDocument* p, const ScRange& r )
aRange.aEnd.SetTab( aRange.aStart.Tab() );
}
-// Evaluate input string - either range, cell or the whole document (when error)
-// If a View exists, the TabNo of the view will be used.
-ScImportExport::ScImportExport( ScDocument* p, const OUString& rPos )
- : pDocSh( dynamic_cast< ScDocShell* >(p->GetDocumentShell()) ), pDoc( p ),
- nSizeLimit( 0 ), cSep( '\t' ), cStr( '"' ),
- bFormulas( false ), bIncludeFiltered( true ),
- bAll( false ), bSingle( true ), bUndo( pDocSh != nullptr ),
- bOverflowRow( false ), bOverflowCol( false ), bOverflowCell( false ),
- mbApi( true ), mbImportBroadcast(false), mbOverwriting( false ),
- mExportTextOptions()
-{
- pUndoDoc = nullptr;
- pExtOptions = nullptr;
-
- SCTAB nTab = ScDocShell::GetCurTab();
- aRange.aStart.SetTab( nTab );
- OUString aPos( rPos );
- // Named range?
- ScRangeName* pRange = pDoc->GetRangeName();
- if (pRange)
- {
- const ScRangeData* pData = pRange->findByUpperName(ScGlobal::pCharClass->uppercase(aPos));
- if (pData)
- {
- if( pData->HasType( ScRangeData::Type::RefArea )
- || pData->HasType( ScRangeData::Type::AbsArea )
- || pData->HasType( ScRangeData::Type::AbsPos ) )
- {
- pData->GetSymbol(aPos);
- }
- }
- }
- formula::FormulaGrammar::AddressConvention eConv = pDoc->GetAddressConvention();
- // Range?
- if (aRange.Parse(aPos, pDoc, eConv) & ScRefFlags::VALID)
- bSingle = false;
- // Cell?
- else if (aRange.aStart.Parse(aPos, pDoc, eConv) & ScRefFlags::VALID)
- aRange.aEnd = aRange.aStart;
- else
- bAll = true;
-}
-
ScImportExport::~ScImportExport()
{
delete pUndoDoc;
diff --git a/sc/source/ui/inc/condformatdlgitem.hxx b/sc/source/ui/inc/condformatdlgitem.hxx
index d974b2c10213..e14e3d55eace 100644
--- a/sc/source/ui/inc/condformatdlgitem.hxx
+++ b/sc/source/ui/inc/condformatdlgitem.hxx
@@ -38,7 +38,6 @@ class ScCondFormatDlgItem : public SfxPoolItem
{
public:
- ScCondFormatDlgItem();
ScCondFormatDlgItem(std::shared_ptr<ScConditionalFormatList> pCondFormats, sal_Int32 nItem, bool bManaged);
virtual ~ScCondFormatDlgItem() override;
diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx
index 80f16e1271a7..e549345d2b6f 100644
--- a/sc/source/ui/inc/docsh.hxx
+++ b/sc/source/ui/inc/docsh.hxx
@@ -225,7 +225,6 @@ public:
ScDocument& GetDocument() { return aDocument; }
ScDocFunc& GetDocFunc() { return *pDocFunc; }
- void SetDocFunc( ScDocFunc *pDF ) { pDocFunc = pDF; }
SfxPrinter* GetPrinter( bool bCreateIfNotExist = true );
sal_uInt16 SetPrinter( SfxPrinter* pNewPrinter, SfxPrinterChangeFlags nDiffFlags = SFX_PRINTER_ALL );
diff --git a/sc/source/ui/inc/impex.hxx b/sc/source/ui/inc/impex.hxx
index b0be3efd67e9..b5b69f6e14d1 100644
--- a/sc/source/ui/inc/impex.hxx
+++ b/sc/source/ui/inc/impex.hxx
@@ -89,7 +89,6 @@ class ScImportExport
public:
ScImportExport( ScDocument* ); // the whole document
- ScImportExport( ScDocument*, const OUString& ); // Range/cell input
ScImportExport( ScDocument*, const ScAddress& );
ScImportExport( ScDocument*, const ScRange& );
~ScImportExport();
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.hxx b/sc/source/ui/optdlg/calcoptionsdlg.hxx
index 00e624188b9a..161e99d86b95 100644
--- a/sc/source/ui/optdlg/calcoptionsdlg.hxx
+++ b/sc/source/ui/optdlg/calcoptionsdlg.hxx
@@ -47,8 +47,6 @@ public:
bool GetWriteCalcConfig() const { return mbWriteConfig;}
private:
- void OpenCLAutomaticSelectionChanged();
- void SelectedDeviceChanged();
void CoupleEmptyAsZeroToStringConversion();
private: