1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include "xmlfiltertabpagexslt.hrc"
21 #include "xmlfilterhelpids.hrc"
23 #define TAB_PAGE_WIDTH 260
24 #define TAB_PAGE_HEIGHT 120
30 #define FIRST_ROW_WIDTH 75
32 #define SECOND_ROW_X (FIRST_ROW_X + FIRST_ROW_WIDTH + SPACING)
33 #define SECOND_ROW_Y 6
34 #define SECOND_ROW_WIDTH (TAB_PAGE_WIDTH - SECOND_ROW_X - 2*SPACING)
35 #define BROWSE_WIDTH 50
38 #define FIXED_TEXT_OFFSET 2
43 TabPage RID_XML_FILTER_TABPAGE_XSLT
45 HelpId = HID_XML_FILTER_TABPAGE_XSLT;
47 Size = MAP_APPFONT ( TAB_PAGE_WIDTH , TAB_PAGE_HEIGHT );
48 Text [ en-US ] = "Transformation";
50 // DocType --------------------------------------------------------
52 FixedText FT_XML_DOCTYPE
54 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 0 * ROW_HEIGHT + 0 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
55 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
56 Text [ en-US ] = "DocType";
61 Pos = MAP_APPFONT ( SECOND_ROW_X , SECOND_ROW_Y + 0 * ROW_HEIGHT + 0 * SPACING + EDIT_OFFSET ) ;
62 Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH, 12 ) ;
63 HelpId = HID_XML_FILTER_DOCTYPE;
67 // Export XSLT ----------------------------------------------------
69 FixedText FT_XML_EXPORT_XSLT
71 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
72 Size = MAP_APPFONT ( FIRST_ROW_WIDTH, 8 ) ;
73 Text [ en-US ] = "XSLT for export";
76 ComboBox ED_XML_EXPORT_XSLT
78 Pos = MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING + EDIT_OFFSET ) ;
79 Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH , 12 ) ;
80 HelpId = HID_XML_FILTER_EXPORT_XSLT;
84 PushButton PB_XML_EXPORT_XSLT_BROWSE
86 Pos = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING ) ;
87 Size = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
88 HelpId = HID_XML_FILTER_EXPORT_XSLT_BROWSE;
89 Text [ en-US ] = "Browse...";
92 // Import XSLT ----------------------------------------------------
94 FixedText FT_XML_IMPORT_XSLT
96 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
97 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
98 Text [ en-US ] = "XSLT for import";
101 ComboBox ED_XML_IMPORT_XSLT
103 Pos = MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING + EDIT_OFFSET ) ;
104 Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH , 12 ) ;
105 HelpId = HID_XML_FILTER_IMPORT_XSLT;
109 PushButton PB_XML_IMPORT_XSLT_BROWSE
111 Pos = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING ) ;
112 Size = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
113 HelpId = HID_XML_FILTER_IMPORT_XSLT_BROWSE;
114 Text [ en-US ] = "Browse...";
117 // Import Template ------------------------------------------------
119 FixedText FT_XML_IMPORT_TEMPLATE
121 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
122 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
123 Text [ en-US ] = "Template for import";
126 ComboBox ED_XML_IMPORT_TEMPLATE
128 Pos = MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING + EDIT_OFFSET ) ;
129 Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH , 12 ) ;
130 HelpId = HID_XML_FILTER_IMPORT_TEMPLATE;
134 PushButton PB_XML_IMPORT_TEMPLATE_BROWSE
136 Pos = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING ) ;
137 Size = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
138 HelpId = HID_XML_FILTER_IMPORT_TEMPLATE_BROWSE;
139 Text [ en-US ] = "Browse...";
142 // XSLT transformation service --------------------------------------------------------
144 CheckBox CB_XML_NEEDS_XSLT2
146 HelpID = HID_XML_FILTER_NEEDS_XSLT2;
147 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
148 Size = MAP_APPFONT ( 12, 12 ) ;
151 FixedText FT_XML_NEEDS_XSLT2
153 Pos = MAP_APPFONT ( FIRST_ROW_X + 4 * SPACING , SECOND_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
154 Size = MAP_APPFONT ( 2 * FIRST_ROW_WIDTH , 8 ) ; // guess width
155 Text [ en-US ] = "The filter needs XSLT 2.0 processor";
160 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */