incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r799254 [2/2] - in /websites/staging/ooo-site/trunk/content/graphics: chart/ css/ development/ images/ js/ svg/
Date Fri, 25 Nov 2011 20:08:07 GMT
Added: websites/staging/ooo-site/trunk/content/graphics/css/graphics.css
==============================================================================
--- websites/staging/ooo-site/trunk/content/graphics/css/graphics.css (added)
+++ websites/staging/ooo-site/trunk/content/graphics/css/graphics.css Fri Nov 25 20:08:03
2011
@@ -0,0 +1,109 @@
+/* Generated by CaScadeS, a stylesheet editor for Mozilla Composer */
+
+  .dba table { margin: 0pt;
+    padding: 0pt;
+    text-align: left;
+    width: 100%;
+    }
+
+  .dba hr { border: 1px solid  ! important;
+    color: rgb(204, 204, 204);
+    }
+
+  .dba .with_border { border: 1px solid  ! important;
+    }
+
+  .dba table ul { padding-left: 0px ! important;
+    }
+
+  .dba td { padding: 3px;
+    }
+
+  .dba_light td { border: thin none rgb(204, 204, 204) ! important;
+    padding: 3px;
+    }
+
+  .dba tr.MainTableHeader { background-color: rgb(0, 0, 128);
+    color: white;
+    font-weight: bold;
+    }
+
+  .dba tr.InnerTableHeader { font-weight: bold;
+    background-color: rgb(153, 204, 255);
+    }
+
+  .dba tr.OddTableRow { background-color: rgb(246, 246, 246);
+    }
+
+  .dba tr.EvenTableRow { background-color: rgb(230, 230, 230);
+    }
+
+  .dba h1 { padding: 5px;
+    font-size: x-large;
+    color: rgb(0, 0, 0);
+    margin-bottom: 2px;
+    background-color: rgb(218, 228, 238) ! important;
+    }
+
+  .dba h2 { padding: 2px;
+    background-color: rgb(246, 246, 246);
+    color: rgb(0, 0, 0);
+    margin-bottom: 10px;
+    }
+
+  .dba h3 { font-weight: bold;
+    background-color: rgb(238, 238, 238);
+    padding-left: 5px;
+    padding-top: 1px;
+    padding-bottom: 1px;
+    margin-bottom: 10px;
+    }
+
+  .dba_light tr.MainTableHeader { background-color: rgb(238, 238, 238);
+    font-weight: bold;
+    color: black;
+    }
+
+  .dba_light tr.InnerTableHeader { background-color: rgb(248, 248, 248);
+    font-weight: bold;
+    color: black;
+    }
+
+  .dba a.important { font-size: large;
+    font-weight: bold;
+    }
+
+  .vertically_centerred { vertical-align: middle;
+    }
+
+  #dba_project_menu .selected { font-weight: bold ! important;
+    background-color: rgb(222, 228, 238);
+    }
+
+  #dba_menu_bar .selected { font-weight: bold ! important;
+    }
+
+  .dba h1 { -moz-border-radius-topleft: 8px;
+    -moz-border-radius-topright: 8px;
+    -moz-border-radius-bottomright: 8px;
+    -moz-border-radius-bottomleft: 8px;
+    }
+
+  .dba h2 { -moz-border-radius-topleft: 5px;
+    -moz-border-radius-topright: 5px;
+    -moz-border-radius-bottomright: 5px;
+    -moz-border-radius-bottomleft: 5px;
+    }
+
+  .dba h3 { -moz-border-radius-topleft: 3px;
+    -moz-border-radius-topright: 3px;
+    -moz-border-radius-bottomright: 3px;
+    -moz-border-radius-bottomleft: 3px;
+    }
+
+  .dba .left_align { text-align: left;
+    }
+
+  .dba .centered { text-align: center;
+    }
+

Propchange: websites/staging/ooo-site/trunk/content/graphics/css/graphics.css
------------------------------------------------------------------------------
    svn:executable = *

