summaryrefslogtreecommitdiff
path: root/sw/uiconfig
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-12-17 12:46:28 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-12-17 12:46:28 +0000
commit8f8e9fed74a5d66592880bf7eb41b868073f7907 (patch)
treeabbee39fac8bd4c2f7aff74ee0e746c085b5186b /sw/uiconfig
parent60949077363b88029aec9000005382528c4c2c3a (diff)
#i10000# I somehow managed to remove dozens of files by mistake when integrating CWS tl56_DEV300 (r265489). Revive.
Diffstat (limited to 'sw/uiconfig')
-rw-r--r--sw/uiconfig/layout/delzip1
-rw-r--r--sw/uiconfig/layout/layout.mk33
-rw-r--r--sw/uiconfig/layout/makefile.mk50
-rw-r--r--sw/uiconfig/layout/wordcount.xml50
4 files changed, 134 insertions, 0 deletions
diff --git a/sw/uiconfig/layout/delzip b/sw/uiconfig/layout/delzip
new file mode 100644
index 0000000000..7b4d68d70f
--- /dev/null
+++ b/sw/uiconfig/layout/delzip
@@ -0,0 +1 @@
+empty \ No newline at end of file
diff --git a/sw/uiconfig/layout/layout.mk b/sw/uiconfig/layout/layout.mk
new file mode 100644
index 0000000000..f6bea876d8
--- /dev/null
+++ b/sw/uiconfig/layout/layout.mk
@@ -0,0 +1,33 @@
+# TODO: move to solenv/inc
+# copies: sw/uiconfig/layout svx/uiconfig/layout
+
+TRALAY=tralay
+XML_DEST=$(DLLDEST)
+XML_LANGS=$(alllangiso)
+
+ALL_XMLS=$(foreach,i,$(XML_FILES) $(XML_DEST)/$i) $(foreach,i,$(XML_LANGS) $(foreach,j,$(XML_FILES) $(XML_DEST)/$i/$j))
+
+# Must remove the -j (no duplicate base file names) flag
+ZIPUPDATE=-u
+XML_ZIP = $(PRJNAME)-layout
+
+ALLTAR: $(XML_ZIP)
+
+$(XML_ZIP): $(ALL_XMLS)
+
+ZIP1DIR=$(XML_DEST)
+ZIP1TARGET=$(XML_ZIP)
+ZIP1LIST=$(ALL_XMLS:s@$(XML_DEST)/@@)
+
+$(foreach,i,$(XML_LANGS) $(XML_DEST)/$i/%.xml): %.xml
+ -$(MKDIR) $(@:d)
+ @echo $(foreach,i,$(XML_LANGS) $(XML_DEST)/$i/%.xml): %.xml
+ $(TRALAY) -m localize.sdf -o $(XML_DEST) -l $(XML_LANGS:f:t" -l ") $<
+
+$(XML_DEST)/%.xml: %.xml
+ -$(MKDIR) $(@:d)
+ $(COPY) $< $@
+
+# Don't want to overwrite filled localize.sdf with empty template
+template.sdf:
+ $(foreach,i,$(XML_FILES) $(TRALAY) -l en-US $i) > $@
diff --git a/sw/uiconfig/layout/makefile.mk b/sw/uiconfig/layout/makefile.mk
new file mode 100644
index 0000000000..b577653b1f
--- /dev/null
+++ b/sw/uiconfig/layout/makefile.mk
@@ -0,0 +1,50 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2008 by Sun Microsystems, Inc.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.2 $
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=../..
+PRJNAME=sw
+TARGET=layout
+
+.INCLUDE : settings.mk
+
+.IF "$(ENABLE_LAYOUT)" == "TRUE"
+
+all: ALLTAR
+
+XML_FILES=wordcount.xml
+
+.INCLUDE : layout.mk
+
+.ELSE # ENABLE_LAYOUT != TRUE
+all .PHONY:
+.ENDIF # ENABLE_LAYOUT != TRUE
+
+.INCLUDE : target.mk
diff --git a/sw/uiconfig/layout/wordcount.xml b/sw/uiconfig/layout/wordcount.xml
new file mode 100644
index 0000000000..c8f8092e36
--- /dev/null
+++ b/sw/uiconfig/layout/wordcount.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- This is a template. i18n translation is not performed in-place;
+ i18n translated xml files are generated from this template by
+ transex3/layout/tralay. !-->
+
+<modaldialog xmlns="http://openoffice.org/2007/layout"
+ xmlns:cnt="http://openoffice.org/2007/layout/container"
+ help-id="HID_DLG_WORDCOUNT"
+ id="DLG_WORDCOUNT"
+ sizeable="true" moveable="true" optimumsize="true"
+ has_border="true" sv-look="true" _title="Word Count">
+ <vbox border="5" spacing="5">
+ <fixedline id="FL_CURRENT" _text="Current selection"/>
+ <hbox>
+ <vbox cnt:padding="13" spacing="5">
+ <hbox>
+ <fixedtext id="FT_CURRENTWORD" _label="Words:"/>
+ <flow cnt:padding="60"/>
+ <fixedtext id="FI_CURRENTWORD" right="true" _label="0"/>
+ </hbox>
+ <hbox>
+ <fixedtext id="FT_CURRENTCHARACTER" _label="Characters:"/>
+ <flow cnt:padding="60"/>
+ <fixedtext id="FI_CURRENTCHARACTER" right="true" _label="00"/>
+ </hbox>
+ </vbox>
+ </hbox>
+ <!-- if we could do cnt:cnt:padding="-13" here, we would not have to close
+ and reope the hbox/vbox thing !-->
+ <fixedline id="FL_DOC" _text="Whole document"/>
+ <hbox>
+ <vbox cnt:padding="13" spacing="5">
+ <hbox>
+ <fixedtext id="FT_DOCWORD" _label="Words:"/>
+ <fixedtext id="FI_DOCWORD" right="true" _label="000"/>
+ </hbox>
+ <hbox>
+ <fixedtext id="FT_DOCCHARACTER" _label="Characters:"/>
+ <fixedtext id="FI_DOCCHARACTER" right="true" _label="0000"/>
+ </hbox>
+ </vbox>
+ </hbox>
+ <fixedline cnt:padding="1" id="FL_BOTTOM"/>
+ <dialogbuttonhbox spacing="5">
+ <flow/>
+ <okbutton id="PB_OK"/>
+ <helpbutton id="PB_HELP"/>
+ </dialogbuttonhbox>
+ </vbox>
+</modaldialog>