Initial import
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@5 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
75e32b1e8f
commit
b0b66fcae9
252 changed files with 49000 additions and 0 deletions
8
source/oxt/xhtml-config-sample/META-INF/manifest.xml
Normal file
8
source/oxt/xhtml-config-sample/META-INF/manifest.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd">
|
||||
<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
|
||||
<manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data"
|
||||
manifest:full-path ="Paths.xcu"/>
|
||||
<manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data"
|
||||
manifest:full-path ="Options.xcu"/>
|
||||
</manifest:manifest>
|
45
source/oxt/xhtml-config-sample/Options.xcu
Normal file
45
source/oxt/xhtml-config-sample/Options.xcu
Normal file
|
@ -0,0 +1,45 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<oor:component-data oor:name="Options"
|
||||
oor:package="org.openoffice.da.Writer2xhtml"
|
||||
xml:lang="en-US"
|
||||
xmlns:oor="http://openoffice.org/2001/registry"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<!-- This is a sample registry file for use with Writer2xhtml -->
|
||||
<node oor:name="XhtmlOptions">
|
||||
<node oor:name="Configurations">
|
||||
<!-- This node adds a configuration to the ui -->
|
||||
<node oor:name="sampleconfig1" oor:op="replace">
|
||||
<!-- A comma separated of options that should be locked in the ui -->
|
||||
<prop oor:name="LockedOptions" oor:type="xs:string">
|
||||
<value>xhtml_notes,xhtml_split_level,xhtml_repeat_levels</value>
|
||||
</prop>
|
||||
<!-- The display name will be used in the list box -->
|
||||
<prop oor:name="DisplayName" oor:type="xs:string" oor:localized="true">
|
||||
<value>Sample custom style</value>
|
||||
</prop>
|
||||
<!-- This url points to the configuration to use -->
|
||||
<prop oor:name="ConfigURL" oor:type="xs:string">
|
||||
<value>%origin%/config/sampleconfig.xml</value>
|
||||
</prop>
|
||||
<!-- This url points to the target template to use -->
|
||||
<prop oor:name="TargetTemplateURL" oor:type="xs:string">
|
||||
<value>%origin%/config/sampletemplate.xhtml</value>
|
||||
</prop>
|
||||
</node>
|
||||
</node>
|
||||
<node oor:name="Templates">
|
||||
<!-- This node maps an OOo template to the our configuration -->
|
||||
<node oor:name="sampletemplate1" oor:op="replace">
|
||||
<prop oor:name="TemplateName" oor:type="xs:string">
|
||||
<value>XHTML template</value>
|
||||
</prop>
|
||||
<prop oor:name="ConfigName" oor:type="xs:string">
|
||||
<value>sampleconfig1</value>
|
||||
</prop>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
</oor:component-data>
|
||||
|
||||
|
||||
|
11
source/oxt/xhtml-config-sample/Paths.xcu
Normal file
11
source/oxt/xhtml-config-sample/Paths.xcu
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<oor:component-data oor:package="org.openoffice.Office" oor:name="Paths" xmlns:install="http://openoffice.org/2004/installation" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<node oor:name="Paths">
|
||||
<node oor:name="Template" oor:op="fuse">
|
||||
<node oor:name="InternalPaths">
|
||||
<node oor:name="%origin%/template" oor:op="fuse"/>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
</oor:component-data>
|
||||
|
52
source/oxt/xhtml-config-sample/config/sampleconfig.xml
Normal file
52
source/oxt/xhtml-config-sample/config/sampleconfig.xml
Normal file
|
@ -0,0 +1,52 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- This is a sample configuration file for Writer2xhtml
|
||||
Except for a few changes it's identical to cleanxhtml.xml
|
||||
-->
|
||||
|
||||
<config>
|
||||
<!-- options -->
|
||||
<option name="xhtml_no_doctype" value="false" />
|
||||
<option name="xhtml_formatting" value="ignore_all" />
|
||||
<option name="xhtml_frame_formatting" value="ignore_all" />
|
||||
<option name="xhtml_section_formatting" value="convert_all" />
|
||||
<option name="xhtml_table_formatting" value="convert_all" />
|
||||
<option name="xhtml_ignore_table_dimensions" value="false" />
|
||||
<option name="xhtml_uplink" value="http://www.hj-gym.dk/~hj/writer2latex" />
|
||||
<!-- options usually set in the dialog -->
|
||||
<option name="xhtml_notes" value="false" />
|
||||
<option name="xhtml_split_level" value="2" />
|
||||
<option name="xhtml_repeat_levels" value="1" />
|
||||
|
||||
<!-- map special OOo paragraph style to xhtml elements -->
|
||||
<xhtml-style-map name="My Special Style" class="paragraph" element="p" css="special" />
|
||||
|
||||
<!-- map standard OOo paragraph styles to xhtml elements -->
|
||||
<xhtml-style-map name="Text body" class="paragraph" element="p" css="(none)" />
|
||||
<xhtml-style-map name="Sender" class="paragraph" element="address" css="(none)" />
|
||||
<xhtml-style-map name="Preformatted Text" class="paragraph" element="pre" css="(none)" />
|
||||
<xhtml-style-map name="Quotations" class="paragraph"
|
||||
block-element="blockquote" block-css="(none)" element="p" css="(none)" />
|
||||
<xhtml-style-map name="List Heading" class="paragraph" block-element="dl" block-css="(none)" element="dt" css="(none)" />
|
||||
<xhtml-style-map name="List Contents" class="paragraph" block-element="dl" block-css="(none)" element="dd" css="(none)" />
|
||||
<xhtml-style-map name="Horizontal Line" class="paragraph" element="hr" css="(none)" />
|
||||
|
||||
<!-- map standard OOo text styles to xhtml elements -->
|
||||
<xhtml-style-map name="Citation" class="text" element="cite" css="(none)" />
|
||||
<xhtml-style-map name="Definition" class="text" element="dfn" css="(none)" />
|
||||
<xhtml-style-map name="Emphasis" class="text" element="em" css="(none)" />
|
||||
<xhtml-style-map name="Example" class="text" element="samp" css="(none)" />
|
||||
<xhtml-style-map name="Source Text" class="text" element="code" css="(none)" />
|
||||
<xhtml-style-map name="Strong Emphasis" class="text" element="strong" css="(none)" />
|
||||
<xhtml-style-map name="Teletype" class="text" element="tt" css="(none)" />
|
||||
<xhtml-style-map name="User entry" class="text" element="kbd" css="(none)" />
|
||||
<xhtml-style-map name="Variable" class="text" element="var" css="(none)" />
|
||||
|
||||
<!-- map OOo hard formatting attributes to xhtml elements -->
|
||||
<xhtml-style-map name="bold" class="attribute" element="b" css="(none)" />
|
||||
<xhtml-style-map name="italics" class="attribute" element="i" css="(none)" />
|
||||
<xhtml-style-map name="fixed" class="attribute" element="tt" css="(none)" />
|
||||
<xhtml-style-map name="superscript" class="attribute" element="sup" css="(none)" />
|
||||
<xhtml-style-map name="subscript" class="attribute" element="sub" css="(none)" />
|
||||
|
||||
</config>
|
||||
|
50
source/oxt/xhtml-config-sample/config/sampletemplate.xhtml
Normal file
50
source/oxt/xhtml-config-sample/config/sampletemplate.xhtml
Normal file
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<html xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<!-- This is a sample target template for use with Writer2xhtml -->
|
||||
<head>
|
||||
<!-- Writer2xhtml will extend the title with the document title -->
|
||||
<title>Writer2xhtml sample - </title>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="http://www.w3.org/StyleSheets/Core/Oldstyle" />
|
||||
<style type="text/css">
|
||||
#panel {
|
||||
width:250px; padding:10px; margin:10px;
|
||||
border-left:2px solid black; border-bottom:2px solid black;
|
||||
float:right;
|
||||
}
|
||||
#header,#footer {
|
||||
left:0; right:0; top:0; bottom:0; height: 30px; padding:10px;
|
||||
vertical-align: middle; background-color:black; color:gray; font-weight:bold;
|
||||
clear:right;
|
||||
}
|
||||
#content {
|
||||
left:0; right:0; top:0; bottom:0;
|
||||
}
|
||||
#header a,#footer a {
|
||||
text-decoration: none; background-color: black; color: white;
|
||||
}
|
||||
#header a:before,#footer a:before, #header span.nolink:before, #footer span.nolink:before {
|
||||
content:'[';
|
||||
}
|
||||
#header a:after,#footer a:after, #header span.nolink:after, #footer span.nolink:after {
|
||||
content:']';
|
||||
}
|
||||
#header a:hover,#footer a:hover {
|
||||
text-decoration: none; background-color: white; color: black;
|
||||
}
|
||||
pre { clear:right; }
|
||||
#panel p.level1 { margin-top:1px; margin-bottom:1px; margin-left:0px; margin-right:0px; font-size: 14px;}
|
||||
#panel p.level2 { margin-top:1px; margin-bottom:1px; margin-left:10px; margin-right:0px; font-size: 12px;}
|
||||
#panel p.level3 { margin-top:1px; margin-bottom:1px; margin-left:20px; margin-right:0px; font-size: 10px;}
|
||||
|
||||
p.special { font-size:20pt; margin-top:20px; margin-bottom:20px; color:green; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Writer2xhtml will add content after existing content in the div's -->
|
||||
<div id="header">Writer2xhtml </div>
|
||||
<div id="content">
|
||||
<div id="panel"/>
|
||||
</div>
|
||||
<div id="footer">Writer2xhtml </div>
|
||||
</body>
|
||||
</html>
|
6
source/oxt/xhtml-config-sample/description.xml
Normal file
6
source/oxt/xhtml-config-sample/description.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<description xmlns="http://openoffice.org/extensions/description/2006"
|
||||
xmlns:d="http://openoffice.org/extensions/description/2006">
|
||||
<identifier value="org.openoffice.da.writer2latex.xhtml-config-sample.oxt" />
|
||||
<version value="0.9.4" />
|
||||
</description>
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue