update dev300-m57
[ooovba.git] / sc / uiconfig / layout / makefile.mk
blobf8cf8bdffce5c909c5025217e9b288e9ee0b8bdf
1 #*************************************************************************
3 # OpenOffice.org - a multi-platform office productivity suite
5 # $RCSfile$
7 # $Revision$
9 # last change: $Author$ $Date$
11 # The Contents of this file are made available subject to
12 # the terms of GNU Lesser General Public License Version 2.1.
15 # GNU Lesser General Public License Version 2.1
16 # =============================================
17 # Copyright 2005 by Sun Microsystems, Inc.
18 # 901 San Antonio Road, Palo Alto, CA 94303, USA
20 # This library is free software; you can redistribute it and/or
21 # modify it under the terms of the GNU Lesser General Public
22 # License version 2.1, as published by the Free Software Foundation.
24 # This library is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 # Lesser General Public License for more details.
29 # You should have received a copy of the GNU Lesser General Public
30 # License along with this library; if not, write to the Free Software
31 # Foundation, Inc., 51 Franklin Street, 5th Floor, Boston,
32 # MA 02110-1301 USA
34 #*************************************************************************
36 PRJ=../..
37 PRJNAME=sc
38 TARGET=layout
40 .INCLUDE : settings.mk
42 .IF "$(ENABLE_LAYOUT)" == "TRUE"
44 all: ALLTAR
46 XML_FILES=\
47 insert-sheet.xml\
48 move-copy-sheet.xml\
49 sort-options.xml\
50 string-input.xml\
54 .INCLUDE : layout.mk
56 .ELSE # ENABLE_LAYOUT != TRUE
57 all .PHONY:
58 .ENDIF # ENABLE_LAYOUT != TRUE
60 .INCLUDE : target.mk
62 localize.sdf: $(PRJ)/source/ui/miscdlgs/localize.sdf $(PRJ)/source/ui/src/localize.sdf
63 grep instbdlg.src $(PRJ)/source/ui/miscdlgs/localize.sdf | awk -F'\t' '{{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "sc\\uiconfig\\layout\\insert-sheet.xml", $$3, "layout", $$5 $$6 "_label", "", "", $$8, "0", $$10, $$11, $$12, "", $$14, $$15}}' | sed -e 's/\(\(FL\|STR\)_[^\t]*\)_label/\1_text/' -e 's/\tRID_SCDLG_INSERT_TABLE/\t/' -e 's/\t_label/\tRID_SCDLG_INSERT_TABLE_title/' > insert-sheet-$@
64 grep -E 'miscdlgs.src.*(FT_DEST|FT_INSERT|STR_NEWDOC|RID_SCDLG_MOVETAB|BTN_COPY)' $(PRJ)/source/ui/src/localize.sdf | awk -F'\t' '{{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "sc\\uiconfig\\layout\\move-copy-sheet.xml", $$3, "layout", $$5 $$6 "_label", "", "", $$8, "0", $$10, $$11, $$12, "", $$14, $$15}}' | sed -e 's/\(\(FL\|STR\)_[^\t]*\)_label/\1_text/' -e 's/\tRID_SCDLG_MOVETAB/\t/' -e 's/\t_label/\tRID_SCDLG_MOVETAB_title/'> move-copy-sheet-$@
65 grep sortdlg.src $(PRJ)/source/ui/src/localize.sdf | awk -F'\t' '{{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "sc\\uiconfig\\layout\\sort-options.xml", $$3, "layout", $$5 $$6 "_label", "", "", $$8, "0", $$10, $$11, $$12, "", $$14, $$15}}' | sed -e 's/\(\(FL\|STR\)_[^\t]*\)_label/\1_text/' -e 's/\tRID_SCDLG_SORT/\t/' -e 's/\t_label/\tRID_SCDLG_SORT_title/' -e 's/\tRID_SCPAGE_SORT_OPTIONS/\t/' -e 's/\tRID_SCPAGE_SORT_FIELDS/\t/' > sort-options-$@
66 echo '#empty' | cat - insert-sheet-$@ move-copy-sheet-$@ sort-options-$@ > $@
67 rm -f *-$@