Added: websites/staging/ooo-site/trunk/content/graphics/development/index.html
==============================================================================
--- websites/staging/ooo-site/trunk/content/graphics/development/index.html (added)
+++ websites/staging/ooo-site/trunk/content/graphics/development/index.html Fri Nov 25 20:08:03
2011
@@ -0,0 +1,99 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<link href="/css/ooo.css" rel="stylesheet" type="text/css">
+
+
+
+    
+  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
+
+    
+  <meta http-equiv="Content-Style-Type" content="text/css">
+
+    
+  <style type="text/css">@import url("/css/dba.css");</style>
+    
+    
+  <title>OpenOffice.org Graphics - Miscellaneous</title>
+  <script type="text/javascript" src="/js/dba_default.js"></script>
+
+
+</head>
+
+<body>
+  <div id="banner">
+    <div id="bannerleft"><a alt="Apache OpenOffice.org (incubating)" href="/">
+      <img id="ooo-logo alt="Apache OpenOffice.org (Incubating)" src="/images/ooo-logo.png"/></a></div>
+    <div id="bannerright"><a alt="Apache Incubator" href="http://incubator.apache.org">
+      <img id="asf-logo" alt="Apache Incubator" src="/images/apache-incubator-logo.png"/></a></div>
+   <div id="bannercenter"><br/>(incubating)&nbsp;|&nbsp;The Free and
Open Productivity Suite</div>
+  </div>
+  <div id="clear"></div>
+  
+  <div id="content">
+  
+    
+    
+
+    <b>Project Sections</b>:
+        <a href="../index.html">Home</a>&nbsp;| <a href="./index.html"><b>Development</b></a><br>
+
+        <b>Development Sections</b>:
+            <a href="./projects.html">Developer Projects</a><a href="./project_structure.html"></a>
+    
+<div class="dba">
+      
+<h1 id="dba_dev">OpenOffice.org Graphics - Development</h1>
+
+      
+<table id="Table1" cellpadding="0" cellspacing="0">
+
+        <tbody>
+
+          <tr class="OddTableRow">
+
+            <td style="vertical-align: top; width: 200px;"><a href="projects.html">Developer
projects</a></td>
+
+            <td style="vertical-align: top;">You're a developer, and you want to help?
Please take a<br>
+look
+            here for a list of (most self-contained) projects ....</td>
+
+          </tr>
+
+          
+        
+  </tbody>
+      
+</table>
+
+      <br>
+
+  </div>
+
+
+  </div>
+
+  <div id="footera">
+    <div id="poweredbya">
+      <p><img src="/images/feather-small.gif"/><br/>Powered by the Apache
CMS.</p>
+    </div>
+    <div id="copyrighta">
+      <p>
+	Apache "OpenOffice.org" is an effort undergoing incubation at The Apache Software Foundation
(ASF), sponsored by the Apache Incubator.
+	Incubation is required of all newly accepted projects until a further review indicates that
the infrastructure, communications, and
+	decision making process	have stabilized in a manner consistent with other successful ASF
projects. While incubation status is
+	not necessarily a reflection of the completeness or stability of the code, it does indicate
that the project has
+	yet to be fully endorsed by the ASF.</p>
+      <p>
+	<a href="/contact.html">Contact Us</a> |
+	<a href="/terms.html">Terms of Use</a>
+	<br />Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+	<br />OpenOffice.org and the seagull logo are registered trademarks of The Apache
Software Foundation.
+	<br />Other names appearing on the site may be trademarks of their respective owners.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>

Added: websites/staging/ooo-site/trunk/content/graphics/development/projects.html
==============================================================================
--- websites/staging/ooo-site/trunk/content/graphics/development/projects.html (added)
+++ websites/staging/ooo-site/trunk/content/graphics/development/projects.html Fri Nov 25
20:08:03 2011
@@ -0,0 +1,49 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<link href="/css/ooo.css" rel="stylesheet" type="text/css">
+
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+
+</head>
+
+<body>
+  <div id="banner">
+    <div id="bannerleft"><a alt="Apache OpenOffice.org (incubating)" href="/">
+      <img id="ooo-logo alt="Apache OpenOffice.org (Incubating)" src="/images/ooo-logo.png"/></a></div>
+    <div id="bannerright"><a alt="Apache Incubator" href="http://incubator.apache.org">
+      <img id="asf-logo" alt="Apache Incubator" src="/images/apache-incubator-logo.png"/></a></div>
+   <div id="bannercenter"><br/>(incubating)&nbsp;|&nbsp;The Free and
Open Productivity Suite</div>
+  </div>
+  <div id="clear"></div>
+  
+  <div id="content">
+  
+    
+    
+  </div>
+
+  <div id="footera">
+    <div id="poweredbya">
+      <p><img src="/images/feather-small.gif"/><br/>Powered by the Apache
CMS.</p>
+    </div>
+    <div id="copyrighta">
+      <p>
+	Apache "OpenOffice.org" is an effort undergoing incubation at The Apache Software Foundation
(ASF), sponsored by the Apache Incubator.
+	Incubation is required of all newly accepted projects until a further review indicates that
the infrastructure, communications, and
+	decision making process	have stabilized in a manner consistent with other successful ASF
projects. While incubation status is
+	not necessarily a reflection of the completeness or stability of the code, it does indicate
that the project has
+	yet to be fully endorsed by the ASF.</p>
+      <p>
+	<a href="/contact.html">Contact Us</a> |
+	<a href="/terms.html">Terms of Use</a>
+	<br />Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+	<br />OpenOffice.org and the seagull logo are registered trademarks of The Apache
Software Foundation.
+	<br />Other names appearing on the site may be trademarks of their respective owners.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>

