Kaydet (Commit) 7c02faf5 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Properly hide implementation details.

If we are to hide, let's hide all.

Change-Id: Ic68926ee099ac80d2d477d68e3769a7203dfea6c
üst 077c80b9
...@@ -41,14 +41,10 @@ class SvXMLExport; ...@@ -41,14 +41,10 @@ class SvXMLExport;
class XMLOFF_DLLPUBLIC SvXMLExportPropertyMapper : public UniRefBase class XMLOFF_DLLPUBLIC SvXMLExportPropertyMapper : public UniRefBase
{ {
UniReference< SvXMLExportPropertyMapper> mxNextMapper; struct Impl;
Impl* mpImpl;
FilterPropertiesInfos_Impl *pCache;
protected: protected:
UniReference< XMLPropertySetMapper > maPropMapper;
OUString maStyleName;
/** Filter all properties we don't want to export: /** Filter all properties we don't want to export:
Take all properties of the XPropertySet which are also found in the Take all properties of the XPropertySet which are also found in the
...@@ -177,10 +173,10 @@ public: ...@@ -177,10 +173,10 @@ public:
const ::std::vector< XMLPropertyState > *pProperties = 0, const ::std::vector< XMLPropertyState > *pProperties = 0,
sal_uInt32 nIdx = 0 ) const; sal_uInt32 nIdx = 0 ) const;
inline const UniReference< XMLPropertySetMapper >& const UniReference<XMLPropertySetMapper>& getPropertySetMapper() const;
getPropertySetMapper() const { return maPropMapper; }
void SetStyleName( const OUString& rStyleName ) { maStyleName = rStyleName; } void SetStyleName( const OUString& rStyleName );
const OUString& GetStyleName() const;
}; };
#endif // _XMLOFF_XMLEXPPR_HXX #endif // _XMLOFF_XMLEXPPR_HXX
......
...@@ -361,14 +361,14 @@ void XMLChartExportPropertyMapper::handleSpecialItem( ...@@ -361,14 +361,14 @@ void XMLChartExportPropertyMapper::handleSpecialItem(
{ {
sal_Bool bHandled = sal_False; sal_Bool bHandled = sal_False;
sal_Int32 nContextId = maPropMapper->GetEntryContextId( rProperty.mnIndex ); sal_Int32 nContextId = getPropertySetMapper()->GetEntryContextId( rProperty.mnIndex );
if( nContextId ) if( nContextId )
{ {
bHandled = sal_True; bHandled = sal_True;
OUString sAttrName = maPropMapper->GetEntryXMLName( rProperty.mnIndex ); OUString sAttrName = getPropertySetMapper()->GetEntryXMLName( rProperty.mnIndex );
sal_uInt16 nNameSpace = maPropMapper->GetEntryNameSpace( rProperty.mnIndex ); sal_uInt16 nNameSpace = getPropertySetMapper()->GetEntryNameSpace( rProperty.mnIndex );
OUStringBuffer sValueBuffer; OUStringBuffer sValueBuffer;
OUString sValue; OUString sValue;
......
...@@ -1545,7 +1545,7 @@ void XMLShapeExportPropertyMapper::handleElementItem( ...@@ -1545,7 +1545,7 @@ void XMLShapeExportPropertyMapper::handleElementItem(
{ {
uno::Reference< container::XIndexReplace > xNumRule( rProperty.maValue, uno::UNO_QUERY ); uno::Reference< container::XIndexReplace > xNumRule( rProperty.maValue, uno::UNO_QUERY );
if( xNumRule.is() ) if( xNumRule.is() )
const_cast<XMLShapeExportPropertyMapper*>(this)->maNumRuleExp.exportNumberingRule( maStyleName, sal_False, xNumRule ); const_cast<XMLShapeExportPropertyMapper*>(this)->maNumRuleExp.exportNumberingRule(GetStyleName(), false, xNumRule);
} }
} }
break; break;
......
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