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

loplugin:staticmethods

Change-Id: I64fdb27a7f83f6417a9cd67ed5d2c44072ec7f2e
üst 89945a90
...@@ -162,13 +162,13 @@ private: ...@@ -162,13 +162,13 @@ private:
// Table // Table
virtual void lcl_entry(int pos, writerfilter::Reference<Properties>::Pointer_t ref) SAL_OVERRIDE; virtual void lcl_entry(int pos, writerfilter::Reference<Properties>::Pointer_t ref) SAL_OVERRIDE;
void handleUnderlineType(const Id nId, const ::std::shared_ptr<PropertyMap>& rContext); static void handleUnderlineType(const Id nId, const ::std::shared_ptr<PropertyMap>& rContext);
void handleParaJustification(const sal_Int32 nIntValue, const ::std::shared_ptr<PropertyMap>& rContext, const bool bExchangeLeftRight); void handleParaJustification(const sal_Int32 nIntValue, const ::std::shared_ptr<PropertyMap>& rContext, const bool bExchangeLeftRight);
bool getColorFromId(const Id, sal_Int32 &nColor); static bool getColorFromId(const Id, sal_Int32 &nColor);
sal_Int16 getEmphasisValue(const sal_Int32 nIntValue); static sal_Int16 getEmphasisValue(const sal_Int32 nIntValue);
OUString getBracketStringFromEnum(const sal_Int32 nIntValue, const bool bIsPrefix = true); static OUString getBracketStringFromEnum(const sal_Int32 nIntValue, const bool bIsPrefix = true);
css::style::TabAlign getTabAlignFromValue(const sal_Int32 nIntValue); static css::style::TabAlign getTabAlignFromValue(const sal_Int32 nIntValue);
sal_Unicode getFillCharFromValue(const sal_Int32 nIntValue); static sal_Unicode getFillCharFromValue(const sal_Int32 nIntValue);
bool mbIsSplitPara; bool mbIsSplitPara;
boost::scoped_ptr< GraphicZOrderHelper > zOrderHelper; boost::scoped_ptr< GraphicZOrderHelper > zOrderHelper;
}; };
......
...@@ -475,7 +475,7 @@ public: ...@@ -475,7 +475,7 @@ public:
} }
void SetDocumentSettingsProperty( const OUString& rPropName, const css::uno::Any& rValue ); void SetDocumentSettingsProperty( const OUString& rPropName, const css::uno::Any& rValue );
void CreateRedline(css::uno::Reference<css::text::XTextRange> const& xRange, RedlineParamsPtr pRedline); static void CreateRedline(css::uno::Reference<css::text::XTextRange> const& xRange, RedlineParamsPtr pRedline);
void CheckParaMarkerRedline(css::uno::Reference<css::text::XTextRange> const& xRange); void CheckParaMarkerRedline(css::uno::Reference<css::text::XTextRange> const& xRange);
...@@ -629,7 +629,7 @@ public: ...@@ -629,7 +629,7 @@ public:
PropertyNameSupplier& rPropNameSupplier, PropertyNameSupplier& rPropNameSupplier,
css::uno::Reference< css::uno::XInterface > & xFieldInterface, css::uno::Reference< css::uno::XInterface > & xFieldInterface,
css::uno::Reference< css::beans::XPropertySet > const& xFieldProperties); css::uno::Reference< css::beans::XPropertySet > const& xFieldProperties);
void handleAuthor static void handleAuthor
(OUString const& rFirstParam, (OUString const& rFirstParam,
PropertyNameSupplier& rPropNameSupplier, PropertyNameSupplier& rPropNameSupplier,
css::uno::Reference< css::uno::XInterface > & xFieldInterface, css::uno::Reference< css::uno::XInterface > & xFieldInterface,
......
...@@ -241,13 +241,13 @@ class SectionPropertyMap : public PropertyMap ...@@ -241,13 +241,13 @@ class SectionPropertyMap : public PropertyMap
css::uno::Reference<css::text::XTextColumns> ApplyColumnProperties(css::uno::Reference<css::beans::XPropertySet> const& xFollowPageStyle, css::uno::Reference<css::text::XTextColumns> ApplyColumnProperties(css::uno::Reference<css::beans::XPropertySet> const& xFollowPageStyle,
DomainMapper_Impl& rDM_Impl); DomainMapper_Impl& rDM_Impl);
void CopyLastHeaderFooter( bool bFirstPage, DomainMapper_Impl& rDM_Impl ); void CopyLastHeaderFooter( bool bFirstPage, DomainMapper_Impl& rDM_Impl );
void CopyHeaderFooter(css::uno::Reference<css::beans::XPropertySet> xPrevStyle, static void CopyHeaderFooter(css::uno::Reference<css::beans::XPropertySet> xPrevStyle,
css::uno::Reference<css::beans::XPropertySet> xStyle); css::uno::Reference<css::beans::XPropertySet> xStyle);
void PrepareHeaderFooterProperties( bool bFirstPage ); void PrepareHeaderFooterProperties( bool bFirstPage );
bool HasHeader( bool bFirstPage ) const; bool HasHeader( bool bFirstPage ) const;
bool HasFooter( bool bFirstPage ) const; bool HasFooter( bool bFirstPage ) const;
void SetBorderDistance(css::uno::Reference<css::beans::XPropertySet> const& xStyle, static void SetBorderDistance(css::uno::Reference<css::beans::XPropertySet> const& xStyle,
PropertyIds eMarginId, PropertyIds eMarginId,
PropertyIds eDistId, PropertyIds eDistId,
sal_Int32 nDistance, sal_Int32 nDistance,
......
...@@ -53,8 +53,8 @@ public: ...@@ -53,8 +53,8 @@ public:
virtual void lcl_entry(int pos, writerfilter::Reference<Properties>::Pointer_t ref) SAL_OVERRIDE; virtual void lcl_entry(int pos, writerfilter::Reference<Properties>::Pointer_t ref) SAL_OVERRIDE;
// Helper methods // Helper methods
OUString fromLocaleToScriptTag(const OUString& sLocale); static OUString fromLocaleToScriptTag(const OUString& sLocale);
OUString fromLCIDToScriptTag(LanguageType lang); static OUString fromLCIDToScriptTag(LanguageType lang);
}; };
typedef std::shared_ptr< ThemeTable > ThemeTablePtr; typedef std::shared_ptr< ThemeTable > ThemeTablePtr;
}} }}
......
...@@ -69,9 +69,9 @@ protected: ...@@ -69,9 +69,9 @@ protected:
void resolveFastSubStream(Stream & rStream, void resolveFastSubStream(Stream & rStream,
OOXMLStream::StreamType_t nType); OOXMLStream::StreamType_t nType);
void resolveFastSubStreamWithId(Stream & rStream, static void resolveFastSubStreamWithId(Stream & rStream,
writerfilter::Reference<Stream>::Pointer_t pStream, writerfilter::Reference<Stream>::Pointer_t pStream,
sal_uInt32 nId); sal_uInt32 nId);
css::uno::Reference<css::xml::dom::XDocument> importSubStream(OOXMLStream::StreamType_t nType); css::uno::Reference<css::xml::dom::XDocument> importSubStream(OOXMLStream::StreamType_t nType);
......
...@@ -171,7 +171,7 @@ public: ...@@ -171,7 +171,7 @@ public:
void endOfParagraph(); void endOfParagraph();
void text(const OUString & sText); void text(const OUString & sText);
void positionOffset(const OUString & sText); void positionOffset(const OUString & sText);
void ignore(); static void ignore();
void alignH(const OUString & sText); void alignH(const OUString & sText);
void alignV(const OUString & sText); void alignV(const OUString & sText);
void positivePercentage(const OUString& rText); void positivePercentage(const OUString& rText);
...@@ -404,7 +404,7 @@ public: ...@@ -404,7 +404,7 @@ public:
virtual std::string getType() const SAL_OVERRIDE { return "TextTableCell"; } virtual std::string getType() const SAL_OVERRIDE { return "TextTableCell"; }
void startCell(); static void startCell();
void endCell(); void endCell();
}; };
...@@ -416,11 +416,11 @@ public: ...@@ -416,11 +416,11 @@ public:
virtual std::string getType() const SAL_OVERRIDE { return "TextTableRow"; } virtual std::string getType() const SAL_OVERRIDE { return "TextTableRow"; }
void startRow(); static void startRow();
void endRow(); void endRow();
void handleGridBefore( OOXMLValue::Pointer_t val ); void handleGridBefore( OOXMLValue::Pointer_t val );
private: private:
OOXMLProperty::Pointer_t fakeNoBorder( Id id ); static OOXMLProperty::Pointer_t fakeNoBorder( Id id );
}; };
class OOXMLFastContextHandlerTextTable : public OOXMLFastContextHandler class OOXMLFastContextHandlerTextTable : public OOXMLFastContextHandler
......
...@@ -741,7 +741,7 @@ RTFError RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing ...@@ -741,7 +741,7 @@ RTFError RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing
if (ch != 0x0d && ch != 0x0a && ch != 0x20) if (ch != 0x0d && ch != 0x0a && ch != 0x20)
{ {
b = b << 4; b = b << 4;
sal_Int8 parsed = m_pTokenizer->asHex(ch); sal_Int8 parsed = RTFTokenizer::asHex(ch);
if (parsed == -1) if (parsed == -1)
return RTFError::HEX_INVALID; return RTFError::HEX_INVALID;
b += parsed; b += parsed;
...@@ -3367,7 +3367,7 @@ RTFError RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword) ...@@ -3367,7 +3367,7 @@ RTFError RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword)
case RTF_DPTXBX: case RTF_DPTXBX:
{ {
m_aStates.top().aDrawingObject.xShape.set(getModelFactory()->createInstance("com.sun.star.text.TextFrame"), uno::UNO_QUERY); m_aStates.top().aDrawingObject.xShape.set(getModelFactory()->createInstance("com.sun.star.text.TextFrame"), uno::UNO_QUERY);
std::vector<beans::PropertyValue> aDefaults = m_pSdrImport->getTextFrameDefaults(false); std::vector<beans::PropertyValue> aDefaults = RTFSdrImport::getTextFrameDefaults(false);
for (size_t i = 0; i < aDefaults.size(); ++i) for (size_t i = 0; i < aDefaults.size(); ++i)
{ {
if (!lcl_findPropertyName(m_aStates.top().aDrawingObject.aPendingProperties, aDefaults[i].Name)) if (!lcl_findPropertyName(m_aStates.top().aDrawingObject.aPendingProperties, aDefaults[i].Name))
...@@ -5235,7 +5235,7 @@ RTFError RTFDocumentImpl::popState() ...@@ -5235,7 +5235,7 @@ RTFError RTFDocumentImpl::popState()
if (ch != 0x0d && ch != 0x0a) if (ch != 0x0d && ch != 0x0a)
{ {
b = b << 4; b = b << 4;
sal_Int8 parsed = m_pTokenizer->asHex(ch); sal_Int8 parsed = RTFTokenizer::asHex(ch);
if (parsed == -1) if (parsed == -1)
return RTFError::HEX_INVALID; return RTFError::HEX_INVALID;
b += parsed; b += parsed;
...@@ -5487,7 +5487,7 @@ RTFError RTFDocumentImpl::popState() ...@@ -5487,7 +5487,7 @@ RTFError RTFDocumentImpl::popState()
// If there is no fill, the Word default is 100% transparency. // If there is no fill, the Word default is 100% transparency.
xPropertySet->setPropertyValue("FillTransparence", uno::makeAny(sal_Int32(100))); xPropertySet->setPropertyValue("FillTransparence", uno::makeAny(sal_Int32(100)));
m_pSdrImport->resolveFLine(xPropertySet, rDrawing.nFLine); RTFSdrImport::resolveFLine(xPropertySet, rDrawing.nFLine);
if (!m_aStates.top().aDrawingObject.bHadShapeText) if (!m_aStates.top().aDrawingObject.bHadShapeText)
{ {
...@@ -6033,7 +6033,7 @@ RTFError RTFDocumentImpl::handleEmbeddedObject() ...@@ -6033,7 +6033,7 @@ RTFError RTFDocumentImpl::handleEmbeddedObject()
if (ch != 0x0d && ch != 0x0a) if (ch != 0x0d && ch != 0x0a)
{ {
b = b << 4; b = b << 4;
sal_Int8 parsed = m_pTokenizer->asHex(ch); sal_Int8 parsed = RTFTokenizer::asHex(ch);
if (parsed == -1) if (parsed == -1)
return RTFError::HEX_INVALID; return RTFError::HEX_INVALID;
b += parsed; b += parsed;
......
...@@ -35,13 +35,13 @@ public: ...@@ -35,13 +35,13 @@ public:
/// Append property on the current parent. /// Append property on the current parent.
void appendGroupProperty(const OUString& aKey, const OUString& aValue); void appendGroupProperty(const OUString& aKey, const OUString& aValue);
void resolveDhgt(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, sal_Int32 nZOrder, bool bOldStyle); void resolveDhgt(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, sal_Int32 nZOrder, bool bOldStyle);
void resolveFLine(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, sal_Int32 nFLine); static void resolveFLine(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, sal_Int32 nFLine);
/** /**
* These are the default in Word, but not in Writer. * These are the default in Word, but not in Writer.
* *
* @param bNew if the frame is new-style or old-style. * @param bNew if the frame is new-style or old-style.
*/ */
std::vector<css::beans::PropertyValue> getTextFrameDefaults(bool bNew); static std::vector<css::beans::PropertyValue> getTextFrameDefaults(bool bNew);
/// Push a new group shape to the parent stack. /// Push a new group shape to the parent stack.
void pushParent(css::uno::Reference<css::drawing::XShapes> const& xParent); void pushParent(css::uno::Reference<css::drawing::XShapes> const& xParent);
/// Pop the current group shape from the parent stack. /// Pop the current group shape from the parent stack.
......
...@@ -31,7 +31,7 @@ public: ...@@ -31,7 +31,7 @@ public:
virtual ~RTFTokenizer(); virtual ~RTFTokenizer();
RTFError resolveParse(); RTFError resolveParse();
int asHex(char ch); static int asHex(char ch);
/// Number of states on the stack. /// Number of states on the stack.
int getGroup() const int getGroup() const
{ {
......
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