Added: websites/staging/ooo-site/trunk/content/graphics/images/dba_edge_ccccff.gif
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/dba_edge_ccccff.gif
------------------------------------------------------------------------------
    svn:executable = *

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/dba_edge_ccccff.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: websites/staging/ooo-site/trunk/content/graphics/images/dba_edge_dee4ee.gif
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/dba_edge_dee4ee.gif
------------------------------------------------------------------------------
    svn:executable = *

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/dba_edge_dee4ee.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: websites/staging/ooo-site/trunk/content/graphics/images/dba_edge_eeeeee.gif
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/dba_edge_eeeeee.gif
------------------------------------------------------------------------------
    svn:executable = *

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/dba_edge_eeeeee.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: websites/staging/ooo-site/trunk/content/graphics/images/html.gif
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/html.gif
------------------------------------------------------------------------------
    svn:executable = *

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/html.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: websites/staging/ooo-site/trunk/content/graphics/images/new.gif
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/new.gif
------------------------------------------------------------------------------
    svn:executable = *

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/new.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: websites/staging/ooo-site/trunk/content/graphics/images/odt.gif
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/odt.gif
------------------------------------------------------------------------------
    svn:executable = *

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/odt.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: websites/staging/ooo-site/trunk/content/graphics/images/open_office_org_logo.gif
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/open_office_org_logo.gif
------------------------------------------------------------------------------
    svn:executable = *

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/open_office_org_logo.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: websites/staging/ooo-site/trunk/content/graphics/images/smile.gif
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/smile.gif
------------------------------------------------------------------------------
    svn:executable = *

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/smile.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: websites/staging/ooo-site/trunk/content/graphics/images/sxw.gif
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/sxw.gif
------------------------------------------------------------------------------
    svn:executable = *

Propchange: websites/staging/ooo-site/trunk/content/graphics/images/sxw.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: websites/staging/ooo-site/trunk/content/graphics/js/graphics_default.js
==============================================================================
--- websites/staging/ooo-site/trunk/content/graphics/js/graphics_default.js (added)
+++ websites/staging/ooo-site/trunk/content/graphics/js/graphics_default.js Fri Nov 25 20:08:03
2011
@@ -0,0 +1,16 @@
+
+window.onload=function(){ onLoad(); }
+
+function onLoad()
+{
+    // in the left hand side menu, hilight the item representing the current page
+    hilighCurrentMenuItem();
+}
+
+function hilighCurrentMenuItem()
+{
+    var heading = document.getElementsByTagName( "h1" )[0];
+    var currentMenuItem = document.getElementById( heading.id + "_item_menu_left" );
+    var menuItemLink = currentMenuItem.getElementsByTagName( "a" )[0];
+    menuItemLink.setAttribute( "class", "selected" );
+}

Propchange: websites/staging/ooo-site/trunk/content/graphics/js/graphics_default.js
------------------------------------------------------------------------------
    svn:executable = *

