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 "xmlfiltertabpagebasic.hrc"
21 #include "xmlfilterhelpids.hrc"
23 #define TAB_PAGE_WIDTH 260
24 #define TAB_PAGE_HEIGHT 120
30 #define FIRST_ROW_WIDTH 60
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 - SPACING)
36 #define FIXED_TEXT_OFFSET 2
41 TabPage RID_XML_FILTER_TABPAGE_BASIC
43 HelpId = HID_XML_FILTER_TABPAGE_BASIC;
45 Size = MAP_APPFONT ( TAB_PAGE_WIDTH , TAB_PAGE_HEIGHT );
46 Text [ en-US ] = "General";
48 // Filter Name ----------------------------------------------------
50 FixedText FT_XML_FILTER_NAME
52 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 0 * ROW_HEIGHT + 0 * SPACING + FIXED_TEXT_OFFSET ) ;
53 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
54 Text [ en-US ] = "Filter name";
57 Edit ED_XML_FILTER_NAME
59 Pos = MAP_APPFONT ( SECOND_ROW_X , SECOND_ROW_Y + 0 * ROW_HEIGHT + 0 * SPACING ) ;
60 Size = MAP_APPFONT ( 102 , 12 ) ;
61 HelpId = HID_XML_FILTER_NAME;
65 // Application ----------------------------------------------------
67 FixedText FT_XML_APPLICATION
69 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING + FIXED_TEXT_OFFSET ) ;
70 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
71 Text [ en-US ] = "Application";
74 ComboBox CB_XML_APPLICATION
76 Pos = MAP_APPFONT ( SECOND_ROW_X , SECOND_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING ) ;
77 Size = MAP_APPFONT ( 102 , 60 ) ;
78 HelpId = HID_XML_FILTER_APPLICATION;
85 // Interface Name -------------------------------------------------
87 FixedText FT_XML_INTERFACE_NAME
89 Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING ) ; // + FIXED_TEXT_OFFSET ) ;
90 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 16 ) ;
91 Text [ en-US ] = "Name of\nfile type";
94 Edit ED_XML_INTERFACE_NAME
96 Pos = MAP_APPFONT ( SECOND_ROW_X , 2 + SECOND_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING ) ;
97 Size = MAP_APPFONT ( 102 , 12 ) ;
98 HelpId = HID_XML_FILTER_INTERFACE_NAME;
102 // Extension ------------------------------------------------------
104 FixedText FT_XML_EXTENSION
106 Pos = MAP_APPFONT ( FIRST_ROW_X , 4 + FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING + FIXED_TEXT_OFFSET) ;
107 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
108 Text [ en-US ] = "File extension";
111 Edit ED_XML_EXTENSION
113 Pos = MAP_APPFONT ( SECOND_ROW_X , 4 + SECOND_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING ) ;
114 Size = MAP_APPFONT ( 32 , 12 ) ;
115 HelpId = HID_XML_FILTER_EXTENSION;
119 // Description ----------------------------------------------------
121 FixedText FT_XML_DESCRIPTION
123 Pos = MAP_APPFONT ( FIRST_ROW_X , 4 + FIRST_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING + FIXED_TEXT_OFFSET ) ;
124 Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
125 Text [ en-US ] = "Comments";
128 MultiLineEdit ED_XML_DESCRIPTION
130 Pos = MAP_APPFONT ( SECOND_ROW_X , 4 + SECOND_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING ) ;
131 Size = MAP_APPFONT ( SECOND_ROW_WIDTH , 3*ROW_HEIGHT ) ;
132 HelpId = HID_XML_FILTER_DESCRIPTION;
138 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */