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: xmlfiltertabpagebasic.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 "xmlfiltertabpagebasic.hrc"
32 #include "xmlfilterhelpids.hrc"
34 #define TAB_PAGE_WIDTH 260
35 #define TAB_PAGE_HEIGHT 185
41 #define FIRST_ROW_WIDTH 60
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 - SPACING)
47 #define FIXED_TEXT_OFFSET 2
52 TabPage RID_XML_FILTER_TABPAGE_BASIC
54 HelpId = HID_XML_FILTER_TABPAGE_BASIC;
56 Size = MAP_APPFONT ( TAB_PAGE_WIDTH , TAB_PAGE_HEIGHT );
57 Text [ en-US ] = "General";
59 // Filter Name ----------------------------------------------------
61 FixedText FT_XML_FILTER_NAME
63 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 0 * ROW_HEIGHT + 0 * SPACING + FIXED_TEXT_OFFSET ) ;
64 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
65 Text [ en-US ] = "Filter name";
68 Edit ED_XML_FILTER_NAME
70 Pos = MAP_APPFONT ( SECOND_ROW_X , SECOND_ROW_Y + 0 * ROW_HEIGHT + 0 * SPACING ) ;
71 Size = MAP_APPFONT ( 102 , 12 ) ;
72 HelpId = HID_XML_FILTER_NAME;
76 // Application ----------------------------------------------------
78 FixedText FT_XML_APPLICATION
80 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING + FIXED_TEXT_OFFSET ) ;
81 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
82 Text [ en-US ] = "Application";
85 ComboBox CB_XML_APPLICATION
87 Pos = MAP_APPFONT ( SECOND_ROW_X , SECOND_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING ) ;
88 Size = MAP_APPFONT ( 102 , 60 ) ;
89 HelpId = HID_XML_FILTER_APPLICATION;
96 // Interface Name -------------------------------------------------
98 FixedText FT_XML_INTERFACE_NAME
100 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING ) ; // + FIXED_TEXT_OFFSET ) ;
101 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 16 ) ;
102 Text [ en-US ] = "Name of\nfile type";
105 Edit ED_XML_INTERFACE_NAME
107 Pos = MAP_APPFONT ( SECOND_ROW_X , 2 + SECOND_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING ) ;
108 Size = MAP_APPFONT ( 102 , 12 ) ;
109 HelpId = HID_XML_FILTER_INTERFACE_NAME;
113 // Extension ------------------------------------------------------
115 FixedText FT_XML_EXTENSION
117 Pos = MAP_APPFONT ( FIRST_ROW_X , 4 + FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING + FIXED_TEXT_OFFSET) ;
118 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
119 Text [ en-US ] = "File extension";
122 Edit ED_XML_EXTENSION
124 Pos = MAP_APPFONT ( SECOND_ROW_X , 4 + SECOND_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING ) ;
125 Size = MAP_APPFONT ( 32 , 12 ) ;
126 HelpId = HID_XML_FILTER_EXTENSION;
130 // Description ----------------------------------------------------
132 FixedText FT_XML_DESCRIPTION
134 Pos = MAP_APPFONT ( FIRST_ROW_X , 4 + FIRST_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING + FIXED_TEXT_OFFSET ) ;
135 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
136 Text [ en-US ] = "Comments";
139 MultiLineEdit ED_XML_DESCRIPTION
141 Pos = MAP_APPFONT ( SECOND_ROW_X , 4 + SECOND_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING ) ;
142 Size = MAP_APPFONT ( SECOND_ROW_WIDTH , 3*ROW_HEIGHT ) ;
143 HelpId = HID_XML_FILTER_DESCRIPTION;