Added: websites/staging/ooo-site/trunk/content/graphics/svg/SVGExportTest.java
==============================================================================
--- websites/staging/ooo-site/trunk/content/graphics/svg/SVGExportTest.java (added)
+++ websites/staging/ooo-site/trunk/content/graphics/svg/SVGExportTest.java Fri Nov 25 20:08:03
2011
@@ -0,0 +1,165 @@
+/** The purpose of this class is to open a specified Draw/Impress document and save this
+ * file as a SVG file to a specified URL.".
+ */
+
+import com.sun.star.bridge.XUnoUrlResolver;
+import com.sun.star.lang.XComponent;
+import com.sun.star.lang.XMultiComponentFactory;
+import com.sun.star.uno.XComponentContext;
+import com.sun.star.uno.UnoRuntime;
+import com.sun.star.frame.XComponentLoader;
+import com.sun.star.frame.XStorable;
+import com.sun.star.beans.PropertyValue;
+import com.sun.star.beans.XPropertySet;
+import com.sun.star.util.XCloseable;
+import com.sun.star.document.XFilter;
+import com.sun.star.document.XExporter;
+import com.sun.star.drawing.XDrawPagesSupplier;
+import com.sun.star.drawing.XDrawPages;
+
+public class SVGExportTest
+{
+    /** The main method of the application.
+     * @param args The program needs three arguments:
+     * - full file name to open,
+     * - full file name to save.
+     */
+  public static void main(String args[])
+  {
+    try 
+    {
+      final String sConnectionString = "uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager";
+
+      if( args.length < 2 )
+      {
+        System.out.println(
+			"usage: java -classpath .;<Office path>/program/classes/jurt.jar;" +
+			"<Office path>/program/classes/ridl.jar;" +
+			"<Office path>/program/classes/sandbox.jar;" +
+			"<Office path>/program/classes/unoil.jar;" +
+			"<Office path>/program/classes/juh.jar " +
+			"SVGTest \"<URL|path to load>\" \"<URL|basepath to save>\"" );
+			System.out.println( "\ne.g.:" );
+			System.out.println( "java -classpath .;d:/office60/program/classes/jurt.jar;" +
+			"d:/office60/program/classes/ridl.jar;" +
+			"d:/office60/program/classes/sandbox.jar;" +
+			"d:/office60/program/classes/unoil.jar; " +
+			"d:/office60/program/classes/juh.jar " +
+			"SVGTest \"f:\\Test.ppt\" \"f:\\Test.svg\"" );
+        System.exit(1);
+      }
+
+      /* Bootstraps a component context with the jurt base components
+         registered. Component context to be granted to a component for running.
+         Arbitrary values can be retrieved from the context. */
+      XComponentContext xcomponentcontext = com.sun.star.comp.helper.Bootstrap.createInitialComponentContext(
null );
+
+      /* Gets the service manager instance to be used (or null). This method has
+         been added for convenience, because the service manager is a often used
+         object. */
+      XMultiComponentFactory xmulticomponentfactory = xcomponentcontext.getServiceManager();
+
+      /* Creates an instance of the component UnoUrlResolver which
+         supports the services specified by the factory. */
+      Object objectUrlResolver = xmulticomponentfactory.createInstanceWithContext( "com.sun.star.bridge.UnoUrlResolver",
xcomponentcontext );
+
+      // Create a new url resolver
+      XUnoUrlResolver xurlresolver = (XUnoUrlResolver) UnoRuntime.queryInterface( XUnoUrlResolver.class,
objectUrlResolver );
+
+      // Resolves an object that is specified as follow:
+      // uno:<connection description>;<protocol description>;<initial object
name>
+      Object objectInitial = xurlresolver.resolve( sConnectionString );
+
+      // Create a service manager from the initial object
+      xmulticomponentfactory = (XMultiComponentFactory) UnoRuntime.queryInterface( XMultiComponentFactory.class,
objectInitial );
+
+      // Query for the XPropertySet interface.
+      XPropertySet xpropertysetMultiComponentFactory = (XPropertySet) UnoRuntime.queryInterface(
XPropertySet.class, xmulticomponentfactory );
+
+      // Get the default context from the office server.
+      Object objectDefaultContext = xpropertysetMultiComponentFactory.getPropertyValue( "DefaultContext"
);
+
+      // Query for the interface XComponentContext.
+      xcomponentcontext = (XComponentContext) UnoRuntime.queryInterface( XComponentContext.class,
objectDefaultContext );
+
+      /* A desktop environment contains tasks with one or more
+         frames in which components can be loaded. Desktop is the
+         environment for components which can instanciate within
+         frames. */
+      XComponentLoader xcomponentloader = (XComponentLoader) UnoRuntime.queryInterface( XComponentLoader.class,
+                                            xmulticomponentfactory.createInstanceWithContext(
+                                            "com.sun.star.frame.Desktop", xcomponentcontext
) );
+
+      java.io.File sourceFile = new java.io.File(args[0]);
+      StringBuffer sLoadUrl = new StringBuffer("file:///");
+      sLoadUrl.append(sourceFile.getCanonicalPath().replace('\\', '/'));
+
+      sourceFile = new java.io.File(args[1]);
+      StringBuffer sSaveUrl = new StringBuffer("file:///");
+      sSaveUrl.append(sourceFile.getCanonicalPath().replace('\\', '/'));
+
+      // set load properties
+      PropertyValue[] propertyvalue = new PropertyValue[ 1 ];
+      propertyvalue[ 0 ] = new PropertyValue();
+      propertyvalue[ 0 ].Name = "Hidden";
+      propertyvalue[ 0 ].Value = new Boolean(true);
+
+      // load document
+      Object objectDocumentToStore = xcomponentloader.loadComponentFromURL( sLoadUrl.toString(),
"_blank", 0, propertyvalue );
+
+      if( objectDocumentToStore != null )
+      {
+          XComponent            xcomponent = (XComponent) UnoRuntime.queryInterface( XComponent.class,
objectDocumentToStore );
+          XCloseable            xcloseable = (XCloseable) UnoRuntime.queryInterface( XCloseable.class,
objectDocumentToStore );
+          XDrawPagesSupplier    xpagessupplier = (XDrawPagesSupplier) UnoRuntime.queryInterface(
XDrawPagesSupplier.class, objectDocumentToStore );
+
+          // create filter
+          Object                svgfilter = xmulticomponentfactory.createInstanceWithContext(
"com.sun.star.document.SVGFilter", xcomponentcontext );
+          XFilter               xfilter = (XFilter) UnoRuntime.queryInterface( XFilter.class,
svgfilter );
+          XExporter             xexporter = (XExporter) UnoRuntime.queryInterface( XExporter.class,
svgfilter );
+
+    	  // let filter know the source document
+          xexporter.setSourceDocument( xcomponent );
+
+          // do the filtering
+          if( xpagessupplier != null )
+          {
+    	      XDrawPages xdrawpages = xpagessupplier.getDrawPages();
+
+    	      if( xdrawpages != null && xdrawpages.getCount() > 0 )
+    	      {
+    			  int i;
+
+                  propertyvalue = new PropertyValue[ 2 ];
+
+                  propertyvalue[ 0 ] = new PropertyValue();
+                  propertyvalue[ 0 ].Name = "FileName";
+
+                  propertyvalue[ 1 ] = new PropertyValue();
+                  propertyvalue[ 1 ].Name = "PagePos";
+
+                  // iterate over all contained pages and export each page into a single
file
+                  for( i = 0; i < xdrawpages.getCount(); ++i )
+    			  {
+                      propertyvalue[ 0 ].Value = sSaveUrl.toString().replaceAll( "\\.svg",
"_" + Integer.toString( i ) ) + ".svg";
+    		          propertyvalue[ 1 ].Value = new Integer( i );
+    			  	  xfilter.filter( propertyvalue );
+    			  }
+              }
+          }
+
+          // close document
+          if( xcloseable != null )
+              xcloseable.close( false );
+          else
+              xcomponent.dispose();
+      }
+
+      System.exit( 0 );
+    }
+    catch( Exception exception )
+    {
+      System.err.println( exception );
+    }
+  }
+}

