summaryrefslogtreecommitdiff
path: root/svx/source/options
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/options')
-rw-r--r--svx/source/options/asiancfg.cxx2
-rw-r--r--svx/source/options/htmlcfg.cxx5
-rw-r--r--svx/source/options/makefile.mk20
-rw-r--r--svx/source/options/multipat.src153
-rw-r--r--svx/source/options/optaccessibility.src155
-rw-r--r--svx/source/options/optasian.src177
-rw-r--r--svx/source/options/optchart.src86
-rw-r--r--svx/source/options/optcolor.src552
-rw-r--r--svx/source/options/optctl.src119
-rw-r--r--svx/source/options/optdict.src282
-rw-r--r--svx/source/options/optgenrl.src333
-rw-r--r--svx/source/options/optimprove.src123
-rw-r--r--svx/source/options/optinet2.src647
-rw-r--r--svx/source/options/optjsearch.src223
-rw-r--r--svx/source/options/optlingu.cxx2563
-rw-r--r--svx/source/options/optlingu.hrc91
-rw-r--r--svx/source/options/optlingu.src357
-rw-r--r--svx/source/options/optpath.src203
-rw-r--r--svx/source/options/optsave.src325
-rw-r--r--svx/source/options/optspell.src128
-rw-r--r--svx/source/options/srchcfg.cxx2
21 files changed, 8 insertions, 6538 deletions
diff --git a/svx/source/options/asiancfg.cxx b/svx/source/options/asiancfg.cxx
index cd1731d23d..8f38b47739 100644
--- a/svx/source/options/asiancfg.cxx
+++ b/svx/source/options/asiancfg.cxx
@@ -31,7 +31,7 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_svx.hxx"
#include <asiancfg.hxx>
-#include <svtools/svarray.hxx>
+#include <svl/svarray.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/lang/Locale.hpp>
diff --git a/svx/source/options/htmlcfg.cxx b/svx/source/options/htmlcfg.cxx
index d88542e014..68eddf861c 100644
--- a/svx/source/options/htmlcfg.cxx
+++ b/svx/source/options/htmlcfg.cxx
@@ -265,6 +265,11 @@ void SvxHtmlOptions::Commit()
}
PutProperties(aNames, aValues);
}
+
+void SvxHtmlOptions::Notify( const com::sun::star::uno::Sequence< rtl::OUString >& )
+{
+}
+
// -----------------------------------------------------------------------
USHORT SvxHtmlOptions::GetFontSize(USHORT nPos) const
{
diff --git a/svx/source/options/makefile.mk b/svx/source/options/makefile.mk
index d68703983e..6f15d41ad0 100644
--- a/svx/source/options/makefile.mk
+++ b/svx/source/options/makefile.mk
@@ -47,24 +47,7 @@ LIBTARGET=NO
SRS1NAME=$(TARGET)
SRC1FILES=\
- optaccessibility.src \
- optasian.src \
- optcolor.src \
- optjsearch.src \
- optgenrl.src \
- optdict.src \
- optsave.src \
- optpath.src \
- optlingu.src \
- optgrid.src \
- optinet2.src \
- multipat.src \
- optctl.src \
- optchart.src \
- optimprove.src
-
-EXCEPTIONSFILES=\
- $(SLO)$/optlingu.obj
+ optgrid.src
LIB1TARGET= $(SLB)$/$(TARGET)-core.lib
LIB1OBJFILES= \
@@ -72,7 +55,6 @@ LIB1OBJFILES= \
LIB2TARGET= $(SLB)$/$(TARGET).lib
LIB2OBJFILES= \
- $(SLO)$/optlingu.obj \
$(SLO)$/htmlcfg.obj \
$(SLO)$/optitems.obj \
$(SLO)$/optgrid.obj \
diff --git a/svx/source/options/multipat.src b/svx/source/options/multipat.src
deleted file mode 100644
index f38183ce2b..0000000000
--- a/svx/source/options/multipat.src
+++ /dev/null
@@ -1,153 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: multipat.src,v $
- * $Revision: 1.42 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
-
-#include "multipat.hrc"
-#include "helpid.hrc"
-#include <svx/dialogs.hrc>
-
-// RID_SVXDLG_MULTIPATH --------------------------------------------------
-
-ModalDialog RID_SVXDLG_MULTIPATH
-{
- HelpId = HID_MULTIPATH ;
- OutputSize = TRUE ;
- Size = MAP_APPFONT ( 260 , 120 ) ;
- Text [ en-US ] = "Select Paths" ;
- Moveable = TRUE ;
- Closeable = TRUE ;
- FixedLine FL_MULTIPATH
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "Paths" ;
- };
- ListBox LB_MULTIPATH
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( 12 , 14 ) ;
- Size = MAP_APPFONT ( 189 , 80 ) ;
- AutoHScroll = TRUE ;
- };
- Control LB_RADIOBUTTON
- {
- HelpId = HID_OPTIONS_MULTIPATH_LIST ;
- Hide = TRUE ;
- Border = TRUE ;
- Pos = MAP_APPFONT ( 6 , 6 ) ;
- Size = MAP_APPFONT ( 195 , 77 ) ;
- };
- FixedText FT_RADIOBUTTON
- {
- Hide = TRUE ;
- NoLabel = TRUE ;
- Pos = MAP_APPFONT ( 6 , 86 );
- Size = MAP_APPFONT ( 195 , 8 );
- Text [ en-US ] = "Mark the default path for new files.";
- };
- PushButton BTN_ADD_MULTIPATH
- {
- Pos = MAP_APPFONT ( 204 , 14 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- Text [ en-US ] = "~Add..." ;
- };
- PushButton BTN_DEL_MULTIPATH
- {
- Pos = MAP_APPFONT ( 204 , 31 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- Text [ en-US ] = "~Delete" ;
- };
- OKButton BTN_MULTIPATH_OK
- {
- Pos = MAP_APPFONT ( 95 , 100 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- DefButton = TRUE;
- };
- CancelButton BTN_MULTIPATH_CANCEL
- {
- Pos = MAP_APPFONT ( 148 , 100 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- };
- HelpButton BTN_MULTIPATH_HELP
- {
- Pos = MAP_APPFONT ( 204 , 100 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- };
- String STR_HEADER_PATHS
- {
- Text [ en-US ] = "Path list" ;
- };
-};
-String RID_MULTIPATH_DBL_ERR
-{
- Text [ en-US ] = "The path %1 already exists." ;
-};
-String RID_SVXSTR_FILE_TITLE
-{
- Text [ en-US ] = "Select files" ;
-};
-String RID_SVXSTR_FILE_HEADLINE
-{
- Text [ en-US ] = "Files" ;
-};
-String RID_SVXSTR_ARCHIVE_TITLE
-{
- Text [ en-US ] = "Select Archives" ;
-};
-String RID_SVXSTR_ARCHIVE_HEADLINE
-{
- Text [ en-US ] = "Archives" ;
-};
-String RID_SVXSTR_MULTIFILE_DBL_ERR
-{
- Text [ en-US ] = "The file %1 already exists." ;
-};
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/svx/source/options/optaccessibility.src b/svx/source/options/optaccessibility.src
deleted file mode 100644
index c2ac15db58..0000000000
--- a/svx/source/options/optaccessibility.src
+++ /dev/null
@@ -1,155 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optaccessibility.src,v $
- * $Revision: 1.36 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
-
-#include <optaccessibility.hrc>
-#include <sfx2/sfx.hrc>
-#include "helpid.hrc"
-#include <svx/dialogs.hrc>
-
-TabPage RID_SVXPAGE_ACCESSIBILITYCONFIG
-{
- HelpId = HID_OPTIONS_ACCESSIBILITYCONFIG ;
- Size = MAP_APPFONT ( 260 , WHOLE_HEIGHT ) ;
- SVLook = TRUE ;
- Hide = TRUE ;
- FixedLine FL_MISCELLANEOUS
- {
- Pos = MAP_APPFONT ( COL0, ROWA_0 ) ;
- Size = MAP_APPFONT ( GB_WIDTH , RSC_CD_FIXEDLINE_HEIGHT ) ;
- Text [ en-US ] = "Miscellaneous options";
- };
- CheckBox CB_ACCESSIBILITY_TOOL
- {
- TabStop = TRUE ;
- Pos = MAP_APPFONT( COL1, ROWA_1 );
- Size = MAP_APPFONT( CB_WIDTH, RSC_CD_CHECKBOX_HEIGHT );
- WordBreak = TRUE;
- Text [ en-US ] = "Support ~assistive technology tools (program restart required)";
- };
- CheckBox CB_TEXTSELECTION
- {
- TabStop = TRUE ;
- Pos = MAP_APPFONT( COL1, ROWA_2 );
- Size = MAP_APPFONT( CB_WIDTH, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "Use te~xt selection cursor in read-only text documents";
- };
- CheckBox CB_ANIMATED_GRAPHICS
- {
- TabStop = TRUE ;
- Pos = MAP_APPFONT( COL1, ROWA_3 );
- Size = MAP_APPFONT( CB_WIDTH, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "Allow animated ~graphics";
- };
- CheckBox CB_ANIMATED_TEXTS
- {
- TabStop = TRUE ;
- Pos = MAP_APPFONT( COL1, ROWA_4 );
- Size = MAP_APPFONT( CB_WIDTH, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "Allow animated ~text";
- };
- CheckBox CB_TIPHELP
- {
- TabStop = TRUE ;
- Pos = MAP_APPFONT( COL1, OFFS_TEXTBOX_FIXEDTEXT( ROWA_5 ) );
- Size = MAP_APPFONT( DIFF(COL2,COL3), RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "~Help tips disappear after ";
- };
- NumericField NF_TIPHELP
- {
- TabStop = TRUE ;
- Border = TRUE ;
- Pos = MAP_APPFONT( COL3, ROWA_5 );
- Size = MAP_APPFONT( EDIT_WIDTH, RSC_CD_TEXTBOX_HEIGHT );
- Minimum = 1;
- Maximum = 99;
- First = 1 ;
- Last = 99 ;
- Spin = TRUE ;
- Repeat = TRUE ;
- };
- FixedText FT_TIPHELP
- {
- Pos = MAP_APPFONT( COL4, OFFS_TEXTBOX_FIXEDTEXT( ROWA_5 ) );
- Size = MAP_APPFONT( UNIT_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT );
- Text [ en-US ] = "seconds";
- };
- FixedLine FL_HC_OPTIONS
- {
- Pos = MAP_APPFONT ( COL0, ROWB_0 ) ;
- Size = MAP_APPFONT ( GB_WIDTH , RSC_CD_FIXEDLINE_HEIGHT ) ;
- Text [ en-US ] = "Options for high contrast appearance";
- };
- CheckBox CB_AUTO_DETECT_HC
- {
- TabStop = TRUE ;
- Pos = MAP_APPFONT( COL1, ROWB_1 );
- Size = MAP_APPFONT( CB_WIDTH, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "Automatically ~detect high contrast mode of operating system";
- };
- CheckBox CB_AUTOMATIC_FONT_COLOR
- {
- TabStop = TRUE ;
- Pos = MAP_APPFONT( COL1, ROWB_2 );
- Size = MAP_APPFONT( CB_WIDTH, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "Use automatic font ~color for screen display";
- };
- CheckBox CB_PAGE_PREVIEWS
- {
- TabStop = TRUE ;
- Pos = MAP_APPFONT( COL1, ROWB_3 );
- Size = MAP_APPFONT( CB_WIDTH, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "~Use system colors for page previews";
- };
-};
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/svx/source/options/optasian.src b/svx/source/options/optasian.src
deleted file mode 100644
index 83da984639..0000000000
--- a/svx/source/options/optasian.src
+++ /dev/null
@@ -1,177 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optasian.src,v $
- * $Revision: 1.48 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
-
-#include <optasian.hrc>
-#include <sfx2/sfx.hrc>
-#include "helpid.hrc"
-#include <svx/dialogs.hrc>
-
-TabPage RID_SVXPAGE_ASIAN_LAYOUT
-{
- HelpId = HID_OPTIONS_ASIAN_LAYOUT ;
- OutputSize = TRUE ;
- Size = MAP_APPFONT ( 260 , 185 ) ;
- SVLook = TRUE ;
- Hide = TRUE ;
- FixedLine GB_KERNING
- {
- Pos = MAP_APPFONT ( 6, 3 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "Kerning";
- };
- RadioButton RB_CHAR_KERNING
- {
- Pos = MAP_APPFONT ( 12, 14 ) ;
- Size = MAP_APPFONT ( 200 , 10 ) ;
- Text [ en-US ] = "~Western characters only";
- };
- RadioButton RB_CHAR_PUNCT
- {
- Pos = MAP_APPFONT ( 12, 27 ) ;
- Size = MAP_APPFONT ( 200 , 10 ) ;
- Text [ en-US ] = "Western ~text and Asian punctuation";
- };
- FixedLine GB_CHAR_DIST
- {
- Pos = MAP_APPFONT ( 6, 43 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "Character spacing";
- };
- RadioButton RB_NO_COMP
- {
- Pos = MAP_APPFONT ( 12, 54 ) ;
- Size = MAP_APPFONT ( 200 , 10 ) ;
- Text [ en-US ] = "~No compression";
- };
- RadioButton RB_PUNCT_COMP
- {
- Pos = MAP_APPFONT ( 12, 67) ;
- Size = MAP_APPFONT ( 200 , 10 ) ;
- Text [ en-US ] = "~Compress punctuation only";
- };
- RadioButton RB_PUNCT_KANA_COMP
- {
- Pos = MAP_APPFONT ( 12, 80 ) ;
- Size = MAP_APPFONT ( 200 , 10 ) ;
- Text [ en-US ] = "Compress ~punctuation and Japanese Kana";
- };
- FixedLine GB_START_END
- {
- Pos = MAP_APPFONT ( 6, 96 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "First and last characters";
- };
- FixedText FT_LANGUAGE
- {
- Pos = MAP_APPFONT ( 12 , 109 ) ;
- Size = MAP_APPFONT ( 80 , 8 ) ;
- Text [ en-US ] = "~Language";
- };
- ListBox LB_LANGUAGE
- {
- Pos = MAP_APPFONT ( 95 , 107 ) ;
- Size = MAP_APPFONT ( 80 , 48 ) ;
- Border = TRUE ;
- DropDown = TRUE ;
- };
- CheckBox CB_STANDARD
- {
- Pos = MAP_APPFONT ( 180, 109 ) ;
- Size = MAP_APPFONT ( 74 , 10 ) ;
- Text [ en-US ] = "~Default";
- };
- FixedText FT_START
- {
- Pos = MAP_APPFONT ( 12 , 125 ) ;
- Size = MAP_APPFONT ( 80 , 8 ) ;
- Text [ en-US ] = "Not at start of line:";
- };
- Edit ED_START
- {
- Pos = MAP_APPFONT ( 95 , 123 ) ;
- Size = MAP_APPFONT ( 159 , 12 ) ;
- Border = TRUE ;
- };
- FixedText FT_END
- {
- Pos = MAP_APPFONT ( 12 , 141 ) ;
- Size = MAP_APPFONT ( 80 , 8 ) ;
- Text [ en-US ] = "Not at end of line:";
- };
- Edit ED_END
- {
- Pos = MAP_APPFONT ( 95 , 139 ) ;
- Size = MAP_APPFONT ( 159 , 12 ) ;
- Border = TRUE ;
- };
- FixedText FT_HINT
- {
- Pos = MAP_APPFONT ( 12 , 155 ) ;
- Size = MAP_APPFONT ( 242 , 8 ) ;
- Text [ en-US ] = "Without user-defined line break symbols";
- };
- Text [ en-US ] = "Proxy";
-};
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/svx/source/options/optchart.src b/svx/source/options/optchart.src
deleted file mode 100644
index baaa6acde7..0000000000
--- a/svx/source/options/optchart.src
+++ /dev/null
@@ -1,86 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optchart.src,v $
- * $Revision: 1.5 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
-
-#include "optchart.hrc"
-#include <svx/dialogs.hrc>
-#include "helpid.hrc"
-
-// tab page for setting the default colors used for new charts
-
-TabPage RID_OPTPAGE_CHART_DEFCOLORS
-{
- HelpID = HID_OPTIONS_CHART_DEFCOLORS;
- Size = MAP_APPFONT ( 260 , 185 ) ;
- Hide = TRUE;
- Text [ en-US ] = "Default Colors";
- FixedLine FL_CHART_COLOR_LIST
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 80 , 8 ) ;
- Text [ en-US ] = "Chart colors";
- Text [ x-comment ] = " ";
- };
- ListBox LB_CHART_COLOR_LIST
- {
- Border = TRUE;
- Pos = MAP_APPFONT ( 12 , 15 );
- Size = MAP_APPFONT ( 68 , 152 );
- DropDown = FALSE;
- TabStop = TRUE ;
- };
- FixedLine FL_COLOR_BOX
- {
- Pos = MAP_APPFONT ( 92 , 3 ) ;
- Size = MAP_APPFONT ( 106 , 8 ) ;
- Text [ en-US ] = "Color table" ;
- Text [ x-comment ] = " ";
- };
- Control CT_COLOR_BOX
- {
- Border = TRUE;
- Pos = MAP_APPFONT ( 98 , 15 );
- Size = MAP_APPFONT ( 94 , 152 );
- TabStop = TRUE ;
- };
- PushButton PB_RESET_TO_DEFAULT
- {
- Pos = MAP_APPFONT ( 204 , 165 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- Text [ en-US ] = "~Default";
- Text [ x-comment ] = " ";
- };
-};
-
-String RID_SVXSTR_DIAGRAM_ROW
-{
- // $(ROW) can be a number or the caption of the row in quotes
-
- Text [ en-US ] = "Data Series $(ROW)" ;
-};
diff --git a/svx/source/options/optcolor.src b/svx/source/options/optcolor.src
deleted file mode 100644
index dbf33e7522..0000000000
--- a/svx/source/options/optcolor.src
+++ /dev/null
@@ -1,552 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optcolor.src,v $
- * $Revision: 1.47.196.1 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
- // include ---------------------------------------------------------------
-#include <sfx2/sfx.hrc>
-#include "helpid.hrc"
-#include <svx/dialogs.hrc>
-#include "optcolor.hrc"
- // pragma ----------------------------------------------------------------
-
-TabPage RID_SVXPAGE_COLORCONFIG
-{
- HelpId = HID_OPTIONS_COLORCONFIG ;
- OutputSize = TRUE ;
- SVLook = TRUE ;
- Hide = TRUE ;
- Size = MAP_APPFONT ( 260 , 185 ) ;
- FixedLine FL_COLORSCHEME
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "Color scheme";
- };
- FixedText FT_COLORSCHEME
- {
- Pos = MAP_APPFONT ( 12 , 16 ) ;
- Size = MAP_APPFONT ( 50 , 8 ) ;
- Text [ en-US ] = "Scheme";
- };
- ListBox LB_COLORSCHEME
- {
- Pos = MAP_APPFONT ( 65 , 14 ) ;
- Size = MAP_APPFONT ( 77 , 58 ) ;
- Border = TRUE;
- Sort = TRUE;
- DropDown = TRUE;
- };
- PushButton PB_SAVESCHEME
- {
- Pos = MAP_APPFONT ( 145, 13 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- Text [ en-US ] = "Save...";
- };
- PushButton PB_DELETESCHEME
- {
- Pos = MAP_APPFONT ( 198 , 13 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- Text [ en-US ] = "Delete";
- };
- FixedLine FL_CUSTOMCOLORS
- {
- Pos = MAP_APPFONT ( 6 , 34 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
-
- Text [ en-US ] = "Custom colors";
- };
- Control CT_COLORCONFIG
- {
- Pos = MAP_APPFONT ( 12 , 45 ) ;
- Size = MAP_APPFONT ( 236 , 134 ) ;
- Border = TRUE;
- DialogControl = TRUE;
- OutputSize = TRUE ;
- ScrollBar VB_VSCROLL
- {
- Pos = MAP_APPFONT ( 228 , 10 ) ;
- Size = MAP_APPFONT ( 8 , 124 ) ;
- VScroll = TRUE;
- };
- String ST_ON
- {
- Text [ en-US ] = "On";
- };
- String ST_UIELEM
- {
- Text [ en-US ] = "User interface elements";
- };
- String ST_COLSET
- {
- Text [ en-US ] = "Color setting";
- };
- String ST_PREVIEW
- {
- Text [ en-US ] = "Preview";
- };
- Window WN_SCROLL
- {
-
-// misc defines to shorten defining of standard elements
-// standard sizes
-#define FT_SEP_SIZE Size = MAP_APPFONT ( _FT_WIDTH , 8 )
-#define FT_SIZE Size = MAP_APPFONT ( _FT_WIDTH , _FT_HEIGHT )
-#define LB_SIZE Size = MAP_APPFONT ( _LB_WIDTH , _LB_HEIGHT )
-#define WN_SIZE Size = MAP_APPFONT ( _WN_WIDTH , _WN_HEIGHT )
-#define CB_SIZE Size = MAP_APPFONT ( _CB_WIDTH , _FT_HEIGHT )
-
-// combination of position and size
-#define POS_SIZE( POSX, LINENUM, CONTRL_SIZE ) Pos = MAP_APPFONT ( POSX , LINENUM * _LINE_HEIGHT ) ; CONTRL_SIZE
-
-// ... for special types
-#define FT_SEP_POS_SIZE( LINENUM ) POS_SIZE( 14, LINENUM, FT_SEP_SIZE )
-#define FT_POS_SIZE( LINENUM ) POS_SIZE( _FT_XPOS, LINENUM, FT_SIZE )
-#define LB_POS_SIZE( LINENUM ) POS_SIZE( _LB_XPOS, LINENUM, LB_SIZE )
-#define WN_POS_SIZE( LINENUM ) POS_SIZE( _WN_XPOS, LINENUM, WN_SIZE )
-#define CB_POS_SIZE( LINENUM ) POS_SIZE( _CB_XPOS, LINENUM, CB_SIZE )
-
-// combination of a listbox (color chooser) and window (color preview)
-#define LB_WN( ID_POST, LINENUM ) ListBox LB_#ID_POST{LB_POS_SIZE(LINENUM);DropDown=TRUE;};Window WN_#ID_POST{WN_POS_SIZE(LINENUM);Border=TRUE;};
-
- OutputSize = TRUE ;
- Pos = MAP_APPFONT ( 0 , 10 ) ;
- Size = MAP_APPFONT ( 228 , 124 ) ;
- DialogControl = TRUE;
-
- FixedText FT_GENERAL
- {
- FT_SEP_POS_SIZE( 0 );
- Text [ en-US ] = "General";
- };
-
- FixedText FT_DOCCOLOR
- {
- FT_POS_SIZE( 1 );
- Text [ en-US ] = "Document background";
- };
- LB_WN( DOCCOLOR, 1 )
-
- CheckBox CB_DOCBOUND
- {
- CB_POS_SIZE( 2 );
- Text [ en-US ] = "Text boundaries";
- };
- LB_WN( DOCBOUND, 2 )
-
- FixedText FT_APPBACKGROUND
- {
- FT_POS_SIZE( 3 );
- Text [ en-US ] = "Application background";
- };
- LB_WN( APPBACKGROUND, 3 )
-
- CheckBox CB_OBJECTBOUNDARIES
- {
- CB_POS_SIZE( 4 );
- Text [ en-US ] = "Object boundaries";
- };
- LB_WN( OBJECTBOUNDARIES, 4 )
-
- CheckBox CB_TABLEBOUNDARIES
- {
- CB_POS_SIZE( 5 );
- Text [ en-US ] = "Table boundaries";
- };
- LB_WN( TABLEBOUNDARIES, 5 )
-
- FixedText FT_FONTCOLOR
- {
- FT_POS_SIZE( 6 );
- Text [ en-US ] = "Font color";
- };
- LB_WN( FONTCOLOR, 6 )
-
- CheckBox CB_LINKS
- {
- CB_POS_SIZE( 7 );
- Text [ en-US ] = "Unvisited links";
- };
- LB_WN( LINKS, 7 )
-
- CheckBox CB_LINKSVISITED
- {
- CB_POS_SIZE( 8 );
- Text [ en-US ] = "Visited links";
- };
- LB_WN( LINKSVISITED, 8 )
-
- FixedText FT_SPELL
- {
- FT_POS_SIZE( 9 );
- Text [ en-US ] = "AutoSpellcheck";
- };
- LB_WN( SPELL, 9 )
-
- FixedText FT_SMARTTAGS
- {
- FT_POS_SIZE( 10 );
- Text [ en-US ] = "Smart Tags";
- };
- LB_WN( SMARTTAGS, 10 )
-
- FixedText FT_WRITER
- {
- FT_SEP_POS_SIZE( 11 );
- Text [ en-US ] = "Text Document";
- };
-
- FixedText FT_WRITERTEXTGRID
- {
- FT_POS_SIZE( 12 );
- Text [ en-US ] = "Grid";
- };
- LB_WN( WRITERTEXTGRID, 12 )
-
- CheckBox CB_WRITERFIELDSHADINGS
- {
- CB_POS_SIZE( 13 );
- Text [ en-US ] = "Field shadings";
- };
- LB_WN( WRITERFIELDSHADINGS, 13 )
-
- CheckBox CB_WRITERIDXSHADINGS
- {
- CB_POS_SIZE( 14 );
- Text [ en-US ] = "Index and table shadings";
- };
- LB_WN( WRITERIDXSHADINGS, 14 )
-
-
- FixedText FT_WRITERSCRIPTINDICATOR
- {
- FT_POS_SIZE( 15 );
- Text [ en-US ] = "Script indicator";
- };
- LB_WN( WRITERSCRIPTINDICATOR, 15 )
-
- CheckBox CB_WRITERSECTIONBOUNDARIES
- {
- CB_POS_SIZE( 16 );
- Text [ en-US ] = "Section boundaries";
- };
- LB_WN( WRITERSECTIONBOUNDARIES, 16 )
-
- FixedText FT_WRITERPAGEBREAKS
- {
- FT_POS_SIZE( 17 );
- Text [ en-US ] = "Page and column breaks";
- };
- LB_WN( WRITERPAGEBREAKS, 17 )
-
- FixedText FT_WRITERDIRECTCURSOR
- {
- FT_POS_SIZE( 18 );
- Text [ en-US ] = "Direct cursor";
- };
- LB_WN( WRITERDIRECTCURSOR, 18 )
-
- FixedText FT_HTML
- {
- FT_SEP_POS_SIZE( 19 );
- Text [ en-US ] = "HTML Document";
- };
-
- FixedText FT_HTMLSGML
- {
- FT_POS_SIZE( 20 );
- Text [ en-US ] = "SGML syntax highlighting";
- };
- LB_WN( HTMLSGML, 20 )
-
- FixedText FT_HTMLCOMMENT
- {
- FT_POS_SIZE( 21 );
- Text [ en-US ] = "Comment highlighting";
- };
- LB_WN( HTMLCOMMENT, 21 )
-
- FixedText FT_HTMLKEYWORD
- {
- FT_POS_SIZE( 22 );
- Text [ en-US ] = "Keyword highlighting";
- };
- LB_WN( HTMLKEYWORD, 22 )
-
- FixedText FT_HTMLUNKNOWN
- {
- FT_POS_SIZE( 23 );
- Text [ en-US ] = "Text";
- };
- LB_WN( HTMLUNKNOWN, 23 )
-
- FixedText FT_CALC
- {
- FT_SEP_POS_SIZE( 24 );
- Text [ en-US ] = "Spreadsheet";
- };
-
- FixedText FT_CALCGRID
- {
- FT_POS_SIZE( 25 );
- Text [ en-US ] = "Grid lines";
- };
- LB_WN( CALCGRID, 25 )
-
- FixedText FT_CALCPAGEBREAK
- {
- FT_POS_SIZE( 26 );
- Text [ en-US ] = "Page breaks";
- };
- LB_WN( CALCPAGEBREAK, 26 )
-
- FixedText FT_CALCPAGEBREAKMANUAL
- {
- FT_POS_SIZE( 27 );
- Text [ en-US ] = "Manual page breaks";
- };
- LB_WN( CALCPAGEBREAKMANUAL, 27 )
-
- FixedText FT_CALCPAGEBREAKAUTO
- {
- FT_POS_SIZE( 28 );
- Text [ en-US ] = "Automatic page breaks";
- };
- LB_WN( CALCPAGEBREAKAUTO, 28)
-
- FixedText FT_CALCDETECTIVE
- {
- FT_POS_SIZE( 29 );
- Text [ en-US ] = "Detective";
- };
- LB_WN( CALCDETECTIVE, 29 )
-
- FixedText FT_CALCDETECTIVEERROR
- {
- FT_POS_SIZE( 30 );
- Text [ en-US ] = "Detective error";
- };
- LB_WN( CALCDETECTIVEERROR, 30 )
-
- FixedText FT_CALCREFERENCE
- {
- FT_POS_SIZE( 31 );
- Text [ en-US ] = "References";
- };
- LB_WN( CALCREFERENCE, 31 )
-
- FixedText FT_CALCNOTESBACKGROUND
- {
- FT_POS_SIZE( 32 );
- Text [ en-US ] = "Notes background";
- };
- LB_WN( CALCNOTESBACKGROUND, 32 )
-
- FixedText FT_DRAW
- {
- FT_SEP_POS_SIZE( 33 );
- Text [ en-US ] = "Drawing / Presentation";
- };
-
- FixedText FT_DRAWGRID
- {
- FT_POS_SIZE( 34 );
- Text [ en-US ] = "Grid";
- };
- LB_WN( DRAWGRID, 34 )
-
- FixedText FT_BASIC
- {
- FT_SEP_POS_SIZE( 35 );
- Text [ en-US ] = "Basic Syntax Highlighting";
- };
-
- FixedText FT_BASICIDENTIFIER
- {
- FT_POS_SIZE( 36 );
- Text [ en-US ] = "Identifier";
- };
- LB_WN( BASICIDENTIFIER, 36 )
-
- FixedText FT_BASICCOMMENT
- {
- FT_POS_SIZE( 37 );
- Text [ en-US ] = "Comment";
- };
- LB_WN( BASICCOMMENT, 37 )
-
- FixedText FT_BASICNUMBER
- {
- FT_POS_SIZE( 38 );
- Text [ en-US ] = "Number";
- };
- LB_WN( BASICNUMBER, 38)
-
- FixedText FT_BASICSTRING
- {
- FT_POS_SIZE( 39 );
- Text [ en-US ] = "String";
- };
- LB_WN( BASICSTRING, 39 )
-
- FixedText FT_BASICOPERATOR
- {
- FT_POS_SIZE( 40 );
- Text [ en-US ] = "Operator";
- };
- LB_WN( BASICOPERATOR, 40 )
-
- FixedText FT_BASICKEYWORD
- {
- FT_POS_SIZE( 41 );
- Text [ en-US ] = "Reserved expression";
- };
- LB_WN( BASICKEYWORD, 41 )
-
- FixedText FT_BASICERROR
- {
- FT_POS_SIZE( 42 );
- Text [ en-US ] = "Error";
- };
- LB_WN( BASICERROR, 42 )
-
- FixedText FT_SQL_COMMAND
- {
- FT_SEP_POS_SIZE( 43 );
- Text [ en-US ] = "SQL Syntax Highlighting";
- };
-
- FixedText FT_SQLIDENTIFIER
- {
- FT_POS_SIZE( 44 );
- Text [ en-US ] = "Identifier";
- };
- LB_WN( SQLIDENTIFIER, 44 )
-
- FixedText FT_SQLNUMBER
- {
- FT_POS_SIZE( 45 );
- Text [ en-US ] = "Number";
- };
- LB_WN( SQLNUMBER, 45 )
-
- FixedText FT_SQLSTRING
- {
- FT_POS_SIZE( 46 );
- Text [ en-US ] = "String";
- };
- LB_WN( SQLSTRING, 46 )
-
- FixedText FT_SQLOPERATOR
- {
- FT_POS_SIZE( 47 );
- Text [ en-US ] = "Operator";
- };
- LB_WN( SQLOPERATOR, 47 )
-
- FixedText FT_SQLKEYWORD
- {
- FT_POS_SIZE( 48 );
- Text [ en-US ] = "Keyword";
- };
- LB_WN( SQLKEYWORD, 48 )
-
- FixedText FT_SQLPARAMETER
- {
- FT_POS_SIZE( 49 );
- Text [ en-US ] = "Parameter";
- };
- LB_WN( SQLPARAMETER, 49 )
-
- FixedText FT_SQLCOMMENT
- {
- FT_POS_SIZE( 50 );
- Text [ en-US ] = "Comment";
- };
- LB_WN( SQLCOMMENT, 50 )
-
- String ST_EXTENSION
- {
- Text [ en-US ] = "Colorsettings of the Extensions";
- };
- String ST_SPELL_CHECK_HIGHLIGHTING
- {
- Text [ en-US ] = "Spell check highlighting";
- };
- String ST_GRAMMAR_CHECK_HIGHLIGHTING
- {
- Text [ en-US ] = "Grammar check highlighting";
- };
- };
- };
-};
-QueryBox RID_SVXQB_DELETE_COLOR_CONFIG
-{
- Buttons = WB_YES_NO ;
- DefButton = WB_DEF_NO ;
- Message [ en-US ] = "Do you really want to delete the color scheme?" ;
-};
-String RID_SVXSTR_COLOR_CONFIG_DELETE
-{
- Text [ en-US ] = "Color Scheme Deletion" ;
-};
-String RID_SVXSTR_COLOR_CONFIG_SAVE1
-{
- Text [ en-US ] = "Save scheme" ;
-};
-String RID_SVXSTR_COLOR_CONFIG_SAVE2
-{
- Text [ en-US ] = "Name of color scheme" ;
-};
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/svx/source/options/optctl.src b/svx/source/options/optctl.src
deleted file mode 100644
index 7841b17b16..0000000000
--- a/svx/source/options/optctl.src
+++ /dev/null
@@ -1,119 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optctl.src,v $
- * $Revision: 1.20.254.1 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
-
-#include "optctl.hrc"
-#include "helpid.hrc"
-#include <svx/dialogs.hrc>
-
-#include <sfx2/sfx.hrc>
-
-TabPage RID_SVXPAGE_OPTIONS_CTL
-{
- HelpId = HID_OPTIONS_CTL ;
- OutputSize = TRUE ;
- Size = MAP_APPFONT ( 260 , 185 ) ;
- SVLook = TRUE ;
- Hide = TRUE ;
- Text [ en-US ] = "Complex Text Layout" ;
- FixedLine FL_SEQUENCECHECKING
- {
- Pos = MAP_APPFONT ( 6, ROW_0 ) ;
- Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ;
- Text [ en-US ] = "Sequence checking";
- };
- CheckBox CB_SEQUENCECHECKING
- {
- Pos = MAP_APPFONT ( 12, ROW_1 ) ;
- Size = MAP_APPFONT ( 236 , RSC_CD_CHECKBOX_HEIGHT ) ;
- Text [ en-US ] = "Use se~quence checking";
- };
- CheckBox CB_RESTRICTED
- {
- Pos = MAP_APPFONT ( 18, ROW_2 );
- Size = MAP_APPFONT ( 236, RSC_CD_CHECKBOX_HEIGHT );
- Text[ en-US ] = "Restricted";
- };
- CheckBox CB_TYPE_REPLACE
- {
- Pos = MAP_APPFONT ( 18, ROW_2+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_FLGR_SPACE_Y );
- Size = MAP_APPFONT ( 236, RSC_CD_CHECKBOX_HEIGHT );
- Text[ en-US ] = "~Type and replace";
- };
- FixedLine FL_CURSORCONTROL
- {
- Pos = MAP_APPFONT ( 6, ROW_3 ) ;
- Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ;
- Text [ en-US ] = "Cursor control";
- };
- FixedText FT_MOVEMENT
- {
- Pos = MAP_APPFONT ( 12, ROW_5 ) ;
- Size = MAP_APPFONT ( 90 , RSC_CD_FIXEDTEXT_HEIGHT ) ;
- Text [ en-US ] = "Movement";
- };
- RadioButton RB_MOVEMENT_LOGICAL
- {
- Pos = MAP_APPFONT ( 105, ROW_4 ) ;
- Size = MAP_APPFONT ( 69 , RSC_CD_RADIOBUTTON_HEIGHT ) ;
- Text [ en-US ] = "Lo~gical";
- };
- RadioButton RB_MOVEMENT_VISUAL
- {
- Pos = MAP_APPFONT ( 177, ROW_4 ) ;
- Size = MAP_APPFONT ( 69 , RSC_CD_RADIOBUTTON_HEIGHT ) ;
- Text [ en-US ] = "~Visual";
- };
- FixedLine FL_GENERAL
- {
- Pos = MAP_APPFONT ( 6, ROW_6 ) ;
- Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ;
- Text [ en-US ] = "General options";
- };
- FixedText FT_NUMERALS
- {
- Pos = MAP_APPFONT ( 12, ROW_8 ) ;
- Size = MAP_APPFONT ( 90 , RSC_CD_FIXEDTEXT_HEIGHT ) ;
- Text [ en-US ] = "~Numerals";
- };
- ListBox LB_NUMERALS
- {
- Pos = MAP_APPFONT ( 105, ROW_7 ) ;
- Size = MAP_APPFONT ( 69 , 3*RSC_CD_DROPDOWN_HEIGHT ) ;
- DropDown = TRUE ;
- Border = TRUE ;
- StringList [ en-US ]=
- {
- < "Arabic" ; > ;
- < "Hindi" ; > ;
- < "System" ; > ;
- < "Context" ; > ;
- };
- };
-};
diff --git a/svx/source/options/optdict.src b/svx/source/options/optdict.src
deleted file mode 100644
index 0e52166591..0000000000
--- a/svx/source/options/optdict.src
+++ /dev/null
@@ -1,282 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optdict.src,v $
- * $Revision: 1.31 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
- // include ---------------------------------------------------------------
-#include <sfx2/sfx.hrc>
-#include "helpid.hrc"
-#include <svx/dialogs.hrc>
-#include "optdict.hrc"
- // pragma ----------------------------------------------------------------
-
- // RID_SFXDLG_NEWDICT ----------------------------------------------------
-ModalDialog RID_SFXDLG_NEWDICT
-{
- HelpId = HID_OPTIONS_DICT_NEW ;
- OutputSize = TRUE ;
- SVLook = TRUE ;
- Size = MAP_APPFONT ( 213 , 66 ) ;
- Moveable = TRUE ;
- /* ### ACHTUNG: Neuer Text in Resource? Benutzerwörterbuch anlegen : Benutzerw÷rterbuch anlegen */
- /* ### ACHTUNG: Neuer Text in Resource? Benutzerwörterbuch anlegen : Benutzerw÷rterbuch anlegen */
- Text [ en-US ] = "New Dictionary" ;
- FixedText FT_DICTNAME
- {
- Pos = MAP_APPFONT ( 11 , 15 ) ;
- Size = MAP_APPFONT ( 40 , 10 ) ;
- Text [ en-US ] = "~Name" ;
- LeftLabel = TRUE ;
- };
- Edit ED_DICTNAME
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( 55 , 14 ) ;
- Size = MAP_APPFONT ( 90 , 12 ) ;
- MaxTextLength = 32 ;
- };
- FixedText FT_DICTLANG
- {
- Pos = MAP_APPFONT ( 12 , 30 ) ;
- Size = MAP_APPFONT ( 40 , 10 ) ;
- Text [ en-US ] = "~Language" ;
- LeftLabel = TRUE ;
- };
- ListBox LB_DICTLANG
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( 55 , 30 ) ;
- Size = MAP_APPFONT ( 90 , 66 ) ;
- DropDown = TRUE ;
- };
- CheckBox BTN_EXCEPT
- {
- Pos = MAP_APPFONT ( 12 , 44 ) ;
- Size = MAP_APPFONT ( 57 , 10 ) ;
- Text [ en-US ] = "~Exception (-)" ;
- };
- FixedLine GB_NEWDICT
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 145 , 8 ) ;
- /* ### ACHTUNG: Neuer Text in Resource? Wörterbuch : W÷rterbuch */
- /* ### ACHTUNG: Neuer Text in Resource? Wörterbuch : W÷rterbuch */
- Text [ en-US ] = "Dictionary" ;
- };
- OKButton BTN_NEWDICT_OK
- {
- Pos = MAP_APPFONT ( 157 , 6 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- Disable = TRUE ;
- DefButton = TRUE ;
- };
- CancelButton BTN_NEWDICT_ESC
- {
- Pos = MAP_APPFONT ( 157 , 23 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- };
- HelpButton BTN_NEWDICT_HLP
- {
- Pos = MAP_APPFONT ( 157 , 43 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- };
-};
-
- // RID_SFXDLG_EDITDICT ---------------------------------------------------
-ModalDialog RID_SFXDLG_EDITDICT
-{
- HelpId = HID_OPTIONS_DICT_EDIT ;
- OutputSize = TRUE ;
- SVLook = TRUE ;
- Size = MAP_APPFONT( 270, 161 );
-
- /* ### ACHTUNG: Neuer Text in Resource? Benutzerwörterbuch bearbeiten : Benutzerw÷rterbuch bearbeiten */
- /* ### ACHTUNG: Neuer Text in Resource? Benutzerwörterbuch bearbeiten : Benutzerw÷rterbuch bearbeiten */
- Text [ en-US ] = "Edit Custom Dictionary" ;
-
- Moveable = TRUE ;
- FixedText FT_BOOK
- {
- Pos = MAP_APPFONT ( 12 , 10 ) ;
- Size = MAP_APPFONT ( 86 , 10 ) ;
- Text [ en-US ] = "~Book" ;
- };
- ListBox LB_ALLDICTS
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( 82 , 9 ) ;
- Size = MAP_APPFONT ( 121 , 62 ) ;
- DropDown = TRUE ;
- };
- FixedText FT_DICTLANG
- {
- Pos = MAP_APPFONT ( 12 , 26 ) ;
- Size = MAP_APPFONT ( 86 , 10 ) ;
- Text [ en-US ] = "~Language" ;
- };
- ListBox LB_DICTLANG
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( 82 , 25 ) ;
- Size = MAP_APPFONT ( 121 , 66 ) ;
- DropDown = TRUE ;
- };
-
- FixedLine GB_EDITDICTS
- {
- Pos = MAP_APPFONT( 1, 1 );
- Size = MAP_APPFONT( 268, 138 );
- Hide=TRUE;
- };
-
- FixedText FT_WORD
- {
- Pos = MAP_APPFONT ( 13 , 46 ) ;
- Size = MAP_APPFONT ( 40 , 8 ) ;
- Text [ en-US ] = "~Word";
- };
- Edit ED_WORD
- {
- Pos = MAP_APPFONT ( 12 , 56 ) ;
- Size = MAP_APPFONT ( 71 , 12 ) ;
- Border = TRUE ;
- TabStop = TRUE ;
- };
- FixedText FT_REPLACE
- {
- Pos = MAP_APPFONT ( 84 , 46 ) ;
- Size = MAP_APPFONT ( 60 , 8 ) ;
- Text [ en-US ] = "Replace ~By:";
- };
-
- Edit ED_REPLACE
- {
- Pos = MAP_APPFONT ( 83 , 56 ) ;
- Size = MAP_APPFONT ( 120 , 12 ) ;
- Border = TRUE ;
- TabStop = TRUE ;
- };
-
- PushButton PB_NEW_REPLACE
- {
- Pos = MAP_APPFONT ( 209 , 56 ) ;
- Size = MAP_APPFONT ( 55 , 12 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "~New" ;
- };
- PushButton PB_DELETE_REPLACE
- {
- Pos = MAP_APPFONT ( 209 , 71 ) ;
- Size = MAP_APPFONT ( 55 , 12 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "~Delete" ;
- };
- Control TLB_REPLACE
- {
- HelpId = HID_OPTIONS_DICT_EDIT_ENTRIES_LIST;
- Pos = MAP_APPFONT ( 12 , 71 ) ;
- Size = MAP_APPFONT ( 191 , 58 ) ;
- Border = TRUE ;
- TabStop = TRUE ;
- };
- String STR_MODIFY
- {
- Text [ en-US ] = "~Replace" ;
- };
-
-
-
- HelpButton BTN_EDITHELP
- {
- Pos = MAP_APPFONT( 145, 143 );
- Size = MAP_APPFONT( 55, 14 );
- };
-
- CancelButton BTN_EDITCLOSE
- {
- Pos = MAP_APPFONT ( 209 , 143 ) ;
- Size = MAP_APPFONT ( 55 , 14 ) ;
-
- /* ### ACHTUNG: Neuer Text in Resource? ~Schließen : ~Schlie˜en */
- /* ### ACHTUNG: Neuer Text in Resource? ~Schließen : ~Schlie˜en */
- Text [ en-US ] = "~Close" ;
- };
-};
-
- // Strings ---------------------------------------------------------------
-String RID_SVXSTR_OPT_DOUBLE_DICTS
-{
- Text [ en-US ] = "The specified name already exists.\nPlease enter a new name." ;
-};
- // RID_SFXQB_SET_LANGUAGE ------------------------------------------------
-QueryBox RID_SFXQB_SET_LANGUAGE
-{
- Buttons = WB_YES_NO ;
- DefButton = WB_DEF_NO ;
- /* ### ACHTUNG: Neuer Text in Resource? Möchten Sie die Sprache des Wörterbuches '%1' ändern? : Möchten Sie die Sprache des Wörterbuches ''%1'' ändern? */
- /* ### ACHTUNG: Neuer Text in Resource? Möchten Sie die Sprache des Wörterbuches '%1' ändern? : Möchten Sie die Sprache des Wörterbuches ''%1'' ändern? */
- /* ### ACHTUNG: Neuer Text in Resource? Möchten Sie die Sprache des Wörterbuches '%1' ändern? : M÷chten Sie die Sprache des W÷rterbuches '%1' õndern? */
- /* ### ACHTUNG: Neuer Text in Resource? Möchten Sie die Sprache des Wörterbuches '%1' ändern? : M÷chten Sie die Sprache des W÷rterbuches '%1' õndern? */
- Message [ en-US ] = "Do you want to change the '%1' dictionary language?" ;
-};
- // ********************************************************************** EOF
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/svx/source/options/optgenrl.src b/svx/source/options/optgenrl.src
deleted file mode 100644
index 68e9e8ced7..0000000000
--- a/svx/source/options/optgenrl.src
+++ /dev/null
@@ -1,333 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optgenrl.src,v $
- * $Revision: 1.57 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
-
-// include ------------------------------------------------------------------
-
-#include <sfx2/sfx.hrc>
-
-#include "helpid.hrc"
-#include <svx/dialogs.hrc>
-#include "optgenrl.hrc"
-
-// RID_SFXPAGE_GENERAL ------------------------------------------------------
-
-TabPage RID_SFXPAGE_GENERAL
-{
- HelpId = HID_OPTIONS_GENERAL ;
- OutputSize = TRUE ;
- SVLook = TRUE ;
- Hide = TRUE ;
- Size = MAP_APPFONT ( 260 , 185 ) ;
- Text [ en-US ] = "User Data" ;
- FixedText FT_COMPANY
- {
- Pos = MAP_APPFONT ( LEFT , FLINE ( 0 ) ) ;
- Size = MAP_APPFONT ( MID-LEFT-2 , FLINEH ) ;
- LeftLabel = TRUE ;
- Text [ en-US ] = "~Company" ;
- };
- Edit ED_COMPANY
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID , LINE ( 0 ) ) ;
- Size = MAP_APPFONT ( RIGHT-MID , LINEH ) ;
- };
- FixedText FT_NAME
- {
- Pos = MAP_APPFONT ( LEFT , FLINE ( 1 ) ) ;
- Size = MAP_APPFONT ( MID-LEFT-2 , FLINEH ) ;
- LeftLabel = TRUE ;
- Text [ en-US ] = "First/Last ~name/Initials" ;
- };
- FixedText FT_NAME_RUSS
- {
- Pos = MAP_APPFONT ( LEFT , FLINE ( 1 ) ) ;
- Size = MAP_APPFONT ( MID-LEFT-2 , FLINEH ) ;
- LeftLabel = TRUE ;
- Hide = TRUE;
- Text [ en-US ] = "Last Name/First name/Father's name/Initials";
- };
- FixedText FT_NAME_EASTERN
- {
- Pos = MAP_APPFONT ( LEFT , FLINE ( 1 ) ) ;
- Size = MAP_APPFONT ( MID-LEFT-2 , FLINEH ) ;
- LeftLabel = TRUE ;
- Hide = TRUE;
- Text [ en-US ] = "Last/First ~name/Initials" ;
- };
- Edit ED_FATHERNAME
- {
- Border = TRUE ;
- Hide = TRUE;
- Pos = MAP_APPFONT ( MID , LINE ( 1 ) ) ;
- Size = MAP_APPFONT ( NAMELEN-8 , LINEH ) ;
- };
- Edit ED_FIRSTNAME
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID , LINE ( 1 ) ) ;
- Size = MAP_APPFONT ( NAMELEN-8 , LINEH ) ;
- };
- Edit ED_NAME
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID+NAMELEN-8+HSPACE , LINE ( 1 ) ) ;
- Size = MAP_APPFONT ( NAMELEN-8 , LINEH ) ;
- };
- Edit ED_SHORTNAME
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID+2* ( NAMELEN-8+HSPACE ) , LINE ( 1 ) ) ;
- Size = MAP_APPFONT ( RIGHT- ( MID+2* ( NAMELEN-8+HSPACE ) ) , LINEH ) ;
- };
- FixedText FT_STREET
- {
- Pos = MAP_APPFONT ( LEFT , FLINE ( 2 ) ) ;
- Size = MAP_APPFONT ( MID-LEFT-2 , FLINEH ) ;
- LeftLabel = TRUE ;
- Text [ en-US ] = "~Street" ;
- };
- FixedText FT_STREET_RUSS
- {
- Pos = MAP_APPFONT ( LEFT , FLINE ( 2 ) ) ;
- Size = MAP_APPFONT ( MID-LEFT-2 , FLINEH ) ;
- LeftLabel = TRUE ;
- Hide = TRUE;
- Text [ en-US ] = "Street/Apartment number";
- };
- Edit ED_STREET
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID , LINE ( 2 ) ) ;
- Size = MAP_APPFONT ( RIGHT-MID , LINEH ) ;
- };
- Edit ED_APARTMENTNR
- {
- Border = TRUE ;
- Hide = TRUE;
- Pos = MAP_APPFONT ( MID , LINE ( 2 ) ) ;
- Size = MAP_APPFONT ( RIGHT-MID , LINEH ) ;
- };
- FixedText FT_CITY
- {
- Pos = MAP_APPFONT ( LEFT , FLINE ( 3 ) ) ;
- Size = MAP_APPFONT ( MID-LEFT-2 , FLINEH ) ;
- LeftLabel = TRUE ;
- Text [ en-US ] = "Zip/City";
- };
- Edit ED_PLZ
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID , LINE ( 3 ) ) ;
- Size = MAP_APPFONT ( 24 , LINEH ) ;
- };
- Edit ED_CITY
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID + 24 + HSPACE , LINE ( 3 ) ) ;
- Size = MAP_APPFONT ( RIGHT - ( MID + 24 + HSPACE ) , LINEH ) ;
- };
- Edit ED_US_CITY
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID , LINE ( 3 ) ) ;
- Size = MAP_APPFONT ( 90 , LINEH ) ;
- };
- Edit ED_US_STATE
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID + 90 + HSPACE, LINE ( 3 ) ) ;
- Size = MAP_APPFONT ( 30 , LINEH ) ;
- };
- Edit ED_US_ZIPCODE
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID + 90 + HSPACE + 30 + HSPACE, LINE ( 3 ) ) ;
- Size = MAP_APPFONT ( RIGHT - ( MID + 90 + HSPACE + 30 + HSPACE ) , LINEH ) ;
- };
- FixedText FT_COUNTRY
- {
- Pos = MAP_APPFONT ( LEFT , FLINE ( 4 ) ) ;
- Size = MAP_APPFONT ( MID-LEFT-2 , FLINEH ) ;
- LeftLabel = TRUE ;
- Text [ en-US ] = "Country/Region";
- };
- Edit ED_COUNTRY
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID , LINE ( 4 ) ) ;
- Size = MAP_APPFONT ( RIGHT - MID , LINEH ) ;
- };
- FixedText FT_TITLEPOS
- {
- Pos = MAP_APPFONT ( LEFT , FLINE ( 5 ) ) ;
- Size = MAP_APPFONT ( MID-LEFT-2 , FLINEH ) ;
- LeftLabel = TRUE ;
- Text [ en-US ] = "~Title/Position" ;
- };
- Edit ED_TITLE
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID , LINE ( 5 ) ) ;
- Size = MAP_APPFONT ( NAMELEN-1 , LINEH ) ;
- };
- Edit ED_POSITION
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID+NAMELEN-1+HSPACE , LINE ( 5 ) ) ;
- Size = MAP_APPFONT ( RIGHT- ( MID+NAMELEN-1+HSPACE ) , LINEH ) ;
- };
- FixedText FT_PHONE
- {
- Pos = MAP_APPFONT ( LEFT , FLINE ( 6 ) ) ;
- Size = MAP_APPFONT ( MID-LEFT-2 , FLINEH ) ;
- Text [ en-US ] = "Tel. (Home/Work)" ;
- LeftLabel = TRUE ;
- };
- Edit ED_TELPRIVAT
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID , LINE ( 6 ) ) ;
- Size = MAP_APPFONT ( NAMELEN-1 , LINEH ) ;
- };
- Edit ED_TELCOMPANY
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID+NAMELEN-1+HSPACE , LINE ( 6 ) ) ;
- Size = MAP_APPFONT ( RIGHT- ( MID+NAMELEN-1+HSPACE ) , LINEH ) ;
- };
- FixedText FT_FAXMAIL
- {
- Pos = MAP_APPFONT ( LEFT , FLINE ( 7 ) ) ;
- Size = MAP_APPFONT ( MID-LEFT-2 , FLINEH ) ;
- LeftLabel = TRUE ;
- Text [ en-US ] = "Fa~x / E-mail" ;
- };
- Edit ED_FAX
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID , LINE ( 7 ) ) ;
- Size = MAP_APPFONT ( NAMELEN-1 , LINEH ) ;
- };
- Edit ED_EMAIL
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( MID+NAMELEN-1+HSPACE , LINE ( 7 ) ) ;
- Size = MAP_APPFONT ( RIGHT- ( MID+NAMELEN-1+HSPACE ) , LINEH ) ;
- };
- FixedLine GB_ADDRESS
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "Address " ;
- };
- CheckBox CB_USEDATA
- {
- Pos = MAP_APPFONT ( 6 , 122 ) ;
- Size = MAP_APPFONT ( 236 , 10 ) ;
- Hide = TRUE;
- Text [ en-US ] = "Use data for document properties";
- };
-
- // extra Resourcen f"ur die amerikanische Postadresse
- String STR_US_STATE
- {
- Text [ en-US ] = "City/State/Zip";
- };
- String STR_QUERY_REG
- {
- Text [ en-US ] = "Note that street, Zip code and city are used to generate the registration key. You will not be able to change the user data again until the registration has been carried out. Do you want to modify the user data now?";
- };
-};
-
-// RID_SVXQB_CHANGEDATA ---------------------------------------------------
-
-QueryBox RID_SVXQB_CHANGEDATA
-{
- BUTTONS = WB_YES_NO ;
- DEFBUTTON = WB_DEF_NO ;
- Message [ en-US ] = "The User Data have been changed.\nNote that, if you continue, the registration key will become invalid.\nTherefore, a new registration key is needed within 30 days.\nYou can find the registration form in the menu Help - Registration...\nDo you really want to change your User Data?";
-};
-
- // RID_SVXSTR_FIELDUNIT_TABLE --------------------------------------------
-
-StringArray RID_SVXSTR_FIELDUNIT_TABLE
-{
- ItemList [ en-US ] =
- {
- < "Millimeter" ; FUNIT_MM ; > ;
- < "Centimeter" ; FUNIT_CM ; > ;
- < "Meter" ; FUNIT_M ; > ;
- < "Kilometer" ; FUNIT_KM ; > ;
- < "Inch" ; FUNIT_INCH ; > ;
- < "Foot" ; FUNIT_FOOT ; > ;
- < "Miles" ; FUNIT_MILE ; > ;
- < "Pica" ; FUNIT_PICA ; > ;
- < "Point" ; FUNIT_POINT ; > ;
- };
- };
-
- // ********************************************************************** EOF
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/svx/source/options/optimprove.src b/svx/source/options/optimprove.src
deleted file mode 100644
index 86fc6d1c1a..0000000000
--- a/svx/source/options/optimprove.src
+++ /dev/null
@@ -1,123 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optimprove.src,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
-
-// include --------------------------------------------------------------
-
-#include "optimprove.hrc"
-#include <svx/dialogs.hrc>
-#include "helpid.hrc"
-
-TabPage RID_SVXPAGE_IMPROVEMENT
-{
- //!HelpId = HID_OPTIONS_IMPROVEMENT ;
- OutputSize = TRUE ;
- SVLook = TRUE ;
- Hide = TRUE ;
- Size = MAP_APPFONT ( 260 , 185 ) ;
- Text [ en-US ] = "%PRODUCTNAME Improvement Program" ;
- FixedLine FL_IMPROVE
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "Improvement Program" ;
- };
- FixedText FT_INVITATION
- {
- Pos = MAP_APPFONT ( 12 , 14 ) ;
- Size = MAP_APPFONT ( 242 , 72 ) ;
- WordBreak = TRUE ;
- Text [ en-US ] = "We invite you to join our %PRODUCTNAME Improvement Program to help optimize the quality of %PRODUCTNAME.\n\nIf you are willing to participate, we will collect anonymous statistics about how you use %PRODUCTNAME. The data is used to identify usage patterns.\n\nThe %PRODUCTNAME Improvement Program will not collect any personal data, or document content." ;
- };
- RadioButton RB_YES
- {
- Pos = MAP_APPFONT ( 12 , 92 ) ;
- Size = MAP_APPFONT ( 215 , 10 ) ;
- Check = TRUE ;
- Text [ en-US ] = "~Yes, I am willing to participate in the %PRODUCTNAME Improvement Program" ;
- };
- RadioButton RB_NO
- {
- Pos = MAP_APPFONT ( 12 , 105 ) ;
- Size = MAP_APPFONT ( 215 , 10 ) ;
- Text [ en-US ] = "~No, I do not wish to participate" ;
- };
- FixedImage FI_INFO
- {
- Pos = MAP_APPFONT ( 230 , 91 ) ;
- Size = MAP_APPFONT ( 24 , 24 ) ;
- Fixed = Image
- {
- ImageBitmap = Bitmap { File = "info.png"; };
- };
- };
- FixedLine FL_DATA
- {
- Pos = MAP_APPFONT ( 6 , 121 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "Tracked Data" ;
- };
- FixedText FT_NR_REPORTS
- {
- Pos = MAP_APPFONT ( 12 , 132 ) ;
- Size = MAP_APPFONT ( 80 , 8 ) ;
- Text [ en-US ] = "Number of reports sent:" ;
- };
- FixedText FT_NR_REPORTS_VALUE
- {
- Pos = MAP_APPFONT ( 95 , 132 ) ;
- Size = MAP_APPFONT ( 100 , 10 ) ;
- };
- FixedText FT_NR_ACTIONS
- {
- Pos = MAP_APPFONT ( 12 , 145 ) ;
- Size = MAP_APPFONT ( 80 , 8 ) ;
- Text [ en-US ] = "Number of tracked actions:" ;
- };
- FixedText FT_NR_ACTIONS_VALUE
- {
- Pos = MAP_APPFONT ( 95 , 145 ) ;
- Size = MAP_APPFONT ( 100 , 10 ) ;
- };
- PushButton PB_SHOWDATA
- {
- Pos = MAP_APPFONT ( 12 , 161 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- Text [ en-US ] = "~Show Data" ;
- };
- String STR_INFO
- {
- Text [ en-US ] = "Help Optimize the Quality of %PRODUCTNAME" ;
- };
- String STR_MOREINFO
- {
- Text [ en-US ] = "More Information" ;
- };
-};
-
diff --git a/svx/source/options/optinet2.src b/svx/source/options/optinet2.src
deleted file mode 100644
index d2b9ecb1bb..0000000000
--- a/svx/source/options/optinet2.src
+++ /dev/null
@@ -1,647 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optinet2.src,v $
- * $Revision: 1.97 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
- // include ------------------------------------------------------------------
-#include <sfx2/sfx.hrc>
-#include "helpid.hrc"
-#include <svx/dialogs.hrc>
-#include "optinet2.hrc"
- // pragma -------------------------------------------------------------------
-
-/************************************************************************/
-/* */
-/* Proxy server */
-/* */
-/************************************************************************/
-
-// added by jmeng begin
-
-TabPage RID_SVXPAGE_INET_MOZPLUGIN
-{
- OutputSize = TRUE ;
- Size = MAP_APPFONT ( 260 , 185 ) ;
- SVLook = TRUE ;
- Hide = TRUE ;
-
- FixedLine GB_MOZPLUGIN
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text[ en-US ] = "Browser Plug-in";
- };
- CheckBox CB_MOZPLUGIN_CODE
- {
- Pos = MAP_APPFONT ( 12 , 14 ) ;
- Size = MAP_APPFONT ( 236 , 10 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "~Display documents in browser" ;
- };
-};
-
-//added by jmeng end
-
-TabPage RID_SVXPAGE_INET_PROXY
-{
- HelpId = HID_OPTIONS_PROXY ;
- OutputSize = TRUE ;
- Size = MAP_APPFONT ( 260 , 185 ) ;
- SVLook = TRUE ;
- Hide = TRUE ;
- Text [ en-US ] = "Proxy" ;
- #define GB_TYPES_TOP 3
- #define GB_TYPES_LEFT 6
- FixedLine GB_SETTINGS
- {
- Pos = MAP_APPFONT ( GB_TYPES_LEFT , GB_TYPES_TOP ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "Settings" ;
- };
- FixedText FT_PROXYMODE
- {
- Pos = MAP_APPFONT ( 12 , GB_TYPES_TOP + 13 ) ;
- Size = MAP_APPFONT ( 50 , 8 ) ;
- Text [ en-US ] = "Proxy s~erver" ;
- };
- ListBox LB_PROXYMODE
- {
- Pos = MAP_APPFONT ( 65 , GB_TYPES_TOP + 11 ) ;
- Size = MAP_APPFONT ( 49 , 48 ) ;
- Border = TRUE ;
- DropDown = TRUE ;
- StringList [ en-US ] =
- {
- < "None" ; > ;
- < "System" ; > ;
- < "Manual" ; > ;
- };
- };
- String ST_PROXY_FROM_BROWSER
- {
- Text [ en-US ] = "Use browser settings";
- };
- FixedText FT_HTTP_PROXY
- {
- Pos = MAP_APPFONT ( 12 , GB_TYPES_TOP + 29 ) ;
- Size = MAP_APPFONT ( 50 , 8 ) ;
- Text [ en-US ] = "HT~TP proxy" ;
- };
- Edit ED_HTTP_PROXY
- {
- Pos = MAP_APPFONT ( 65 , GB_TYPES_TOP + 27 ) ;
- Size = MAP_APPFONT ( 123 , 12 ) ;
- Border = TRUE ;
- };
-
- #define FT_PORT_WIDTH 37
- #define ED_PORT_WIDTH 20
- #define ED_PORT_COL 229
-
- FixedText FT_HTTP_PORT
- {
- Pos = MAP_APPFONT ( 190 , GB_TYPES_TOP + 29 ) ;
- Size = MAP_APPFONT ( FT_PORT_WIDTH , 8 ) ;
- Right = TRUE;
- Text [ en-US ] = "~Port" ;
- };
- Edit ED_HTTP_PORT
- {
- Pos = MAP_APPFONT ( ED_PORT_COL , GB_TYPES_TOP + 27 ) ;
- Size = MAP_APPFONT ( ED_PORT_WIDTH , 12 ) ;
- Border = TRUE ;
- };
-
- FixedText FT_HTTPS_PROXY
- {
- Pos = MAP_APPFONT ( 12 , GB_TYPES_TOP + 45 ) ;
- Size = MAP_APPFONT ( 50 , 8 ) ;
- Text [ en-US ] = "HTTP~S proxy" ;
- };
- Edit ED_HTTPS_PROXY
- {
- Pos = MAP_APPFONT ( 65 , GB_TYPES_TOP + 43 ) ;
- Size = MAP_APPFONT ( 123 , 12 ) ;
- Border = TRUE ;
- };
- FixedText FT_HTTPS_PORT
- {
- Pos = MAP_APPFONT ( 190 , GB_TYPES_TOP + 45 ) ;
- Size = MAP_APPFONT ( FT_PORT_WIDTH , 8 ) ;
- Right = TRUE;
- Text [ en-US ] = "P~ort" ;
- };
- Edit ED_HTTPS_PORT
- {
- Pos = MAP_APPFONT ( ED_PORT_COL , GB_TYPES_TOP + 43 ) ;
- Size = MAP_APPFONT ( ED_PORT_WIDTH , 12 ) ;
- Border = TRUE ;
- };
-
- FixedText FT_FTP_PROXY
- {
- Pos = MAP_APPFONT ( 12 , GB_TYPES_TOP + 61 ) ;
- Size = MAP_APPFONT ( 50 , 8 ) ;
- Text [ en-US ] = "~FTP proxy" ;
- };
- Edit ED_FTP_PROXY
- {
- Pos = MAP_APPFONT ( 65 , GB_TYPES_TOP + 59 ) ;
- Size = MAP_APPFONT ( 123 , 12 ) ;
- Border = TRUE ;
- };
- FixedText FT_FTP_PORT
- {
- Pos = MAP_APPFONT ( 190 , GB_TYPES_TOP + 61 ) ;
- Size = MAP_APPFONT ( FT_PORT_WIDTH , 8 ) ;
- Right = TRUE;
- Text [ en-US ] = "P~ort" ;
- };
- Edit ED_FTP_PORT
- {
- Pos = MAP_APPFONT ( ED_PORT_COL , GB_TYPES_TOP + 59 ) ;
- Size = MAP_APPFONT ( ED_PORT_WIDTH , 12 ) ;
- Border = TRUE ;
- };
- FixedText FT_SOCKS_PROXY
- {
- Pos = MAP_APPFONT ( 12 , GB_TYPES_TOP + 77 ) ;
- Size = MAP_APPFONT ( 50 , 10 ) ;
- Text [ en-US ] = "~SOCKS proxy" ;
- };
- Edit ED_SOCKS_PROXY
- {
- Pos = MAP_APPFONT ( 65 , GB_TYPES_TOP + 75 ) ;
- Size = MAP_APPFONT ( 123 , 12 ) ;
- Border = TRUE ;
- };
- FixedText FT_SOCKS_PORT
- {
- Pos = MAP_APPFONT ( 190 , GB_TYPES_TOP + 77 ) ;
- Size = MAP_APPFONT ( FT_PORT_WIDTH , 8 ) ;
- Right = TRUE;
- Text [ en-US ] = "Po~rt" ;
- };
- Edit ED_SOCKS_PORT
- {
- Pos = MAP_APPFONT ( ED_PORT_COL , GB_TYPES_TOP + 75 ) ;
- Size = MAP_APPFONT ( ED_PORT_WIDTH , 12 ) ;
- Border = TRUE ;
- };
- FixedText FT_NOPROXYFOR
- {
- Pos = MAP_APPFONT ( 12 , GB_TYPES_TOP + 93 ) ;
- Size = MAP_APPFONT ( 50 , 8 ) ;
- Text [ en-US ] = "~No proxy for:" ;
- };
- Edit ED_NOPROXYFOR
- {
- Pos = MAP_APPFONT ( 65 , GB_TYPES_TOP + 91 ) ;
- Size = MAP_APPFONT ( 123 , 12 ) ;
- Border = TRUE ;
- };
- FixedText ED_NOPROXYDESC
- {
- Pos = MAP_APPFONT ( 190 , GB_TYPES_TOP + 93 ) ;
- Size = MAP_APPFONT ( 56 , 8 ) ;
- Text [ en-US ] = "Separator ;" ;
- };
- FixedLine GB_DNS
- {
- Pos = MAP_APPFONT( 6, 100 );
- Size = MAP_APPFONT( 248, 8 );
- Text [ en-US ] = "DNS server" ;
- };
- RadioButton RB_DNS_AUTO
- {
- Pos = MAP_APPFONT( 12, 111 );
- Size = MAP_APPFONT( 236, 10 );
- Text [ en-US ] = "~Automatic" ;
- };
- RadioButton RB_DNS_MANUAL
- {
- Pos = MAP_APPFONT( 12, 124 );
- Size = MAP_APPFONT( 75, 10 );
- Text [ en-US ] = "~Manual" ;
- };
- PatternField ED_DNS
- {
- Pos = MAP_APPFONT( 90, 126 );
- Size = MAP_APPFONT( 66, 12 );
- Border = TRUE ;
- LiteralMask = " . . . " ;
- EditMask = "nnnLnnnLnnnLnnn" ;
- StrictFormat = TRUE ;
- };
- String ST_MSG_255_0
- {
- Text [ en-US ] = "is not a valid entry for this field. Please specify a value between 0 and 255." ;
- };
- String ST_MSG_255_1
- {
- Text [ en-US ] = "is not a valid entry for this field. Please specify a value between 1 and 255." ;
- };
-};
-/************************************************************************/
-/* */
-/* Suche */
-/* */
-/************************************************************************/
-TabPage RID_SVXPAGE_INET_SEARCH
-{
- HelpId = HID_OPTIONS_SEARCH ;
- OutputSize = TRUE ;
- Size = MAP_APPFONT ( 260 , 185 ) ;
- SVLook = TRUE ;
- Hide = TRUE ;
- Text [ en-US ] = "Search" ;
-
- #define GB_SEARCH_LEFT 6
- #define GB_SEARCH_TOP 3
- FixedLine GB_SEARCH
- {
- Pos = MAP_APPFONT ( GB_SEARCH_LEFT , GB_SEARCH_TOP ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "Search in" ;
- };
- ListBox LB_SEARCH
- {
- Pos = MAP_APPFONT ( 12 , GB_SEARCH_TOP + 11 ) ;
- Size = MAP_APPFONT ( 39 , 120 ) ;
- Border = TRUE ;
- AutoHScroll = TRUE;
- };
- #define LABEL_START_XPOS (GB_SEARCH_LEFT + 6 + 39 + 5 )
- #define LABEL_LEN 64
- #define EDIT_START_XPOS (LABEL_START_XPOS + LABEL_LEN + 3)
- FixedText FT_SEARCH_NAME
- {
- Pos = MAP_APPFONT ( LABEL_START_XPOS , GB_SEARCH_TOP + 13 ) ;
- Size = MAP_APPFONT ( LABEL_LEN , 8 ) ;
- Text [ en-US ] = "~Name" ;
- };
- Edit ED_SEARCH_NAME
- {
- Pos = MAP_APPFONT ( EDIT_START_XPOS , GB_SEARCH_TOP + 11 ) ;
- Size = MAP_APPFONT ( 125 , 12 ) ;
- Border = TRUE ;
- };
- FixedText FT_SEARCH
- {
- Pos = MAP_APPFONT ( LABEL_START_XPOS , GB_SEARCH_TOP + 27 ) ;
- Size = MAP_APPFONT ( LABEL_LEN , 8 ) ;
- Text [ en-US ] = "Type" ;
- };
- RadioButton RB_AND
- {
- Pos = MAP_APPFONT ( EDIT_START_XPOS , GB_SEARCH_TOP + 26 ) ;
- Size = MAP_APPFONT ( 125 , 10 ) ;
- Check = TRUE ;
- Text [ en-US ] = "And" ;
- };
- RadioButton RB_OR
- {
- Pos = MAP_APPFONT ( EDIT_START_XPOS , GB_SEARCH_TOP + 39 ) ;
- Size = MAP_APPFONT ( 125 , 10 ) ;
- Text [ en-US ] = "~Or" ;
- };
- RadioButton RB_EXACT
- {
- Pos = MAP_APPFONT ( EDIT_START_XPOS , GB_SEARCH_TOP + 52 ) ;
- Size = MAP_APPFONT ( 125 , 10 ) ;
- Text [ en-US ] = "E~xact" ;
- };
- FixedText FT_URL
- {
- Pos = MAP_APPFONT ( LABEL_START_XPOS , GB_SEARCH_TOP + 67 ) ;
- Size = MAP_APPFONT ( LABEL_LEN , 8 ) ;
- Text [ en-US ] = "~Prefix" ;
- };
- Edit ED_URL
- {
- Pos = MAP_APPFONT ( EDIT_START_XPOS , GB_SEARCH_TOP + 65 ) ;
- Size = MAP_APPFONT ( 125 , 12 ) ;
- Border = TRUE ;
- };
- FixedText FT_POSTFIX
- {
- Pos = MAP_APPFONT ( LABEL_START_XPOS , GB_SEARCH_TOP + 82 ) ;
- Size = MAP_APPFONT ( LABEL_LEN , 8 ) ;
- Text [ en-US ] = "Su~ffix" ;
- };
- Edit ED_POSTFIX
- {
- Pos = MAP_APPFONT ( EDIT_START_XPOS , GB_SEARCH_TOP + 80 ) ;
- Size = MAP_APPFONT ( 125 , 12 ) ;
- Border = TRUE ;
- };
- FixedText FT_SEPARATOR
- {
- Pos = MAP_APPFONT ( LABEL_START_XPOS , GB_SEARCH_TOP + 97 ) ;
- Size = MAP_APPFONT ( LABEL_LEN , 8 ) ;
- Text [ en-US ] = "~Separator" ;
- };
- Edit ED_SEPARATOR
- {
- Pos = MAP_APPFONT ( EDIT_START_XPOS , GB_SEARCH_TOP + 95 ) ;
- Size = MAP_APPFONT ( 42 , 12 ) ;
- Border = TRUE ;
- };
- FixedText FT_CASE
- {
- Pos = MAP_APPFONT ( LABEL_START_XPOS, GB_SEARCH_TOP + 112 ) ;
- Size = MAP_APPFONT ( LABEL_LEN , 8 ) ;
- Text [ en-US ] = "~Case match" ;
- };
- ListBox ED_CASE
- {
- Pos = MAP_APPFONT ( EDIT_START_XPOS, GB_SEARCH_TOP + 110 ) ;
- Size = MAP_APPFONT ( 42 , 48 ) ;
- Border = TRUE ;
- DropDown = TRUE ;
- StringList [ en-US ] =
- {
- < "None" ; > ;
- < "Upper" ; > ;
- < "Lower" ; > ;
- };
- };
- PushButton PB_NEW
- {
- Pos = MAP_APPFONT ( 39 , GB_SEARCH_TOP + 131 + 6 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- Text [ en-US ] = "N~ew";
- };
- PushButton PB_ADD
- {
- Pos = MAP_APPFONT ( 92 , GB_SEARCH_TOP + 131 + 6 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- Text [ en-US ] = "~Add" ;
- };
- PushButton PB_CHANGE
- {
- Pos = MAP_APPFONT ( 145 , GB_SEARCH_TOP + 131 + 6 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- Text [ en-US ] = "~Modify" ;
- };
- PushButton PB_DELETE
- {
- Pos = MAP_APPFONT ( 198 , GB_SEARCH_TOP + 131 + 6 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- Text [ en-US ] = "~Delete" ;
- };
- String MSG_MODIFY
- {
- Text [ en-US ] = "Do you want to accept the current modification?";
- };
-};
-
-
-/************************************************************************/
-/* */
-/* Scripting */
-/* */
-/************************************************************************/
-
-TabPage RID_SVXPAGE_INET_SECURITY
-{
- OutputSize = TRUE ;
- Size = MAP_APPFONT( TP_WIDTH , TP_HEIGHT );
- SVLook = TRUE;
- Hide = TRUE;
- Text [ en-US ] = "Security";
- FixedLine FL_SEC_SECURITYOPTIONS
- {
- Pos = MAP_APPFONT( COL_0, ROW_0 );
- Size = MAP_APPFONT( COL_4-COL_0, RSC_CD_FIXEDLINE_HEIGHT );
- Text [ en-US ] = "Security options and warnings";
- };
- FixedText FI_SEC_SECURITYOPTIONS
- {
- Pos = MAP_APPFONT( COL_1, ROW_1 );
- Size = MAP_APPFONT( COL_2-COL_1, 3*RSC_CD_FIXEDLINE_HEIGHT );
- Wordbreak = TRUE;
- Text [ en-US ] = "Adjust security related options and define warnings for hidden information in documents.";
- };
- PushButton PB_SEC_SECURITYOPTIONS
- {
- Pos = MAP_APPFONT( COL_3, ROW_2a );
- Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
- Text [ en-US ] = "Options...";
- };
- FixedLine FL_SEC_PASSWORDS
- {
- Pos = MAP_APPFONT( COL_0, ROW_2 - 2 );
- Size = MAP_APPFONT( COL_4-COL_0, RSC_CD_FIXEDLINE_HEIGHT );
- Text [ en-US ] = "Passwords for web connections";
- };
- CheckBox CB_SEC_SAVEPASSWORDS
- {
- Pos = MAP_APPFONT( COL_1, ROW_3 - 4 );
- Size = MAP_APPFONT( COL_2-COL_1, 16 );
- Wordbreak = TRUE;
- Text [ en-US ] = "Persistently save passwords for web connections";
- };
- PushButton PB_SEC_CONNECTIONS
- {
- Pos = MAP_APPFONT( COL_3, ROW_3-1 );
- Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
- Text [ en-US ] = "Connections...";
- };
- CheckBox CB_SEC_MASTERPASSWORD
- {
- Pos = MAP_APPFONT( COL_1a, ROW_4 );
- Size = MAP_APPFONT( COL_2-COL_1a, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "Protected by a master password (recommended)";
- };
- FixedText FI_SEC_MASTERPASSWORD
- {
- Pos = MAP_APPFONT( COL_1a, ROW_4a );
- Size = MAP_APPFONT( COL_2-COL_1a, 4*RSC_CD_FIXEDLINE_HEIGHT );
- Wordbreak = TRUE;
- Text [ en-US ] = "Passwords are protected by a master password. You will be asked to enter it once per session, if %PRODUCTNAME retrieves a password from the protected password list.";
- };
- PushButton PB_SEC_MASTERPASSWORD
- {
- Pos = MAP_APPFONT( COL_3, ROW_4a );
- Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
- Text [ en-US ] = "Master Password...";
- };
- FixedLine FL_SEC_MACROSEC
- {
- Pos = MAP_APPFONT( COL_0, ROW_5 );
- Size = MAP_APPFONT( COL_4-COL_0, RSC_CD_FIXEDLINE_HEIGHT );
- Text [ en-US ] = "Macro security";
- };
- FixedText FI_SEC_MACROSEC
- {
- Pos = MAP_APPFONT( COL_1, ROW_6 );
- Size = MAP_APPFONT( COL_2-COL_1, 3*RSC_CD_FIXEDLINE_HEIGHT );
- Wordbreak = TRUE;
- Text [ en-US ] = "Adjust the security level for executing macros and specify trusted macro developers.";
- };
- PushButton PB_SEC_MACROSEC
- {
- Pos = MAP_APPFONT( COL_3, ROW_6-2 );
- Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
- Text [ en-US ] = "Macro Security...";
- };
- FixedLine FL_SEC_FILESHARING
- {
- Pos = MAP_APPFONT( COL_0, ROW_7 );
- Size = MAP_APPFONT( COL_4-COL_0, RSC_CD_FIXEDLINE_HEIGHT );
- Text [ en-US ] = "File sharing options for this document";
- };
- CheckBox CB_SEC_RECOMMREADONLY
- {
- Pos = MAP_APPFONT( COL_1, ROW_8 );
- Size = MAP_APPFONT( COL_2-COL_1, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "Open this document in read-only mode";
- };
- CheckBox CB_SEC_RECORDCHANGES
- {
- Pos = MAP_APPFONT( COL_1, ROW_9 );
- Size = MAP_APPFONT( COL_2-COL_1, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "Record changes";
- };
- PushButton PB_SEC_PROTRECORDS
- {
- Pos = MAP_APPFONT( COL_3, ROW_9-2 );
- Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
- };
- String STR_SEC_PROTRECORDS
- {
- Text [ en-US ] = "Protect...";
- };
- String STR_SEC_UNPROTRECORDS
- {
- Text [ en-US ] = "Unprotect...";
- };
- String STR_SEC_NOPASSWDSAVE
- {
- Text [ en-US ] = "Disabling the function to persistently store passwords deletes the list of passwords stored and resets the master password.\n\nDo you want to delete password list and reset master password?";
- };
-};
-
-ErrorBox RID_SVXERR_OPT_PROXYPORTS
-{
- BUTTONS = WB_OK ;
- Message [ en-US ] = "Invalid value!\n\nThe maximum value for a port number is 65535.";
-};
-
-// RID_SVXDLG_OPT_JAVASCRIPT_DISABLE -----------------------------------------
-
-ModalDialog RID_SVXDLG_OPT_JAVASCRIPT_DISABLE
-{
- OutputSize = TRUE;
- Size = MAP_APPFONT( 150, 81 );
- Moveable = TRUE;
- Closeable = TRUE;
- FixedImage IMG_JSCPT_WARNING
- {
- Pos = MAP_APPFONT( 6, 6 );
- Size = MAP_APPFONT( 30, 30 );
- };
- FixedText FT_JSCPT_WARNING
- {
- Pos = MAP_APPFONT( 39, 6 );
- Size = MAP_APPFONT( 195, 36 );
- WordBreak = TRUE;
- Text [ en-US ] = "Please note that with Java\nyou disable Javascript as well.\n\nDo you still want to disable Java?";
- };
- CheckBox CB_JSCPT_DISABLE
- {
- Pos = MAP_APPFONT( 39, 45 );
- Size = MAP_APPFONT( 195, 12 );
- Hide = TRUE;
- Text [ en-US ] = "~Don't show warning again";
- };
- OKButton BTN_JSCPT_YES
- {
- Pos = MAP_APPFONT( 41, 61 );
- Size = MAP_APPFONT( 50, 14 );
- };
- CancelButton BTN_JSCPT_NO
- {
- Pos = MAP_APPFONT( 94, 61 );
- Size = MAP_APPFONT( 50, 14 );
- DefButton = TRUE;
- };
-};
-
-// *******************************************************************
-
-TabPage RID_SVXPAGE_INET_MAIL
-{
- HelpID = HID_OPTIONS_MAIL ;
- SVLook = TRUE ;
- Size = MAP_APPFONT ( 260 , 185 ) ;
- Hide = TRUE ;
-
- FixedLine FL_MAIL
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "Sending documents as e-mail attachments";
- };
-
- FixedImage FI_MAILERURL
- {
- Pos = MAP_APPFONT ( 5 , 21 ) ;
- Size = MAP_APPFONT ( 6 , 6 ) ;
- Hide = TRUE;
- };
-
- FixedText FT_MAILERURL
- {
- Pos = MAP_APPFONT ( 14 , 20 ) ;
- Size = MAP_APPFONT ( 43 , 8 ) ;
- Text [ en-US ] = "~E-mail program";
- };
-
- Edit ED_MAILERURL
- {
- Pos = MAP_APPFONT ( 60 , 18 ) ;
- Size = MAP_APPFONT ( 171 , 12 ) ;
- Border = TRUE;
- };
-
- PushButton PB_MAILERURL
- {
- Pos = MAP_APPFONT ( 234 , 17 ) ;
- Size = MAP_APPFONT ( 14 , 14 ) ;
- Text = "..." ;
- };
-
- String STR_DEFAULT_FILENAME
- {
- Text [ en-US ] = "All files (*.*)" ;
- };
-};
-
- // ******************************************************************* EOF
-
diff --git a/svx/source/options/optjsearch.src b/svx/source/options/optjsearch.src
deleted file mode 100644
index 8c5c6259f6..0000000000
--- a/svx/source/options/optjsearch.src
+++ /dev/null
@@ -1,223 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optjsearch.src,v $
- * $Revision: 1.40 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
-
-#include <helpid.hrc>
-#include <svx/dialogs.hrc>
-
-#include "optjsearch.hrc"
-
-
-TabPage RID_SVXPAGE_JSEARCH_OPTIONS
-{
- HelpId = HID_SVXPAGE_JSEARCH_OPTIONS ;
- SVLook = TRUE ;
- Hide = TRUE ;
- Size = MAP_APPFONT ( 260 , 185 ) ;
- FixedLine FL_TREAT_AS_EQUAL
- {
- Pos = MAP_APPFONT( 6, 3 );
- Size = MAP_APPFONT( 248, 8 );
- Text [ en-US ] = "Treat as equal";
- };
- CheckBox CB_MATCH_CASE
- {
- Pos = MAP_APPFONT ( 12 , 14 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "~uppercase/lowercase";
- };
- CheckBox CB_MATCH_FULL_HALF_WIDTH
- {
- Pos = MAP_APPFONT ( 12 , 28 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "~full-width/half-width forms";
- };
- CheckBox CB_MATCH_HIRAGANA_KATAKANA
- {
- Pos = MAP_APPFONT ( 12 , 42 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "~hiragana/katakana";
- };
- CheckBox CB_MATCH_CONTRACTIONS
- {
- Pos = MAP_APPFONT ( 12 , 56 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "~contractions (yo-on, sokuon)";
- };
- CheckBox CB_MATCH_MINUS_DASH_CHOON
- {
- Pos = MAP_APPFONT ( 12 , 70 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "~minus/dash/cho-on";
- };
- CheckBox CB_MATCH_REPEAT_CHAR_MARKS
- {
- Pos = MAP_APPFONT ( 12 , 84 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "'re~peat character' marks";
- };
- CheckBox CB_MATCH_VARIANT_FORM_KANJI
- {
- Pos = MAP_APPFONT ( 12 , 98 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "~variant-form kanji (itaiji)";
- };
- CheckBox CB_MATCH_OLD_KANA_FORMS
- {
- Pos = MAP_APPFONT ( 12 , 112) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "~old Kana forms";
- };
- CheckBox CB_MATCH_DIZI_DUZU
- {
- Pos = MAP_APPFONT ( 136 , 14 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "~di/zi, du/zu";
- };
- CheckBox CB_MATCH_BAVA_HAFA
- {
- Pos = MAP_APPFONT ( 136 , 28 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "~ba/va, ha/fa";
- };
- CheckBox CB_MATCH_TSITHICHI_DHIZI
- {
- Pos = MAP_APPFONT ( 136 , 42 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "~tsi/thi/chi, dhi/zi";
- };
- CheckBox CB_MATCH_HYUFYU_BYUVYU
- {
- Pos = MAP_APPFONT ( 136 , 56 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "h~yu/fyu, byu/vyu";
- };
- CheckBox CB_MATCH_SESHE_ZEJE
- {
- Pos = MAP_APPFONT ( 136 , 70 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "~se/she, ze/je";
- };
- CheckBox CB_MATCH_IAIYA
- {
- Pos = MAP_APPFONT ( 136 , 84 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "~ia/iya (piano/piyano)";
- };
- CheckBox CB_MATCH_KIKU
- {
- Pos = MAP_APPFONT ( 136 , 98 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "~ki/ku (tekisuto/tekusuto)";
- };
- CheckBox CB_MATCH_PROLONGED_SOUNDMARK
- {
- Pos = MAP_APPFONT ( 136 , 112 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "Prolon~ged vowels (ka-/kaa)";
- };
- FixedLine FL_IGNORE
- {
- Pos = MAP_APPFONT( 6, 128 );
- Size = MAP_APPFONT( 248, 8 );
- Text [ en-US ] = "Ignore";
- };
- CheckBox CB_IGNORE_PUNCTUATION
- {
- Pos = MAP_APPFONT ( 12 , 139 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "Pu~nctuation characters";
- };
- CheckBox CB_IGNORE_WHITESPACES
- {
- Pos = MAP_APPFONT ( 12 , 153 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "~Whitespace characters";
- };
- CheckBox CB_IGNORE_MIDDLE_DOT
- {
- Pos = MAP_APPFONT ( 136 , 139 ) ;
- Size = MAP_APPFONT ( 118 , 10 ) ;
- Text [ en-US ] = "Midd~le dots";
- };
- Text [ en-US ] = "Searching in Japanese";
-};
-// end TabPage
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/svx/source/options/optlingu.cxx b/svx/source/options/optlingu.cxx
deleted file mode 100644
index 41eebdbbbb..0000000000
--- a/svx/source/options/optlingu.cxx
+++ /dev/null
@@ -1,2563 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optlingu.cxx,v $
- * $Revision: 1.68 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
-
-// MARKER(update_precomp.py): autogen include statement, do not remove
-#include "precompiled_svx.hxx"
-
-// include ---------------------------------------------------------------
-
-#define _SVSTDARR_STRINGSDTOR
-#define _SVSTDARR_USHORTS
-//#ifndef _SVSTDARR_HXX
-//#include <svtools/svstdarr.hxx>
-//#endif
-#include <vcl/msgbox.hxx>
-#include <vcl/field.hxx>
-#include <vcl/fixed.hxx>
-#include <tools/shl.hxx>
-#include <tools/dynary.hxx>
-#include <i18npool/mslangid.hxx>
-//#include <svtools/svarray.hxx>
-#include <svtools/lingucfg.hxx>
-#include <unolingu.hxx>
-#include <dlgutil.hxx>
-#include <linguistic/lngprops.hxx>
-#include <linguistic/misc.hxx>
-#include <unolingu.hxx>
-#include <sfx2/sfxuno.hxx>
-#include <sfx2/dispatch.hxx>
-#include <tools/urlobj.hxx>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <comphelper/processfactory.hxx>
-#include <com/sun/star/linguistic2/XSpellChecker.hpp>
-#include <com/sun/star/linguistic2/XProofreader.hpp>
-#include <com/sun/star/linguistic2/XHyphenator.hpp>
-#include <com/sun/star/linguistic2/XThesaurus.hpp>
-#include <com/sun/star/linguistic2/XAvailableLocales.hpp>
-#include <com/sun/star/lang/XServiceDisplayName.hpp>
-#include <com/sun/star/linguistic2/DictionaryListEventFlags.hpp>
-#include <com/sun/star/linguistic2/DictionaryListEvent.hpp>
-#include <com/sun/star/linguistic2/XDictionaryListEventListener.hpp>
-#include <com/sun/star/linguistic2/XDictionaryList.hpp>
-#include <com/sun/star/frame/XStorable.hpp>
-#include <com/sun/star/ucb/CommandAbortedException.hpp>
-#include <com/sun/star/system/XSystemShellExecute.hpp>
-#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
-#include <svtools/extendedsecurityoptions.hxx>
-#include <svtools/svlbox.hxx>
-#include <svtools/eitem.hxx>
-#include <svtools/intitem.hxx>
-#include <sfx2/viewfrm.hxx>
-#include <vcl/svapp.hxx>
-#define _SVX_OPTLINGU_CXX
-
-#include "optlingu.hrc"
-
-#include <svx/svxdlg.hxx>
-#include "optitems.hxx"
-#include <svx/optlingu.hxx>
-#include <svx/dialmgr.hxx>
-#include <svx/dialogs.hrc>
-#include "helpid.hrc"
-
-#include <ucbhelper/content.hxx>
-
-#include <vector>
-#include <map>
-
-
-using namespace ::ucbhelper;
-using namespace ::rtl;
-using namespace ::com::sun::star;
-using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::linguistic2;
-using namespace ::com::sun::star::beans;
-namespace css = com::sun::star;
-
-#define C2U(cChar) OUString::createFromAscii(cChar)
-#define SVX_MAX_USERDICTS 20
-#define CBCOL_FIRST 0
-#define CBCOL_SECOND 1
-#define CBCOL_BOTH 2
-
-static const sal_Char cSpell[] = SN_SPELLCHECKER;
-static const sal_Char cGrammar[] = SN_GRAMMARCHECKER;
-static const sal_Char cHyph[] = SN_HYPHENATOR;
-static const sal_Char cThes[] = SN_THESAURUS;
-
-// static ----------------------------------------------------------------
-
-static Sequence< INT16 > lcl_LocaleSeqToLangSeq( const Sequence< Locale > &rSeq )
-{
- INT32 nLen = rSeq.getLength();
- Sequence< INT16 > aRes( nLen );
- INT16 *pRes = aRes.getArray();
- const Locale *pSeq = rSeq.getConstArray();
- for (INT32 i = 0; i < nLen; ++i)
- {
- pRes[i] = SvxLocaleToLanguage( pSeq[i] );
- }
- return aRes;
-}
-
-
-static BOOL lcl_SeqHasLang( const Sequence< INT16 > &rSeq, INT16 nLang )
-{
- INT32 nLen = rSeq.getLength();
- const INT16 *pLang = rSeq.getConstArray();
- INT32 nPos = -1;
- for (INT32 i = 0; i < nLen && nPos < 0; ++i)
- {
- if (nLang == pLang[i])
- nPos = i;
- }
- return nPos < 0 ? FALSE : TRUE;
-}
-
-
-static INT32 lcl_SeqGetEntryPos(
- const Sequence< OUString > &rSeq, const OUString &rEntry )
-{
- INT32 i;
- INT32 nLen = rSeq.getLength();
- const OUString *pItem = rSeq.getConstArray();
- for (i = 0; i < nLen; ++i)
- {
- if (rEntry == pItem[i])
- break;
- }
- return i < nLen ? i : -1;
-}
-
-static void lcl_OpenURL( const ::rtl::OUString& rURL )
-{
- if ( rURL.getLength() > 0 )
- {
- try
- {
- uno::Reference< lang::XMultiServiceFactory > xSMGR =
- ::comphelper::getProcessServiceFactory();
- uno::Reference< css::system::XSystemShellExecute > xSystemShell(
- xSMGR->createInstance( ::rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.system.SystemShellExecute" ) ) ),
- uno::UNO_QUERY_THROW );
- if ( xSystemShell.is() )
- xSystemShell->execute( rURL, ::rtl::OUString(), css::system::SystemShellExecuteFlags::DEFAULTS );
- }
- catch( const uno::Exception& e )
- {
- OSL_TRACE( "Caught exception: %s\n thread terminated.\n",
- rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr());
- }
- }
-}
-
-/*--------------------------------------------------
---------------------------------------------------*/
-
-static const sal_uInt16 nNameLen = 8;
-
-static sal_uInt16 pRanges[] =
-{
- SID_ATTR_SPELL,
- SID_ATTR_SPELL,
- 0
-};
-
-sal_Bool KillFile_Impl( const String& rURL )
-{
- sal_Bool bRet = sal_True;
- try
- {
- Content aCnt( rURL, uno::Reference< ::com::sun::star::ucb::XCommandEnvironment > () );
- aCnt.executeCommand( OUString::createFromAscii( "delete" ), makeAny( sal_Bool( sal_True ) ) );
- }
- catch( ::com::sun::star::ucb::CommandAbortedException& )
- {
- DBG_ERRORFILE( "KillFile: CommandAbortedException" );
- bRet = sal_False;
- }
- catch( ... )
- {
- DBG_ERRORFILE( "KillFile: Any other exception" );
- bRet = sal_False;
- }
-
- return bRet;
-}
-/* -----------------------------27.11.00 14:07--------------------------------
-
- ---------------------------------------------------------------------------*/
-// 0x 0p 0t 0c nn
-// p: 1 -> parent
-// t: 1 -> spell, 2 -> hyph, 3 -> thes, 4 -> grammar
-// c: 1 -> checked 0 -> unchecked
-// n: index
-
-#define TYPE_SPELL (BYTE)1
-#define TYPE_GRAMMAR (BYTE)2
-#define TYPE_HYPH (BYTE)3
-#define TYPE_THES (BYTE)4
-
-class ModuleUserData_Impl
-{
- BOOL bParent;
- BOOL bIsChecked;
- BYTE nType;
- BYTE nIndex;
- String sImplName;
-
-public:
- ModuleUserData_Impl( String sImpName, BOOL bIsParent, BOOL bChecked, BYTE nSetType, BYTE nSetIndex ) :
- bParent(bIsParent),
- bIsChecked(bChecked),
- nType(nSetType),
- nIndex(nSetIndex),
- sImplName(sImpName)
- {
- }
- BOOL IsParent() const {return bParent;}
- BYTE GetType() const {return nType;}
- BOOL IsChecked() const {return bIsChecked;}
- BYTE GetIndex() const {return nIndex;}
- void SetIndex(BYTE nSet) {nIndex = nSet;}
- const String& GetImplName() const {return sImplName;}
-
-};
-
-/*--------------------------------------------------
---------------------------------------------------*/
-//
-// User for user-dictionaries (XDictionary interface)
-//
-class DicUserData
-{
- ULONG nVal;
-
-public:
- DicUserData( ULONG nUserData ) : nVal( nUserData ) {}
- DicUserData( USHORT nEID,
- BOOL bChecked, BOOL bEditable, BOOL bDeletable );
-
- ULONG GetUserData() const { return nVal; }
- USHORT GetEntryId() const { return (USHORT)(nVal >> 16); }
- BOOL IsChecked() const { return (BOOL)(nVal >> 8) & 0x01; }
- BOOL IsEditable() const { return (BOOL)(nVal >> 9) & 0x01; }
- BOOL IsDeletable() const { return (BOOL)(nVal >> 10) & 0x01; }
-
- void SetChecked( BOOL bVal );
-};
-
-
-DicUserData::DicUserData(
- USHORT nEID,
- BOOL bChecked, BOOL bEditable, BOOL bDeletable )
-{
- DBG_ASSERT( nEID < 65000, "Entry Id out of range" );
- nVal = ((ULONG)(0xFFFF & nEID) << 16) |
- ((ULONG)(bChecked ? 1 : 0) << 8) |
- ((ULONG)(bEditable ? 1 : 0) << 9) |
- ((ULONG)(bDeletable ? 1 : 0) << 10);
-}
-
-
-void DicUserData::SetChecked( BOOL bVal )
-{
- nVal &= ~(1UL << 8);
- nVal |= (ULONG)(bVal ? 1 : 0) << 8;
-}
-
-
-// class BrwString_Impl -------------------------------------------------
-
-void lcl_SetCheckButton( SvLBoxEntry* pEntry, BOOL bCheck )
-{
- SvLBoxButton* pItem = (SvLBoxButton*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXBUTTON));
-
- DBG_ASSERT(pItem,"SetCheckButton:Item not found");
- if (((SvLBoxItem*)pItem)->IsA() == SV_ITEM_ID_LBOXBUTTON)
- {
- if (bCheck)
- pItem->SetStateChecked();
- else
- pItem->SetStateUnchecked();
- //InvalidateEntry( pEntry );
- }
-}
-
-
-class BrwStringDic_Impl : public SvLBoxString
-{
-public:
-
- BrwStringDic_Impl( SvLBoxEntry* pEntry, USHORT nFlags,
- const String& rStr ) : SvLBoxString( pEntry, nFlags, rStr ) {}
-
- virtual void Paint( const Point& rPos, SvLBox& rDev, USHORT nFlags,
- SvLBoxEntry* pEntry);
-};
-
-void BrwStringDic_Impl::Paint( const Point& rPos, SvLBox& rDev, USHORT,
- SvLBoxEntry* pEntry )
-{
- ModuleUserData_Impl* pData = (ModuleUserData_Impl*)pEntry->GetUserData();
- Point aPos(rPos);
- Font aOldFont( rDev.GetFont());
- if(pData->IsParent())
- {
- Font aFont( aOldFont );
- aFont.SetWeight( WEIGHT_BOLD );
- rDev.SetFont( aFont );
- aPos.X() = 0;
- }
- else
- aPos.X() += 5;
- rDev.DrawText( aPos, GetText() );
- rDev.SetFont( aOldFont );
-}
-
-
-/*--------------------------------------------------
---------------------------------------------------*/
-
-class OptionsBreakSet : public ModalDialog
-{
- OKButton aOKPB;
- CancelButton aCancelPB;
- FixedLine aValFL;
- NumericField aValNF;
-
-public:
- OptionsBreakSet(Window* pParent, int nRID) :
- ModalDialog(pParent, SVX_RES(RID_SVXDLG_LNG_ED_NUM_PREBREAK )),
- aOKPB (this, SVX_RES(BT_OK_PREBREAK)),
- aCancelPB (this, SVX_RES(BT_CANCEL_PREBREAK)),
- aValFL (this, SVX_RES(FL_NUMVAL_PREBREAK)),
- aValNF (this, SVX_RES(ED_PREBREAK))
- {
- DBG_ASSERT( STR_NUM_PRE_BREAK_DLG == nRID ||
- STR_NUM_POST_BREAK_DLG == nRID ||
- STR_NUM_MIN_WORDLEN_DLG == nRID, "unexpected RID" );
-
- if (nRID != -1)
- aValFL.SetText( String( SVX_RES(nRID) ) );
- FreeResource();
- }
-
- NumericField& GetNumericFld() { return aValNF; }
-};
-
-
-/*--------------------------------------------------
- Entry IDs for options listbox of dialog
---------------------------------------------------*/
-
-enum EID_OPTIONS
-{
- EID_SPELL_AUTO,
- EID_GRAMMAR_AUTO,
- EID_CAPITAL_WORDS,
- EID_WORDS_WITH_DIGITS,
- EID_CAPITALIZATION,
- EID_SPELL_SPECIAL,
- EID_NUM_MIN_WORDLEN,
- EID_NUM_PRE_BREAK,
- EID_NUM_POST_BREAK,
- EID_HYPH_AUTO,
- EID_HYPH_SPECIAL
-};
-
-//! this array must have an entry for every value of EID_OPTIONS.
-// It is used to get the respective property name.
-static const char * aEidToPropName[] =
-{
- UPN_IS_SPELL_AUTO, // EID_SPELL_AUTO
- UPN_IS_GRAMMAR_AUTO, // EID_GRAMMAR_AUTO
- UPN_IS_SPELL_UPPER_CASE, // EID_CAPITAL_WORDS
- UPN_IS_SPELL_WITH_DIGITS, // EID_WORDS_WITH_DIGITS
- UPN_IS_SPELL_CAPITALIZATION, // EID_CAPITALIZATION
- UPN_IS_SPELL_SPECIAL, // EID_SPELL_SPECIAL
- UPN_HYPH_MIN_WORD_LENGTH, // EID_NUM_MIN_WORDLEN,
- UPN_HYPH_MIN_LEADING, // EID_NUM_PRE_BREAK
- UPN_HYPH_MIN_TRAILING, // EID_NUM_POST_BREAK
- UPN_IS_HYPH_AUTO, // EID_HYPH_AUTO
- UPN_IS_HYPH_SPECIAL // EID_HYPH_SPECIAL
-};
-
-
-static inline String lcl_GetPropertyName( EID_OPTIONS eEntryId )
-{
- DBG_ASSERT( (unsigned int) eEntryId < sizeof(aEidToPropName) / sizeof(aEidToPropName[0]), "index out of range" );
- return String::CreateFromAscii( aEidToPropName[ (int) eEntryId ] );
-}
-
-// class OptionsUserData -------------------------------------------------
-
-class OptionsUserData
-{
- ULONG nVal;
-
- void SetModified();
-
-public:
- OptionsUserData( ULONG nUserData ) : nVal( nUserData ) {}
- OptionsUserData( USHORT nEID,
- BOOL bHasNV, USHORT nNumVal,
- BOOL bCheckable, BOOL bChecked );
-
- ULONG GetUserData() const { return nVal; }
- USHORT GetEntryId() const { return (USHORT)(nVal >> 16); }
- BOOL HasNumericValue() const { return (BOOL)(nVal >> 10) & 0x01; }
- USHORT GetNumericValue() const { return (USHORT)(nVal & 0xFF); }
- BOOL IsChecked() const { return (BOOL)(nVal >> 8) & 0x01; }
- BOOL IsCheckable() const { return (BOOL)(nVal >> 9) & 0x01; }
- BOOL IsModified() const { return (BOOL)(nVal >> 11) & 0x01; }
-
- void SetChecked( BOOL bVal );
- void SetNumericValue( BYTE nNumVal );
-};
-
-OptionsUserData::OptionsUserData( USHORT nEID,
- BOOL bHasNV, USHORT nNumVal,
- BOOL bCheckable, BOOL bChecked )
-{
- DBG_ASSERT( nEID < 65000, "Entry Id out of range" );
- DBG_ASSERT( nNumVal < 256, "value out of range" );
- nVal = ((ULONG)(0xFFFF & nEID) << 16) |
- ((ULONG)(bHasNV ? 1 : 0) << 10) |
- ((ULONG)(bCheckable ? 1 : 0) << 9) |
- ((ULONG)(bChecked ? 1 : 0) << 8) |
- ((ULONG)(0xFF & nNumVal));
-}
-
-void OptionsUserData::SetChecked( BOOL bVal )
-{
- if (IsCheckable() && (IsChecked() != bVal))
- {
- nVal &= ~(1UL << 8);
- nVal |= (ULONG)(bVal ? 1 : 0) << 8;
- SetModified();
- }
-}
-
-void OptionsUserData::SetNumericValue( BYTE nNumVal )
-{
-// DBG_ASSERT( nNumVal < 256, "value out of range" );
- if (HasNumericValue() && (GetNumericValue() != nNumVal))
- {
- nVal &= 0xffffff00;
- nVal |= (nNumVal);
- SetModified();
- }
-}
-
-void OptionsUserData::SetModified()
-{
- nVal |= (ULONG)1 << 11;
-}
-
-// class BrwString_Impl -------------------------------------------------
-
-class BrwString_Impl : public SvLBoxString
-{
-public:
-
- BrwString_Impl( SvLBoxEntry* pEntry, USHORT nFlags,
- const String& rStr ) : SvLBoxString( pEntry, nFlags, rStr ) {}
-
- virtual void Paint( const Point& rPos, SvLBox& rDev, USHORT nFlags,
- SvLBoxEntry* pEntry);
-};
-
-void BrwString_Impl::Paint( const Point& rPos, SvLBox& rDev, USHORT,
- SvLBoxEntry* pEntry )
-{
- Point aPos(rPos);
- aPos.X() += 20;
- rDev.DrawText( aPos, GetText() );
- if(pEntry->GetUserData())
- {
- Point aNewPos(aPos);
- aNewPos.X() += rDev.GetTextWidth(GetText());
- Font aOldFont( rDev.GetFont());
- Font aFont( aOldFont );
- aFont.SetWeight( WEIGHT_BOLD );
-
-// BOOL bFett = TRUE;
-// USHORT nPos = 0;
- //??? das untere byte aus dem user data in string wandeln
- OptionsUserData aData( (ULONG) pEntry->GetUserData() );
- if(aData.HasNumericValue())
- {
- String sTxt( ' ' );
- sTxt += String::CreateFromInt32( aData.GetNumericValue() );
- rDev.SetFont( aFont );
- rDev.DrawText( aNewPos, sTxt );
- }
-
-// if( STRING_NOTFOUND != nPos )
-// aNewPos.X() += rDev.GetTextWidth( sTxt );
-
- rDev.SetFont( aOldFont );
- }
-}
-
-// ServiceInfo_Impl ----------------------------------------------------
-
-struct ServiceInfo_Impl
-{
- OUString sDisplayName;
- OUString sSpellImplName;
- OUString sHyphImplName;
- OUString sThesImplName;
- OUString sGrammarImplName;
- uno::Reference< XSpellChecker > xSpell;
- uno::Reference< XHyphenator > xHyph;
- uno::Reference< XThesaurus > xThes;
- uno::Reference< XProofreader > xGrammar;
- BOOL bConfigured;
-
- ServiceInfo_Impl() : bConfigured(sal_False) {}
-};
-
-typedef std::vector< ServiceInfo_Impl > ServiceInfoArr;
-typedef std::map< INT16 /*LanguageType*/, Sequence< OUString > > LangImplNameTable;
-
-
-// SvxLinguData_Impl ----------------------------------------------------
-
-class SvxLinguData_Impl
-{
- //contains services and implementation names sorted by implementation names
- ServiceInfoArr aDisplayServiceArr;
- ULONG nDisplayServices;
-
- Sequence< Locale > aAllServiceLocales;
- LangImplNameTable aCfgSpellTable;
- LangImplNameTable aCfgHyphTable;
- LangImplNameTable aCfgThesTable;
- LangImplNameTable aCfgGrammarTable;
- uno::Reference< XMultiServiceFactory > xMSF;
- uno::Reference< XLinguServiceManager > xLinguSrvcMgr;
-
-
- sal_Bool AddRemove( Sequence< OUString > &rConfigured,
- const OUString &rImplName, BOOL bAdd );
-
-public:
- SvxLinguData_Impl();
- SvxLinguData_Impl( const SvxLinguData_Impl &rData );
- ~SvxLinguData_Impl();
-
- SvxLinguData_Impl & operator = (const SvxLinguData_Impl &rData);
-
- uno::Reference<XLinguServiceManager> & GetManager() { return xLinguSrvcMgr; }
-
- void SetChecked( const Sequence< OUString > &rConfiguredServices );
- void Reconfigure( const OUString &rDisplayName, BOOL bEnable );
-
- const Sequence<Locale> & GetAllSupportedLocales() { return aAllServiceLocales; }
-
- const LangImplNameTable & GetSpellTable() const { return aCfgSpellTable; }
- LangImplNameTable & GetSpellTable() { return aCfgSpellTable; }
- const LangImplNameTable & GetHyphTable() const { return aCfgHyphTable; }
- LangImplNameTable & GetHyphTable() { return aCfgHyphTable; }
- const LangImplNameTable & GetThesTable() const { return aCfgThesTable; }
- LangImplNameTable & GetThesTable() { return aCfgThesTable; }
- const LangImplNameTable & GetGrammarTable() const { return aCfgGrammarTable; }
- LangImplNameTable & GetGrammarTable() { return aCfgGrammarTable; }
-
- const ServiceInfoArr & GetDisplayServiceArray() const { return aDisplayServiceArr; }
- ServiceInfoArr & GetDisplayServiceArray() { return aDisplayServiceArr; }
-
- const ULONG & GetDisplayServiceCount() const { return nDisplayServices; }
- void SetDisplayServiceCount( ULONG nVal ) { nDisplayServices = nVal; }
-
- // returns the list of service implementation names for the specified
- // language and service (TYPE_SPELL, TYPE_HYPH, TYPE_THES) sorted in
- // the proper order for the SvxEditModulesDlg (the ones from the
- // configuration (keeping that order!) first and then the other ones.
- // I.e. the ones available but not configured in arbitrary order).
- // They available ones may contain names that do not(!) support that
- // language.
- Sequence< OUString > GetSortedImplNames( INT16 nLang, BYTE nType );
-
- ServiceInfo_Impl * GetInfoByImplName( const OUString &rSvcImplName );
-};
-
-
-INT32 lcl_SeqGetIndex( const Sequence< OUString > &rSeq, const OUString &rTxt )
-{
- INT32 nRes = -1;
- INT32 nLen = rSeq.getLength();
- const OUString *pString = rSeq.getConstArray();
- for (INT32 i = 0; i < nLen && nRes == -1; ++i)
- {
- if (pString[i] == rTxt)
- nRes = i;
- }
- return nRes;
-}
-
-
-Sequence< OUString > SvxLinguData_Impl::GetSortedImplNames( INT16 nLang, BYTE nType )
-{
- LangImplNameTable *pTable = 0;
- switch (nType)
- {
- case TYPE_SPELL : pTable = &aCfgSpellTable; break;
- case TYPE_HYPH : pTable = &aCfgHyphTable; break;
- case TYPE_THES : pTable = &aCfgThesTable; break;
- case TYPE_GRAMMAR : pTable = &aCfgGrammarTable; break;
- }
- Sequence< OUString > aRes;
- if (pTable->count( nLang ))
- aRes = (*pTable)[ nLang ]; // add configured services
- INT32 nIdx = aRes.getLength();
- DBG_ASSERT( (INT32) nDisplayServices >= nIdx, "size mismatch" );
- aRes.realloc( nDisplayServices );
- OUString *pRes = aRes.getArray();
-
- // add not configured services
- for (INT32 i = 0; i < (INT32) nDisplayServices; ++i)
- {
- const ServiceInfo_Impl &rInfo = aDisplayServiceArr[ i ];
- OUString aImplName;
- switch (nType)
- {
- case TYPE_SPELL : aImplName = rInfo.sSpellImplName; break;
- case TYPE_HYPH : aImplName = rInfo.sHyphImplName; break;
- case TYPE_THES : aImplName = rInfo.sThesImplName; break;
- case TYPE_GRAMMAR : aImplName = rInfo.sGrammarImplName; break;
- }
-
- if (aImplName.getLength() && (lcl_SeqGetIndex( aRes, aImplName) == -1)) // name not yet added
- {
- DBG_ASSERT( nIdx < aRes.getLength(), "index out of range" );
- if (nIdx < aRes.getLength())
- pRes[ nIdx++ ] = aImplName;
- }
- }
- // don't forget to put aRes back to its actual size just in case you allocated too much
- // since all of the names may have already been added
- // otherwise you get duplicate entries in the edit dialog
- aRes.realloc( nIdx );
- return aRes;
-}
-
-
-ServiceInfo_Impl * SvxLinguData_Impl::GetInfoByImplName( const OUString &rSvcImplName )
-{
- ServiceInfo_Impl* pInfo = 0;
- for (ULONG i = 0; i < nDisplayServices && !pInfo; ++i)
- {
- ServiceInfo_Impl &rTmp = aDisplayServiceArr[ i ];
- if (rTmp.sSpellImplName == rSvcImplName ||
- rTmp.sHyphImplName == rSvcImplName ||
- rTmp.sThesImplName == rSvcImplName ||
- rTmp.sGrammarImplName == rSvcImplName)
- pInfo = &rTmp;
- }
- return pInfo;
-}
-
-
-//-----------------------------------------------------------------------------
-
-void lcl_MergeLocales(Sequence< Locale >& aAllLocales, const Sequence< Locale >& rAdd)
-{
- const Locale* pAdd = rAdd.getConstArray();
- Sequence<Locale> aLocToAdd(rAdd.getLength());
- const Locale* pAllLocales = aAllLocales.getConstArray();
- Locale* pLocToAdd = aLocToAdd.getArray();
- sal_Int32 nFound = 0;
- sal_Int32 i;
- for(i = 0; i < rAdd.getLength(); i++)
- {
- sal_Bool bFound = sal_False;
- for(sal_Int32 j = 0; j < aAllLocales.getLength() && !bFound; j++)
- {
- bFound = pAdd[i].Language == pAllLocales[j].Language &&
- pAdd[i].Country == pAllLocales[j].Country;
- }
- if(!bFound)
- {
- pLocToAdd[nFound++] = pAdd[i];
- }
- }
- sal_Int32 nLength = aAllLocales.getLength();
- aAllLocales.realloc( nLength + nFound);
- Locale* pAllLocales2 = aAllLocales.getArray();
- for(i = 0; i < nFound; i++)
- pAllLocales2[nLength++] = pLocToAdd[i];
-}
-/* -----------------------------27.11.00 16:48--------------------------------
-
- ---------------------------------------------------------------------------*/
-void lcl_MergeDisplayArray(
- SvxLinguData_Impl &rData,
- const ServiceInfo_Impl &rToAdd )
-{
- ULONG nCnt = 0;
-
- ServiceInfoArr &rSvcInfoArr = rData.GetDisplayServiceArray();
- ULONG nEntries = rData.GetDisplayServiceCount();
-
- ServiceInfo_Impl* pEntry;
- for (ULONG i = 0; i < nEntries; ++i)
- {
- pEntry = &rSvcInfoArr[i];
- if (pEntry && pEntry->sDisplayName == rToAdd.sDisplayName)
- {
- if(rToAdd.xSpell.is())
- {
- DBG_ASSERT( !pEntry->xSpell.is() &&
- pEntry->sSpellImplName.getLength() == 0,
- "merge conflict" );
- pEntry->sSpellImplName = rToAdd.sSpellImplName;
- pEntry->xSpell = rToAdd.xSpell;
- }
- if(rToAdd.xGrammar.is())
- {
- DBG_ASSERT( !pEntry->xGrammar.is() &&
- pEntry->sGrammarImplName.getLength() == 0,
- "merge conflict" );
- pEntry->sGrammarImplName = rToAdd.sGrammarImplName;
- pEntry->xGrammar = rToAdd.xGrammar;
- }
- if(rToAdd.xHyph.is())
- {
- DBG_ASSERT( !pEntry->xHyph.is() &&
- pEntry->sHyphImplName.getLength() == 0,
- "merge conflict" );
- pEntry->sHyphImplName = rToAdd.sHyphImplName;
- pEntry->xHyph = rToAdd.xHyph;
- }
- if(rToAdd.xThes.is())
- {
- DBG_ASSERT( !pEntry->xThes.is() &&
- pEntry->sThesImplName.getLength() == 0,
- "merge conflict" );
- pEntry->sThesImplName = rToAdd.sThesImplName;
- pEntry->xThes = rToAdd.xThes;
- }
- return ;
- }
- ++nCnt;
- }
- rData.GetDisplayServiceArray().push_back( rToAdd );
- rData.SetDisplayServiceCount( nCnt + 1 );
-}
-/* -----------------------------26.11.00 18:07--------------------------------
-
- ---------------------------------------------------------------------------*/
-SvxLinguData_Impl::SvxLinguData_Impl() :
- nDisplayServices (0)
-{
- xMSF = ::comphelper::getProcessServiceFactory();
- uno::Reference < XInterface > xI = xMSF->createInstance(
- C2U( "com.sun.star.linguistic2.LinguServiceManager" ) );
- xLinguSrvcMgr = uno::Reference<XLinguServiceManager>(xI, UNO_QUERY);
- DBG_ASSERT(xLinguSrvcMgr.is(), "No linguistic service available!");
- if(xLinguSrvcMgr.is())
- {
- Locale aCurrentLocale;
- LanguageType eLang = Application::GetSettings().GetLanguage();
- SvxLanguageToLocale(aCurrentLocale, eLang);
- Sequence<Any> aArgs(2);//second arguments has to be empty!
- aArgs.getArray()[0] <<= SvxGetLinguPropertySet();
-
- //read spell checker
- Sequence< OUString > aSpellNames = xLinguSrvcMgr->getAvailableServices(
- C2U(cSpell), Locale() );
- const OUString* pSpellNames = aSpellNames.getConstArray();
-
- sal_Int32 nIdx;
- for(nIdx = 0; nIdx < aSpellNames.getLength(); nIdx++)
- {
- ServiceInfo_Impl aInfo;
- aInfo.sSpellImplName = pSpellNames[nIdx];
- aInfo.xSpell = uno::Reference<XSpellChecker>(
- xMSF->createInstanceWithArguments(aInfo.sSpellImplName, aArgs), UNO_QUERY);
-
- uno::Reference<XServiceDisplayName> xDispName(aInfo.xSpell, UNO_QUERY);
- if(xDispName.is())
- aInfo.sDisplayName = xDispName->getServiceDisplayName( aCurrentLocale );
-
- const Sequence< Locale > aLocales( aInfo.xSpell->getLocales() );
- //! suppress display of entries with no supported languages (see feature 110994)
- if (aLocales.getLength())
- {
- lcl_MergeLocales( aAllServiceLocales, aLocales );
- lcl_MergeDisplayArray( *this, aInfo );
- }
- }
-
- //read grammar checker
- Sequence< OUString > aGrammarNames = xLinguSrvcMgr->getAvailableServices(
- C2U(cGrammar), Locale() );
- const OUString* pGrammarNames = aGrammarNames.getConstArray();
- for(nIdx = 0; nIdx < aGrammarNames.getLength(); nIdx++)
- {
- ServiceInfo_Impl aInfo;
- aInfo.sGrammarImplName = pGrammarNames[nIdx];
- aInfo.xGrammar = uno::Reference<XProofreader>(
- xMSF->createInstanceWithArguments(aInfo.sGrammarImplName, aArgs), UNO_QUERY);
-
- uno::Reference<XServiceDisplayName> xDispName(aInfo.xGrammar, UNO_QUERY);
- if(xDispName.is())
- aInfo.sDisplayName = xDispName->getServiceDisplayName( aCurrentLocale );
-
- const Sequence< Locale > aLocales( aInfo.xGrammar->getLocales() );
- //! suppress display of entries with no supported languages (see feature 110994)
- if (aLocales.getLength())
- {
- lcl_MergeLocales( aAllServiceLocales, aLocales );
- lcl_MergeDisplayArray( *this, aInfo );
- }
- }
-
- //read hyphenator
- Sequence< OUString > aHyphNames = xLinguSrvcMgr->getAvailableServices(
- C2U(cHyph), Locale() );
- const OUString* pHyphNames = aHyphNames.getConstArray();
- for(nIdx = 0; nIdx < aHyphNames.getLength(); nIdx++)
- {
- ServiceInfo_Impl aInfo;
- aInfo.sHyphImplName = pHyphNames[nIdx];
- aInfo.xHyph = uno::Reference<XHyphenator>(
- xMSF->createInstanceWithArguments(aInfo.sHyphImplName, aArgs), UNO_QUERY);
-
- uno::Reference<XServiceDisplayName> xDispName(aInfo.xHyph, UNO_QUERY);
- if(xDispName.is())
- aInfo.sDisplayName = xDispName->getServiceDisplayName( aCurrentLocale );
-
- const Sequence< Locale > aLocales( aInfo.xHyph->getLocales() );
- //! suppress display of entries with no supported languages (see feature 110994)
- if (aLocales.getLength())
- {
- lcl_MergeLocales( aAllServiceLocales, aLocales );
- lcl_MergeDisplayArray( *this, aInfo );
- }
- }
-
- //read thesauri
- Sequence< OUString > aThesNames = xLinguSrvcMgr->getAvailableServices(
- C2U(cThes), Locale() );
- const OUString* pThesNames = aThesNames.getConstArray();
- for(nIdx = 0; nIdx < aThesNames.getLength(); nIdx++)
- {
- ServiceInfo_Impl aInfo;
- aInfo.sThesImplName = pThesNames[nIdx];
- aInfo.xThes = uno::Reference<XThesaurus>(
- xMSF->createInstanceWithArguments(aInfo.sThesImplName, aArgs), UNO_QUERY);
-
- uno::Reference<XServiceDisplayName> xDispName(aInfo.xThes, UNO_QUERY);
- if(xDispName.is())
- aInfo.sDisplayName = xDispName->getServiceDisplayName( aCurrentLocale );
-
- const Sequence< Locale > aLocales( aInfo.xThes->getLocales() );
- //! suppress display of entries with no supported languages (see feature 110994)
- if (aLocales.getLength())
- {
- lcl_MergeLocales( aAllServiceLocales, aLocales );
- lcl_MergeDisplayArray( *this, aInfo );
- }
- }
-
- Sequence< OUString > aCfgSvcs;
- const Locale* pAllLocales = aAllServiceLocales.getConstArray();
- for(sal_Int32 nLocale = 0; nLocale < aAllServiceLocales.getLength(); nLocale++)
- {
- INT16 nLang = SvxLocaleToLanguage( pAllLocales[nLocale] );
-
- aCfgSvcs = xLinguSrvcMgr->getConfiguredServices(C2U(cSpell), pAllLocales[nLocale]);
- SetChecked( aCfgSvcs );
- if (aCfgSvcs.getLength())
- aCfgSpellTable[ nLang ] = aCfgSvcs;
-
- aCfgSvcs = xLinguSrvcMgr->getConfiguredServices(C2U(cGrammar), pAllLocales[nLocale]);
- SetChecked( aCfgSvcs );
- if (aCfgSvcs.getLength())
- aCfgGrammarTable[ nLang ] = aCfgSvcs;
-
- aCfgSvcs = xLinguSrvcMgr->getConfiguredServices(C2U(cHyph), pAllLocales[nLocale]);
- SetChecked( aCfgSvcs );
- if (aCfgSvcs.getLength())
- aCfgHyphTable[ nLang ] = aCfgSvcs;
-
- aCfgSvcs = xLinguSrvcMgr->getConfiguredServices(C2U(cThes), pAllLocales[nLocale]);
- SetChecked( aCfgSvcs );
- if (aCfgSvcs.getLength())
- aCfgThesTable[ nLang ] = aCfgSvcs;
- }
- }
-}
-/* -----------------------------22.05.01 10:43--------------------------------
-
----------------------------------------------------------------------------*/
-SvxLinguData_Impl::SvxLinguData_Impl( const SvxLinguData_Impl &rData ) :
- aDisplayServiceArr (rData.aDisplayServiceArr),
- nDisplayServices (rData.nDisplayServices),
- aAllServiceLocales (rData.aAllServiceLocales),
- aCfgSpellTable (rData.aCfgSpellTable),
- aCfgHyphTable (rData.aCfgHyphTable),
- aCfgThesTable (rData.aCfgThesTable),
- aCfgGrammarTable (rData.aCfgGrammarTable),
- xMSF (rData.xMSF),
- xLinguSrvcMgr (rData.xLinguSrvcMgr)
-{
-}
-/* -----------------------------22.05.01 10:43--------------------------------
-
- ---------------------------------------------------------------------------*/
-SvxLinguData_Impl & SvxLinguData_Impl::operator = (const SvxLinguData_Impl &rData)
-{
- xMSF = rData.xMSF;
- xLinguSrvcMgr = rData.xLinguSrvcMgr;
- aAllServiceLocales = rData.aAllServiceLocales;
- aCfgSpellTable = rData.aCfgSpellTable;
- aCfgHyphTable = rData.aCfgHyphTable;
- aCfgThesTable = rData.aCfgThesTable;
- aCfgGrammarTable = rData.aCfgGrammarTable;
- aDisplayServiceArr = rData.aDisplayServiceArr;
- nDisplayServices = rData.nDisplayServices;
- return *this;
-}
-/* -----------------------------26.11.00 18:08--------------------------------
-
- ---------------------------------------------------------------------------*/
-SvxLinguData_Impl::~SvxLinguData_Impl()
-{
-}
-/* -----------------------------26.11.00 19:42--------------------------------
-
- ---------------------------------------------------------------------------*/
-void SvxLinguData_Impl::SetChecked(const Sequence<OUString>& rConfiguredServices)
-{
- const OUString* pConfiguredServices = rConfiguredServices.getConstArray();
- for(sal_Int32 n = 0; n < rConfiguredServices.getLength(); n++)
- {
- ServiceInfo_Impl* pEntry;
- for (ULONG i = 0; i < nDisplayServices; ++i)
- {
- pEntry = &aDisplayServiceArr[i];
- if (pEntry && !pEntry->bConfigured)
- {
- const OUString &rSrvcImplName = pConfiguredServices[n];
- if (rSrvcImplName.getLength() &&
- (pEntry->sSpellImplName == rSrvcImplName ||
- pEntry->sGrammarImplName == rSrvcImplName ||
- pEntry->sHyphImplName == rSrvcImplName ||
- pEntry->sThesImplName == rSrvcImplName))
- {
- pEntry->bConfigured = sal_True;
- break;
- }
- }
- }
- }
-}
-/* -----------------------------26.11.00 20:43--------------------------------
-
- ---------------------------------------------------------------------------*/
-
-sal_Bool SvxLinguData_Impl::AddRemove(
- Sequence< OUString > &rConfigured,
- const OUString &rImplName, BOOL bAdd )
-{
- sal_Bool bRet = sal_False; // modified?
-
- INT32 nEntries = rConfigured.getLength();
- INT32 nPos = lcl_SeqGetEntryPos(rConfigured, rImplName);
- if (bAdd && nPos < 0) // add new entry
- {
- rConfigured.realloc( ++nEntries );
- OUString *pConfigured = rConfigured.getArray();
- pConfigured = rConfigured.getArray();
- pConfigured[nEntries - 1] = rImplName;
- bRet = sal_True;
- }
- else if (!bAdd && nPos >= 0) // remove existing entry
- {
- OUString *pConfigured = rConfigured.getArray();
- for (INT32 i = nPos; i < nEntries - 1; ++i)
- pConfigured[i] = pConfigured[i + 1];
- rConfigured.realloc(--nEntries);
- bRet = sal_True;
- }
-
- return bRet;
-}
-
-
-void SvxLinguData_Impl::Reconfigure( const OUString &rDisplayName, BOOL bEnable )
-{
- DBG_ASSERT( rDisplayName.getLength(), "empty DisplayName" );
-
- ServiceInfo_Impl *pInfo = 0;
- ServiceInfo_Impl *pTmp = 0;
- for (ULONG i = 0; i < nDisplayServices; ++i)
- {
- pTmp = &aDisplayServiceArr[i];
- if (pTmp && pTmp->sDisplayName == rDisplayName)
- {
- pInfo = pTmp;
- break;
- }
- }
- DBG_ASSERT( pInfo, "DisplayName entry not found" );
- if (pInfo)
- {
- pInfo->bConfigured = bEnable;
-
- Sequence< Locale > aLocales;
- const Locale *pLocale = 0;
- INT32 nLocales = 0;
- INT32 i;
-
- // update configured spellchecker entries
- if (pInfo->xSpell.is())
- {
- aLocales = pInfo->xSpell->getLocales();
- pLocale = aLocales.getConstArray();
- nLocales = aLocales.getLength();
- for (i = 0; i < nLocales; ++i)
- {
- INT16 nLang = SvxLocaleToLanguage( pLocale[i] );
- if (!aCfgSpellTable.count( nLang ) && bEnable)
- aCfgSpellTable[ nLang ] = Sequence< OUString >();
- if (aCfgSpellTable.count( nLang ))
- AddRemove( aCfgSpellTable[ nLang ], pInfo->sSpellImplName, bEnable );
- }
- }
-
- // update configured grammar checker entries
- if (pInfo->xGrammar.is())
- {
- aLocales = pInfo->xGrammar->getLocales();
- pLocale = aLocales.getConstArray();
- nLocales = aLocales.getLength();
- for (i = 0; i < nLocales; ++i)
- {
- INT16 nLang = SvxLocaleToLanguage( pLocale[i] );
- if (!aCfgGrammarTable.count( nLang ) && bEnable)
- aCfgGrammarTable[ nLang ] = Sequence< OUString >();
- if (aCfgGrammarTable.count( nLang ))
- AddRemove( aCfgGrammarTable[ nLang ], pInfo->sGrammarImplName, bEnable );
- }
- }
-
- // update configured hyphenator entries
- if (pInfo->xHyph.is())
- {
- aLocales = pInfo->xHyph->getLocales();
- pLocale = aLocales.getConstArray();
- nLocales = aLocales.getLength();
- for (i = 0; i < nLocales; ++i)
- {
- INT16 nLang = SvxLocaleToLanguage( pLocale[i] );
- if (!aCfgHyphTable.count( nLang ) && bEnable)
- aCfgHyphTable[ nLang ] = Sequence< OUString >();
- if (aCfgHyphTable.count( nLang ))
- AddRemove( aCfgHyphTable[ nLang ], pInfo->sHyphImplName, bEnable );
- }
- }
-
- // update configured spellchecker entries
- if (pInfo->xThes.is())
- {
- aLocales = pInfo->xThes->getLocales();
- pLocale = aLocales.getConstArray();
- nLocales = aLocales.getLength();
- for (i = 0; i < nLocales; ++i)
- {
- INT16 nLang = SvxLocaleToLanguage( pLocale[i] );
- if (!aCfgThesTable.count( nLang ) && bEnable)
- aCfgThesTable[ nLang ] = Sequence< OUString >();
- if (aCfgThesTable.count( nLang ))
- AddRemove( aCfgThesTable[ nLang ], pInfo->sThesImplName, bEnable );
- }
- }
- }
-}
-
-
-// class SvxLinguTabPage -------------------------------------------------
-
-#define CBCOL_FIRST 0
-#define CBCOL_SECOND 1
-#define CBCOL_BOTH 2
-
-SvxLinguTabPage::SvxLinguTabPage( Window* pParent,
- const SfxItemSet& rSet ):
-
- SfxTabPage( pParent, SVX_RES( RID_SFXPAGE_LINGU ), rSet ),
-
- aLinguisticFL ( this, SVX_RES( FL_LINGUISTIC ) ),
- aLinguModulesFT ( this, SVX_RES( FT_LINGU_MODULES ) ),
- aLinguModulesCLB ( this, SVX_RES( CLB_LINGU_MODULES ) ),
- aLinguModulesEditPB ( this, SVX_RES( PB_LINGU_MODULES_EDIT ) ),
- aLinguDicsFT ( this, SVX_RES( FT_LINGU_DICS ) ),
- aLinguDicsCLB ( this, SVX_RES( CLB_LINGU_DICS ) ),
- aLinguDicsNewPB ( this, SVX_RES( PB_LINGU_DICS_NEW_DIC ) ),
- aLinguDicsEditPB ( this, SVX_RES( PB_LINGU_DICS_EDIT_DIC ) ),
- aLinguDicsDelPB ( this, SVX_RES( PB_LINGU_DICS_DEL_DIC ) ),
- aLinguOptionsFT ( this, SVX_RES( FT_LINGU_OPTIONS ) ),
- aLinguOptionsCLB ( this, SVX_RES( CLB_LINGU_OPTIONS ) ),
- aLinguOptionsEditPB ( this, SVX_RES( PB_LINGU_OPTIONS_EDIT ) ),
- aMoreDictsLink ( this, SVX_RES( FT_LINGU_OPTIONS_MOREDICTS ) ),
- sCapitalWords ( SVX_RES( STR_CAPITAL_WORDS ) ),
- sWordsWithDigits ( SVX_RES( STR_WORDS_WITH_DIGITS ) ),
- sCapitalization ( SVX_RES( STR_CAPITALIZATION ) ),
- sSpellSpecial ( SVX_RES( STR_SPELL_SPECIAL ) ),
- sSpellAuto ( SVX_RES( STR_SPELL_AUTO ) ),
- sGrammarAuto ( SVX_RES( STR_GRAMMAR_AUTO ) ),
- sNumMinWordlen ( SVX_RES( STR_NUM_MIN_WORDLEN ) ),
- sNumPreBreak ( SVX_RES( STR_NUM_PRE_BREAK ) ),
- sNumPostBreak ( SVX_RES( STR_NUM_POST_BREAK ) ),
- sHyphAuto ( SVX_RES( STR_HYPH_AUTO ) ),
- sHyphSpecial ( SVX_RES( STR_HYPH_SPECIAL ) ),
-
- pLinguData ( NULL )
-{
- pCheckButtonData = NULL;
-
- aLinguModulesCLB.SetWindowBits( WB_CLIPCHILDREN|WB_HSCROLL|WB_FORCE_MAKEVISIBLE );
- aLinguModulesCLB.SetHelpId(HID_CLB_LINGU_MODULES );
- aLinguModulesCLB.SetHighlightRange();
- aLinguModulesCLB.SetSelectHdl( LINK( this, SvxLinguTabPage, SelectHdl_Impl ));
- aLinguModulesCLB.SetDoubleClickHdl(LINK(this, SvxLinguTabPage, BoxDoubleClickHdl_Impl));
- aLinguModulesCLB.SetCheckButtonHdl(LINK(this, SvxLinguTabPage, BoxCheckButtonHdl_Impl));
-
- aLinguModulesEditPB.SetClickHdl( LINK( this, SvxLinguTabPage, ClickHdl_Impl ));
- aLinguOptionsEditPB.SetClickHdl( LINK( this, SvxLinguTabPage, ClickHdl_Impl ));
-
- aLinguDicsCLB.SetWindowBits( WB_CLIPCHILDREN|WB_HSCROLL|WB_FORCE_MAKEVISIBLE );
- aLinguDicsCLB.SetHelpId(HID_CLB_EDIT_MODULES_DICS );
- aLinguDicsCLB.SetHighlightRange();
- aLinguDicsCLB.SetSelectHdl( LINK( this, SvxLinguTabPage, SelectHdl_Impl ));
- aLinguDicsCLB.SetCheckButtonHdl(LINK(this, SvxLinguTabPage, BoxCheckButtonHdl_Impl));
-
- aLinguDicsNewPB.SetClickHdl( LINK( this, SvxLinguTabPage, ClickHdl_Impl ));
- aLinguDicsEditPB.SetClickHdl( LINK( this, SvxLinguTabPage, ClickHdl_Impl ));
- aLinguDicsDelPB.SetClickHdl( LINK( this, SvxLinguTabPage, ClickHdl_Impl ));
-
- aLinguOptionsCLB.SetWindowBits( WB_CLIPCHILDREN|WB_HSCROLL|WB_FORCE_MAKEVISIBLE );
- aLinguOptionsCLB.SetHelpId(HID_CLB_LINGU_OPTIONS );
- aLinguOptionsCLB.SetHighlightRange();
- aLinguOptionsCLB.SetSelectHdl( LINK( this, SvxLinguTabPage, SelectHdl_Impl ));
- aLinguOptionsCLB.SetDoubleClickHdl(LINK(this, SvxLinguTabPage, BoxDoubleClickHdl_Impl));
-
- if ( SvtExtendedSecurityOptions().GetOpenHyperlinkMode()
- != SvtExtendedSecurityOptions::OPEN_NEVER )
- {
- aMoreDictsLink.SetURL( String(
- RTL_CONSTASCII_STRINGPARAM( "http://extensions.services.openoffice.org/dictionary?cid=926386" ) ) );
- aMoreDictsLink.SetClickHdl( LINK( this, SvxLinguTabPage, OpenURLHdl_Impl ) );
- }
- else
- aMoreDictsLink.Hide();
-
-
- // force recalculation of hash value used for checking the need of updating
- // because new dictionaries might be installed / downloaded.
- //! Thus it needs to be called now since it may infuence the supported languages
- //! to be reported AND the found user-dictionaries(!) as well.
- SvxLinguConfigUpdate::UpdateAll( sal_True );
-
- xProp = uno::Reference< XPropertySet >( SvxGetLinguPropertySet(), UNO_QUERY );
- xDicList = uno::Reference< XDictionaryList >( SvxGetDictionaryList(), UNO_QUERY );
- if (xDicList.is())
- {
- // keep references to all **currently** available dictionaries,
- // since the diclist may get changed meanwhile (e.g. through the API).
- // We want the dialog to operate on the same set of dictionaries it
- // was started with.
- // Also we have to take care to not loose the last reference when
- // someone else removes a dictionary from the list.
- // removed dics will be replaced by NULL new entries be added to the end
- // Thus we may use indizes as consistent references.
- aDics = xDicList->getDictionaries();
-
- UpdateDicBox_Impl();
- }
- else
- {
- aLinguDicsFT.Disable();
- aLinguDicsCLB.Disable();
- aLinguDicsNewPB.Disable();
- aLinguDicsEditPB.Disable();
- aLinguDicsDelPB.Disable();
- }
-
- const SfxSpellCheckItem* pItem = 0;
- SfxItemState eItemState = SFX_ITEM_UNKNOWN;
-
- eItemState = rSet.GetItemState( GetWhich( SID_ATTR_SPELL ),
- sal_False, (const SfxPoolItem**)&pItem );
-
- // handelt es sich um ein Default-Item?
- if ( eItemState == SFX_ITEM_DEFAULT )
- pItem = (const SfxSpellCheckItem*)&(rSet.Get( GetWhich( SID_ATTR_SPELL ) ) );
- else if ( eItemState == SFX_ITEM_DONTCARE )
- pItem = NULL;
-
- FreeResource();
-}
-
-// -----------------------------------------------------------------------
-
-SvxLinguTabPage::~SvxLinguTabPage()
-{
- if (pLinguData)
- delete pLinguData;
-}
-
-//------------------------------------------------------------------------
-
-//nicht �berladen wegschmeissen
-sal_uInt16* SvxLinguTabPage::GetRanges()
-{
- //TL???
- return pRanges;
-}
-
-//------------------------------------------------------------------------
-
-SfxTabPage* SvxLinguTabPage::Create( Window* pParent,
- const SfxItemSet& rAttrSet )
-{
- return ( new SvxLinguTabPage( pParent, rAttrSet ) );
-}
-
-//------------------------------------------------------------------------
-
-Any lcl_Bool2Any(BOOL bVal)
-{
- Any aRet(&bVal, ::getBooleanCppuType());
- return aRet;
-}
-
-
-sal_Bool lcl_Bool2Any(Any& rVal)
-{
- return *(sal_Bool*)rVal.getValue();
-}
-
-
-sal_Bool SvxLinguTabPage::FillItemSet( SfxItemSet& rCoreSet )
-{
- sal_Bool bModified = sal_True; // !!!!
-
- // if not HideGroups was called with GROUP_MODULES...
- if (aLinguModulesCLB.IsVisible())
- {
- DBG_ASSERT( pLinguData, "pLinguData not yet initialized" );
- if (!pLinguData)
- pLinguData = new SvxLinguData_Impl;
-
- LangImplNameTable::const_iterator aIt;
-
- // update spellchecker configuration entries
- const LangImplNameTable *pTable = &pLinguData->GetSpellTable();
- for (aIt = pTable->begin(); aIt != pTable->end(); ++aIt)
- {
- INT16 nLang = aIt->first;
- const Sequence< OUString > aImplNames( aIt->second );
-#if OSL_DEBUG_LEVEL > 1
- const OUString *pTmpStr;
- pTmpStr = aImplNames.getConstArray();
-#endif
- uno::Reference< XLinguServiceManager > xMgr( pLinguData->GetManager() );
- Locale aLocale( SvxCreateLocale(nLang) );
- if (xMgr.is())
- xMgr->setConfiguredServices( C2U(cSpell), aLocale, aImplNames );
- }
-
- // update grammar checker configuration entries
- pTable = &pLinguData->GetGrammarTable();
- for (aIt = pTable->begin(); aIt != pTable->end(); ++aIt)
- {
- INT16 nLang = aIt->first;
- const Sequence< OUString > aImplNames( aIt->second );
-#if OSL_DEBUG_LEVEL > 1
- const OUString *pTmpStr;
- pTmpStr = aImplNames.getConstArray();
-#endif
- uno::Reference< XLinguServiceManager > xMgr( pLinguData->GetManager() );
- Locale aLocale( SvxCreateLocale(nLang) );
- if (xMgr.is())
- xMgr->setConfiguredServices( C2U(cGrammar), aLocale, aImplNames );
- }
-
- // update hyphenator configuration entries
- pTable = &pLinguData->GetHyphTable();
- for (aIt = pTable->begin(); aIt != pTable->end(); ++aIt)
- {
- INT16 nLang = aIt->first;
- const Sequence< OUString > aImplNames( aIt->second );
-#if OSL_DEBUG_LEVEL > 1
- const OUString *pTmpStr;
- pTmpStr = aImplNames.getConstArray();
-#endif
- uno::Reference< XLinguServiceManager > xMgr( pLinguData->GetManager() );
- Locale aLocale( SvxCreateLocale(nLang) );
- if (xMgr.is())
- xMgr->setConfiguredServices( C2U(cHyph), aLocale, aImplNames );
- }
-
- // update thesaurus configuration entries
- pTable = &pLinguData->GetThesTable();
- for (aIt = pTable->begin(); aIt != pTable->end(); ++aIt)
- {
- INT16 nLang = aIt->first;
- const Sequence< OUString > aImplNames( aIt->second );
-#if OSL_DEBUG_LEVEL > 1
- const OUString *pTmpStr;
- pTmpStr = aImplNames.getConstArray();
-#endif
- uno::Reference< XLinguServiceManager > xMgr( pLinguData->GetManager() );
- Locale aLocale( SvxCreateLocale(nLang) );
- if (xMgr.is())
- xMgr->setConfiguredServices( C2U(cThes), aLocale, aImplNames );
- }
- }
-
-
- //
- // activate dictionaries according to checkbox state
- //
- Sequence< OUString > aActiveDics;
- INT32 nActiveDics = 0;
- ULONG nEntries = aLinguDicsCLB.GetEntryCount();
- for (ULONG i = 0; i < nEntries; ++i)
- {
- INT32 nDics = aDics.getLength();
-// const uno::Reference< XDictionary > *pDic = aDics.getConstArray();
-
- aActiveDics.realloc( nDics );
- OUString *pActiveDic = aActiveDics.getArray();
-
- SvLBoxEntry *pEntry = aLinguDicsCLB.GetEntry( i );
- if (pEntry)
- {
- DicUserData aData( (ULONG)pEntry->GetUserData() );
- if (aData.GetEntryId() < nDics)
- {
- BOOL bChecked = aLinguDicsCLB.IsChecked( (USHORT) i );
- uno::Reference< XDictionary > xDic( aDics.getConstArray()[ i ] );
- if (xDic.is())
- {
- if (SvxGetIgnoreAllList() == xDic)
- bChecked = TRUE;
- xDic->setActive( bChecked );
-
- if (bChecked)
- {
- String aDicName( xDic->getName() );
- pActiveDic[ nActiveDics++ ] = aDicName;
- }
- }
- }
- }
- }
- //
- aActiveDics.realloc( nActiveDics );
- Any aTmp;
- aTmp <<= aActiveDics;
- SvtLinguConfig aLngCfg;
- aLngCfg.SetProperty( UPH_ACTIVE_DICTIONARIES, aTmp );
-
-
- nEntries = aLinguOptionsCLB.GetEntryCount();
- for (USHORT j = 0; j < nEntries; ++j)
- {
- SvLBoxEntry *pEntry = aLinguOptionsCLB.GetEntry( j );
-
- OptionsUserData aData( (ULONG)pEntry->GetUserData() );
- String aPropName( lcl_GetPropertyName( (EID_OPTIONS) aData.GetEntryId() ) );
-
- Any aAny;
- if (aData.IsCheckable())
- {
- BOOL bChecked = aLinguOptionsCLB.IsChecked( j );
- aAny <<= bChecked;
- }
- else if (aData.HasNumericValue())
- {
- INT16 nVal = aData.GetNumericValue();
- aAny <<= nVal;
- }
-
- if (xProp.is())
- xProp->setPropertyValue( aPropName, aAny );
- aLngCfg.SetProperty( aPropName, aAny );
- }
-
- SvLBoxEntry *pPreBreakEntry = aLinguOptionsCLB.GetEntry( (USHORT) EID_NUM_PRE_BREAK );
- SvLBoxEntry *pPostBreakEntry = aLinguOptionsCLB.GetEntry( (USHORT) EID_NUM_POST_BREAK );
- DBG_ASSERT( pPreBreakEntry, "NULL Pointer" );
- DBG_ASSERT( pPostBreakEntry, "NULL Pointer" );
- if (pPreBreakEntry && pPostBreakEntry)
- {
- OptionsUserData aPreBreakData( (ULONG)pPreBreakEntry->GetUserData() );
- OptionsUserData aPostBreakData( (ULONG)pPostBreakEntry->GetUserData() );
- if ( aPreBreakData.IsModified() || aPostBreakData.IsModified() )
- {
- SfxHyphenRegionItem aHyp( GetWhich( SID_ATTR_HYPHENREGION ) );
- aHyp.GetMinLead() = (UINT8) aPreBreakData.GetNumericValue();
- aHyp.GetMinTrail() = (UINT8) aPostBreakData.GetNumericValue();
- rCoreSet.Put( aHyp );
- }
- }
-
-
- // automatic spell checking
- BOOL bNewAutoCheck = aLinguOptionsCLB.IsChecked( (USHORT) EID_SPELL_AUTO );
- const SfxPoolItem* pOld = GetOldItem( rCoreSet, SID_AUTOSPELL_CHECK );
- if ( !pOld || ( (SfxBoolItem*)pOld )->GetValue() != bNewAutoCheck )
- {
- rCoreSet.Put( SfxBoolItem( GetWhich( SID_AUTOSPELL_CHECK ),
- bNewAutoCheck ) );
- bModified |= sal_True;
- }
-
- return bModified;
-}
-
-// ----------------------------------------------------------------------
-
-ULONG SvxLinguTabPage::GetDicUserData( const uno::Reference< XDictionary > &rxDic, USHORT nIdx )
-{
- ULONG nRes = 0;
- DBG_ASSERT( rxDic.is(), "dictionary not supplied" );
- if (rxDic.is())
- {
- uno::Reference< frame::XStorable > xStor( rxDic, UNO_QUERY );
-
-// ULONG nUserData = 0;
- BOOL bChecked = rxDic->isActive();
- BOOL bEditable = !xStor.is() || !xStor->isReadonly();
- BOOL bDeletable = bEditable;
-// BOOL bNegativ = rxDic->getDictionaryType() == DictionaryType_NEGATIVE;
-
- nRes = DicUserData( nIdx,
- bChecked, bEditable, bDeletable ).GetUserData();
- }
- return nRes;
-}
-
-
-void SvxLinguTabPage::AddDicBoxEntry(
- const uno::Reference< XDictionary > &rxDic,
- USHORT nIdx )
-{
- aLinguDicsCLB.SetUpdateMode(FALSE);
-
- String aTxt( ::GetDicInfoStr( rxDic->getName(),
- SvxLocaleToLanguage( rxDic->getLocale() ),
- DictionaryType_NEGATIVE == rxDic->getDictionaryType() ) );
- aLinguDicsCLB.InsertEntry( aTxt, (USHORT)LISTBOX_APPEND ); // append at end
- SvLBoxEntry* pEntry = aLinguDicsCLB.GetEntry( aLinguDicsCLB.GetEntryCount() - 1 );
- DBG_ASSERT( pEntry, "failed to add entry" );
- if (pEntry)
- {
- DicUserData aData( GetDicUserData( rxDic, nIdx ) );
- pEntry->SetUserData( (void *) aData.GetUserData() );
- lcl_SetCheckButton( pEntry, aData.IsChecked() );
- }
-
- aLinguDicsCLB.SetUpdateMode(TRUE);
-}
-
-// ----------------------------------------------------------------------
-
-void SvxLinguTabPage::UpdateDicBox_Impl()
-{
- aLinguDicsCLB.SetUpdateMode(FALSE);
- aLinguDicsCLB.Clear();
-
- INT32 nDics = aDics.getLength();
- const uno::Reference< XDictionary > *pDic = aDics.getConstArray();
- for (INT32 i = 0; i < nDics; ++i)
- {
- const uno::Reference< XDictionary > &rDic = pDic[i];
- if (rDic.is())
- AddDicBoxEntry( rDic, (USHORT)i );
- }
-
- aLinguDicsCLB.SetUpdateMode(TRUE);
-}
-
-// ----------------------------------------------------------------------
-
-void SvxLinguTabPage::UpdateModulesBox_Impl()
-{
- if (pLinguData)
- {
- const ServiceInfoArr &rAllDispSrvcArr = pLinguData->GetDisplayServiceArray();
- const ULONG nDispSrvcCount = pLinguData->GetDisplayServiceCount();
-
- aLinguModulesCLB.Clear();
-
- for (USHORT i = 0; i < nDispSrvcCount; ++i)
- {
- const ServiceInfo_Impl &rInfo = rAllDispSrvcArr[i];
- aLinguModulesCLB.InsertEntry( rInfo.sDisplayName, (USHORT)LISTBOX_APPEND );
- SvLBoxEntry* pEntry = aLinguModulesCLB.GetEntry(i);
- pEntry->SetUserData( (void *) &rInfo );
- aLinguModulesCLB.CheckEntryPos( i, rInfo.bConfigured );
- }
- aLinguModulesEditPB.Enable( nDispSrvcCount > 0 );
- }
-}
-
-//------------------------------------------------------------------------
-
-void SvxLinguTabPage::Reset( const SfxItemSet& rSet )
-{
- // if not HideGroups was called with GROUP_MODULES...
- if (aLinguModulesCLB.IsVisible())
- {
- if (!pLinguData)
- pLinguData = new SvxLinguData_Impl;
- UpdateModulesBox_Impl();
- }
-
-
- //
- // get data from configuration
- //
-
- SvtLinguConfig aLngCfg;
-
- aLinguOptionsCLB.SetUpdateMode(FALSE);
- aLinguOptionsCLB.Clear();
-
- SvLBoxTreeList *pModel = aLinguOptionsCLB.GetModel();
- SvLBoxEntry* pEntry = NULL;
-
- INT16 nVal = 0;
- BOOL bVal = FALSE;
- ULONG nUserData = 0;
-
- pEntry = CreateEntry( sSpellAuto, CBCOL_FIRST );
- aLngCfg.GetProperty( C2U(UPN_IS_SPELL_AUTO) ) >>= bVal;
- const SfxPoolItem* pItem = GetItem( rSet, SID_AUTOSPELL_CHECK );
- if (pItem)
- bVal = ((SfxBoolItem *) pItem)->GetValue();
- nUserData = OptionsUserData( EID_SPELL_AUTO, FALSE, 0, TRUE, bVal).GetUserData();
- pEntry->SetUserData( (void *)nUserData );
- pModel->Insert( pEntry );
- lcl_SetCheckButton( pEntry, bVal );
-
- pEntry = CreateEntry( sGrammarAuto, CBCOL_FIRST );
- aLngCfg.GetProperty( C2U(UPN_IS_GRAMMAR_AUTO) ) >>= bVal;
-// const SfxPoolItem* pItem = GetItem( rSet, SID_AUTOSPELL_CHECK );
-// if (pItem)
-// bVal = ((SfxBoolItem *) pItem)->GetValue();
- nUserData = OptionsUserData( EID_GRAMMAR_AUTO, FALSE, 0, TRUE, bVal).GetUserData();
- pEntry->SetUserData( (void *)nUserData );
- pModel->Insert( pEntry );
- lcl_SetCheckButton( pEntry, bVal );
-
- pEntry = CreateEntry( sCapitalWords, CBCOL_FIRST );
- aLngCfg.GetProperty( C2U(UPN_IS_SPELL_UPPER_CASE) ) >>= bVal;
- nUserData = OptionsUserData( EID_CAPITAL_WORDS, FALSE, 0, TRUE, bVal).GetUserData();
- pEntry->SetUserData( (void *)nUserData );
- pModel->Insert( pEntry );
- lcl_SetCheckButton( pEntry, bVal );
-
- pEntry = CreateEntry( sWordsWithDigits, CBCOL_FIRST );
- aLngCfg.GetProperty( C2U(UPN_IS_SPELL_WITH_DIGITS) ) >>= bVal;
- nUserData = OptionsUserData( EID_WORDS_WITH_DIGITS, FALSE, 0, TRUE, bVal).GetUserData();
- pEntry->SetUserData( (void *)nUserData );
- pModel->Insert( pEntry );
- lcl_SetCheckButton( pEntry, bVal );
-
- pEntry = CreateEntry( sCapitalization, CBCOL_FIRST );
- aLngCfg.GetProperty( C2U(UPN_IS_SPELL_CAPITALIZATION) ) >>= bVal;
- nUserData = OptionsUserData( EID_CAPITALIZATION, FALSE, 0, TRUE, bVal).GetUserData();
- pEntry->SetUserData( (void *)nUserData );
- pModel->Insert( pEntry );
- lcl_SetCheckButton( pEntry, bVal );
-
- pEntry = CreateEntry( sSpellSpecial, CBCOL_FIRST );
- aLngCfg.GetProperty( C2U(UPN_IS_SPELL_SPECIAL) ) >>= bVal;
- nUserData = OptionsUserData( EID_SPELL_SPECIAL, FALSE, 0, TRUE, bVal).GetUserData();
- pEntry->SetUserData( (void *)nUserData );
- pModel->Insert( pEntry );
- lcl_SetCheckButton( pEntry, bVal );
-
- pEntry = CreateEntry( sNumMinWordlen, CBCOL_SECOND );
- aLngCfg.GetProperty( C2U(UPN_HYPH_MIN_WORD_LENGTH) ) >>= nVal;
- nUserData = OptionsUserData( EID_NUM_MIN_WORDLEN, TRUE, (USHORT)nVal, FALSE, FALSE).GetUserData();
- pEntry->SetUserData( (void *)nUserData );
- pModel->Insert( pEntry );
-
- const SfxHyphenRegionItem *pHyp = NULL;
- USHORT nWhich = GetWhich( SID_ATTR_HYPHENREGION );
- if ( rSet.GetItemState( nWhich, FALSE ) == SFX_ITEM_SET )
- pHyp = &( (const SfxHyphenRegionItem &) rSet.Get( nWhich ) );
-
- pEntry = CreateEntry( sNumPreBreak, CBCOL_SECOND );
- aLngCfg.GetProperty( C2U(UPN_HYPH_MIN_LEADING) ) >>= nVal;
- if (pHyp)
- nVal = (INT16) pHyp->GetMinLead();
- nUserData = OptionsUserData( EID_NUM_PRE_BREAK, TRUE, (USHORT)nVal, FALSE, FALSE).GetUserData();
- pEntry->SetUserData( (void *)nUserData );
- pModel->Insert( pEntry );
-
- pEntry = CreateEntry( sNumPostBreak, CBCOL_SECOND );
- aLngCfg.GetProperty( C2U(UPN_HYPH_MIN_TRAILING) ) >>= nVal;
- if (pHyp)
- nVal = (INT16) pHyp->GetMinTrail();
- nUserData = OptionsUserData( EID_NUM_POST_BREAK, TRUE, (USHORT)nVal, FALSE, FALSE).GetUserData();
- pEntry->SetUserData( (void *)nUserData );
- pModel->Insert( pEntry );
-
- pEntry = CreateEntry( sHyphAuto, CBCOL_FIRST );
- aLngCfg.GetProperty( C2U(UPN_IS_HYPH_AUTO) ) >>= bVal;
- nUserData = OptionsUserData( EID_HYPH_AUTO, FALSE, 0, TRUE, bVal).GetUserData();
- pEntry->SetUserData( (void *)nUserData );
- pModel->Insert( pEntry );
- lcl_SetCheckButton( pEntry, bVal );
-
- pEntry = CreateEntry( sHyphSpecial, CBCOL_FIRST );
- aLngCfg.GetProperty( C2U(UPN_IS_HYPH_SPECIAL) ) >>= bVal;
- nUserData = OptionsUserData( EID_HYPH_SPECIAL, FALSE, 0, TRUE, bVal).GetUserData();
- pEntry->SetUserData( (void *)nUserData );
- pModel->Insert( pEntry );
- lcl_SetCheckButton( pEntry, bVal );
-
- aLinguOptionsCLB.SetUpdateMode(TRUE);
-}
-
-// -----------------------------------------------------------------------
-
-IMPL_LINK( SvxLinguTabPage, BoxDoubleClickHdl_Impl, SvTreeListBox *, pBox )
-{
- if (pBox == &aLinguModulesCLB)
- {
- //! in order to avoid a bug causing a GPF when double clicking
- //! on a module entry and exiting the "Edit Modules" dialog
- //! after that.
- Application::PostUserEvent( LINK(
- this, SvxLinguTabPage, PostDblClickHdl_Impl ) );
- }
- else if (pBox == &aLinguOptionsCLB)
- {
- ClickHdl_Impl(&aLinguOptionsEditPB);
- }
- return 0;
-}
-
-// -----------------------------------------------------------------------
-
-IMPL_LINK( SvxLinguTabPage, PostDblClickHdl_Impl, SvTreeListBox *, EMPTYARG )
-{
- ClickHdl_Impl(&aLinguModulesEditPB);
- return 0;
-}
-
-// -----------------------------------------------------------------------
-
-IMPL_LINK( SvxLinguTabPage, OpenURLHdl_Impl, svt::FixedHyperlink *, EMPTYARG )
-{
- ::rtl::OUString sURL( aMoreDictsLink.GetURL() );
- lcl_OpenURL( sURL );
- return 0;
-}
-
-// -----------------------------------------------------------------------
-
-IMPL_LINK( SvxLinguTabPage, BoxCheckButtonHdl_Impl, SvTreeListBox *, pBox )
-{
- if (pBox == &aLinguModulesCLB)
- {
- DBG_ASSERT( pLinguData, "NULL pointer, LinguData missing" );
- USHORT nPos = aLinguModulesCLB.GetSelectEntryPos();
- if (nPos != LISTBOX_ENTRY_NOTFOUND && pLinguData)
- {
- pLinguData->Reconfigure( aLinguModulesCLB.GetText( nPos ),
- aLinguModulesCLB.IsChecked( nPos ) );
- }
- }
- else if (pBox == &aLinguDicsCLB)
- {
- USHORT nPos = aLinguDicsCLB.GetSelectEntryPos();
- if (nPos != LISTBOX_ENTRY_NOTFOUND)
- {
- const uno::Reference< XDictionary > &rDic = aDics.getConstArray()[ nPos ];
- if (SvxGetIgnoreAllList() == rDic)
- {
- SvLBoxEntry* pEntry = aLinguDicsCLB.GetEntry( nPos );
- if (pEntry)
- lcl_SetCheckButton( pEntry, TRUE );
- }
- }
- }
- return 0;
-}
-
-// -----------------------------------------------------------------------
-
-IMPL_LINK( SvxLinguTabPage, ClickHdl_Impl, PushButton *, pBtn )
-{
- if (&aLinguModulesEditPB == pBtn)
- {
- if (!pLinguData)
- pLinguData = new SvxLinguData_Impl;
-
- SvxLinguData_Impl aOldLinguData( *pLinguData );
- SvxEditModulesDlg aDlg( this, *pLinguData );
- if (aDlg.Execute() != RET_OK)
- *pLinguData = aOldLinguData;
-
- // evaluate new status of 'bConfigured' flag
- ULONG nLen = pLinguData->GetDisplayServiceCount();
- for (ULONG i = 0; i < nLen; ++i)
- pLinguData->GetDisplayServiceArray()[i].bConfigured = FALSE;
- const Locale* pAllLocales = pLinguData->GetAllSupportedLocales().getConstArray();
- INT32 nLocales = pLinguData->GetAllSupportedLocales().getLength();
- for (INT32 k = 0; k < nLocales; ++k)
- {
- INT16 nLang = SvxLocaleToLanguage( pAllLocales[k] );
- if (pLinguData->GetSpellTable().count( nLang ))
- pLinguData->SetChecked( pLinguData->GetSpellTable()[ nLang ] );
- if (pLinguData->GetGrammarTable().count( nLang ))
- pLinguData->SetChecked( pLinguData->GetGrammarTable()[ nLang ] );
- if (pLinguData->GetHyphTable().count( nLang ))
- pLinguData->SetChecked( pLinguData->GetHyphTable()[ nLang ] );
- if (pLinguData->GetThesTable().count( nLang ))
- pLinguData->SetChecked( pLinguData->GetThesTable()[ nLang ] );
- }
-
- // show new status of modules
- UpdateModulesBox_Impl();
- }
- else if (&aLinguDicsNewPB == pBtn)
- {
- uno::Reference< XSpellChecker1 > xSpellChecker1;
- SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
- if(pFact)
- {
- AbstractSvxNewDictionaryDialog* aDlg = pFact->CreateSvxNewDictionaryDialog( this, xSpellChecker1, RID_SFXDLG_NEWDICT );
- DBG_ASSERT(aDlg, "Dialogdiet fail!");
- uno::Reference< XDictionary > xNewDic;
- if ( aDlg->Execute() == RET_OK )
- xNewDic = uno::Reference< XDictionary >( aDlg->GetNewDictionary(), UNO_QUERY );
- if ( xNewDic.is() )
- {
- // add new dics to the end
- INT32 nLen = aDics.getLength();
- aDics.realloc( nLen + 1 );
-
- aDics.getArray()[ nLen ] = xNewDic;
-
- AddDicBoxEntry( xNewDic, (USHORT) nLen );
- }
- delete aDlg; //add by CHINA001
- }
- }
- else if (&aLinguDicsEditPB == pBtn)
- {
- SvLBoxEntry *pEntry = aLinguDicsCLB.GetCurEntry();
- if (pEntry)
- {
- DicUserData aData( (ULONG) pEntry->GetUserData() );
- USHORT nDicPos = aData.GetEntryId();
- INT32 nDics = aDics.getLength();
- if (nDicPos < nDics)
- {
- uno::Reference< XDictionary > xDic;
- xDic = aDics.getConstArray()[ nDicPos ];
- if (xDic.is())
- {
- uno::Reference< XSpellChecker1 > xSpellChecker1;
- SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
- if(pFact)
- {
- VclAbstractDialog* aDlg = pFact->CreateSvxEditDictionaryDialog( this, xDic->getName(), xSpellChecker1, RID_SFXDLG_EDITDICT );
- DBG_ASSERT(aDlg, "Dialogdiet fail!");
- aDlg->Execute();
- delete aDlg;
- }
- }
- }
- }
- }
- else if (&aLinguDicsDelPB == pBtn)
- {
- if ( RET_NO ==
- QueryBox( this, SVX_RES( RID_SFXQB_DELDICT ) ).Execute() )
- return 0;
-
- SvLBoxEntry *pEntry = aLinguDicsCLB.GetCurEntry();
- if (pEntry)
- {
- DicUserData aData( (ULONG) pEntry->GetUserData() );
- USHORT nDicPos = aData.GetEntryId();
- INT32 nDics = aDics.getLength();
- if (nDicPos < nDics)
- {
- uno::Reference< XDictionary > xDic;
- xDic = aDics.getConstArray()[ nDicPos ];
- if (xDic.is())
- {
- if (SvxGetIgnoreAllList() == xDic)
- xDic->clear();
- else
- {
- if (xDicList.is())
- xDicList->removeDictionary( xDic );
-
- uno::Reference< frame::XStorable > xStor( xDic, UNO_QUERY );
- if ( xStor->hasLocation() && !xStor->isReadonly() )
- {
- String sURL = xStor->getLocation();
- INetURLObject aObj(sURL);
- DBG_ASSERT( aObj.GetProtocol() == INET_PROT_FILE,
- "non-file URLs cannot be deleted" );
- if ( aObj.GetProtocol() == INET_PROT_FILE )
- {
- KillFile_Impl( aObj.GetMainURL( INetURLObject::NO_DECODE ) );
- }
- }
-
- aDics.getArray()[ nDicPos ] = 0;
-
- // remove entry from checklistbox
- ULONG nCnt = aLinguDicsCLB.GetEntryCount();
- for (ULONG i = 0; i < nCnt; ++i)
- {
- SvLBoxEntry *pDicEntry = aLinguDicsCLB.GetEntry( i );
- DBG_ASSERT( pDicEntry, "missing entry" );
- if (pDicEntry)
- {
- DicUserData aDicData( (ULONG) pDicEntry->GetUserData() );
- if (aDicData.GetEntryId() == nDicPos )
- {
- aLinguDicsCLB.RemoveEntry( (USHORT) i );
- break;
- }
- }
- }
- DBG_ASSERT( nCnt > aLinguDicsCLB.GetEntryCount(),
- "remove failed ?");
- }
- }
- }
- }
- }
- else if (&aLinguOptionsEditPB == pBtn)
- {
- SvLBoxEntry *pEntry = aLinguOptionsCLB.GetCurEntry();
- DBG_ASSERT( pEntry, "no entry selected" );
- if (pEntry)
- {
- long nVal = -1;
- OptionsUserData aData( (ULONG)pEntry->GetUserData() );
- if(aData.HasNumericValue())
- {
- int nRID = -1;
- switch (aData.GetEntryId())
- {
- case EID_NUM_PRE_BREAK : nRID = STR_NUM_PRE_BREAK_DLG; break;
- case EID_NUM_POST_BREAK : nRID = STR_NUM_POST_BREAK_DLG; break;
- case EID_NUM_MIN_WORDLEN: nRID = STR_NUM_MIN_WORDLEN_DLG; break;
- default:
- DBG_ERROR( "unexpected case" );
- }
-
- OptionsBreakSet aDlg( this, nRID );
- aDlg.GetNumericFld().SetValue( aData.GetNumericValue() );
- if (RET_OK == aDlg.Execute() )
- {
- nVal = static_cast<long>(aDlg.GetNumericFld().GetValue());
- if (-1 != nVal && aData.GetNumericValue() != nVal)
- {
- aData.SetNumericValue( (BYTE)nVal ); //! sets IsModified !
- pEntry->SetUserData( (void *) aData.GetUserData() );
- aLinguOptionsCLB.Invalidate();
- }
- }
- }
- }
- }
- else
- {
- DBG_ERROR( "pBtn unexpected value" );
- }
-
- return 0;
-}
-
-// -----------------------------------------------------------------------
-
-IMPL_LINK( SvxLinguTabPage, SelectHdl_Impl, SvxCheckListBox *, pBox )
-{
- if (&aLinguModulesCLB == pBox)
- {
- }
- else if (&aLinguDicsCLB == pBox)
- {
- SvLBoxEntry *pEntry = pBox->GetCurEntry();
- if (pEntry)
- {
- DicUserData aData( (ULONG) pEntry->GetUserData() );
-
- // always allow to edit (i.e. at least view the content of the dictionary)
- aLinguDicsEditPB.Enable( true/*aData.IsEditable()*/ );
- aLinguDicsDelPB .Enable( aData.IsDeletable() );
- }
- }
- else if (&aLinguOptionsCLB == pBox)
- {
- SvLBoxEntry *pEntry = pBox->GetCurEntry();
- if (pEntry)
- {
- OptionsUserData aData( (ULONG) pEntry->GetUserData() );
- aLinguOptionsEditPB.Enable( aData.HasNumericValue() );
- }
- }
- else
- {
- DBG_ERROR( "pBox unexpected value" );
- }
-
- return 0;
-}
-
-// -----------------------------------------------------------------------
-
-SvLBoxEntry* SvxLinguTabPage::CreateEntry( String& rTxt, USHORT nCol )
-{
- SvLBoxEntry* pEntry = new SvLBoxEntry;
-
- if( !pCheckButtonData )
- pCheckButtonData = new SvLBoxButtonData( &aLinguOptionsCLB );
-
- String sEmpty;
- if (CBCOL_FIRST == nCol)
- pEntry->AddItem( new SvLBoxButton( pEntry, SvLBoxButtonKind_enabledCheckbox, 0, pCheckButtonData ) );
- if (CBCOL_SECOND == nCol)
- pEntry->AddItem( new SvLBoxString( pEntry, 0, sEmpty) ); // Leerspalte
- pEntry->AddItem( new SvLBoxContextBmp( pEntry, 0, Image(), Image(), 0)); // Sonst Puff!
- pEntry->AddItem( new BrwString_Impl( pEntry, 0, rTxt ) );
-
- return pEntry;
-}
-
-// -----------------------------------------------------------------------
-
-void SvxLinguTabPage::HideGroups( sal_uInt16 nGrp )
-{
- if ( 0 != ( GROUP_MODULES & nGrp ) )
- {
- aLinguModulesFT.Hide();
- aLinguModulesCLB.Hide();
- aLinguModulesEditPB.Hide();
-
- // reposition / resize remaining controls
- long nDeltaY = aLinguDicsFT.GetPosPixel().Y() -
- aLinguModulesFT.GetPosPixel().Y();
- DBG_ASSERT( nDeltaY >= 0, "move/resize value is negative" );
- Point aPos;
- //
- aPos = aLinguDicsFT.GetPosPixel();
- aPos.Y() -= nDeltaY;
- aLinguDicsFT.SetPosPixel( aPos );
- aPos = aLinguDicsCLB.GetPosPixel();
- aPos.Y() -= nDeltaY;
- aLinguDicsCLB.SetPosPixel( aPos );
- aPos = aLinguDicsNewPB.GetPosPixel();
- aPos.Y() -= nDeltaY;
- aLinguDicsNewPB.SetPosPixel( aPos );
- aPos = aLinguDicsEditPB.GetPosPixel();
- aPos.Y() -= nDeltaY;
- aLinguDicsEditPB.SetPosPixel( aPos );
- aPos = aLinguDicsDelPB.GetPosPixel();
- aPos.Y() -= nDeltaY;
- aLinguDicsDelPB.SetPosPixel( aPos );
- //
- aPos = aLinguOptionsFT.GetPosPixel();
- aPos.Y() -= nDeltaY;
- aLinguOptionsFT.SetPosPixel( aPos );
- aPos = aLinguOptionsCLB.GetPosPixel();
- aPos.Y() -= nDeltaY;
- aLinguOptionsCLB.SetPosPixel( aPos );
- aPos = aLinguOptionsEditPB.GetPosPixel();
- aPos.Y() -= nDeltaY;
- aLinguOptionsEditPB.SetPosPixel( aPos );
- //
- Size aSize( aLinguOptionsCLB.GetSizePixel() );
- aSize.Height() += nDeltaY;
- aLinguOptionsCLB.SetSizePixel( aSize );
-
- if ( SvtExtendedSecurityOptions().GetOpenHyperlinkMode()
- != SvtExtendedSecurityOptions::OPEN_NEVER )
- {
- aSize = GetOutputSizePixel();
- aSize.Height() += ( aMoreDictsLink.GetSizePixel().Height() * 11 / 8 );
- SetSizePixel( aSize );
- aMoreDictsLink.Show();
- }
- }
-}
-/*--------------------------------------------------
---------------------------------------------------*/
-
-SvxEditModulesDlg::SvxEditModulesDlg(Window* pParent, SvxLinguData_Impl& rData) :
- ModalDialog( pParent, SVX_RES(RID_SVXDLG_EDIT_MODULES ) ),
- aModulesFL ( this, SVX_RES( FL_EDIT_MODULES_OPTIONS ) ),
- aLanguageFT ( this, SVX_RES( FT_EDIT_MODULES_LANGUAGE ) ),
- aLanguageLB ( this, SVX_RES( LB_EDIT_MODULES_LANGUAGE ), FALSE ),
- aModulesCLB ( this, SVX_RES( CLB_EDIT_MODULES_MODULES ) ),
- aPrioUpPB ( this, SVX_RES( PB_EDIT_MODULES_PRIO_UP ) ),
- aPrioDownPB ( this, SVX_RES( PB_EDIT_MODULES_PRIO_DOWN ) ),
- aBackPB ( this, SVX_RES( PB_EDIT_MODULES_PRIO_BACK ) ),
- aMoreDictsLink ( this, SVX_RES( FT_EDIT_MODULES_NEWDICTSLINK ) ),
- aButtonsFL ( this, SVX_RES( FL_EDIT_MODULES_BUTTONS ) ),
- aHelpPB ( this, SVX_RES( PB_HELP ) ),
- aClosePB ( this, SVX_RES( PB_OK ) ),
- sSpell ( SVX_RES( ST_SPELL ) ),
- sHyph ( SVX_RES( ST_HYPH ) ),
- sThes ( SVX_RES( ST_THES ) ),
- sGrammar ( SVX_RES( ST_GRAMMAR ) ),
- rLinguData ( rData )
-{
- pCheckButtonData = NULL;
- FreeResource();
-
- pDefaultLinguData = new SvxLinguData_Impl( rLinguData );
-
- aModulesCLB.SetWindowBits( WB_CLIPCHILDREN|WB_HSCROLL|WB_FORCE_MAKEVISIBLE );
- aModulesCLB.SetHighlightRange();
- aModulesCLB.SetHelpId(HID_CLB_EDIT_MODULES_MODULES );
- aModulesCLB.SetSelectHdl( LINK( this, SvxEditModulesDlg, SelectHdl_Impl ));
- aModulesCLB.SetCheckButtonHdl( LINK( this, SvxEditModulesDlg, BoxCheckButtonHdl_Impl) );
-
- aClosePB .SetClickHdl( LINK( this, SvxEditModulesDlg, ClickHdl_Impl ));
- aPrioUpPB .SetClickHdl( LINK( this, SvxEditModulesDlg, UpDownHdl_Impl ));
- aPrioDownPB.SetClickHdl( LINK( this, SvxEditModulesDlg, UpDownHdl_Impl ));
- aBackPB .SetClickHdl( LINK( this, SvxEditModulesDlg, BackHdl_Impl ));
- // in case of not installed language modules
- aPrioUpPB .Enable( FALSE );
- aPrioDownPB.Enable( FALSE );
-
- if ( SvtExtendedSecurityOptions().GetOpenHyperlinkMode()
- != SvtExtendedSecurityOptions::OPEN_NEVER )
- {
- aMoreDictsLink.SetURL( String(
- RTL_CONSTASCII_STRINGPARAM( "http://extensions.services.openoffice.org/dictionary?cid=926386" ) ) );
- aMoreDictsLink.SetClickHdl( LINK( this, SvxEditModulesDlg, OpenURLHdl_Impl ) );
- }
- else
- {
- aMoreDictsLink.Hide();
- long nPos = aMoreDictsLink.GetPosPixel().Y() + aMoreDictsLink.GetSizePixel().Height();
- Size aSize = aModulesCLB.GetSizePixel();
- aSize.Height() += ( nPos - ( aModulesCLB.GetPosPixel().Y() + aSize.Height() ) );
- aModulesCLB.SetSizePixel( aSize );
- }
-
- //
- //fill language box
- //
- Sequence< INT16 > aAvailLang;
- uno::Reference< XAvailableLocales > xAvail( rLinguData.GetManager(), UNO_QUERY );
- if (xAvail.is())
- {
- aAvailLang = lcl_LocaleSeqToLangSeq(
- xAvail->getAvailableLocales( C2U(cSpell) ) );
- }
- const Sequence< Locale >& rLoc = rLinguData.GetAllSupportedLocales();
- const Locale* pLocales = rLoc.getConstArray();
- aLanguageLB.Clear();
- for(long i = 0; i < rLoc.getLength(); i++)
- {
- INT16 nLang = SvxLocaleToLanguage( pLocales[i] );
- aLanguageLB.InsertLanguage( nLang, lcl_SeqHasLang( aAvailLang, nLang ) );
- }
- LanguageType eSysLang = MsLangId::getSystemLanguage();
- aLanguageLB.SelectLanguage( eSysLang );
- if(!aLanguageLB.IsLanguageSelected( eSysLang ) )
- aLanguageLB.SelectEntryPos(0);
-
- aLanguageLB.SetSelectHdl( LINK( this, SvxEditModulesDlg, LangSelectHdl_Impl ));
- LangSelectHdl_Impl(&aLanguageLB);
-}
-
-
-SvxEditModulesDlg::~SvxEditModulesDlg()
-{
- delete pDefaultLinguData;
-}
-
-
-SvLBoxEntry* SvxEditModulesDlg::CreateEntry( String& rTxt, USHORT nCol )
-{
- SvLBoxEntry* pEntry = new SvLBoxEntry;
- if( !pCheckButtonData )
- {
- pCheckButtonData = new SvLBoxButtonData( &aModulesCLB );
- pCheckButtonData->SetLink( aModulesCLB.GetCheckButtonHdl() );
- }
-
- String sEmpty;
- if (CBCOL_FIRST == nCol)
- pEntry->AddItem( new SvLBoxButton( pEntry, SvLBoxButtonKind_enabledCheckbox, 0, pCheckButtonData ) );
- if (CBCOL_SECOND == nCol)
- pEntry->AddItem( new SvLBoxString( pEntry, 0, sEmpty) ); // Leerspalte
- pEntry->AddItem( new SvLBoxContextBmp( pEntry, 0, Image(), Image(), 0)); // Sonst Puff!
- pEntry->AddItem( new BrwStringDic_Impl( pEntry, 0, rTxt ) );
-
- return pEntry;
-}
-
-/* ---------------------------------------------------------------------------
-
- ---------------------------------------------------------------------------*/
-IMPL_LINK( SvxEditModulesDlg, SelectHdl_Impl, SvxCheckListBox *, pBox )
-{
- if (&aModulesCLB == pBox)
- {
- sal_Bool bDisableUp = sal_True;
- sal_Bool bDisableDown = sal_True;
- SvLBoxEntry *pEntry = pBox->GetCurEntry();
- if (pEntry)
- {
- ModuleUserData_Impl* pData = (ModuleUserData_Impl*)pEntry->GetUserData();
- if(!pData->IsParent() && pData->GetType() != TYPE_HYPH)
- {
- USHORT nCurPos = pBox->GetSelectEntryPos();
- if(nCurPos < pBox->GetEntryCount() - 1)
- {
- bDisableDown = ((ModuleUserData_Impl*)pBox->
- GetEntry(nCurPos + 1)->GetUserData())->IsParent();
- }
- if(nCurPos > 1)
- {
- bDisableUp = ((ModuleUserData_Impl*)pBox->
- GetEntry(nCurPos - 1)->GetUserData())->IsParent();
- }
- }
- aPrioUpPB.Enable(!bDisableUp);
- aPrioDownPB.Enable(!bDisableDown);
- }
- }
- else
- {
- DBG_ERROR( "pBox unexpected value" );
- }
-
- return 0;
-}
-/* -----------------------------28.05.01 11:00--------------------------------
-
- ---------------------------------------------------------------------------*/
-IMPL_LINK( SvxEditModulesDlg, BoxCheckButtonHdl_Impl, SvTreeListBox *, pBox )
-{
-// if (pBox == (SvTreeListBox *) &aModulesCLB)
-// {
- pBox = &aModulesCLB;
- SvLBoxEntry *pCurEntry = pBox->GetCurEntry();
- if (pCurEntry)
- {
- ModuleUserData_Impl* pData = (ModuleUserData_Impl *)
- pCurEntry->GetUserData();
- if (!pData->IsParent() && pData->GetType() == TYPE_HYPH)
- {
- // make hyphenator checkboxes function as radio-buttons
- // (at most one box may be checked)
- SvLBoxEntry *pEntry = pBox->First();
- while (pEntry)
- {
- pData = (ModuleUserData_Impl *) pEntry->GetUserData();
- if (!pData->IsParent() &&
- pData->GetType() == TYPE_HYPH &&
- pEntry != pCurEntry)
- {
- lcl_SetCheckButton( pEntry, FALSE );
- pBox->InvalidateEntry( pEntry );
- }
- pEntry = pBox->Next( pEntry );
- }
- }
- }
-// }
- return 0;
-}
-/* -----------------------------27.11.00 14:00--------------------------------
-
- ---------------------------------------------------------------------------*/
-OUString lcl_GetServiceName(BYTE nType)
-{
- switch(nType)
- {
- case TYPE_SPELL : return C2U(cSpell);
- case TYPE_GRAMMAR : return C2U(cGrammar);
- case TYPE_HYPH : return C2U(cHyph);
- case TYPE_THES : return C2U(cThes);
- }
- return OUString();
-}
-
-
-IMPL_LINK( SvxEditModulesDlg, LangSelectHdl_Impl, ListBox *, pBox )
-{
- LanguageType eCurLanguage = aLanguageLB.GetSelectLanguage();
- static Locale aLastLocale;
- Locale aCurLocale;
- SvxLanguageToLocale(aCurLocale, eCurLanguage);
- SvLBoxTreeList *pModel = aModulesCLB.GetModel();
-// uno::Reference<XLinguServiceManager>& xMgr = rLinguData.GetManager();
-
- if (pBox)
- {
- // save old probably changed settings
- // before switching to new language entries
-
- INT16 nLang = SvxLocaleToLanguage( aLastLocale );
-
- sal_Int32 nStart = 0, nLocalIndex = 0;
- Sequence< OUString > aChange;
- sal_Bool bChanged = FALSE;
- for(USHORT i = 0; i < aModulesCLB.GetEntryCount(); i++)
- {
- SvLBoxEntry *pEntry = aModulesCLB.GetEntry(i);
- ModuleUserData_Impl* pData = (ModuleUserData_Impl*)pEntry->GetUserData();
- if(pData->IsParent())
- {
- if(bChanged)
- {
- LangImplNameTable *pTable = 0;
- BYTE nType = pData->GetType();
- switch (nType - 1)
- {
- case TYPE_SPELL : pTable = &rLinguData.GetSpellTable(); break;
- case TYPE_GRAMMAR : pTable = &rLinguData.GetGrammarTable(); break;
- case TYPE_HYPH : pTable = &rLinguData.GetHyphTable(); break;
- case TYPE_THES : pTable = &rLinguData.GetThesTable(); break;
- }
- if (pTable)
- {
- aChange.realloc(nStart);
- (*pTable)[ nLang ] = aChange;
- }
- }
- nLocalIndex = nStart = 0;
- aChange.realloc(aModulesCLB.GetEntryCount());
- bChanged = FALSE;
- }
- else
- {
- OUString* pChange = aChange.getArray();
- pChange[nStart] = pData->GetImplName();
- bChanged |= pData->GetIndex() != nLocalIndex ||
- pData->IsChecked() != aModulesCLB.IsChecked(i);
- if(aModulesCLB.IsChecked(i))
- nStart++;
- ++nLocalIndex;
- }
- }
- if(bChanged)
- {
- aChange.realloc(nStart);
- rLinguData.GetThesTable()[ nLang ] = aChange;
- }
- }
-
- for(ULONG i = 0; i < aModulesCLB.GetEntryCount(); i++)
- delete (ModuleUserData_Impl*)aModulesCLB.GetEntry(i)->GetUserData();
-
- //
- // display entries for new selected language
- //
- aModulesCLB.Clear();
- if(LANGUAGE_DONTKNOW != eCurLanguage)
- {
-// sal_Int32 nEntryPos = 1;
-
- ULONG n;
- ServiceInfo_Impl* pInfo;
-
- //
- // spellchecker entries
- //
- SvLBoxEntry* pEntry = CreateEntry( sSpell, CBCOL_SECOND );
- ModuleUserData_Impl* pUserData = new ModuleUserData_Impl(
- String(), TRUE, FALSE, TYPE_SPELL, 0 );
- pEntry->SetUserData( (void *)pUserData );
- pModel->Insert( pEntry );
- //
- Sequence< OUString > aNames( rLinguData.GetSortedImplNames( eCurLanguage, TYPE_SPELL ) );
- const OUString *pName = aNames.getConstArray();
- ULONG nNames = (ULONG) aNames.getLength();
- sal_Int32 nLocalIndex = 0; // index relative to parent
- for (n = 0; n < nNames; ++n)
- {
- OUString aImplName;
- BOOL bIsSuppLang = FALSE;
-
- pInfo = rLinguData.GetInfoByImplName( pName[n] );
- if (pInfo)
- {
- bIsSuppLang = pInfo->xSpell.is() &&
- pInfo->xSpell->hasLocale( aCurLocale );
- aImplName = pInfo->sSpellImplName;
- }
- if (aImplName.getLength() && bIsSuppLang)
- {
- String aTxt( pInfo->sDisplayName );
- SvLBoxEntry* pNewEntry = CreateEntry( aTxt, CBCOL_FIRST );
-
- LangImplNameTable &rTable = rLinguData.GetSpellTable();
- const bool bHasLang = rTable.count( eCurLanguage );
- if (!bHasLang)
- {
- DBG_WARNING( "language entry missing" ); // only relevant if all languages found should be supported
- }
- const bool bCheck = bHasLang && lcl_SeqGetEntryPos( rTable[ eCurLanguage ], aImplName ) >= 0;
- lcl_SetCheckButton( pNewEntry, bCheck );
- pUserData = new ModuleUserData_Impl( aImplName, FALSE,
- bCheck, TYPE_SPELL, (BYTE)nLocalIndex++ );
- pNewEntry->SetUserData( (void *)pUserData );
- pModel->Insert( pNewEntry );
- }
- }
-
- //
- // grammar checker entries
- //
- pEntry = CreateEntry( sGrammar, CBCOL_SECOND );
- pUserData = new ModuleUserData_Impl( String(), TRUE, FALSE, TYPE_GRAMMAR, 0 );
- pEntry->SetUserData( (void *)pUserData );
- pModel->Insert( pEntry );
- //
- aNames = rLinguData.GetSortedImplNames( eCurLanguage, TYPE_GRAMMAR );
- pName = aNames.getConstArray();
- nNames = (ULONG) aNames.getLength();
- nLocalIndex = 0;
- for (n = 0; n < nNames; ++n)
- {
- OUString aImplName;
- BOOL bIsSuppLang = FALSE;
-
- pInfo = rLinguData.GetInfoByImplName( pName[n] );
- if (pInfo)
- {
- bIsSuppLang = pInfo->xGrammar.is() &&
- pInfo->xGrammar->hasLocale( aCurLocale );
- aImplName = pInfo->sGrammarImplName;
- }
- if (aImplName.getLength() && bIsSuppLang)
- {
- String aTxt( pInfo->sDisplayName );
- SvLBoxEntry* pNewEntry = CreateEntry( aTxt, CBCOL_FIRST );
-
- LangImplNameTable &rTable = rLinguData.GetGrammarTable();
- const bool bHasLang = rTable.count( eCurLanguage );
- if (!bHasLang)
- {
- DBG_WARNING( "language entry missing" ); // only relevant if all languages found should be supported
- }
- const bool bCheck = bHasLang && lcl_SeqGetEntryPos( rTable[ eCurLanguage ], aImplName ) >= 0;
- lcl_SetCheckButton( pNewEntry, bCheck );
- pUserData = new ModuleUserData_Impl( aImplName, FALSE,
- bCheck, TYPE_GRAMMAR, (BYTE)nLocalIndex++ );
- pNewEntry->SetUserData( (void *)pUserData );
- pModel->Insert( pNewEntry );
- }
- }
-
- //
- // hyphenator entries
- //
- pEntry = CreateEntry( sHyph, CBCOL_SECOND );
- pUserData = new ModuleUserData_Impl( String(), TRUE, FALSE, TYPE_HYPH, 0 );
- pEntry->SetUserData( (void *)pUserData );
- pModel->Insert( pEntry );
- //
- aNames = rLinguData.GetSortedImplNames( eCurLanguage, TYPE_HYPH );
- pName = aNames.getConstArray();
- nNames = (ULONG) aNames.getLength();
- nLocalIndex = 0;
- for (n = 0; n < nNames; ++n)
- {
- OUString aImplName;
- BOOL bIsSuppLang = FALSE;
-
- pInfo = rLinguData.GetInfoByImplName( pName[n] );
- if (pInfo)
- {
- bIsSuppLang = pInfo->xHyph.is() &&
- pInfo->xHyph->hasLocale( aCurLocale );
- aImplName = pInfo->sHyphImplName;
- }
- if (aImplName.getLength() && bIsSuppLang)
- {
- String aTxt( pInfo->sDisplayName );
- SvLBoxEntry* pNewEntry = CreateEntry( aTxt, CBCOL_FIRST );
-
- LangImplNameTable &rTable = rLinguData.GetHyphTable();
- const bool bHasLang = rTable.count( eCurLanguage );
- if (!bHasLang)
- {
- DBG_WARNING( "language entry missing" ); // only relevant if all languages found should be supported
- }
- const bool bCheck = bHasLang && lcl_SeqGetEntryPos( rTable[ eCurLanguage ], aImplName ) >= 0;
- lcl_SetCheckButton( pNewEntry, bCheck );
- pUserData = new ModuleUserData_Impl( aImplName, FALSE,
- bCheck, TYPE_HYPH, (BYTE)nLocalIndex++ );
- pNewEntry->SetUserData( (void *)pUserData );
- pModel->Insert( pNewEntry );
- }
- }
-
- //
- // thesaurus entries
- //
- pEntry = CreateEntry( sThes, CBCOL_SECOND );
- pUserData = new ModuleUserData_Impl( String(), TRUE, FALSE, TYPE_THES, 0 );
- pEntry->SetUserData( (void *)pUserData );
- pModel->Insert( pEntry );
- //
- aNames = rLinguData.GetSortedImplNames( eCurLanguage, TYPE_THES );
- pName = aNames.getConstArray();
- nNames = (ULONG) aNames.getLength();
- nLocalIndex = 0;
- for (n = 0; n < nNames; ++n)
- {
- OUString aImplName;
- BOOL bIsSuppLang = FALSE;
-
- pInfo = rLinguData.GetInfoByImplName( pName[n] );
- if (pInfo)
- {
- bIsSuppLang = pInfo->xThes.is() &&
- pInfo->xThes->hasLocale( aCurLocale );
- aImplName = pInfo->sThesImplName;
- }
- if (aImplName.getLength() && bIsSuppLang)
- {
- String aTxt( pInfo->sDisplayName );
- SvLBoxEntry* pNewEntry = CreateEntry( aTxt, CBCOL_FIRST );
-
- LangImplNameTable &rTable = rLinguData.GetThesTable();
- const bool bHasLang = rTable.count( eCurLanguage );
- if (!bHasLang)
- {
- DBG_WARNING( "language entry missing" ); // only relevant if all languages found should be supported
- }
- const bool bCheck = bHasLang && lcl_SeqGetEntryPos( rTable[ eCurLanguage ], aImplName ) >= 0;
- lcl_SetCheckButton( pNewEntry, bCheck );
- pUserData = new ModuleUserData_Impl( aImplName, FALSE,
- bCheck, TYPE_THES, (BYTE)nLocalIndex++ );
- pNewEntry->SetUserData( (void *)pUserData );
- pModel->Insert( pNewEntry );
- }
- }
- }
- aLastLocale.Language = aCurLocale.Language;
- aLastLocale.Country = aCurLocale.Country;
- return 0;
-}
-/* -----------------------------27.11.00 19:50--------------------------------
-
- ---------------------------------------------------------------------------*/
-IMPL_LINK( SvxEditModulesDlg, UpDownHdl_Impl, PushButton *, pBtn )
-{
- sal_Bool bUp = &aPrioUpPB == pBtn;
- USHORT nCurPos = aModulesCLB.GetSelectEntryPos();
- SvLBoxEntry* pEntry;
- if (nCurPos != LISTBOX_ENTRY_NOTFOUND &&
- 0 != (pEntry = aModulesCLB.GetEntry(nCurPos)))
- {
- aModulesCLB.SetUpdateMode(FALSE);
- SvLBoxTreeList *pModel = aModulesCLB.GetModel();
-
- ModuleUserData_Impl* pData = (ModuleUserData_Impl*)pEntry->GetUserData();
- String aStr(aModulesCLB.GetEntryText(pEntry));
- SvLBoxEntry* pToInsert = CreateEntry( aStr, CBCOL_FIRST );
- pToInsert->SetUserData( (void *)pData);
- BOOL bIsChecked = aModulesCLB.IsChecked(nCurPos);
-
- pModel->Remove(pEntry);
-
- USHORT nDestPos = bUp ? nCurPos - 1 : nCurPos + 1;
- pModel->Insert(pToInsert, nDestPos);
- aModulesCLB.CheckEntryPos(nDestPos, bIsChecked );
- aModulesCLB.SelectEntryPos(nDestPos );
- SelectHdl_Impl(&aModulesCLB);
- aModulesCLB.SetUpdateMode(TRUE);
- }
- return 0;
-}
-/* ---------------------------------------------------------------------------
-
- ---------------------------------------------------------------------------*/
-IMPL_LINK( SvxEditModulesDlg, ClickHdl_Impl, PushButton *, pBtn )
-{
- if (&aClosePB == pBtn)
- {
- // store language config
- LangSelectHdl_Impl(&aLanguageLB);
- EndDialog( RET_OK );
- }
- else
- {
- DBG_ERROR( "pBtn unexpected value" );
- }
-
- return 0;
-}
-/* -----------------------------27.11.00 20:31--------------------------------
-
- ---------------------------------------------------------------------------*/
-IMPL_LINK( SvxEditModulesDlg, BackHdl_Impl, PushButton *, EMPTYARG )
-{
- rLinguData = *pDefaultLinguData;
- LangSelectHdl_Impl(0);
- return 0;
-}
-
-// -----------------------------------------------------------------------
-
-IMPL_LINK( SvxEditModulesDlg, OpenURLHdl_Impl, svt::FixedHyperlink *, EMPTYARG )
-{
- ::rtl::OUString sURL( aMoreDictsLink.GetURL() );
- lcl_OpenURL( sURL );
- return 0;
-}
-
diff --git a/svx/source/options/optlingu.hrc b/svx/source/options/optlingu.hrc
deleted file mode 100644
index e1dcacbcff..0000000000
--- a/svx/source/options/optlingu.hrc
+++ /dev/null
@@ -1,91 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optlingu.hrc,v $
- * $Revision: 1.9 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
-
-// defines ---------------------------------------------------------------
-
-#define FL_LINGUISTIC 101
-
-#define FT_LINGU_MODULES 111
-#define CLB_LINGU_MODULES 112
-#define PB_LINGU_MODULES_EDIT 113
-
-#define FT_LINGU_OPTIONS 121
-#define CLB_LINGU_OPTIONS 122
-#define PB_LINGU_OPTIONS_EDIT 123
-#define FT_LINGU_OPTIONS_MOREDICTS 124
-
-#define STR_CAPITAL_WORDS 201
-#define STR_WORDS_WITH_DIGITS 202
-#define STR_CAPITALIZATION 203
-#define STR_SPELL_SPECIAL 204
-#define STR_SPELL_AUTO 206
-#define STR_NUM_PRE_BREAK 209
-#define STR_NUM_POST_BREAK 210
-#define STR_HYPH_AUTO 211
-#define STR_HYPH_SPECIAL 212
-#define STR_NUM_MIN_WORDLEN 213
-
-#define STR_NUM_PRE_BREAK_DLG 214
-#define STR_NUM_POST_BREAK_DLG 215
-#define STR_NUM_MIN_WORDLEN_DLG 216
-
-#define STR_GRAMMAR_AUTO 217
-
-#define STR_WARNING 63
-
-#define PB_OK 70
-#define PB_HELP 72
-
-#define ST_SPELL 82
-#define ST_HYPH 83
-#define ST_THES 84
-#define ST_GRAMMAR 85
-
-#define FL_NUMVAL_PREBREAK 305
-#define BT_OK_PREBREAK 306
-#define BT_CANCEL_PREBREAK 307
-#define ED_PREBREAK 308
-#define PB_EDIT_MODULES_PRIO_UP 309
-#define PB_EDIT_MODULES_PRIO_DOWN 310
-#define PB_EDIT_MODULES_PRIO_BACK 311
-
-#define FT_LINGU_DICS 312
-#define CLB_LINGU_DICS 313
-#define PB_LINGU_DICS_NEW_DIC 314
-#define PB_LINGU_DICS_EDIT_DIC 315
-#define PB_LINGU_DICS_DEL_DIC 316
-
-#define FL_EDIT_MODULES_OPTIONS 317
-#define FT_EDIT_MODULES_LANGUAGE 318
-#define LB_EDIT_MODULES_LANGUAGE 319
-#define CLB_EDIT_MODULES_MODULES 320
-#define FT_EDIT_MODULES_NEWDICTSLINK 321
-#define FL_EDIT_MODULES_BUTTONS 322
-
diff --git a/svx/source/options/optlingu.src b/svx/source/options/optlingu.src
deleted file mode 100644
index a550451193..0000000000
--- a/svx/source/options/optlingu.src
+++ /dev/null
@@ -1,357 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optlingu.src,v $
- * $Revision: 1.51 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
-
-// include ------------------------------------------------------------------
-
-#include "optlingu.hrc"
-#include "helpid.hrc"
-
-#include <svtools/controldims.hrc>
-#include <sfx2/sfx.hrc>
-#include <svx/dialogs.hrc>
-
-// RID_SVXDLG_EDIT_MODULES ---------------------------------------------------
-
-ModalDialog RID_SVXDLG_EDIT_MODULES
-{
- HelpID = HID_EDIT_MODULES ;
- SVLook = TRUE ;
- Moveable = TRUE ;
- Size = MAP_APPFONT ( 240 , 197 ) ;
- Text [ en-US ] = "Edit Modules";
-
- FixedLine FL_EDIT_MODULES_OPTIONS
- {
- Pos = MAP_APPFONT ( RSC_SP_FLGR_INNERBORDER_LEFT , RSC_SP_FLGR_INNERBORDER_TOP ) ;
- Size = MAP_APPFONT ( 240 - 2*RSC_SP_FLGR_INNERBORDER_LEFT , RSC_CD_FIXEDLINE_HEIGHT ) ;
- Text [ en-US ] = "Options";
- };
- FixedText FT_EDIT_MODULES_LANGUAGE
- {
- Left = TRUE ;
- Pos = MAP_APPFONT ( 12 , 16 ) ;
- Size = MAP_APPFONT ( 68 , RSC_CD_FIXEDTEXT_HEIGHT ) ;
- Text [ en-US ] = "Language";
- };
- ListBox LB_EDIT_MODULES_LANGUAGE
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( 83 , 14 ) ;
- Size = MAP_APPFONT ( 95 , 80 ) ;
- DropDown = TRUE ;
- Sort = TRUE ;
- };
- Control CLB_EDIT_MODULES_MODULES
- {
- Pos = MAP_APPFONT ( 12 , 32 ) ;
- Size = MAP_APPFONT ( 166 , 120 ) ;
- Border = TRUE ;
- TabStop = TRUE ;
- };
- PushButton PB_EDIT_MODULES_PRIO_UP
- {
- Pos = MAP_APPFONT ( 184 , 32 ) ;
- Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "Move Up";
- };
- PushButton PB_EDIT_MODULES_PRIO_DOWN
- {
- Pos = MAP_APPFONT ( 184 , 49 ) ;
- Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "Move Down";
- };
- PushButton PB_EDIT_MODULES_PRIO_BACK
- {
- Pos = MAP_APPFONT ( 184 , 66 ) ;
- Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "~Back";
- };
- FixedText FT_EDIT_MODULES_NEWDICTSLINK
- {
- Left = TRUE ;
- Pos = MAP_APPFONT ( 12 , 155 ) ;
- Size = MAP_APPFONT ( 169 , RSC_CD_FIXEDTEXT_HEIGHT ) ;
- Text [ en-US ] = "~Get more dictionaries online...";
- };
- FixedLine FL_EDIT_MODULES_BUTTONS
- {
- Pos = MAP_APPFONT ( 0 , 166 ) ;
- Size = MAP_APPFONT ( 240 , RSC_CD_FIXEDLINE_HEIGHT ) ;
- };
- HelpButton PB_HELP
- {
- Pos = MAP_APPFONT ( 12, 177 ) ;
- Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
- };
- OKButton PB_OK
- {
- Pos = MAP_APPFONT ( 184 , 177 ) ;
- Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
- Text [ en-US ] = "Close";
- };
-
- String ST_SPELL
- {
- Text [ en-US ] = "Spelling";
- };
- String ST_HYPH
- {
- Text [ en-US ] = "Hyphenation";
- };
- String ST_THES
- {
- Text [ en-US ] = "Thesaurus";
- };
- String ST_GRAMMAR
- {
- Text [ en-US ] = "Grammar";
- };
-};
-
-// RID_SVXDLG_LNG_ED_NUM_PREBREAK -------------------------------------------
-
-ModalDialog RID_SVXDLG_LNG_ED_NUM_PREBREAK
-{
- HelpID = HID_LNGDLG_NUM_PREBREAK ;
- SVLook = TRUE ;
- Moveable = TRUE ;
- Size = MAP_APPFONT ( 155 , 43 ) ;
- Text [ en-US ] = "Hyphenation";
- FixedLine FL_NUMVAL_PREBREAK
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 87 , 8 ) ;
- };
- OKButton BT_OK_PREBREAK
- {
- Pos = MAP_APPFONT ( 99 , 6 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- DefButton = TRUE ;
- };
- CancelButton BT_CANCEL_PREBREAK
- {
- Pos = MAP_APPFONT ( 99 , 23 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- };
- NumericField ED_PREBREAK
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( 56 , 14 ) ;
- Size = MAP_APPFONT ( 31 , 12 ) ;
- Left = TRUE ;
- Minimum = 2 ;
- Maximum = 9 ;
- Last = 9 ;
- Repeat = TRUE ;
- Spin = TRUE ;
- SpinSize = 1;
- };
- String STR_NUM_PRE_BREAK_DLG
- {
- Text [ en-US ] = "Characters before break";
- };
- String STR_NUM_POST_BREAK_DLG
- {
- Text [ en-US ] = "Characters after break";
- };
- String STR_NUM_MIN_WORDLEN_DLG
- {
- Text [ en-US ] = "Minimal word length";
- };
-};
-
-// RID_SFXPAGE_LINGU --------------------------------------------------------
-
-TabPage RID_SFXPAGE_LINGU
-{
- HelpId = HID_OPTIONS_LINGU ;
- SVLook = TRUE ;
- Hide = TRUE ;
- Size = MAP_APPFONT ( 260 , 185 ) ;
- Text [ en-US ] = "Options";
- FixedLine FL_LINGUISTIC
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "Writing aids";
- };
- FixedText FT_LINGU_MODULES
- {
- Left = TRUE ;
- Pos = MAP_APPFONT ( 12 , 14 ) ;
- Size = MAP_APPFONT ( 175 , 8 ) ;
- Text [ en-US ] = "Available language modules";
- };
- Control CLB_LINGU_MODULES
- {
- Pos = MAP_APPFONT ( 12 , 25 ) ;
- Size = MAP_APPFONT ( 182 , 30 ) ;
- Border = TRUE ;
- TabStop = TRUE ;
- };
- PushButton PB_LINGU_MODULES_EDIT
- {
- Pos = MAP_APPFONT ( 198 , 25 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "~Edit...";
- };
- FixedText FT_LINGU_DICS
- {
- Left = TRUE ;
- Pos = MAP_APPFONT ( 12 , 59 ) ;
- Size = MAP_APPFONT ( 175 , 8 ) ;
- Text [ en-US ] = "User-defined dictionaries";
- };
- Control CLB_LINGU_DICS
- {
- Pos = MAP_APPFONT ( 12 , 70 ) ;
- Size = MAP_APPFONT ( 182 , 48 ) ;
- Border = TRUE ;
- TabStop = TRUE ;
- };
- PushButton PB_LINGU_DICS_NEW_DIC
- {
- Pos = MAP_APPFONT ( 198 , 70 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "~New...";
- };
- PushButton PB_LINGU_DICS_EDIT_DIC
- {
- Pos = MAP_APPFONT ( 198 , 87 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "Ed~it...";
- };
- PushButton PB_LINGU_DICS_DEL_DIC
- {
- Pos = MAP_APPFONT ( 198 , 104 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "~Delete";
- };
- FixedText FT_LINGU_OPTIONS
- {
- Left = TRUE ;
- Pos = MAP_APPFONT ( 12 , 122 ) ;
- Size = MAP_APPFONT ( 175 , 8 ) ;
- Text [ en-US ] = "~Options";
- };
- Control CLB_LINGU_OPTIONS
- {
- Pos = MAP_APPFONT ( 12 , 133 ) ;
- Size = MAP_APPFONT ( 182 , 46 ) ;
- Border = TRUE ;
- TabStop = TRUE ;
- };
- PushButton PB_LINGU_OPTIONS_EDIT
- {
- Pos = MAP_APPFONT ( 198 , 133 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "Edi~t...";
- };
- FixedText FT_LINGU_OPTIONS_MOREDICTS
- {
- Left = TRUE ;
- Hide = TRUE ;
- Pos = MAP_APPFONT ( 12 , 182 ) ;
- Size = MAP_APPFONT ( 182 , RSC_CD_FIXEDTEXT_HEIGHT ) ;
- Text [ en-US ] = "~Get more dictionaries online...";
- };
-
- String STR_CAPITAL_WORDS
- {
- Text [ en-US ] = "Check uppercase words";
- };
- String STR_WORDS_WITH_DIGITS
- {
- Text [ en-US ] = "Check words with numbers ";
- };
- String STR_CAPITALIZATION
- {
- Text [ en-US ] = "Check capitalization";
- };
- String STR_SPELL_SPECIAL
- {
- Text [ en-US ] = "Check special regions";
- };
- String STR_SPELL_AUTO
- {
- Text [ en-US ] = "Check spelling as you type";
- };
- String STR_GRAMMAR_AUTO
- {
- Text [ en-US ] = "Check grammar as you type";
- };
- String STR_NUM_MIN_WORDLEN
- {
- Text [ en-US ] = "Minimal number of characters for hyphenation: ";
- };
- String STR_NUM_PRE_BREAK
- {
- Text [ en-US ] = "Characters before line break: ";
- };
- String STR_NUM_POST_BREAK
- {
- Text [ en-US ] = "Characters after line break: ";
- };
- String STR_HYPH_AUTO
- {
- Text [ en-US ] = "Hyphenate without inquiry";
- };
- String STR_HYPH_SPECIAL
- {
- Text [ en-US ] = "Hyphenate special regions";
- };
-};
-// end: TabPage RID_SFXPAGE_LINGU
-
- // RID_SFXQB_DELDICT --------------------------------------------------------
-QueryBox RID_SFXQB_DELDICT
-{
- Buttons = WB_YES_NO ;
- DefButton = WB_DEF_NO ;
- Message [ en-US ] = "Do you want to delete the dictionary?" ;
-};
- // RID_SFXQB_DEL_IGNORELIST ----------------------------------------------
-QueryBox RID_SFXQB_DEL_IGNORELIST
-{
- Buttons = WB_YES_NO ;
- DefButton = WB_DEF_NO ;
- Message [ en-US ] = "Do you want to delete the ignore list?" ;
-};
- // ******************************************************************* EOF
diff --git a/svx/source/options/optpath.src b/svx/source/options/optpath.src
deleted file mode 100644
index 82f8aade66..0000000000
--- a/svx/source/options/optpath.src
+++ /dev/null
@@ -1,203 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optpath.src,v $
- * $Revision: 1.35 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
- // include --------------------------------------------------------------
-#include "optpath.hrc"
-#include <svx/dialogs.hrc>
-#ifndef _SFX_HRC
-#include <sfx2/sfx.hrc>
-#endif
-#include "helpid.hrc"
-
- // RID_SFXPAGE_PATH -----------------------------------------------------
-#define STD_MASKCOLOR Color { Red=0xffff; Green=0x0000; Blue=0xffff; }
-TabPage RID_SFXPAGE_PATH
-{
- HelpId = HID_OPTIONS_PATH ;
- OutputSize = TRUE ;
- SVLook = TRUE ;
- Hide = TRUE ;
- Size = MAP_APPFONT ( 260 , 185 ) ;
- Text [ en-US ] = "Paths" ;
- FixedText FT_TYPE
- {
- Hide = TRUE;
- Pos = MAP_APPFONT ( 12 , 14 ) ;
- Size = MAP_APPFONT ( 40 , 10 ) ;
- Text [ en-US ] = "Type" ;
- };
- FixedText FT_PATH
- {
- Hide = TRUE;
- Pos = MAP_APPFONT ( 110 , 14 ) ;
- Size = MAP_APPFONT ( 40 , 10 ) ;
- Text [ en-US ] = "Path" ;
- };
- Control LB_PATH
- {
- Pos = MAP_APPFONT ( 12 , 14 ) ;
- Size = MAP_APPFONT ( 236 , 147 ) ;
- Border = TRUE ;
- TabStop = TRUE;
- };
- PushButton BTN_PATH
- {
- Pos = MAP_APPFONT ( 183 , 165 ) ;
- Size = MAP_APPFONT ( 65 , 14 ) ;
- Text [ en-US ] = "~Edit..." ;
- };
- PushButton BTN_STANDARD
- {
- Pos = MAP_APPFONT ( 115 , 165 ) ;
- Size = MAP_APPFONT ( 65 , 14 ) ;
- Text [ en-US ] = "~Default" ;
- };
- FixedLine GB_STD
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "Paths used by %PRODUCTNAME" ;
- };
- Image IMG_LOCK
- {
- ImageBitmap = Bitmap { File = "lock.bmp"; };
- MaskColor = STD_MASKCOLOR;
- };
- Image IMG_LOCK_HC
- {
- ImageBitmap = Bitmap { File = "lock_hc.bmp"; };
- MaskColor = STD_MASKCOLOR;
- };
- String STR_MULTIPATHDLG
- {
- Text [ en-US ] = "Edit Paths: %1" ;
- };
-};
-ErrorBox RID_SVXERR_OPT_DOUBLEPATHS
-{
- BUTTONS = WB_OK ;
- DEFBUTTON = WB_DEF_OK ;
- Message [ en-US ] = "The configuration and mail directories must be specified as separate directories.\nPlease choose a new path." ;
-};
- // ******************************************************************* EOF
-String RID_SVXSTR_KEY_CONFIG_DIR
-{
- Text [ en-US ] = "Configuration" ;
-};
-String RID_SVXSTR_KEY_WORK_PATH
-{
- Text [ en-US ] = "My Documents" ;
-};
-String RID_SVXSTR_KEY_GRAPHICS_PATH
-{
- Text [ en-US ] = "Graphics" ;
-};
-String RID_SVXSTR_KEY_BITMAP_PATH
-{
- Text [ en-US ] = "Icons" ;
-};
-String RID_SVXSTR_KEY_BASIC_PATH
-{
- Text = "BASIC" ;
-};
-
-String RID_SVXSTR_KEY_PALETTE_PATH
-{
- Text [ en-US ] = "Palettes" ;
-};
-String RID_SVXSTR_KEY_BACKUP_PATH
-{
- Text [ en-US ] = "Backups" ;
-};
-String RID_SVXSTR_KEY_MODULES_PATH
-{
- Text [ en-US ] = "Modules" ;
-};
-String RID_SVXSTR_KEY_TEMPLATE_PATH
-{
- Text [ en-US ] = "Templates" ;
-};
-String RID_SVXSTR_KEY_GLOSSARY_PATH
-{
- Text [ en-US ] = "AutoText";
-};
-String RID_SVXSTR_KEY_DICTIONARY_PATH
-{
- Text [ en-US ] = "Dictionaries" ;
-};
-String RID_SVXSTR_KEY_HELP_DIR
-{
- Text [ en-US ] = "Help" ;
-};
-String RID_SVXSTR_KEY_GALLERY_DIR
-{
- Text [ en-US ] = "Gallery" ;
-};
-
-String RID_SVXSTR_KEY_STORAGE_DIR
-{
- Text [ en-US ] = "Message Storage" ;
-};
-String RID_SVXSTR_KEY_TEMP_PATH
-{
- Text [ en-US ] = "Temporary files";
-};
-String RID_SVXSTR_KEY_PLUGINS_PATH
-{
- Text [ en-US ] = "Plug-ins";
-};
-String RID_SVXSTR_KEY_FAVORITES_DIR
-{
- Text [ en-US ] = "Folder Bookmarks";
-};
-String RID_SVXSTR_KEY_FILTER_PATH
-{
- Text [ en-US ] = "Filters";
-};
-String RID_SVXSTR_KEY_ADDINS_PATH
-{
- Text [ en-US ] = "Add-ins";
-};
-String RID_SVXSTR_KEY_USERCONFIG_PATH
-{
- Text [ en-US ] = "User Configuration";
-};
-String RID_SVXSTR_KEY_USERDICTIONARY_DIR
-{
- Text [ en-US ] = "User-defined dictionaries";
-};
-String RID_SVXSTR_KEY_AUTOCORRECT_DIR
-{
- Text [ en-US ] = "AutoCorrect";
-};
-String RID_SVXSTR_KEY_LINGUISTIC_DIR
-{
- Text [ en-US ] = "Writing aids";
-};
-
diff --git a/svx/source/options/optsave.src b/svx/source/options/optsave.src
deleted file mode 100644
index ee3d21c435..0000000000
--- a/svx/source/options/optsave.src
+++ /dev/null
@@ -1,325 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optsave.src,v $
- * $Revision: 1.82 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
-
- // include ---------------------------------------------------------------
-#include <sfx2/sfx.hrc>
-#include <svx/dialogs.hrc>
-#include "helpid.hrc"
-#include "optsave.hrc"
-
- // SID_SFXPAGE_SAVE ------------------------------------------------------
-#define TEXT_SAVEPAGE \
- Text [ en-US ] = "Save" ;\
-
-TabPage RID_SFXPAGE_SAVE
-{
- HelpId = HID_OPTIONS_SAVE ;
- OutputSize = TRUE ;
- SVLook = TRUE ;
- Hide = TRUE ;
- TEXT_SAVEPAGE
- Size = MAP_APPFONT ( 260 , 185 ) ;
- FixedLine LB_LOAD
- {
- Pos = MAP_APPFONT ( 6 , 2 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "Load";
- };
- CheckBox CB_LOAD_SETTINGS
- {
- Pos = MAP_APPFONT ( 12 , 11 ) ;
- Size = MAP_APPFONT ( 236 , 10 ) ;
- Text [ en-US ] = "Load user-specific settings with the document";
- };
- CheckBox CB_LOAD_DOCPRINTER
- {
- Pos = MAP_APPFONT ( 12 , 22 ) ;
- Size = MAP_APPFONT ( 236 , 10 ) ;
- Text [ en-US ] = "Load printer settings with the document";
- };
- FixedLine GB_SAVE
- {
- Pos = MAP_APPFONT ( 6 , 32 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "Save" ;
- };
- CheckBox BTN_DOCINFO
- {
- Pos = MAP_APPFONT ( 12 , 41 ) ;
- Size = MAP_APPFONT ( 236 , 10 ) ;
- Text [ en-US ] = "~Edit document properties before saving" ;
- TabStop = TRUE ;
- };
- FixedImage FI_BACKUP
- {
- Pos = MAP_APPFONT ( 5, 53 ) ;
- Size = MAP_APPFONT ( 6 , 6 ) ;
- Hide = TRUE;
- };
- CheckBox BTN_BACKUP
- {
- Pos = MAP_APPFONT ( 12 , 52 ) ;
- Size = MAP_APPFONT ( 236 , 10 ) ;
- Text [ en-US ] = "Al~ways create backup copy" ;
- };
- CheckBox BTN_AUTOSAVE
- {
- Pos = MAP_APPFONT ( 12 , 63 ) ;
- Size = MAP_APPFONT ( 150 , 10 ) ;
- Text [ en-US ] = "Save ~AutoRecovery information every" ;
- };
- NumericField ED_AUTOSAVE
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( 180 , 62 ) ;
- Size = MAP_APPFONT ( 21 , 12 ) ;
- Left = TRUE ;
- Repeat = TRUE ;
- Spin = TRUE ;
- Minimum = 1 ;
- Maximum = 60 ;
- StrictFormat = TRUE ;
- First = 1 ;
- Last = 60 ;
- SpinSize = 1 ;
- TabStop = TRUE ;
- };
- FixedText FT_MINUTE
- {
- Pos = MAP_APPFONT ( 204 , 63 ) ;
- Size = MAP_APPFONT ( 35 , 8 ) ;
- Text [ en-US ] = "Minutes" ;
- };
- CheckBox BTN_RELATIVE_FSYS
- {
- Pos = MAP_APPFONT ( 12 , 74 ) ;
- Size = MAP_APPFONT ( 236 , 10 ) ;
- Text [ en-US ] = "Save URLs relative to file system" ;
- };
- CheckBox BTN_RELATIVE_INET
- {
- Pos = MAP_APPFONT ( 12 , 85 ) ;
- Size = MAP_APPFONT ( 248 , 10 ) ;
- Text [ en-US ] = "Save URLs relative to internet" ;
- };
- FixedLine FL_FILTER
- {
- Pos = MAP_APPFONT ( 6 , 97 ) ;
- Size = MAP_APPFONT ( 248 , 8 ) ;
- Text [ en-US ] = "Default file format and ODF settings" ;
- };
- FixedText FT_ODF_VERSION
- {
- Pos = MAP_APPFONT ( 12 , 107 ) ;
- Size = MAP_APPFONT ( 121 , 8 ) ;
- Text [ en-US ] = "ODF format version" ;
- };
- ListBox LB_ODF_VERSION
- {
- Pos = MAP_APPFONT ( 136 , 105 ) ;
- Size = MAP_APPFONT ( 108 , 58 ) ;
- Border = TRUE;
- DropDown = TRUE;
- StringList [ en-US ] =
- {
- < "1.0/1.1" ; 2 ; > ;
- < "1.2" ; 4 ; > ;
- < "1.2 Extended (recommended)"; 0x7fffffff ; > ;
- };
- };
- CheckBox BTN_NOPRETTYPRINTING
- {
- Pos = MAP_APPFONT ( 12 , 120 ) ;
- Size = MAP_APPFONT ( 248 , 10 ) ;
- Text [ en-US ] = "Size optimization for ODF format" ;
- };
- CheckBox BTN_WARNALIENFORMAT
- {
- Pos = MAP_APPFONT ( 12 , 131 ) ;
- Size = MAP_APPFONT ( 248 , 10 ) ;
- Text [ en-US ] = "Warn when not saving in ODF or default format" ;
- };
- FixedText FT_APP
- {
- Pos = MAP_APPFONT ( 12 , 142 ) ;
- Size = MAP_APPFONT ( 120 , 8 ) ;
- Text [ en-US ] = "D~ocument type";
- };
- FixedText FT_FILTER
- {
- Pos = MAP_APPFONT ( 136 , 142 ) ;
- Size = MAP_APPFONT ( 120 , 8 ) ;
- Text [ en-US ] = "Always sa~ve as";
- };
- ListBox LB_APP
- {
- Pos = MAP_APPFONT ( 12 , 153 ) ;
- Size = MAP_APPFONT ( 108 , 58 ) ;
- Border = TRUE;
- DropDown = TRUE;
- StringList [ en-US ] =
- {
- < "Text document" ; APP_WRITER ; > ;
- < "HTML document" ; APP_WRITER_WEB; > ;
- < "Master document" ; APP_WRITER_GLOBAL; > ;
- < "Spreadsheet" ; APP_CALC ; > ;
- < "Presentation" ; APP_IMPRESS ; > ;
- < "Drawing" ; APP_DRAW ; > ;
- < "Formula" ; APP_MATH ; > ;
- };
- };
- FixedImage FI_FILTER
- {
- Pos = MAP_APPFONT ( 129, 154 ) ;
- Size = MAP_APPFONT ( 6 , 6 ) ;
- Hide = TRUE;
- };
- ListBox LB_FILTER
- {
- Pos = MAP_APPFONT ( 136 , 153 ) ;
- Size = MAP_APPFONT ( 108 , 58 ) ;
- Border = TRUE;
- Sort = TRUE;
- DropDown = TRUE;
- };
- FixedImage FI_ODF_WARNING
- {
- Pos = MAP_APPFONT ( 12, 169 ) ;
- Size = MAP_APPFONT ( 8 , 8 ) ;
- Hide = TRUE;
- };
- FixedText FT_WARN
- {
- Pos = MAP_APPFONT ( 23 , 169 ) ;
- Size = MAP_APPFONT ( 239 , 8 ) ;
- Hide = TRUE;
- Text [ en-US ] = "Not using ODF 1.2 Extended may cause infomation to be lost.";
- Text [ x-comment ] = "EN-US, the term 'extended' must not be translated.";
- };
- Image IMG_ODF_WARNING
- {
- ImageBitmap = Bitmap
- {
- File = "odfwarning.png";
- };
- MaskColor = Color { Red=0xffff; Green=0x0000; Blue=0xffff; };
- };
- Image IMG_ODF_WARNING_HC
- {
- ImageBitmap = Bitmap
- {
- File = "odfwarning_h.png";
- };
- MaskColor = Color { Red=0xffff; Green=0x0000; Blue=0xffff; };
- };
-};
-
-ModalDialog RID_SVXDLG_FILTER_WARNING
-{
- HelpID = HID_SVXDLG_FILTER_WARNING;
- OutputSize = TRUE ;
- Moveable = TRUE ;
- Closeable = TRUE ;
- Sizeable = FALSE ;
- Border = TRUE ;
- SVLook = TRUE ;
- Size = MAP_APPFONT( 175 + 39 + (3 * 6), (4 * 9)+ 12 + (3 * 12) + 6 - 21 );
- Text = "%PRODUCTNAME %PRODUCTVERSION" ;
- FixedImage IMG_WARNING
- {
- Pos = MAP_APPFONT( 6, 6 );
- Size = MAP_APPFONT( 30, 30 );
- };
- FixedText FT_FILTER_WARNING
- {
- Pos = MAP_APPFONT( 39, 6 );
- Size = MAP_APPFONT( 175, 4 * 9 );
- Wordbreak = TRUE;
- Text [ en-US ] = "Using \"%1\" as default file format may cause information loss.\n";
- };
- OKButton PB_OK
- {
- Pos = MAP_APPFONT( 60, (4 * 9)/*+ 12*/ + 13 );
- Size = MAP_APPFONT( 50, 14 );
- DefButton = TRUE;
- };
- CancelButton PB_CANCEL
- {
- Pos = MAP_APPFONT( 120, (4 * 9)/*+ 12*/ + 13 );
- Size = MAP_APPFONT( 50, 14 );
- };
-};
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/svx/source/options/optspell.src b/svx/source/options/optspell.src
deleted file mode 100644
index 511e3befea..0000000000
--- a/svx/source/options/optspell.src
+++ /dev/null
@@ -1,128 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: optspell.src,v $
- * $Revision: 1.34 $
- *
- * This file is part of OpenOffice.org.
- *
- * 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.
- *
- * 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).
- *
- * 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.
- *
- ************************************************************************/
- // include ------------------------------------------------------------------
-#include <sfx2/sfx.hrc>
-#include "helpid.hrc"
-#include "optspell.hrc"
- // pragma -------------------------------------------------------------------
-
- // RID_SFXPAGE_SPELL --------------------------------------------------------
-TabPage RID_SFXPAGE_SPELL
-{
- HelpId = HID_OPTIONS_SPELL ;
- SVLook = TRUE ;
- Size = MAP_APPFONT ( 221 , 185 ) ;
- Text [ en-US ] = "Spellcheck" ;
- PushButton BTN_BOOK
- {
- Pos = MAP_APPFONT ( 128 , 6 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- Text [ en-US ] = "~Edit..." ;
- TabStop = TRUE ;
- };
- MultiListBox LB_BOOK
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( 12 , 14 ) ;
- Size = MAP_APPFONT ( 103 , 47 ) ;
- TabStop = TRUE ;
- AutoHScroll = TRUE ;
- };
- FixedLine GB_BOOK
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 115 , 66 ) ;
- /* ### ACHTUNG: Neuer Text in Resource? Wörterbücher : W÷rterb³cher */
- /* ### ACHTUNG: Neuer Text in Resource? Wörterbücher : W÷rterb³cher */
- Text [ en-US ] = "Dictionaries" ;
- };
- CheckBox BTN_CAPS
- {
- Pos = MAP_APPFONT ( 12 , 82 ) ;
- Size = MAP_APPFONT ( 103 , 10 ) ;
- /* ### ACHTUNG: Neuer Text in Resource? ~Großgeschriebene Wörter : ~Gro˜geschriebene W÷rter */
- /* ### ACHTUNG: Neuer Text in Resource? ~Großgeschriebene Wörter : ~Gro˜geschriebene W÷rter */
- Text [ en-US ] = "~Capital words" ;
- TabStop = TRUE ;
- };
- CheckBox BTN_NUMS
- {
- Pos = MAP_APPFONT ( 12 , 95 ) ;
- Size = MAP_APPFONT ( 103 , 10 ) ;
- /* ### ACHTUNG: Neuer Text in Resource? ~Wörter mit Ziffern : ~W÷rter mit Ziffern */
- /* ### ACHTUNG: Neuer Text in Resource? ~Wörter mit Ziffern : ~W÷rter mit Ziffern */
- Text [ en-US ] = "~Words with numbers " ;
- TabStop = TRUE ;
- };
- CheckBox BTN_UPLOW
- {
- Pos = MAP_APPFONT ( 12 , 108 ) ;
- Size = MAP_APPFONT ( 103 , 10 ) ;
- /* ### ACHTUNG: Neuer Text in Resource? Groß- u. ~Kleinschreibung : Gro˜- u. ~Kleinschreibung */
- /* ### ACHTUNG: Neuer Text in Resource? Groß- u. ~Kleinschreibung : Gro˜- u. ~Kleinschreibung */
- Text [ en-US ] = "~Case sensitive " ;
- TabStop = TRUE ;
- };
- FixedLine GB_AUDIT
- {
- Pos = MAP_APPFONT ( 6 , 71 ) ;
- Size = MAP_APPFONT ( 115 , 53 ) ;
- /* ### ACHTUNG: Neuer Text in Resource? Prüfen : Pr³fen */
- /* ### ACHTUNG: Neuer Text in Resource? Prüfen : Pr³fen */
- Text [ en-US ] = "Check" ;
- };
-};
- // ********************************************************************** EOF
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/svx/source/options/srchcfg.cxx b/svx/source/options/srchcfg.cxx
index 60ef1a1143..f6d3ebd769 100644
--- a/svx/source/options/srchcfg.cxx
+++ b/svx/source/options/srchcfg.cxx
@@ -34,7 +34,7 @@
#ifndef _SVX_SRCHNCFG_HXX
#include <srchcfg.hxx>
#endif
-#include <svtools/svarray.hxx>
+#include <svl/svarray.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>