summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-09-15 11:24:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-15 11:30:42 +0200
commit3b48b3cc92c93911f61535d22a2c8731574ee51a (patch)
tree2602c98df9d414d803e94bf9f80780d4395b8d8f /sc/inc
parentb79b5e0df6dc5a0ba18054b0503d6fa804b69f02 (diff)
loplugin:singlevalfields in sc..vcl
Change-Id: I68752a3daf5ddd8581c07759b8be2c1dabbb9258
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/dociter.hxx2
-rw-r--r--sc/inc/docuno.hxx5
-rw-r--r--sc/inc/dptabsrc.hxx9
-rw-r--r--sc/inc/stlpool.hxx3
-rw-r--r--sc/inc/stlsheet.hxx4
5 files changed, 5 insertions, 18 deletions
diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx
index 162096429405..088ca7f37fc3 100644
--- a/sc/inc/dociter.hxx
+++ b/sc/inc/dociter.hxx
@@ -268,7 +268,6 @@ class ScQueryCellIterator // walk through all non-empty cells in an ar
std::unique_ptr<ScQueryParam> mpParam;
ScDocument* pDoc;
- const ScAttrArray* pAttrArray;
SCTAB nTab;
SCCOL nCol;
SCROW nRow;
@@ -459,7 +458,6 @@ private:
SCROW nCurRow;
SCTAB nCurTab;
SCROW nAttrEndRow;
- bool bNumValid;
bool bCalcAsShown;
public:
diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx
index 25dc77e7a785..8e32685b8f2f 100644
--- a/sc/inc/docuno.hxx
+++ b/sc/inc/docuno.hxx
@@ -775,14 +775,9 @@ class ScSpreadsheetSettingsObj : public cppu::WeakImplHelper<
css::lang::XServiceInfo>,
public SfxListener
{
-private:
- ScDocShell* pDocShell;
-
public:
virtual ~ScSpreadsheetSettingsObj() override;
- virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
-
/// XPropertySet
virtual css::uno::Reference< css::beans::XPropertySetInfo >
SAL_CALL getPropertySetInfo()
diff --git a/sc/inc/dptabsrc.hxx b/sc/inc/dptabsrc.hxx
index c532583740e1..998f77491cec 100644
--- a/sc/inc/dptabsrc.hxx
+++ b/sc/inc/dptabsrc.hxx
@@ -308,7 +308,6 @@ class ScDPDimension : public cppu::WeakImplHelper<
ScDPSource* pSource;
long nDim; // dimension index (== column ID)
rtl::Reference<ScDPHierarchies> mxHierarchies;
- long nUsedHier;
sal_uInt16 nFunction; // enum GeneralFunction
OUString aName; // if empty, take from source
std::unique_ptr<OUString> mpLayoutName;
@@ -401,7 +400,7 @@ public:
bool getIsDataLayoutDimension() const;
sal_uInt16 getFunction() const { return nFunction;}
void setFunction(sal_uInt16 nNew); // for data dimension
- long getUsedHierarchy() const { return nUsedHier;}
+ static long getUsedHierarchy() { return 0;}
bool HasSelectedPage() const { return bHasSelectedPage; }
const ScDPItemData& GetSelectedData();
@@ -416,7 +415,9 @@ class ScDPHierarchies : public cppu::WeakImplHelper<
private:
ScDPSource* pSource;
long nDim;
- long nHierCount;
+ // date columns have 3 hierarchies (flat/quarter/week), other columns only one
+ // #i52547# don't offer the incomplete date hierarchy implementation
+ static const long nHierCount = 1;
ScDPHierarchy** ppHiers;
public:
@@ -446,7 +447,7 @@ public:
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
throw(css::uno::RuntimeException, std::exception) override;
- long getCount() const;
+ static long getCount();
ScDPHierarchy* getByIndex(long nIndex) const;
};
diff --git a/sc/inc/stlpool.hxx b/sc/inc/stlpool.hxx
index a5675c7353a3..842ae88737c5 100644
--- a/sc/inc/stlpool.hxx
+++ b/sc/inc/stlpool.hxx
@@ -51,8 +51,6 @@ public:
ScStyleSheet* FindCaseIns( const OUString& rName, SfxStyleFamily eFam );
- const OUString* GetForceStdName() const { return pForceStdName; }
-
virtual SfxStyleSheetBase& Make( const OUString&, SfxStyleFamily eFam,
sal_uInt16 nMask = SFXSTYLEBIT_ALL) override;
@@ -69,7 +67,6 @@ protected:
private:
SfxStyleSheetBase* pActualStyleSheet;
ScDocument* pDoc;
- const OUString* pForceStdName;
};
#endif // INCLUDED_SC_INC_STLPOOL_HXX
diff --git a/sc/inc/stlsheet.hxx b/sc/inc/stlsheet.hxx
index bebbc0f87a1b..b8309aa64df1 100644
--- a/sc/inc/stlsheet.hxx
+++ b/sc/inc/stlsheet.hxx
@@ -55,10 +55,6 @@ public:
virtual bool HasFollowSupport () const override;
virtual bool HasParentSupport () const override;
- virtual const OUString& GetName() const override;
- virtual const OUString& GetParent() const override;
- virtual const OUString& GetFollow() const override;
-
virtual bool SetName(const OUString& rNewName, bool bReindexNow = true) override;
void SetUsage( ScStyleSheet::Usage eUse ) const { eUsage = eUse; }