Kaydet (Commit) 56b2a2d8 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedfields in oox,package,reportdesign

Change-Id: I83d03dcc76b5f0d54ebb0513ae972acb0db8eef1
üst 8c107225
...@@ -42,8 +42,6 @@ public: ...@@ -42,8 +42,6 @@ public:
virtual ~ChartSpaceFragment(); virtual ~ChartSpaceFragment();
virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override; virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
::oox::core::XmlFilterBase& mpFilterBase;
}; };
......
...@@ -164,7 +164,6 @@ struct XmlFilterBaseImpl ...@@ -164,7 +164,6 @@ struct XmlFilterBaseImpl
Reference<XComponentContext> mxContext; Reference<XComponentContext> mxContext;
FastParser maFastParser; FastParser maFastParser;
const OUString maBinSuffix; const OUString maBinSuffix;
const OUString maVmlSuffix;
RelationsMap maRelationsMap; RelationsMap maRelationsMap;
TextFieldStack maTextFieldStack; TextFieldStack maTextFieldStack;
...@@ -175,8 +174,7 @@ struct XmlFilterBaseImpl ...@@ -175,8 +174,7 @@ struct XmlFilterBaseImpl
XmlFilterBaseImpl::XmlFilterBaseImpl( const Reference< XComponentContext >& rxContext ) throw( RuntimeException ) : XmlFilterBaseImpl::XmlFilterBaseImpl( const Reference< XComponentContext >& rxContext ) throw( RuntimeException ) :
mxContext(rxContext), mxContext(rxContext),
maFastParser( rxContext ), maFastParser( rxContext ),
maBinSuffix( ".bin" ), maBinSuffix( ".bin" )
maVmlSuffix( ".vml" )
{ {
// register XML namespaces // register XML namespaces
registerNamespaces(maFastParser); registerNamespaces(maFastParser);
......
...@@ -32,8 +32,7 @@ namespace chart { ...@@ -32,8 +32,7 @@ namespace chart {
using namespace ::oox::core; using namespace ::oox::core;
ChartSpaceFragment::ChartSpaceFragment( XmlFilterBase& rFilter, const OUString& rFragmentPath, ChartSpaceModel& rModel ) : ChartSpaceFragment::ChartSpaceFragment( XmlFilterBase& rFilter, const OUString& rFragmentPath, ChartSpaceModel& rModel ) :
FragmentBase< ChartSpaceModel >( rFilter, rFragmentPath, rModel ), FragmentBase< ChartSpaceModel >( rFilter, rFragmentPath, rModel )
mpFilterBase(rFilter)
{ {
} }
......
...@@ -56,7 +56,6 @@ class ZipFile ...@@ -56,7 +56,6 @@ class ZipFile
protected: protected:
::osl::Mutex m_aMutex; ::osl::Mutex m_aMutex;
OUString sComment; /* zip file comment */
EntryHash aEntries; EntryHash aEntries;
ByteGrabber aGrabber; ByteGrabber aGrabber;
ZipUtils::Inflater aInflater; ZipUtils::Inflater aInflater;
......
...@@ -61,13 +61,11 @@ protected: ...@@ -61,13 +61,11 @@ protected:
::std::vector < css::uno::Sequence < css::beans::PropertyValue > > & rManVector; ::std::vector < css::uno::Sequence < css::beans::PropertyValue > > & rManVector;
const OUString sFileEntryElement; const OUString sFileEntryElement;
const OUString sManifestElement;
const OUString sEncryptionDataElement; const OUString sEncryptionDataElement;
const OUString sAlgorithmElement; const OUString sAlgorithmElement;
const OUString sStartKeyAlgElement; const OUString sStartKeyAlgElement;
const OUString sKeyDerivationElement; const OUString sKeyDerivationElement;
const OUString sCdataAttribute;
const OUString sMediaTypeAttribute; const OUString sMediaTypeAttribute;
const OUString sVersionAttribute; const OUString sVersionAttribute;
const OUString sFullPathAttribute; const OUString sFullPathAttribute;
...@@ -95,8 +93,6 @@ protected: ...@@ -95,8 +93,6 @@ protected:
const OUString sStartKeyAlgProperty; const OUString sStartKeyAlgProperty;
const OUString sDigestAlgProperty; const OUString sDigestAlgProperty;
const OUString sWhiteSpace;
const OUString sSHA256_URL; const OUString sSHA256_URL;
const OUString sSHA1_Name; const OUString sSHA1_Name;
const OUString sSHA1_URL; const OUString sSHA1_URL;
......
...@@ -65,7 +65,6 @@ OFormatProperties::OFormatProperties() ...@@ -65,7 +65,6 @@ OFormatProperties::OFormatProperties()
,nFontRelief(0) ,nFontRelief(0)
,nTextColor(0) ,nTextColor(0)
,nTextLineColor(0) ,nTextLineColor(0)
,nCharUnderlineColor(0xFFFFFFFF)
,nBackgroundColor(COL_TRANSPARENT) ,nBackgroundColor(COL_TRANSPARENT)
,aVerticalAlignment( style::VerticalAlignment_TOP ) ,aVerticalAlignment( style::VerticalAlignment_TOP )
,nCharEscapement(0) ,nCharEscapement(0)
......
...@@ -53,7 +53,6 @@ namespace reportdesign ...@@ -53,7 +53,6 @@ namespace reportdesign
::sal_Int16 nFontRelief; ::sal_Int16 nFontRelief;
::sal_Int32 nTextColor; ::sal_Int32 nTextColor;
::sal_Int32 nTextLineColor; ::sal_Int32 nTextLineColor;
::sal_Int32 nCharUnderlineColor;
::sal_Int32 nBackgroundColor; ::sal_Int32 nBackgroundColor;
OUString sCharCombinePrefix; OUString sCharCombinePrefix;
OUString sCharCombineSuffix; OUString sCharCombineSuffix;
......
...@@ -30,7 +30,6 @@ namespace rptxml ...@@ -30,7 +30,6 @@ namespace rptxml
{ {
protected: protected:
css::uno::Reference< css::report::XReportComponent > m_xComponent; css::uno::Reference< css::report::XReportComponent > m_xComponent;
OUString m_sName;
OUString m_sTextStyleName; OUString m_sTextStyleName;
OXMLComponent(const OXMLComponent&); OXMLComponent(const OXMLComponent&);
......
...@@ -93,13 +93,6 @@ public: ...@@ -93,13 +93,6 @@ public:
{} {}
}; };
typedef ::std::pair< OUString ,OUString> TStringPair; typedef ::std::pair< OUString ,OUString> TStringPair;
typedef struct
{
OUString sText;
OUString sField;
OUString sDecimal;
OUString sThousand;
} TDelimiter;
typedef ::std::vector< OUString> TStringVec; typedef ::std::vector< OUString> TStringVec;
typedef ::std::map< Reference<XPropertySet> ,OUString > TPropertyStyleMap; typedef ::std::map< Reference<XPropertySet> ,OUString > TPropertyStyleMap;
typedef ::std::map< Reference<XPropertySet> , TStringVec> TGridStyleMap; typedef ::std::map< Reference<XPropertySet> , TStringVec> TGridStyleMap;
...@@ -109,8 +102,6 @@ public: ...@@ -109,8 +102,6 @@ public:
typedef ::std::map< Reference<XGroup> ,Reference<XFunction> > TGroupFunctionMap; typedef ::std::map< Reference<XGroup> ,Reference<XFunction> > TGroupFunctionMap;
private: private:
::std::unique_ptr< TStringPair > m_aAutoIncrement; ::std::unique_ptr< TStringPair > m_aAutoIncrement;
::std::unique_ptr< TDelimiter > m_aDelimiter;
::std::vector< Any > m_aDataSourceSettings;
TSectionsGrid m_aSectionsGrid; TSectionsGrid m_aSectionsGrid;
TPropertyStyleMap m_aAutoStyleNames; TPropertyStyleMap m_aAutoStyleNames;
...@@ -118,7 +109,6 @@ private: ...@@ -118,7 +109,6 @@ private:
TGridStyleMap m_aRowStyleNames; TGridStyleMap m_aRowStyleNames;
TGroupFunctionMap m_aGroupFunctionMap; TGroupFunctionMap m_aGroupFunctionMap;
OUString m_sCharSet;
OUString m_sTableStyle; OUString m_sTableStyle;
OUString m_sCellStyle; OUString m_sCellStyle;
OUString m_sColumnStyle; OUString m_sColumnStyle;
......
...@@ -27,16 +27,13 @@ namespace rptui ...@@ -27,16 +27,13 @@ namespace rptui
{ {
OUString sColumnName; OUString sColumnName;
OUString sLabel; OUString sLabel;
bool bColumn;
ColumnInfo(const OUString& i_sColumnName,const OUString& i_sLabel) ColumnInfo(const OUString& i_sColumnName,const OUString& i_sLabel)
: sColumnName(i_sColumnName) : sColumnName(i_sColumnName)
, sLabel(i_sLabel) , sLabel(i_sLabel)
, bColumn(true)
{ {
} }
ColumnInfo(const OUString& i_sColumnName) ColumnInfo(const OUString& i_sColumnName)
: sColumnName(i_sColumnName) : sColumnName(i_sColumnName)
, bColumn(false)
{ {
} }
}; };
......
...@@ -51,36 +51,29 @@ typedef std::map<uno::Reference< beans::XPropertySet >, AllProperties> PropertyS ...@@ -51,36 +51,29 @@ typedef std::map<uno::Reference< beans::XPropertySet >, AllProperties> PropertyS
class OXReportControllerObserverImpl: private boost::noncopyable class OXReportControllerObserverImpl: private boost::noncopyable
{ {
public: public:
const OReportController& m_rReportController;
::std::vector< uno::Reference< container::XChild> > m_aSections; ::std::vector< uno::Reference< container::XChild> > m_aSections;
::osl::Mutex m_aMutex; ::osl::Mutex m_aMutex;
oslInterlockedCount m_nLocks; oslInterlockedCount m_nLocks;
bool m_bReadOnly; bool m_bReadOnly;
explicit OXReportControllerObserverImpl(const OReportController& _rController); explicit OXReportControllerObserverImpl();
~OXReportControllerObserverImpl();
}; };
OXReportControllerObserverImpl::OXReportControllerObserverImpl(const OReportController& _rController) OXReportControllerObserverImpl::OXReportControllerObserverImpl()
:m_rReportController(_rController) :m_nLocks(0)
,m_nLocks(0)
,m_bReadOnly(false) ,m_bReadOnly(false)
{ {
} }
OXReportControllerObserverImpl::~OXReportControllerObserverImpl()
{
}
OXReportControllerObserver::OXReportControllerObserver(const OReportController& _rController) OXReportControllerObserver::OXReportControllerObserver(const OReportController& _rController)
:m_pImpl(new OXReportControllerObserverImpl(_rController) ) :m_pImpl(new OXReportControllerObserverImpl )
,m_aFormattedFieldBeautifier(_rController) ,m_aFormattedFieldBeautifier(_rController)
,m_aFixedTextColor(_rController) ,m_aFixedTextColor(_rController)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment