summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2013-03-21 17:50:46 -0400
committerPeter Foley <pefoley2@verizon.net>2013-03-21 17:52:09 -0400
commitccf8f9427e1828b4d37dda4e5e9c6401f8332227 (patch)
tree6b217aed85ac5f52e4b5d8dc1c08f86c3518d5ea /xmloff
parent77b708117c33538ea105e4fbb3d44fe36fcfe5a2 (diff)
Revert "remove duplicate copy of SchXMLSeriesHelper"
This reverts commit 13d935d01e61fa821a5ef5893181190c90ae8e0e. Appears to be broken.
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/Package_inc.mk1
-rw-r--r--xmloff/source/chart/SchXMLChartContext.cxx2
-rw-r--r--xmloff/source/chart/SchXMLExport.cxx2
-rw-r--r--xmloff/source/chart/SchXMLSeries2Context.cxx2
-rw-r--r--xmloff/source/chart/SchXMLSeriesHelper.cxx21
-rw-r--r--xmloff/source/chart/SchXMLSeriesHelper.hxx (renamed from xmloff/inc/xmloff/SchXMLSeriesHelper.hxx)1
6 files changed, 16 insertions, 13 deletions
diff --git a/xmloff/Package_inc.mk b/xmloff/Package_inc.mk
index cc4a1cea2152..9b3628b691db 100644
--- a/xmloff/Package_inc.mk
+++ b/xmloff/Package_inc.mk
@@ -32,7 +32,6 @@ $(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/PropertySetInfoHash.hxx,
$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/PropertySetInfoKey.hxx,xmloff/PropertySetInfoKey.hxx))
$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/SchXMLExportHelper.hxx,xmloff/SchXMLExportHelper.hxx))
$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/SchXMLImportHelper.hxx,xmloff/SchXMLImportHelper.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/SchXMLSeriesHelper.hxx,xmloff/SchXMLSeriesHelper.hxx))
$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/SettingsExportHelper.hxx,xmloff/SettingsExportHelper.hxx))
$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/SinglePropertySetInfoCache.hxx,xmloff/SinglePropertySetInfoCache.hxx))
$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/WordWrapPropertyHdl.hxx,xmloff/WordWrapPropertyHdl.hxx))
diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx
index 6dbf23c3b654..cf3d3cc30ce2 100644
--- a/xmloff/source/chart/SchXMLChartContext.cxx
+++ b/xmloff/source/chart/SchXMLChartContext.cxx
@@ -24,6 +24,7 @@
#include "SchXMLPlotAreaContext.hxx"
#include "SchXMLParagraphContext.hxx"
#include "SchXMLTableContext.hxx"
+#include "SchXMLSeriesHelper.hxx"
#include "SchXMLSeries2Context.hxx"
#include "SchXMLTools.hxx"
#include <comphelper/mediadescriptor.hxx>
@@ -35,7 +36,6 @@
#include <xmloff/xmluconv.hxx>
#include <xmloff/xmlstyle.hxx>
#include <xmloff/prstylei.hxx>
-#include <xmloff/SchXMLSeriesHelper.hxx>
#include "vector"
#include <com/sun/star/chart/XChartDocument.hpp>
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index 11cac872a45c..c3c38ec25284 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -24,6 +24,7 @@
#include "SchXMLExport.hxx"
#include "XMLChartPropertySetMapper.hxx"
+#include "SchXMLSeriesHelper.hxx"
#include "ColorPropertySet.hxx"
#include "SchXMLTools.hxx"
#include "SchXMLEnumConverter.hxx"
@@ -41,7 +42,6 @@
#include <xmloff/xmlaustp.hxx>
#include <xmloff/xmluconv.hxx>
#include <xmloff/xmlmetae.hxx>
-#include <xmloff/SchXMLSeriesHelper.hxx>
#include "xexptran.hxx"
#include <rtl/math.hxx>
// header for any2enum
diff --git a/xmloff/source/chart/SchXMLSeries2Context.cxx b/xmloff/source/chart/SchXMLSeries2Context.cxx
index 5f4bf115a088..222a365a9437 100644
--- a/xmloff/source/chart/SchXMLSeries2Context.cxx
+++ b/xmloff/source/chart/SchXMLSeries2Context.cxx
@@ -20,6 +20,7 @@
#include "SchXMLSeries2Context.hxx"
#include "SchXMLPlotAreaContext.hxx"
+#include "SchXMLSeriesHelper.hxx"
#include "SchXMLTools.hxx"
#include "PropertyMap.hxx"
@@ -44,7 +45,6 @@
#include "xmloff/xmlnmspe.hxx"
#include <xmloff/xmlimp.hxx>
#include <xmloff/nmspmap.hxx>
-#include <xmloff/SchXMLSeriesHelper.hxx>
#include "SchXMLImport.hxx"
// header for class XMLPropStyleContext
#include <xmloff/prstylei.hxx>
diff --git a/xmloff/source/chart/SchXMLSeriesHelper.cxx b/xmloff/source/chart/SchXMLSeriesHelper.cxx
index c50ac86ece5f..c68856d3a651 100644
--- a/xmloff/source/chart/SchXMLSeriesHelper.cxx
+++ b/xmloff/source/chart/SchXMLSeriesHelper.cxx
@@ -17,7 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <xmloff/SchXMLSeriesHelper.hxx>
+
+#include "SchXMLSeriesHelper.hxx"
#include <com/sun/star/chart2/XChartDocument.hpp>
#include <com/sun/star/chart2/XChartTypeContainer.hpp>
#include <com/sun/star/chart2/XCoordinateSystemContainer.hpp>
@@ -25,13 +26,14 @@
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <rtl/ustring.h>
// header for define DBG_ERROR1
#include <tools/debug.hxx>
#include <typeinfo>
using namespace ::com::sun::star;
+using ::rtl::OUString;
+using ::rtl::OUStringToOString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
@@ -67,9 +69,12 @@ using ::com::sun::star::uno::Sequence;
{
(void)ex; // avoid warning for pro build
- OSL_FAIL( OUStringToOString( "Exception caught. Type: " +
- OUString::createFromAscii( typeid( ex ).name() ) +
- ", Message: " + ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr());
+ OSL_FAIL( OUStringToOString( OUString(
+ OUString( "Exception caught. Type: " ) +
+ OUString::createFromAscii( typeid( ex ).name()) +
+ OUString( ", Message: " ) +
+ ex.Message), RTL_TEXTENCODING_ASCII_US ).getStr());
+
}
return aResult;
@@ -164,7 +169,7 @@ bool SchXMLSeriesHelper::isCandleStickSeries(
xNewDiagram, xSeries ) );
if( xChartType.is() )
{
- OUString aServiceName( xChartType->getChartType() );
+ rtl::OUString aServiceName( xChartType->getChartType() );
if( aServiceName == "com.sun.star.chart2.CandleStickChartType" )
bRet = true;
}
@@ -188,7 +193,7 @@ uno::Reference< beans::XPropertySet > SchXMLSeriesHelper::createOldAPISeriesProp
if( xFactory.is() )
{
xRet = uno::Reference< beans::XPropertySet >( xFactory->createInstance(
- "com.sun.star.comp.chart2.DataSeriesWrapper" ), uno::UNO_QUERY );
+ OUString( "com.sun.star.comp.chart2.DataSeriesWrapper" ) ), uno::UNO_QUERY );
Reference< lang::XInitialization > xInit( xRet, uno::UNO_QUERY );
if(xInit.is())
{
@@ -225,7 +230,7 @@ uno::Reference< beans::XPropertySet > SchXMLSeriesHelper::createOldAPIDataPointP
if( xFactory.is() )
{
xRet = uno::Reference< beans::XPropertySet >( xFactory->createInstance(
- "com.sun.star.comp.chart2.DataSeriesWrapper" ), uno::UNO_QUERY );
+ OUString( "com.sun.star.comp.chart2.DataSeriesWrapper" ) ), uno::UNO_QUERY );
Reference< lang::XInitialization > xInit( xRet, uno::UNO_QUERY );
if(xInit.is())
{
diff --git a/xmloff/inc/xmloff/SchXMLSeriesHelper.hxx b/xmloff/source/chart/SchXMLSeriesHelper.hxx
index 08e87706cec5..107138705b35 100644
--- a/xmloff/inc/xmloff/SchXMLSeriesHelper.hxx
+++ b/xmloff/source/chart/SchXMLSeriesHelper.hxx
@@ -16,7 +16,6 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#ifndef _XMLOFF_SCH_XML_SERIESHELPER_HXX
#define _XMLOFF_SCH_XML_SERIESHELPER_HXX