Kaydet (Commit) 3a9d2f27 authored tarafından Caolán McNamara's avatar Caolán McNamara

convert chinese dictionary dialog to .ui

Change-Id: I2c239c1e7115d26f7b1dba00b08256b650cc183e
üst 98c94047
...@@ -83,7 +83,6 @@ STD_RES_FILE( gid_File_Res_Svt, svt ) ...@@ -83,7 +83,6 @@ STD_RES_FILE( gid_File_Res_Svt, svt )
STD_RES_FILE( gid_File_Res_Svx, svx ) STD_RES_FILE( gid_File_Res_Svx, svx )
STD_RES_FILE( gid_File_Res_Editeng, editeng ) STD_RES_FILE( gid_File_Res_Editeng, editeng )
STD_RES_FILE( gid_File_Res_TextConversionDlgs, textconversiondlgs )
STD_RES_FILE( gid_File_Res_Cui, cui ) STD_RES_FILE( gid_File_Res_Cui, cui )
......
...@@ -93,7 +93,6 @@ Module gid_Module_Langpack_Resource_Template ...@@ -93,7 +93,6 @@ Module gid_Module_Langpack_Resource_Template
gid_File_Res_Svt, gid_File_Res_Svt,
gid_File_Res_Svx, gid_File_Res_Svx,
gid_File_Res_Cui, gid_File_Res_Cui,
gid_File_Res_TextConversionDlgs,
gid_File_Res_Sw, gid_File_Res_Sw,
gid_File_Res_Tk, gid_File_Res_Tk,
gid_File_Res_Acc, gid_File_Res_Acc,
......
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
$(eval $(call gb_AllLangResTarget_AllLangResTarget,textconversiondlgs))
$(eval $(call gb_AllLangResTarget_set_reslocation,textconversiondlgs,svx))
$(eval $(call gb_AllLangResTarget_add_srs,textconversiondlgs,\
svx/textconversiondlgs \
))
$(eval $(call gb_SrsTarget_SrsTarget,svx/textconversiondlgs))
$(eval $(call gb_SrsTarget_add_files,svx/textconversiondlgs,\
svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.src \
))
# vim: set noet sw=4 ts=4:
...@@ -50,7 +50,6 @@ $(eval $(call gb_Library_add_exception_objects,textconversiondlgs,\ ...@@ -50,7 +50,6 @@ $(eval $(call gb_Library_add_exception_objects,textconversiondlgs,\
svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog \ svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog \
svx/source/unodialogs/textconversiondlgs/chinese_translationdialog \ svx/source/unodialogs/textconversiondlgs/chinese_translationdialog \
svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog \ svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog \
svx/source/unodialogs/textconversiondlgs/resid \
)) ))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -29,7 +29,6 @@ $(eval $(call gb_Module_add_l10n_targets,svx,\ ...@@ -29,7 +29,6 @@ $(eval $(call gb_Module_add_l10n_targets,svx,\
AllLangResTarget_svx \ AllLangResTarget_svx \
AllLangResTarget_ofa \ AllLangResTarget_ofa \
AllLangResTarget_gal \ AllLangResTarget_gal \
AllLangResTarget_textconversiondlgs \
UIConfig_svx \ UIConfig_svx \
)) ))
......
...@@ -19,6 +19,7 @@ $(eval $(call gb_UIConfig_add_uifiles,svx,\ ...@@ -19,6 +19,7 @@ $(eval $(call gb_UIConfig_add_uifiles,svx,\
svx/uiconfig/ui/addsubmissiondialog \ svx/uiconfig/ui/addsubmissiondialog \
svx/uiconfig/ui/asianphoneticguidedialog \ svx/uiconfig/ui/asianphoneticguidedialog \
svx/uiconfig/ui/chineseconversiondialog \ svx/uiconfig/ui/chineseconversiondialog \
svx/uiconfig/ui/chinesedictionary \
svx/uiconfig/ui/compressgraphicdialog \ svx/uiconfig/ui/compressgraphicdialog \
svx/uiconfig/ui/deleteheaderdialog \ svx/uiconfig/ui/deleteheaderdialog \
svx/uiconfig/ui/deletefooterdialog \ svx/uiconfig/ui/deletefooterdialog \
......
...@@ -154,14 +154,7 @@ ...@@ -154,14 +154,7 @@
#define HID_REDLINING_TABCONTROL "SVX_HID_REDLINING_TABCONTROL" #define HID_REDLINING_TABCONTROL "SVX_HID_REDLINING_TABCONTROL"
#define HID_STYLE_LISTBOX "SVX_HID_STYLE_LISTBOX" #define HID_STYLE_LISTBOX "SVX_HID_STYLE_LISTBOX"
#define HID_SVXTBX_UNDO_REDO_CTRL "SVX_HID_SVXTBX_UNDO_REDO_CTRL" #define HID_SVXTBX_UNDO_REDO_CTRL "SVX_HID_SVXTBX_UNDO_REDO_CTRL"
#define HID_SVX_CHINESE_DICTIONARY_CB_REVERSE "SVX_HID_SVX_CHINESE_DICTIONARY_CB_REVERSE"
#define HID_SVX_CHINESE_DICTIONARY_LB_HEADER "SVX_HID_SVX_CHINESE_DICTIONARY_LB_HEADER" #define HID_SVX_CHINESE_DICTIONARY_LB_HEADER "SVX_HID_SVX_CHINESE_DICTIONARY_LB_HEADER"
#define HID_SVX_CHINESE_DICTIONARY_LB_TO_SIMPLIFIED "SVX_HID_SVX_CHINESE_DICTIONARY_LB_TO_SIMPLIFIED"
#define HID_SVX_CHINESE_DICTIONARY_LB_TO_TRADITIONAL "SVX_HID_SVX_CHINESE_DICTIONARY_LB_TO_TRADITIONAL"
#define HID_SVX_CHINESE_DICTIONARY_RB_CONVERSION_TO_SIMPLIFIED "SVX_HID_SVX_CHINESE_DICTIONARY_RB_CONVERSION_TO_SIMPLIFIED"
#define HID_SVX_CHINESE_DICTIONARY_RB_CONVERSION_TO_TRADITIONAL "SVX_HID_SVX_CHINESE_DICTIONARY_RB_CONVERSION_TO_TRADITIONAL"
#define HID_SVX_CHINESE_TRANSLATION_RB_CONVERSION_TO_SIMPLIFIED "SVX_HID_SVX_CHINESE_TRANSLATION_RB_CONVERSION_TO_SIMPLIFIED"
#define HID_SVX_CHINESE_TRANSLATION_RB_CONVERSION_TO_TRADITIONAL "SVX_HID_SVX_CHINESE_TRANSLATION_RB_CONVERSION_TO_TRADITIONAL"
#define HID_SVX_MDLG_DOCRECOVERY_BROKEN "SVX_HID_SVX_MDLG_DOCRECOVERY_BROKEN" #define HID_SVX_MDLG_DOCRECOVERY_BROKEN "SVX_HID_SVX_MDLG_DOCRECOVERY_BROKEN"
#define HID_SVX_MDLG_DOCRECOVERY_PROGR "SVX_HID_SVX_MDLG_DOCRECOVERY_PROGR" #define HID_SVX_MDLG_DOCRECOVERY_PROGR "SVX_HID_SVX_MDLG_DOCRECOVERY_PROGR"
#define HID_SVX_MDLG_ERR_REP_OPTIONS "SVX_HID_SVX_MDLG_ERR_REP_OPTIONS" #define HID_SVX_MDLG_ERR_REP_OPTIONS "SVX_HID_SVX_MDLG_ERR_REP_OPTIONS"
......
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
#ifndef _UNODIALOGS_BUTTONGROUP_HRC #ifndef _UNODIALOGS_BUTTONGROUP_HRC
#define _UNODIALOGS_BUTTONGROUP_HRC #define _UNODIALOGS_BUTTONGROUP_HRC
#include "resids.hrc"
#define PB_OK 1 #define PB_OK 1
#define PB_CANCEL 1 #define PB_CANCEL 1
#define PB_HELP 1 #define PB_HELP 1
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef _TEXTCONVERSIONDLGS_CHINESE_DICTIONARYDLG_HRC
#define _TEXTCONVERSIONDLGS_CHINESE_DICTIONARYDLG_HRC
#include "resids.hrc"
#include "buttongroup.hrc"
#include "chinese_direction_ids.hrc"
#define ED_TERM 1
#define ED_MAPPING 2
#define LB_PROPERTY 1
#define CB_REVERSE 1
#define FT_TERM 1
#define FT_MAPPING 2
#define FT_PROPERTY 3
#define CT_MAPPINGLIST 1
#define PB_ADD 1
#define PB_MODIFY 2
#define PB_DELETE 3
#define FL_BOTTOMLINE 1
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -29,8 +29,7 @@ ...@@ -29,8 +29,7 @@
#include <vcl/edit.hxx> #include <vcl/edit.hxx>
// header for class ListBox // header for class ListBox
#include <vcl/lstbox.hxx> #include <vcl/lstbox.hxx>
// header for class SvHeaderTabListBox #include <svtools/simptabl.hxx>
#include <svtools/svtabbx.hxx>
#include <com/sun/star/uno/XComponentContext.hpp> #include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/linguistic2/XConversionDictionary.hpp> #include <com/sun/star/linguistic2/XConversionDictionary.hpp>
...@@ -62,19 +61,15 @@ struct DictionaryEntry ...@@ -62,19 +61,15 @@ struct DictionaryEntry
bool m_bNewEntry; bool m_bNewEntry;
}; };
class DictionaryList : public SvHeaderTabListBox class DictionaryList : public SvSimpleTable
{ {
public: public:
DictionaryList( Window* pParent, const ResId& ); DictionaryList(SvSimpleTableContainer& rParent, WinBits nBits);
DictionaryList( Window* pParent );
virtual ~DictionaryList();
HeaderBar* createHeaderBar( const OUString& rColumn1, const OUString& rColumn2, const OUString& rColumn3 void init(const css::uno::Reference< css::linguistic2::XConversionDictionary>& xDictionary,
, long nWidth1, long nWidth2, long nWidth3 ); Window *pED_Term, Window *pED_Mapping, ListBox *pLB_Property,
Window *pFT_Term, Window *pFT_Mapping, Window *pFT_Property);
void initDictionaryControl( const ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XConversionDictionary>& xDictionary
, ListBox* pPropertyTypeNameListBox );
void activate( HeaderBar* pHeaderBar );
void deleteAll(); void deleteAll();
void refillFromDictionary( sal_Int32 nTextConversionOptions /*i18n::TextConversionOption*/ ); void refillFromDictionary( sal_Int32 nTextConversionOptions /*i18n::TextConversionOption*/ );
void save(); void save();
...@@ -92,8 +87,6 @@ public: ...@@ -92,8 +87,6 @@ public:
void sortByColumn( sal_uInt16 nSortColumnIndex, bool bSortAtoZ ); void sortByColumn( sal_uInt16 nSortColumnIndex, bool bSortAtoZ );
sal_uInt16 getSortColumn() const; sal_uInt16 getSortColumn() const;
virtual void Resize();
private: private:
OUString getPropertyTypeName( sal_Int16 nConversionPropertyType /*linguistic2::ConversionPropertyType*/ ) const; OUString getPropertyTypeName( sal_Int16 nConversionPropertyType /*linguistic2::ConversionPropertyType*/ ) const;
OUString makeTabString( const DictionaryEntry& rEntry ) const; OUString makeTabString( const DictionaryEntry& rEntry ) const;
...@@ -102,13 +95,17 @@ private: ...@@ -102,13 +95,17 @@ private:
sal_Int32 ColumnCompare( SvTreeListEntry* pLeft, SvTreeListEntry* pRight ); sal_Int32 ColumnCompare( SvTreeListEntry* pLeft, SvTreeListEntry* pRight );
SvLBoxItem* getItemAtColumn( SvTreeListEntry* pEntry, sal_uInt16 nColumn ) const; SvLBoxItem* getItemAtColumn( SvTreeListEntry* pEntry, sal_uInt16 nColumn ) const;
void setColSizes();
virtual void Resize();
public: public:
::com::sun::star::uno::Reference< css::uno::Reference<css::linguistic2::XConversionDictionary> m_xDictionary;
::com::sun::star::linguistic2::XConversionDictionary> m_xDictionary;
private: private:
HeaderBar* m_pHeaderBar; Window* m_pED_Term;
ListBox* m_pPropertyTypeNameListBox; Window* m_pED_Mapping;
ListBox* m_pLB_Property;
std::vector< DictionaryEntry* > m_aToBeDeleted; std::vector< DictionaryEntry* > m_aToBeDeleted;
...@@ -133,7 +130,10 @@ private: ...@@ -133,7 +130,10 @@ private:
DECL_LINK( AddHdl, void* ); DECL_LINK( AddHdl, void* );
DECL_LINK( ModifyHdl, void* ); DECL_LINK( ModifyHdl, void* );
DECL_LINK( DeleteHdl, void* ); DECL_LINK( DeleteHdl, void* );
DECL_LINK( HeaderBarClick, void* ); DECL_LINK( HeaderBarClick, HeaderBar* );
void initDictionaryControl(DictionaryList *pList,
const css::uno::Reference< css::linguistic2::XConversionDictionary>& xDictionary);
void updateAfterDirectionChange(); void updateAfterDirectionChange();
void updateButtons(); void updateButtons();
...@@ -148,38 +148,32 @@ private: ...@@ -148,38 +148,32 @@ private:
const DictionaryList& getReverseDictionary() const; const DictionaryList& getReverseDictionary() const;
private: private:
sal_Int32 m_nTextConversionOptions; //i18n::TextConversionOption sal_Int32 m_nTextConversionOptions; //i18n::TextConversionOption
RadioButton m_aRB_To_Simplified;
RadioButton m_aRB_To_Traditional;
CheckBox m_aCB_Reverse;
FixedText m_aFT_Term; RadioButton* m_pRB_To_Simplified;
Edit m_aED_Term; RadioButton* m_pRB_To_Traditional;
FixedText m_aFT_Mapping; CheckBox* m_pCB_Reverse;
Edit m_aED_Mapping;
FixedText m_aFT_Property; FixedText* m_pFT_Term;
ListBox m_aLB_Property; Edit* m_pED_Term;
HeaderBar* m_pHeaderBar; FixedText* m_pFT_Mapping;
DictionaryList m_aCT_DictionaryToSimplified; Edit* m_pED_Mapping;
DictionaryList m_aCT_DictionaryToTraditional;
PushButton m_aPB_Add; FixedText* m_pFT_Property;
PushButton m_aPB_Modify; ListBox* m_pLB_Property;
PushButton m_aPB_Delete;
FixedLine m_aFL_Bottomline; SvSimpleTableContainer* mpToSimplifiedContainer;
DictionaryList* m_pCT_DictionaryToSimplified;
SvSimpleTableContainer* mpToTraditionalContainer;
DictionaryList* m_pCT_DictionaryToTraditional;
OKButton m_aBP_OK; PushButton* m_pPB_Add;
CancelButton m_aBP_Cancel; PushButton* m_pPB_Modify;
HelpButton m_aBP_Help; PushButton* m_pPB_Delete;
::com::sun::star::uno::Reference< css::uno::Reference<css::uno::XComponentContext> m_xContext;
::com::sun::star::uno::XComponentContext > m_xContext;
}; };
//............................................................................. //.............................................................................
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "chinese_dictionarydialog.hrc"
#include <svtools/controldims.hrc>
#define DIRECTION_RADIOBUTTONS( D_XPOS, D_YPOS, D_FULLWIDTH ) \
RadioButton RB_TO_SIMPLIFIED \
{ \
Pos = MAP_APPFONT( D_XPOS, D_YPOS ); \
Size = MAP_APPFONT ( D_FULLWIDTH, RSC_CD_RADIOBUTTON_HEIGHT ) ; \
Text [ en-US ] = "~Traditional Chinese to simplified Chinese"; \
}; \
RadioButton RB_TO_TRADITIONAL \
{ \
Pos = MAP_APPFONT( D_XPOS, D_YPOS + RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y ); \
Size = MAP_APPFONT ( D_FULLWIDTH, RSC_CD_RADIOBUTTON_HEIGHT ) ; \
Text [ en-US ] = "~Simplified Chinese to traditional Chinese"; \
};
//-----------------------------------------------------------------------------
//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
{
HelpID = "svx:ModalDialog:DLG_CHINESEDICTIONARY";
//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
{
HelpID = "svx:CheckBox:DLG_CHINESEDICTIONARY:CB_REVERSE";
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
{
HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_TERM";
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
{
HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_MAPPING";
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
{
HelpID = "svx:ListBox:DLG_CHINESEDICTIONARY:LB_PROPERTY";
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
{
HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_ADD";
Pos = MAP_APPFONT( COL_4, ROW_5 );
Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
Text [ en-US ] = "~Add";
};
PushButton PB_MODIFY
{
HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_MODIFY";
Pos = MAP_APPFONT( COL_4, ROW_5a );
Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
Text [ en-US ] = "~Modify";
};
PushButton PB_DELETE
{
HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_DELETE";
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 )
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "chinese_translationdialog.hxx" #include "chinese_translationdialog.hxx"
#include "resid.hxx"
#include "chinese_dictionarydialog.hxx" #include "chinese_dictionarydialog.hxx"
#include <com/sun/star/i18n/TextConversionOption.hpp> #include <com/sun/star/i18n/TextConversionOption.hpp>
// header for define RET_OK // header for define RET_OK
...@@ -47,9 +46,6 @@ ChineseTranslationDialog::ChineseTranslationDialog( Window* pParent ) ...@@ -47,9 +46,6 @@ ChineseTranslationDialog::ChineseTranslationDialog( Window* pParent )
get(m_pRB_To_Traditional, "totraditional"); get(m_pRB_To_Traditional, "totraditional");
get(m_pCB_Translate_Commonterms, "commonterms"); get(m_pCB_Translate_Commonterms, "commonterms");
m_pRB_To_Simplified->SetHelpId( HID_SVX_CHINESE_TRANSLATION_RB_CONVERSION_TO_SIMPLIFIED );
m_pRB_To_Traditional->SetHelpId( HID_SVX_CHINESE_TRANSLATION_RB_CONVERSION_TO_TRADITIONAL );
SvtLinguConfig aLngCfg; SvtLinguConfig aLngCfg;
sal_Bool bValue = sal_Bool(); sal_Bool bValue = sal_Bool();
Any aAny( aLngCfg.GetProperty( OUString( UPN_IS_DIRECTION_TO_SIMPLIFIED ) ) ); Any aAny( aLngCfg.GetProperty( OUString( UPN_IS_DIRECTION_TO_SIMPLIFIED ) ) );
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "resid.hxx"
#include <tools/resmgr.hxx>
//.............................................................................
namespace textconversiondlgs
{
//.............................................................................
static ResMgr* getTextConversionResMgr()
{
static ResMgr* pMgr = NULL;
if( ! pMgr )
pMgr = ResMgr::CreateResMgr( "textconversiondlgs" );
return pMgr;
}
TextConversionDlgs_ResId::TextConversionDlgs_ResId(sal_uInt16 nId)
: ResId( nId, *getTextConversionResMgr() )
{
}
//.............................................................................
} //end namespace
//.............................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SVX_SOURCE_UNODIALOGS_TEXTCONVERSIONDLGS_RESID_HXX
#define INCLUDED_SVX_SOURCE_UNODIALOGS_TEXTCONVERSIONDLGS_RESID_HXX
#include <tools/resid.hxx>
//.............................................................................
namespace textconversiondlgs
{
//.............................................................................
//-----------------------------------------------------------------------------
/**
*/
class TextConversionDlgs_ResId : public ResId
{
public:
TextConversionDlgs_ResId(sal_uInt16 nId);
};
//.............................................................................
} //end namespace
//.............................................................................
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef _TEXTCONVERSIONDLGS_RESID_HRC
#define _TEXTCONVERSIONDLGS_RESID_HRC
#define DLG_CHINESEDICTIONARY 301
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment