loplugin:unusedfields all-can-be-private
these fields can be private Change-Id: I74423a9ae2ef0263a28c8a716ab1c55861e453d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154092 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -29,7 +29,6 @@ class XMLOFF_DLLPUBLIC XMLCharContext : public SvXMLImportContext
|
|||||||
XMLCharContext(const XMLCharContext&) = delete;
|
XMLCharContext(const XMLCharContext&) = delete;
|
||||||
void operator =(const XMLCharContext&) = delete;
|
void operator =(const XMLCharContext&) = delete;
|
||||||
sal_Int16 m_nControl;
|
sal_Int16 m_nControl;
|
||||||
protected:
|
|
||||||
sal_uInt16 m_nCount;
|
sal_uInt16 m_nCount;
|
||||||
sal_Unicode m_c;
|
sal_Unicode m_c;
|
||||||
public:
|
public:
|
||||||
|
@@ -33,10 +33,9 @@ class XMLOFF_DLLPUBLIC XMLShapeStyleContext: public XMLPropStyleContext
|
|||||||
{
|
{
|
||||||
OUString m_sControlDataStyleName;
|
OUString m_sControlDataStyleName;
|
||||||
bool m_bIsNumRuleAlreadyConverted;
|
bool m_bIsNumRuleAlreadyConverted;
|
||||||
|
|
||||||
protected:
|
|
||||||
OUString m_sListStyleName;
|
OUString m_sListStyleName;
|
||||||
|
|
||||||
|
protected:
|
||||||
virtual void SetAttribute( sal_Int32 nElement, const OUString& rValue ) override;
|
virtual void SetAttribute( sal_Int32 nElement, const OUString& rValue ) override;
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@@ -88,10 +88,9 @@ public:
|
|||||||
virtual OUString SAL_CALL getValueByIndex( sal_Int16 nPos ) override;
|
virtual OUString SAL_CALL getValueByIndex( sal_Int16 nPos ) override;
|
||||||
virtual OUString SAL_CALL getValueByName( OUString const & rName ) override;
|
virtual OUString SAL_CALL getValueByName( OUString const & rName ) override;
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
::std::vector< css::uno::Reference<
|
::std::vector< css::uno::Reference<
|
||||||
css::xml::sax::XAttributeList > > _subElems;
|
css::xml::sax::XAttributeList > > _subElems;
|
||||||
private:
|
|
||||||
OUString const _name;
|
OUString const _name;
|
||||||
::std::vector< OUString > _attrNames;
|
::std::vector< OUString > _attrNames;
|
||||||
::std::vector< OUString > _attrValues;
|
::std::vector< OUString > _attrValues;
|
||||||
|
@@ -71,11 +71,11 @@ public:
|
|||||||
|
|
||||||
class AddressWalkerWriter : public AddressWalker
|
class AddressWalkerWriter : public AddressWalker
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
ScDocShell* mpDocShell;
|
ScDocShell* mpDocShell;
|
||||||
ScDocument& mrDocument;
|
ScDocument& mrDocument;
|
||||||
formula::FormulaGrammar::Grammar meGrammar;
|
formula::FormulaGrammar::Grammar meGrammar;
|
||||||
|
|
||||||
|
public:
|
||||||
AddressWalkerWriter(const ScAddress& aInitialAddress, ScDocShell* pDocShell, ScDocument& rDocument,
|
AddressWalkerWriter(const ScAddress& aInitialAddress, ScDocShell* pDocShell, ScDocument& rDocument,
|
||||||
formula::FormulaGrammar::Grammar eGrammar );
|
formula::FormulaGrammar::Grammar eGrammar );
|
||||||
|
|
||||||
|
@@ -61,9 +61,9 @@ namespace sc
|
|||||||
|
|
||||||
class ScDocFunc
|
class ScDocFunc
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
ScDocShell& rDocShell;
|
ScDocShell& rDocShell;
|
||||||
|
|
||||||
|
protected:
|
||||||
bool AdjustRowHeight( const ScRange& rRange, bool bPaint, bool bApi );
|
bool AdjustRowHeight( const ScRange& rRange, bool bPaint, bool bApi );
|
||||||
void CreateOneName( ScRangeName& rList,
|
void CreateOneName( ScRangeName& rList,
|
||||||
SCCOL nPosX, SCROW nPosY, SCTAB nTab,
|
SCCOL nPosX, SCROW nPosY, SCTAB nTab,
|
||||||
|
@@ -66,6 +66,7 @@ class ShutdownIcon : public ShutdownIconServiceBase
|
|||||||
bool m_bSystemDialogs;
|
bool m_bSystemDialogs;
|
||||||
std::unique_ptr<sfx2::FileDialogHelper> m_pFileDlg;
|
std::unique_ptr<sfx2::FileDialogHelper> m_pFileDlg;
|
||||||
css::uno::Reference< css::uno::XComponentContext > m_xContext;
|
css::uno::Reference< css::uno::XComponentContext > m_xContext;
|
||||||
|
css::uno::Reference< css::frame::XDesktop2 > m_xDesktop;
|
||||||
|
|
||||||
static rtl::Reference<ShutdownIcon> pShutdownIcon; // one instance
|
static rtl::Reference<ShutdownIcon> pShutdownIcon; // one instance
|
||||||
|
|
||||||
@@ -135,8 +136,6 @@ class ShutdownIcon : public ShutdownIconServiceBase
|
|||||||
const css::uno::Any& aValue ) override;
|
const css::uno::Any& aValue ) override;
|
||||||
virtual css::uno::Any SAL_CALL getFastPropertyValue( ::sal_Int32 nHandle ) override;
|
virtual css::uno::Any SAL_CALL getFastPropertyValue( ::sal_Int32 nHandle ) override;
|
||||||
|
|
||||||
css::uno::Reference< css::frame::XDesktop2 > m_xDesktop;
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
static void EnableAutostartW32( const OUString &aShortcutName );
|
static void EnableAutostartW32( const OUString &aShortcutName );
|
||||||
static OUString GetAutostartFolderNameW32();
|
static OUString GetAutostartFolderNameW32();
|
||||||
|
@@ -70,9 +70,8 @@ public:
|
|||||||
|
|
||||||
void ItemChange(const sal_uInt16 nWhich, const SfxPoolItem* pNewItem = nullptr) override;
|
void ItemChange(const sal_uInt16 nWhich, const SfxPoolItem* pNewItem = nullptr) override;
|
||||||
|
|
||||||
sdr::table::CellRef mxCell;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
sdr::table::CellRef mxCell;
|
||||||
const CellTextProvider maTextProvider;
|
const CellTextProvider maTextProvider;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -18,11 +18,11 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
struct SwAccessibilityOptions
|
class SwAccessibilityOptions
|
||||||
{
|
{
|
||||||
bool bIsAlwaysAutoColor :1;
|
bool bIsAlwaysAutoColor :1;
|
||||||
bool bIsStopAnimatedGraphics :1;
|
bool bIsStopAnimatedGraphics :1;
|
||||||
|
public:
|
||||||
SwAccessibilityOptions() :
|
SwAccessibilityOptions() :
|
||||||
bIsAlwaysAutoColor(false),
|
bIsAlwaysAutoColor(false),
|
||||||
bIsStopAnimatedGraphics(false) {}
|
bIsStopAnimatedGraphics(false) {}
|
||||||
|
@@ -59,7 +59,7 @@ class SvtAccessibilityOptions;
|
|||||||
class SwPagePreviewLayout;
|
class SwPagePreviewLayout;
|
||||||
class SwTextFrame;
|
class SwTextFrame;
|
||||||
|
|
||||||
struct SwAccessibilityOptions;
|
class SwAccessibilityOptions;
|
||||||
namespace vcl { class Region; }
|
namespace vcl { class Region; }
|
||||||
class SwPostItMgr;
|
class SwPostItMgr;
|
||||||
class SdrPaintWindow;
|
class SdrPaintWindow;
|
||||||
|
@@ -86,8 +86,6 @@ class SW_DLLPUBLIC SwDrawTextInfo
|
|||||||
// inside second half of bound rect, used for Accessibility
|
// inside second half of bound rect, used for Accessibility
|
||||||
bool m_bPosMatchesBounds :1;
|
bool m_bPosMatchesBounds :1;
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
#ifdef DBG_UTIL
|
#ifdef DBG_UTIL
|
||||||
// These flags should control that the appropriate Set-function has been
|
// These flags should control that the appropriate Set-function has been
|
||||||
// called before calling the Get-function of a member
|
// called before calling the Get-function of a member
|
||||||
@@ -107,6 +105,8 @@ public:
|
|||||||
bool m_bDrawSp: 1;
|
bool m_bDrawSp: 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
/// constructor for simple strings
|
/// constructor for simple strings
|
||||||
SwDrawTextInfo( SwViewShell const *pSh, OutputDevice &rOut,
|
SwDrawTextInfo( SwViewShell const *pSh, OutputDevice &rOut,
|
||||||
const OUString &rText, sal_Int32 const nIdx, sal_Int32 const nLen,
|
const OUString &rText, sal_Int32 const nIdx, sal_Int32 const nLen,
|
||||||
|
@@ -647,7 +647,7 @@ inline void SwHTMLWriter::OutCSS1_Property( std::string_view pProp,
|
|||||||
// positions in the document.
|
// positions in the document.
|
||||||
// In dtor all data is restored and the created PaM is deleted again.
|
// In dtor all data is restored and the created PaM is deleted again.
|
||||||
|
|
||||||
struct HTMLSaveData
|
class HTMLSaveData
|
||||||
{
|
{
|
||||||
SwHTMLWriter& rWrt;
|
SwHTMLWriter& rWrt;
|
||||||
std::shared_ptr<SwUnoCursor> pOldPam;
|
std::shared_ptr<SwUnoCursor> pOldPam;
|
||||||
@@ -661,6 +661,7 @@ struct HTMLSaveData
|
|||||||
bool bOldOutFooter : 1;
|
bool bOldOutFooter : 1;
|
||||||
bool bOldOutFlyFrame : 1;
|
bool bOldOutFlyFrame : 1;
|
||||||
|
|
||||||
|
public:
|
||||||
HTMLSaveData( SwHTMLWriter&, SwNodeOffset nStt, SwNodeOffset nEnd,
|
HTMLSaveData( SwHTMLWriter&, SwNodeOffset nStt, SwNodeOffset nEnd,
|
||||||
bool bSaveNum=true,
|
bool bSaveNum=true,
|
||||||
const SwFrameFormat *pFrameFormat=nullptr );
|
const SwFrameFormat *pFrameFormat=nullptr );
|
||||||
|
@@ -539,7 +539,6 @@ public:
|
|||||||
class SwInsTableDlg;
|
class SwInsTableDlg;
|
||||||
class AbstractInsTableDlg_Impl : public AbstractInsTableDlg
|
class AbstractInsTableDlg_Impl : public AbstractInsTableDlg
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
std::shared_ptr<weld::DialogController> m_xDlg;
|
std::shared_ptr<weld::DialogController> m_xDlg;
|
||||||
public:
|
public:
|
||||||
explicit AbstractInsTableDlg_Impl(std::shared_ptr<weld::DialogController> p)
|
explicit AbstractInsTableDlg_Impl(std::shared_ptr<weld::DialogController> p)
|
||||||
@@ -620,7 +619,6 @@ public:
|
|||||||
class SwMultiTOXTabDialog;
|
class SwMultiTOXTabDialog;
|
||||||
class AbstractMultiTOXTabDialog_Impl : public AbstractMultiTOXTabDialog
|
class AbstractMultiTOXTabDialog_Impl : public AbstractMultiTOXTabDialog
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
std::shared_ptr<SwMultiTOXTabDialog> m_xDlg;
|
std::shared_ptr<SwMultiTOXTabDialog> m_xDlg;
|
||||||
public:
|
public:
|
||||||
explicit AbstractMultiTOXTabDialog_Impl(std::shared_ptr<SwMultiTOXTabDialog> p)
|
explicit AbstractMultiTOXTabDialog_Impl(std::shared_ptr<SwMultiTOXTabDialog> p)
|
||||||
|
@@ -360,18 +360,19 @@ struct DXFEdgeTypeLine : public DXFEdgeType
|
|||||||
virtual bool EvaluateGroup( DXFGroupReader & rDGR ) override;
|
virtual bool EvaluateGroup( DXFGroupReader & rDGR ) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct DXFEdgeTypeCircularArc : public DXFEdgeType
|
class DXFEdgeTypeCircularArc : public DXFEdgeType
|
||||||
{
|
{
|
||||||
DXFVector aCenter; // 10,20
|
DXFVector aCenter; // 10,20
|
||||||
double fRadius; // 40
|
double fRadius; // 40
|
||||||
double fStartAngle; // 50
|
double fStartAngle; // 50
|
||||||
double fEndAngle; // 51
|
double fEndAngle; // 51
|
||||||
sal_Int32 nIsCounterClockwiseFlag; // 73
|
sal_Int32 nIsCounterClockwiseFlag; // 73
|
||||||
|
public:
|
||||||
DXFEdgeTypeCircularArc();
|
DXFEdgeTypeCircularArc();
|
||||||
virtual bool EvaluateGroup( DXFGroupReader & rDGR ) override;
|
virtual bool EvaluateGroup( DXFGroupReader & rDGR ) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct DXFEdgeTypeEllipticalArc : public DXFEdgeType
|
class DXFEdgeTypeEllipticalArc : public DXFEdgeType
|
||||||
{
|
{
|
||||||
DXFVector aCenter; // 10,20
|
DXFVector aCenter; // 10,20
|
||||||
DXFVector aEndPoint; // 11,21
|
DXFVector aEndPoint; // 11,21
|
||||||
@@ -379,19 +380,19 @@ struct DXFEdgeTypeEllipticalArc : public DXFEdgeType
|
|||||||
double fStartAngle; // 50
|
double fStartAngle; // 50
|
||||||
double fEndAngle; // 51
|
double fEndAngle; // 51
|
||||||
sal_Int32 nIsCounterClockwiseFlag; // 73
|
sal_Int32 nIsCounterClockwiseFlag; // 73
|
||||||
|
public:
|
||||||
DXFEdgeTypeEllipticalArc();
|
DXFEdgeTypeEllipticalArc();
|
||||||
virtual bool EvaluateGroup( DXFGroupReader & rDGR ) override;
|
virtual bool EvaluateGroup( DXFGroupReader & rDGR ) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct DXFEdgeTypeSpline : public DXFEdgeType
|
class DXFEdgeTypeSpline : public DXFEdgeType
|
||||||
{
|
{
|
||||||
sal_Int32 nDegree; // 94
|
sal_Int32 nDegree; // 94
|
||||||
sal_Int32 nRational; // 73
|
sal_Int32 nRational; // 73
|
||||||
sal_Int32 nPeriodic; // 74
|
sal_Int32 nPeriodic; // 74
|
||||||
sal_Int32 nKnotCount; // 75
|
sal_Int32 nKnotCount; // 75
|
||||||
sal_Int32 nControlCount; // 76
|
sal_Int32 nControlCount; // 76
|
||||||
|
public:
|
||||||
DXFEdgeTypeSpline();
|
DXFEdgeTypeSpline();
|
||||||
virtual bool EvaluateGroup( DXFGroupReader & rDGR ) override;
|
virtual bool EvaluateGroup( DXFGroupReader & rDGR ) override;
|
||||||
};
|
};
|
||||||
|
@@ -101,6 +101,7 @@ protected:
|
|||||||
virtual void lcl_endGlossaryEntry() {}
|
virtual void lcl_endGlossaryEntry() {}
|
||||||
virtual void lcl_checkId(const sal_Int32) {}
|
virtual void lcl_checkId(const sal_Int32) {}
|
||||||
|
|
||||||
|
private:
|
||||||
#ifdef DBG_UTIL
|
#ifdef DBG_UTIL
|
||||||
LoggedResourcesHelper mHelper;
|
LoggedResourcesHelper mHelper;
|
||||||
#endif
|
#endif
|
||||||
@@ -119,6 +120,7 @@ protected:
|
|||||||
virtual void lcl_attribute(Id name, Value& val) = 0;
|
virtual void lcl_attribute(Id name, Value& val) = 0;
|
||||||
virtual void lcl_sprm(Sprm& sprm) = 0;
|
virtual void lcl_sprm(Sprm& sprm) = 0;
|
||||||
|
|
||||||
|
private:
|
||||||
#ifdef DBG_UTIL
|
#ifdef DBG_UTIL
|
||||||
LoggedResourcesHelper mHelper;
|
LoggedResourcesHelper mHelper;
|
||||||
#endif
|
#endif
|
||||||
@@ -135,6 +137,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
virtual void lcl_entry(writerfilter::Reference<Properties>::Pointer_t ref) = 0;
|
virtual void lcl_entry(writerfilter::Reference<Properties>::Pointer_t ref) = 0;
|
||||||
|
|
||||||
|
private:
|
||||||
#ifdef DBG_UTIL
|
#ifdef DBG_UTIL
|
||||||
LoggedResourcesHelper mHelper;
|
LoggedResourcesHelper mHelper;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -35,7 +35,6 @@ namespace com::sun::star::xml::sax {
|
|||||||
|
|
||||||
class SchXMLDocContext : public virtual SvXMLImportContext
|
class SchXMLDocContext : public virtual SvXMLImportContext
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
SchXMLImportHelper& mrImportHelper;
|
SchXMLImportHelper& mrImportHelper;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@@ -18,10 +18,10 @@
|
|||||||
|
|
||||||
class SvXMLAttrCollection
|
class SvXMLAttrCollection
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
SvXMLNamespaceMap aNamespaceMap;
|
SvXMLNamespaceMap aNamespaceMap;
|
||||||
std::vector<SvXMLAttr> aAttrs;
|
std::vector<SvXMLAttr> aAttrs;
|
||||||
|
|
||||||
|
public:
|
||||||
bool operator==(const SvXMLAttrCollection &rCmp) const;
|
bool operator==(const SvXMLAttrCollection &rCmp) const;
|
||||||
bool AddAttr( const OUString& rLName,
|
bool AddAttr( const OUString& rLName,
|
||||||
const OUString& rValue );
|
const OUString& rValue );
|
||||||
|
@@ -39,7 +39,6 @@ namespace xmloff
|
|||||||
//= OElementExport
|
//= OElementExport
|
||||||
class OElementExport : public OPropertyExport
|
class OElementExport : public OPropertyExport
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
css::uno::Sequence< css::script::ScriptEventDescriptor >
|
css::uno::Sequence< css::script::ScriptEventDescriptor >
|
||||||
m_aEvents;
|
m_aEvents;
|
||||||
|
|
||||||
|
@@ -437,7 +437,6 @@ namespace xmloff
|
|||||||
friend class OListOptionImport;
|
friend class OListOptionImport;
|
||||||
friend class OComboItemImport;
|
friend class OComboItemImport;
|
||||||
|
|
||||||
protected:
|
|
||||||
std::vector<OUString >
|
std::vector<OUString >
|
||||||
m_aListSource;
|
m_aListSource;
|
||||||
std::vector< OUString >
|
std::vector< OUString >
|
||||||
|
Reference in New Issue
Block a user