1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xmlfiltertabpagexslt.src,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #include "xmlfiltertabpagexslt.hrc"
32 #include "xmlfilterhelpids.hrc"
34 #define TAB_PAGE_WIDTH 260
35 #define TAB_PAGE_HEIGHT 120
41 #define FIRST_ROW_WIDTH 75
43 #define SECOND_ROW_X (FIRST_ROW_X + FIRST_ROW_WIDTH + SPACING)
44 #define SECOND_ROW_Y 6
45 #define SECOND_ROW_WIDTH (TAB_PAGE_WIDTH - SECOND_ROW_X - 2*SPACING)
46 #define BROWSE_WIDTH 50
49 #define FIXED_TEXT_OFFSET 2
54 TabPage RID_XML_FILTER_TABPAGE_XSLT
56 HelpId = HID_XML_FILTER_TABPAGE_XSLT;
58 Size = MAP_APPFONT ( TAB_PAGE_WIDTH , TAB_PAGE_HEIGHT );
59 Text [ en-US ] = "Transformation";
61 // DocType --------------------------------------------------------
63 FixedText FT_XML_DOCTYPE
65 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 0 * ROW_HEIGHT + 0 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
66 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
67 Text [ en-US ] = "DocType";
72 Pos = MAP_APPFONT ( SECOND_ROW_X , SECOND_ROW_Y + 0 * ROW_HEIGHT + 0 * SPACING + EDIT_OFFSET ) ;
73 Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH, 12 ) ;
74 HelpId = HID_XML_FILTER_DOCTYPE;
78 // DTD/Schema -----------------------------------------------------
80 FixedText FT_XML_DTD_SCHEMA
82 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
83 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
84 Text [ en-US ] = "DTD";
87 ComboBox ED_XML_DTD_SCHEMA
89 Pos = MAP_APPFONT ( SECOND_ROW_X , SECOND_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING + EDIT_OFFSET ) ;
90 Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH, 12 ) ;
91 HelpId = HID_XML_FILTER_DTD;
96 PushButton ED_XML_DTD_SCHEMA_BROWSE
98 Pos = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING ) ;
99 Size = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
100 HelpId = HID_XML_FILTER_DTD_BROWSE;
101 Text [ en-US ] = "Browse...";
104 // Export XSLT ----------------------------------------------------
106 FixedText FT_XML_EXPORT_XSLT
108 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
109 Size = MAP_APPFONT ( FIRST_ROW_WIDTH, 8 ) ;
110 Text [ en-US ] = "XSLT for export";
113 ComboBox ED_XML_EXPORT_XSLT
115 Pos = MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING + EDIT_OFFSET ) ;
116 Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH , 12 ) ;
117 HelpId = HID_XML_FILTER_EXPORT_XSLT;
121 PushButton PB_XML_EXPORT_XSLT_BROWSE
123 Pos = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING ) ;
124 Size = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
125 HelpId = HID_XML_FILTER_EXPORT_XSLT_BROWSE;
126 Text [ en-US ] = "Browse...";
129 // Import XSLT ----------------------------------------------------
131 FixedText FT_XML_IMPORT_XSLT
133 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
134 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
135 Text [ en-US ] = "XSLT for import";
138 ComboBox ED_XML_IMPORT_XSLT
140 Pos = MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING + EDIT_OFFSET ) ;
141 Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH , 12 ) ;
142 HelpId = HID_XML_FILTER_IMPORT_XSLT;
146 PushButton PB_XML_IMPORT_XSLT_BROWSE
148 Pos = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING ) ;
149 Size = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
150 HelpId = HID_XML_FILTER_IMPORT_XSLT_BROWSE;
151 Text [ en-US ] = "Browse...";
154 // Import Template ------------------------------------------------
156 FixedText FT_XML_IMPORT_TEMPLATE
158 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
159 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
160 Text [ en-US ] = "Template for import";
163 ComboBox ED_XML_IMPORT_TEMPLATE
165 Pos = MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING + EDIT_OFFSET ) ;
166 Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH , 12 ) ;
167 HelpId = HID_XML_FILTER_IMPORT_TEMPLATE;
171 PushButton PB_XML_IMPORT_TEMPLATE_BROWSE
173 Pos = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING ) ;
174 Size = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
175 HelpId = HID_XML_FILTER_IMPORT_TEMPLATE_BROWSE;
176 Text [ en-US ] = "Browse...";