Propchange: websites/staging/ooo-site/trunk/content/graphics/svg/SVGExportTest.java
------------------------------------------------------------------------------
    svn:executable = *

Added: websites/staging/ooo-site/trunk/content/graphics/svg/svg.htm
==============================================================================
--- websites/staging/ooo-site/trunk/content/graphics/svg/svg.htm (added)
+++ websites/staging/ooo-site/trunk/content/graphics/svg/svg.htm Fri Nov 25 20:08:03 2011
@@ -0,0 +1,222 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+  <meta content="text/html; charset=iso-8859-1"
+ http-equiv="CONTENT-TYPE">
+  <title>openoffice.org : graphics : chart project</title>
+  <meta content="StarOffice 7  (Linux)" name="GENERATOR">
+  <meta content="20031211;14111000" name="CREATED">
+  <meta content="20031215;15083400" name="CHANGED">
+</head>
+<body dir="ltr" lang="en-US">
+<h2><a name="mozTocId380621" class="mozTocH2"></a>New SVG export filter
+(Technology Preview)</h2>
+<p><b>Feedback to:</b> <a href="mailto:Kai.Ahrens@Sun.COM">Kai Ahrens</a></p>
+<ul id="mozToc">
+<!--mozToc h1 1 h2 2 h3 3 h4 4 h5 5 h6 6--><li><a href="#mozTocId380621">New
+SVG export filter (Technology Preview)</a>
+    <ul>
+      <li>
+        <ul>
+          <li><a href="#mozTocId11539">Introduction</a></li>
+          <li><a href="#mozTocId237397">Features</a>
+            <ul>
+              <li><a href="#mozTocId91148">What works so far</a></li>
+              <li><a href="#mozTocId235063">What doesn't work so far</a></li>
+              <li><a href="#mozTocId801769">What is planned next</a></li>
+            </ul>
+          </li>
+          <li><a href="#mozTocId522209">Installation</a></li>
+          <li><a href="#mozTocId155665">Usage</a>
+            <ul>
+              <li><a href="#mozTocId737281">Using the filter from
+within the application (UI)</a></li>
+              <li><a href="#mozTocId265090">Using the filter via API</a></li>
+            </ul>
+          </li>
+          <li><a href="#mozTocId51393">Source Code</a></li>
+        </ul>
+      </li>
+    </ul>
+  </li>
+</ul>
+<h3><a name="mozTocId11539" class="mozTocH3"></a>Introduction</h3>
+<p>Based on the fact that the current SVG export filter available in
+OpenOffice has some drawbacks and lacks a proper design internally, I
+created a new filter module from ground up, that should be able to
+fulfill the needs we have in this area. Needs in this area are
+extracted from community feedback, customer requests and issues we
+currently have with the 'old' SVG export filter implementation.</p>
+<p><b><font color="#ff0000">Important</font>: The current release
of
+the new filter module is just meant to be a 'Technology Preview',
+that offers only basic functionality. It is in no way a complete
+product and shouldn't be used for production purposes. Please use
+this release at your own risk.</b><br>
+</p>
+<h3><a name="mozTocId237397" class="mozTocH3"></a>Features</h3>
+<p>The goal for this first release was to offer at least the same
+functionality as we currently have with the old filter, but with
+support for the export of multiple pages within one SVG file. The
+whole code currently available was written from scratch and should
+give us a 'Proof Of Concept' with the current release. It will be the
+basis for future releases and will be improved constantly. A concrete
+release schedule is currently not available. </p>
+<h4><a name="mozTocId91148" class="mozTocH4"></a>What works so far</h4>
+<ul>
+  <li>
+    <p style=""><i>Support of latest available official specification
+(SVG 1.1)</i></p>
+  </li>
+  <li>
+    <p style=""><i>Aspect ratio is preserved<br>
+    </i>PreserveAspectRatio attribute is set to xMidyMid</p>
+  </li>
+  <li>
+    <p><i>Usage of descriptive identifiers for several kinds of
+document objects<br>
+    </i>Slides/Master Slides as well as drawing objects and group
+objects get a description element within the SVG output, so that the
+document structure is kind of preserved. Named objects are also
+possible in this context</p>
+  </li>
+  <li>
+    <p><i>Separation of master slides and normal slides in one file</i>
+    </p>
+  </li>
+  <li>
+    <p><i>Support of multiple slides within one SVG file</i><br>
+The user should be able to travel through slides within a SVG viewer
+like Adobe's SVG Viewer or BATIK by just clicking the mouse. This
+feature has been realized by adding ECMA scripting to the SVG output.</p>
+  </li>
+  <li>
+    <p style=""><i>Embedding of fonts<br>
+    </i>Fonts are now embedded, so that the output should be the same
+on different systems, even if the document font isn't available on the
+specific target system. </p>
+  </li>
+  <li>
+    <p><i>Exporting only single pages or all pages via API</i></p>
+  </li>
+</ul>
+<h4><a name="mozTocId235063" class="mozTocH4"></a>What doesn't work so
+far</h4>
+<ul>
+  <li>
+    <p style=""><i>Textual bullets are not working very well, with
+different results on Unix and Windows from time to time</i></p>
+  </li>
+  <li>
+    <p style=""><i>Shadow text and hollow text is not working<br>
+    </i>These attributes are not supported by the SVG specification, so
+that we'll have to fake this for correct results.</p>
+  </li>
+  <li>
+    <p style=""><i>No single or page range export via UI<br>
+    </i>All pages are exported by default, you can't change the default
+via UserInterface to just export single pages</p>
+  </li>
+  <li>
+    <p style=""><i>Many other things</i></p>
+  </li>
+</ul>
+<h4><a name="mozTocId801769" class="mozTocH4"></a>What is planned next</h4>
+<ul>
+  <li>
+    <p><i>Creation of an export dialog to support export of single
+pages and page ranges for example</i></p>
+  </li>
+  <li>
+    <p><i>Implementing support for different shapes like rects,
+ellipses and bezier curves instead of creating just simple polygons</i></p>
+  </li>
+  <li>
+    <p><i>Better font support</i></p>
+  </li>
+  <li>
+    <p><i>Better support of native SVG filling and stroking</i></p>
+  </li>
+  <li>
+    <p><i>Animations</i></p>
+  </li>
+  <li>
+    <p><i>Sound</i><br>
+    </p>
+  </li>
+</ul>
+<h3><a name="mozTocId522209" class="mozTocH3"></a>Installation</h3>
+<ul>
+  <li>
+    <p>Install an OpenOffice.org1.1 or newer if you have not done so
+already.</p>
+  </li>
+  <li>
+    <p><a href="svgexport.zip">Download</a> the package that contains
+the new version of the filter.</p>
+  </li>
+  <li>
+    <p>Copy the zip file in <code>OpenOffice1.1/user/uno_packages</code>
+folder (Note: USE the zip file as a whole, DO NOT extract it). </p>
+  </li>
+  <li>
+    <p>Open up a shell and switch to the OpenOffice1.1/program
+directory and start the pkgchk tool. On success, no output is given. </p>
+  </li>
+  <li>
+    <p>Alternatively, you can install the filter for all users of a
+OpenOffice.org network installation by placing the file into the <code>OpenOffice1.1/share/uno_packages</code>
+and starting <br>
+pkgchk --shared </p>
+  </li>
+  <li>
+    <p>You can uninstall the package by deleting the file in the
+uno_packages directory and starting pkgchk again.<br>
+    </p>
+  </li>
+</ul>
+<h3><a name="mozTocId155665" class="mozTocH3"></a>Usage</h3>
+<h4><a name="mozTocId737281" class="mozTocH4"></a>Using the filter from
+within the application (UI)</h4>
+<p>After successful installation you should have a new filter entry
+inside the 'File=&gt;Export' dialog available. The new filter is
+called <b>SVG &#8211; Scalable Vector Graphics (new)</b>. The old SVG
+filter is still available.</p>
+<p style="">As stated above, there's no export
+dialog available at the moment, so that all pages get exported in
+every case. This will be changed as soon as a filter dialog will be
+available.</p>
+<h4><a name="mozTocId265090" class="mozTocH4"></a>Using the filter via
+API</h4>
+<p>You can use the filter via API in a very easy way. The <a
+ href="SVGExportTest.java">Java
+code</a> gives you an example of how to do this.</p>
+<p>The following properties are supported so far:</p>
+<ul>
+  <li>
+    <p><i>OutputStream (interface ::com::sun::star::io::XOutputStream)</i><br>
+You can set the XoutputStream interface that should be used to export
+into the underlying stream</p>
+  </li>
+  <li>
+    <p><i>FileName (String)</i><br>
+As an alternative to the OutputStream, you can set the FileName
+property. In this case an output stream is created internally to write
+to the specified URL</p>
+  </li>
+  <li>
+    <p><i>PagePos (Integer)</i><br>
+You can specify which page to export here. Values between 0 and
+(PageCount-1) export the specified page, all other values export all
+pages. Default is -1.<br>
+    </p>
+  </li>
+</ul>
+<h3><a name="mozTocId51393" class="mozTocH3"></a>Source Code</h3>
+<p>The source code for the new SVG export filter can be found inside
+the <b>Framework</b> project <b>filter </b>module. Please checkout
+this module and change directory to <b>filter/source/svg </b>to find
+the related code. Revisions for the current release are tagged with
+OOO_SVG_FILTER_0_1_0 and can be checked out with standard CVS
+commands.</p>
+</body>
+</html>

Added: websites/staging/ooo-site/trunk/content/graphics/svg/svgexport.zip
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/ooo-site/trunk/content/graphics/svg/svgexport.zip
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message