2004-09-17 07:46:53 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 21:47:25 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2004-09-17 07:46:53 -05:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2004-09-17 07:46:53 -05:00
|
|
|
*
|
2008-04-10 21:47:25 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-09-17 07:46:53 -05:00
|
|
|
*
|
2008-04-10 21:47:25 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2004-09-17 07:46:53 -05:00
|
|
|
*
|
2008-04-10 21:47:25 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2004-09-17 07:46:53 -05:00
|
|
|
*
|
2008-04-10 21:47:25 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2004-09-17 07:46:53 -05:00
|
|
|
*
|
2008-04-10 21:47:25 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2004-09-17 07:46:53 -05:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#include "chinese_dictionarydialog.hrc"
|
2009-06-04 04:41:18 -05:00
|
|
|
#include "chinese_direction.hrc"
|
2004-09-17 07:46:53 -05:00
|
|
|
|
|
|
|
#ifndef _SVT_CONTROLDIMS_HRC_
|
|
|
|
#include <svtools/controldims.hrc>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//defines for positions and sizes:
|
|
|
|
|
|
|
|
#define FULL_WIDTH (245)
|
|
|
|
#define FULL_HEIGHT (165)
|
|
|
|
|
|
|
|
#define ROW_1 (RSC_SP_DLG_INNERBORDER_TOP)
|
|
|
|
#define ROW_2 (ROW_1+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
|
|
|
|
#define ROW_3 (ROW_2+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
|
|
|
|
#define ROW_4 (ROW_3+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_CTRL_GROUP_Y)
|
|
|
|
#define ROW_5 (ROW_4+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
|
|
|
|
#define ROW_6 (ROW_5+RSC_CD_TEXTBOX_HEIGHT+RSC_SP_CTRL_DESC_Y)
|
|
|
|
|
|
|
|
#define ROW_5a (ROW_5+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
|
|
|
|
#define ROW_5b (ROW_5a+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
|
|
|
|
|
|
|
|
#define ROW_8 (FULL_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM-RSC_CD_PUSHBUTTON_HEIGHT)
|
|
|
|
#define ROW_7 (ROW_8-RSC_CD_FIXEDLINE_HEIGHT-2)
|
|
|
|
|
|
|
|
#define LIST_HEIGHT (ROW_7-RSC_SP_CTRL_Y-ROW_6)
|
|
|
|
|
|
|
|
#define COL_WIDTH 60
|
|
|
|
#define BUTTONCOL_WIDTH 40
|
|
|
|
#define COL_1 (RSC_SP_DLG_INNERBORDER_LEFT+RSC_SP_FLGR_SPACE_X)
|
|
|
|
#define COL_2 (COL_1+COL_WIDTH+1)
|
|
|
|
#define COL_3 (COL_2+COL_WIDTH+1)
|
|
|
|
#define COL_4 (FULL_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT-BUTTONCOL_WIDTH)
|
|
|
|
|
|
|
|
#define REST_COL_WIDTH (COL_4-COL_3-RSC_SP_CTRL_GROUP_X)
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
ModalDialog DLG_CHINESEDICTIONARY
|
|
|
|
{
|
2010-10-11 10:56:12 -05:00
|
|
|
HelpID = "svx:ModalDialog:DLG_CHINESEDICTIONARY";
|
2004-09-17 07:46:53 -05:00
|
|
|
//HelpId = ;
|
|
|
|
Size = MAP_APPFONT( FULL_WIDTH, FULL_HEIGHT );
|
|
|
|
OutputSize = TRUE;
|
|
|
|
Closeable = TRUE ;
|
|
|
|
Moveable = TRUE ;
|
|
|
|
SVLook = TRUE;
|
|
|
|
|
|
|
|
Text [ en-US ] = "Edit Dictionary";
|
|
|
|
|
|
|
|
DIRECTION_RADIOBUTTONS( COL_1, ROW_1, FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT )
|
|
|
|
|
|
|
|
CheckBox CB_REVERSE
|
|
|
|
{
|
2010-10-11 10:56:12 -05:00
|
|
|
HelpID = "svx:CheckBox:DLG_CHINESEDICTIONARY:CB_REVERSE";
|
2004-09-17 07:46:53 -05:00
|
|
|
Pos = MAP_APPFONT ( COL_1, ROW_3 ) ;
|
|
|
|
Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT , RSC_CD_CHECKBOX_HEIGHT ) ;
|
|
|
|
|
|
|
|
Text [ en-US ] = "Reverse mapping";
|
|
|
|
};
|
|
|
|
|
|
|
|
FixedText FT_TERM
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT ( COL_1 , ROW_4 ) ;
|
|
|
|
Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
|
|
|
|
Text [ en-US ] = "Term";
|
|
|
|
};
|
|
|
|
Edit ED_TERM
|
|
|
|
{
|
2010-10-11 10:56:12 -05:00
|
|
|
HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_TERM";
|
2004-09-17 07:46:53 -05:00
|
|
|
Border = TRUE ;
|
|
|
|
Pos = MAP_APPFONT ( COL_1 , ROW_5 ) ;
|
|
|
|
Size = MAP_APPFONT ( COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
FixedText FT_MAPPING
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT ( COL_2 , ROW_4 ) ;
|
|
|
|
Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
|
|
|
|
Text [ en-US ] = "Mapping";
|
|
|
|
};
|
|
|
|
Edit ED_MAPPING
|
|
|
|
{
|
2010-10-11 10:56:12 -05:00
|
|
|
HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_MAPPING";
|
2004-09-17 07:46:53 -05:00
|
|
|
Border = TRUE ;
|
|
|
|
Pos = MAP_APPFONT ( COL_2 , ROW_5 ) ;
|
|
|
|
Size = MAP_APPFONT ( COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
|
|
|
|
};
|
|
|
|
|
|
|
|
FixedText FT_PROPERTY
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT ( COL_3 , ROW_4 ) ;
|
|
|
|
Size = MAP_APPFONT ( REST_COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
|
|
|
|
Text [ en-US ] = "Property";
|
|
|
|
};
|
|
|
|
ListBox LB_PROPERTY
|
|
|
|
{
|
2010-10-11 10:56:12 -05:00
|
|
|
HelpID = "svx:ListBox:DLG_CHINESEDICTIONARY:LB_PROPERTY";
|
2004-09-17 07:46:53 -05:00
|
|
|
Border = TRUE ;
|
|
|
|
Pos = MAP_APPFONT ( COL_3 , ROW_5 ) ;
|
|
|
|
Size = MAP_APPFONT ( REST_COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
|
|
|
|
DropDown = TRUE ;
|
|
|
|
|
|
|
|
stringlist [ en-US ] =
|
|
|
|
{
|
|
|
|
< "Other" ; Default ; > ;
|
|
|
|
< "Foreign" ; > ;
|
|
|
|
< "First name" ; > ;
|
|
|
|
< "Last name" ; > ;
|
|
|
|
< "Title" ; > ;
|
|
|
|
< "Status" ; > ;
|
|
|
|
< "Place name" ; > ;
|
|
|
|
< "Business" ; > ;
|
|
|
|
< "Adjective" ; > ;
|
|
|
|
< "Idiom" ; > ;
|
|
|
|
< "Abbreviation" ; > ;
|
|
|
|
< "Numerical" ; > ;
|
|
|
|
< "Noun" ; > ;
|
|
|
|
< "Verb" ; > ;
|
|
|
|
< "Brand name" ; > ;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
Control CT_MAPPINGLIST
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT ( COL_1, ROW_6 ) ;
|
|
|
|
Size = MAP_APPFONT ( COL_4 - COL_1 - RSC_SP_CTRL_GROUP_X, LIST_HEIGHT ) ;
|
|
|
|
TabStop = TRUE ;
|
|
|
|
};
|
|
|
|
|
|
|
|
PushButton PB_ADD
|
|
|
|
{
|
2010-10-11 10:56:12 -05:00
|
|
|
HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_ADD";
|
2004-09-17 07:46:53 -05:00
|
|
|
Pos = MAP_APPFONT( COL_4, ROW_5 );
|
|
|
|
Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
|
|
|
|
|
|
|
|
Text [ en-US ] = "~Add";
|
|
|
|
};
|
|
|
|
PushButton PB_MODIFY
|
|
|
|
{
|
2010-10-11 10:56:12 -05:00
|
|
|
HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_MODIFY";
|
2004-09-17 07:46:53 -05:00
|
|
|
Pos = MAP_APPFONT( COL_4, ROW_5a );
|
|
|
|
Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
|
|
|
|
|
|
|
|
Text [ en-US ] = "~Modify";
|
|
|
|
};
|
|
|
|
PushButton PB_DELETE
|
|
|
|
{
|
2010-10-11 10:56:12 -05:00
|
|
|
HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_DELETE";
|
2004-09-17 07:46:53 -05:00
|
|
|
Pos = MAP_APPFONT( COL_4, ROW_5b );
|
|
|
|
Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
|
|
|
|
|
|
|
|
Text [ en-US ] = "~Delete";
|
|
|
|
};
|
|
|
|
|
|
|
|
FixedLine FL_BOTTOMLINE
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT ( 0 , ROW_7 ) ;
|
|
|
|
Size = MAP_APPFONT ( FULL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ;
|
|
|
|
};
|
|
|
|
|
|
|
|
BUTTONS_OK_CANCEL_HELP_ABREAST( FULL_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT, ROW_8 )
|
|
|
|
};
|