Some fixes for 1.0 beta

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@8 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2009-03-08 13:43:50 +00:00
parent 6c7c7cdbf2
commit fe1b3e2fc5
15 changed files with 391 additions and 78 deletions

View file

@ -16,11 +16,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
* Copyright: 2002-2008 by Henrik Just
* Copyright: 2002-2009 by Henrik Just
*
* All Rights Reserved.
*
* Version 1.0 (2008-12-15)
* Version 1.0 (2009-03-08)
*
*/
@ -760,7 +760,7 @@ public class DrawConverter extends ConverterHelper {
// We thus have to subtract the borders and padding to get the correct width
StyleWithProperties style = ofr.getFrameStyle(node.getAttribute(XMLString.DRAW_STYLE_NAME));
String sWidth = Misc.getAttribute(node,XMLString.SVG_WIDTH);
String sWidth = node.getAttribute(XMLString.SVG_WIDTH);
if (sWidth.length()>0) {
if (style!=null) {
// Subtract padding
@ -782,7 +782,7 @@ public class DrawConverter extends ConverterHelper {
props.addValue("width",scale(sWidth));
}
String sHeight = Misc.getAttribute(node,XMLString.SVG_HEIGHT);
String sHeight = node.getAttribute(XMLString.SVG_HEIGHT);
if (sHeight.length()>0 && !bOnlyWidth) {
if (style!=null) {
// Subtract padding

View file

@ -16,11 +16,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
* Copyright: 2002-2008 by Henrik Just
* Copyright: 2002-2009 by Henrik Just
*
* All Rights Reserved.
*
* Version 1.0 (2008-12-16)
* Version 1.0 (2009-03-05)
*
*/
@ -81,6 +81,20 @@ public class L10n {
case DOCUMENT: return "Document";
}
}
if (sLocale.startsWith("es")) { // spanish
switch (nString) {
case UP: return "Arriba";
case FIRST : return "Primero";
case PREVIOUS : return "Previo";
case NEXT : return "Siguiente";
case LAST : return "\u00daltimo";
case CONTENTS : return "Contenido";
case INDEX : return "\u00cdndice";
case HOME : return "Inicio";
case DIRECTORY: return "Directorio";
case DOCUMENT: return "Documento";
}
}
if (sLocale.startsWith("da")) { // danish
switch (nString) {
case UP: return "Op";