summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMarco Cecchetti <mrcekets@gmail.com>2011-07-09 05:03:15 -0600
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-07-11 08:32:33 +0200
commit2cabcc1f62cfc1b57241796776d3b7007b250829 (patch)
tree059311f6a6dd29efb4dcffa2fac2546bab1e4668 /filter
parent2fab6d4b4827de67f268a57b4135a6e10a50613e (diff)
Split the script in smaller pieces
Diffstat (limited to 'filter')
-rw-r--r--filter/source/svg/svgexport.cxx8
-rw-r--r--filter/source/svg/svgscript.hxx39
2 files changed, 32 insertions, 15 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index af57d3bdf3dd..31134e9575be 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -1110,7 +1110,13 @@ sal_Bool SVGFilter::implGenerateScript()
if( xExtDocHandler.is() )
{
- xExtDocHandler->unknown( OUString::createFromAscii( aSVGScript ) );
+ xExtDocHandler->unknown( OUString::createFromAscii( aSVGScript1 ) );
+ xExtDocHandler->unknown( OUString::createFromAscii( aSVGScript2 ) );
+ xExtDocHandler->unknown( OUString::createFromAscii( aSVGScript3 ) );
+ xExtDocHandler->unknown( OUString::createFromAscii( aSVGScript4 ) );
+ xExtDocHandler->unknown( OUString::createFromAscii( aSVGScript5 ) );
+ xExtDocHandler->unknown( OUString::createFromAscii( aSVGScript6 ) );
+ xExtDocHandler->unknown( OUString::createFromAscii( aSVGScript7 ) );
}
}
diff --git a/filter/source/svg/svgscript.hxx b/filter/source/svg/svgscript.hxx
index f7b01e02b1df..cd7589497f72 100644
--- a/filter/source/svg/svgscript.hxx
+++ b/filter/source/svg/svgscript.hxx
@@ -27,7 +27,7 @@
************************************************************************/
-static const char aSVGScript[] =
+static const char aSVGScript1[] =
"<![CDATA[\n\
\n\
/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \n\
@@ -335,8 +335,10 @@ static const char aSVGScript[] =
else\n\
return nIndex;\n\
}\n\
-\n\
-\n\
+\n\ ";
+
+static const char aSVGScript2[] =
+"\n\
// ------------------------------------------------------------------------------------------ //\n\
/******************\n\
** Core Classes **\n\
@@ -714,8 +716,10 @@ static const char aSVGScript[] =
\n\
this.textElement = getElementByClassName( aParentElem, 'PlaceholderContent' );\n\
};\n\
-\n\
- \n\
+\n\ ";
+
+static const char aSVGScript3[] =
+"\n\
// ------------------------------------------------------------------------------------------ //\n\
/********************************\n\
** Text Field Class Hierarchy **\n\
@@ -837,9 +841,10 @@ static const char aSVGScript[] =
// TODO handle page numbering type\n\
return String( nSlideNumber );\n\
};\n\
- \n\
- \n\
- \n\
+\n\ ";
+
+static const char aSVGScript4[] =
+"\n\
//------------------------------------------------------------------------------------------- //\n\
/********************************\n\
** Slide Index Classes **\n\
@@ -1065,8 +1070,10 @@ static const char aSVGScript[] =
ROOT_NODE.unsuspendRedraw( suspendHandle );\n\
ROOT_NODE.forceRedraw(); \n\
};\n\
- \n\
- \n\
+ \n\ ";
+
+static const char aSVGScript5[] =
+"\n\
/** Class Thumbnail **\n\
* This class handles a slide thumbnail.\n\
*/\n\
@@ -1258,8 +1265,10 @@ static const char aSVGScript[] =
};\n\
\n\
\n\
- \n\
-\n\
+ \n\ ";
+
+static const char aSVGScript6[] =
+"\n\
// ------------------------------------------------------------------------------------------ //\n\
/** Initialization function.\n\
* The whole presentation is set-up in this function.\n\
@@ -1396,8 +1405,10 @@ static const char aSVGScript[] =
\n\
return charCodeDict;\n\
}\n\
- \n\
-\n\
+ \n\ ";
+
+static const char aSVGScript7[] =
+"\n\
function slideOnMouseDown( aEvt )\n\
{\n\
if (!aEvt)\n\