summaryrefslogtreecommitdiff
path: root/sw/source/ui/dochdl
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2000-09-18 16:15:01 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2000-09-18 16:15:01 +0000
commit7b0b5cdfeed656b279bc32cd929630d5fc25878b (patch)
tree5b89fb8497d7329d26c43f109bb014c54ffb0e8c /sw/source/ui/dochdl
parentd791366863cf9659a01b171ce0e727bfe2f28cdf (diff)
initial import
Diffstat (limited to 'sw/source/ui/dochdl')
-rw-r--r--sw/source/ui/dochdl/dochdl.src431
-rw-r--r--sw/source/ui/dochdl/gloshdl.cxx1099
-rw-r--r--sw/source/ui/dochdl/makefile.mk99
-rw-r--r--sw/source/ui/dochdl/selglos.cxx170
-rw-r--r--sw/source/ui/dochdl/selglos.hrc65
-rw-r--r--sw/source/ui/dochdl/selglos.src155
6 files changed, 2019 insertions, 0 deletions
diff --git a/sw/source/ui/dochdl/dochdl.src b/sw/source/ui/dochdl/dochdl.src
new file mode 100644
index 000000000000..c708a22da28a
--- /dev/null
+++ b/sw/source/ui/dochdl/dochdl.src
@@ -0,0 +1,431 @@
+/*************************************************************************
+ *
+ * $RCSfile: dochdl.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+
+#include "dochdl.hrc"
+#include "globals.hrc"
+
+
+String STR_NOGLOS1
+{
+ /* ### ACHTUNG: Neuer Text in Resource? AutoText zum Krzel ' : AutoText zum Krzel '' */
+ /* ### ACHTUNG: Neuer Text in Resource? AutoText zum Krzel ' : AutoText zum Krzel '' */
+ /* ### ACHTUNG: Neuer Text in Resource? AutoText zum Krzel ' : AutoText zum Krzel ' */
+ TEXT = "AutoText zum Krzel '" ;
+ TEXT [ English ] = "AutoText for Short Name '" ;
+ TEXT [ norwegian ] = "AutoText for Short Name '" ;
+ TEXT [ italian ] = "Testo automatico per la sigla" ;
+ TEXT [ portuguese_brazilian ] = "Texto Automtico para Abreviao" ;
+ TEXT [ portuguese ] = "AutoTexto para abreviatura '" ;
+ TEXT [ finnish ] = "Automaattiteksti lyhenteelle '" ;
+ TEXT [ danish ] = "AutoTekst til genvej '" ;
+ TEXT [ french ] = "AutoTexte pour raccourci '" ;
+ TEXT [ swedish ] = "AutoText till genvgen '" ;
+ TEXT [ dutch ] = "AutoTekst voor afkortingen'" ;
+ TEXT [ spanish ] = "AutoTexto para la abreviatura '" ;
+ TEXT [ english_us ] = "AutoText for Shortcut '" ;
+ TEXT[ chinese_simplified ] = "Զͼļд '";
+ TEXT[ russian ] = " '";
+ TEXT[ polish ] = "Autotekst do skrtu '";
+ TEXT[ japanese ] = "͎x̼Ķ '";
+ TEXT[ chinese_traditional ] = "۰ʹϤ嶰Yg '";
+ TEXT[ arabic ] = " '";
+ TEXT[ dutch ] = "AutoTekst voor afkortingen'";
+ TEXT[ chinese_simplified ] = "Զͼļд '";
+ TEXT[ greek ] = " '";
+ TEXT[ korean ] = "ڵ ؽƮ ٷΰ '";
+ TEXT[ turkish ] = "Otomatik metin ksaltmas '";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_NOGLOS2
+{
+ /* ### ACHTUNG: Neuer Text in Resource? ' nicht gefunden. : '' nicht gefunden. */
+ /* ### ACHTUNG: Neuer Text in Resource? ' nicht gefunden. : '' nicht gefunden. */
+ /* ### ACHTUNG: Neuer Text in Resource? ' nicht gefunden. : '' nicht gefunden. */
+ /* ### ACHTUNG: Neuer Text in Resource? ' nicht gefunden. : '' nicht gefunden. */
+ TEXT = "' nicht gefunden." ;
+ TEXT [ English ] = "' not found." ;
+ TEXT [ norwegian ] = "' not found." ;
+ TEXT [ italian ] = "' non trovato." ;
+ TEXT [ portuguese_brazilian ] = "' no encontrado." ;
+ TEXT [ portuguese ] = "' no localizado." ;
+ TEXT [ finnish ] = "' ei lydy." ;
+ TEXT [ danish ] = "' blev ikke fundet." ;
+ TEXT [ french ] = "' introuvable." ;
+ TEXT [ swedish ] = "' hittades inte." ;
+ TEXT [ dutch ] = "' niet gevonden." ;
+ TEXT [ spanish ] = "' no se encontr." ;
+ TEXT [ english_us ] = "' not found." ;
+ TEXT[ chinese_simplified ] = "' ûбҵ";
+ TEXT[ russian ] = "' .";
+ TEXT[ polish ] = "' nie znaleziono.";
+ TEXT[ japanese ] = "' ‚܂B";
+ TEXT[ chinese_traditional ] = "' SQC";
+ TEXT[ arabic ] = "' .";
+ TEXT[ dutch ] = "' niet gevonden.";
+ TEXT[ chinese_simplified ] = "' ûбҵ";
+ TEXT[ greek ] = "' .";
+ TEXT[ korean ] = "' ߰ߵ ʽϴ.";
+ TEXT[ turkish ] = "' bulunamad.";
+ TEXT[ language_user1 ] = " ";
+};
+
+String STR_NO_TABLE
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Zu diesem Zeitpunkt kann keine Tabelle eingefgt werden. : Zu diesem Zeitpunkt kann keine Tabelle eingefgt werden. */
+ Text = "Zu diesem Zeitpunkt kann keine Tabelle eingefgt werden." ;
+ Text [ English ] = "Inserting a table is impossible now." ;
+ Text [ norwegian ] = "Inserting a table is impossible now." ;
+ Text [ italian ] = "Adesso impossibile inserire una tabella." ;
+ Text [ portuguese_brazilian ] = "Inserir a tabela agora impossvel." ;
+ Text [ portuguese ] = "De momento no possvel inserir a tabela." ;
+ Text [ finnish ] = "Taulukon lisminen ei ole nyt mahdollista." ;
+ Text [ danish ] = "Det er for tiden ikke muligt at indstte en tabel" ;
+ Text [ french ] = "Impossible d'insrer un tableau maintenant." ;
+ Text [ swedish ] = "En tabell kan inte infogas vid denna tidpunkt." ;
+ Text [ dutch ] = "Tabel kan op dit ogenblik niet worden ingevoegd." ;
+ Text [ spanish ] = "Actualmente no se puede insertar ninguna tabla." ;
+ Text [ english_us ] = "It is currently not possible to insert a table" ;
+ Text[ chinese_simplified ] = "ǰ޷κα";
+ Text[ russian ] = " .";
+ Text[ polish ] = "W tym momencie nie moe by wstawiona tabela.";
+ Text[ japanese ] = "݁A\\̑}͂ł܂B";
+ Text[ chinese_traditional ] = "eLkJC";
+ Text[ arabic ] = " .";
+ Text[ dutch ] = "Tabel kan op dit ogenblik niet worden ingevoegd.";
+ Text[ chinese_simplified ] = "ǰ޷κα";
+ Text[ greek ] = " .";
+ Text[ korean ] = "ǥ ϴ° Ұմϴ.";
+ Text[ turkish ] = "u an tablo eklenemiyor.";
+ Text[ language_user1 ] = " ";
+};
+
+
+InfoBox MSG_ERR_INSERT_GLOS
+{
+ MESSAGE = "AutoText konnte nicht angelegt werden." ;
+ MESSAGE [ English ] = "Could not insert AutoText." ;
+ MESSAGE [ norwegian ] = "Could not insert AutoText." ;
+ MESSAGE [ italian ] = "Impossibile creare voce di glossario." ;
+ MESSAGE [ portuguese_brazilian ] = "No pude inserir Texto Automtico." ;
+ MESSAGE [ portuguese ] = "Impossvel inserir o AutoTexto." ;
+ MESSAGE [ finnish ] = "Automaattiteksti ei voi list." ;
+ MESSAGE [ danish ] = "Det var ikke muligt at oprette AutoTeksten." ;
+ MESSAGE [ french ] = "Impossible de crer l'AutoTexte." ;
+ MESSAGE [ swedish ] = "AutoText kunde inte skapas." ;
+ MESSAGE [ dutch ] = "AutoTekst kon niet worden gemaakt" ;
+ MESSAGE [ spanish ] = "No se pudo crear el AutoTexto." ;
+ MESSAGE [ english_us ] = "AutoText could not be created." ;
+ MESSAGE[ chinese_simplified ] = "޷Զͼļ";
+ MESSAGE[ russian ] = " .";
+ MESSAGE[ polish ] = "Autotekst nie mg zosta utworzony.";
+ MESSAGE[ japanese ] = "͎xł܂";
+ MESSAGE[ chinese_traditional ] = "Lkإߦ۰ʹϤ嶰C";
+ MESSAGE[ arabic ] = " .";
+ MESSAGE[ dutch ] = "AutoTekst kon niet worden gemaakt";
+ MESSAGE[ chinese_simplified ] = "޷Զͼļ";
+ MESSAGE[ greek ] = " .";
+ MESSAGE[ korean ] = "ڵ ؽƮ ϴ.";
+ MESSAGE[ turkish ] = "Otomatik metin oluturulamad.";
+ MESSAGE[ language_user1 ] = " ";
+};
+
+InfoBox MSG_CLPBRD_FORMAT_ERROR
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Gewnschtes Clipboardformat steht nicht zur Verfgung. : Gewnschtes Clipboardformat steht nicht zur Verfgung. */
+ MESSAGE = "Gewnschtes Clipboardformat steht nicht zur Verfgung." ;
+ MESSAGE [ English ] = "Requested clipboard format is not available." ;
+ MESSAGE [ norwegian ] = "Requested clipboard format is not available." ;
+ MESSAGE [ italian ] = "Il formato appunti richiesto non disponibile." ;
+ MESSAGE [ portuguese_brazilian ] = "Formato solicitado de clipboard no est disponvel." ;
+ MESSAGE [ portuguese ] = "Formato da rea de transferncia solicitado no se encontra disponvel." ;
+ MESSAGE [ finnish ] = "Pyydetty leikepydn muoto ei ole kytettviss." ;
+ MESSAGE [ danish ] = "Det anmodede udskriftsholderformat er ikke tilgngeligt." ;
+ MESSAGE [ french ] = "Le format de presse-papiers souhait n'est pas disponible." ;
+ MESSAGE [ swedish ] = "nskat urklippformat str inte till frfogande." ;
+ MESSAGE [ dutch ] = "Gevraagd clipboardformaat is niet beschikbaar." ;
+ MESSAGE [ spanish ] = "El formato deseado del portapapeles no est disponible." ;
+ MESSAGE [ english_us ] = "Requested clipboard format is not available." ;
+ MESSAGE[ chinese_simplified ] = "ҪIJüʽڡ";
+ MESSAGE[ russian ] = " .";
+ MESSAGE[ polish ] = "Szukany format schowka jest niedostpny.";
+ MESSAGE[ japanese ] = "w̸دܰޏ͎gpł܂B";
+ MESSAGE[ chinese_traditional ] = "һݭnï榡sbC";
+ MESSAGE[ arabic ] = " .";
+ MESSAGE[ dutch ] = "Gevraagd clipboardformaat is niet beschikbaar.";
+ MESSAGE[ chinese_simplified ] = "ҪIJüʽڡ";
+ MESSAGE[ greek ] = " clipboard .";
+ MESSAGE[ korean ] = "û Ŭ ʽϴ.";
+ MESSAGE[ turkish ] = "stenen pano format mevcut deil.";
+ MESSAGE[ language_user1 ] = " ";
+};
+
+QueryBox MSG_UPDATE_NEW_GLOS_FMT
+{
+ BUTTONS = WB_YES_NO ;
+ DEFBUTTON = WB_DEF_YES ;
+ MESSAGE = "Der Bereich liegt in einem alten Format vor.\nEr muss konvertiert werden, um nderungen\nspeichern zu knnen.\nSoll er konvertiert werden?" ;
+ MESSAGE [ English ] = "The file format of the region is out-of-date.\nIt must be converted in order to save modifications.\nDo you want to convert it?" ;
+ MESSAGE [ norwegian ] = "The file format of the region is out-of-date.\nIt must be converted in order to save modifications.\nDo you want to convert it?" ;
+ MESSAGE [ italian ] = "Il formato dell'area vecchio.\n necessario convertirlo per poter\nsalvare le modifiche apportate\nVolete convertirlo?" ;
+ MESSAGE [ portuguese_brazilian ] = "O formato de arquivo da regiao est desatualizado.\nDeve ser convertido para que se possa gravar modificaes.\nDeseja convert-lo?" ;
+ MESSAGE [ portuguese ] = "O formato do ficheiro est desactualizado.\nDeve ser convertido para que se possam\n guardar as respectivas alteraes.\nDeseja convert-lo?" ;
+ MESSAGE [ finnish ] = "Alueen tiedostomuoto ei ole ajan tasalla.\nSe on muunnettava, jotta muutokset voitaisiin tallentaa.\nHaluatko muuntaa sen?" ;
+ MESSAGE [ danish ] = "Omrdets filformat er forldet.\nDet skal konverteres, for at ndringerne kan gemmes.\nVil du konvertere det?" ;
+ MESSAGE [ french ] = "La section se trouve dans un format prim.\nVous ne pourrrez enregistrer aucune modification \n moins de le convertir.\nVoulez-vous procder la conversion sans plus attendre ?" ;
+ MESSAGE [ swedish ] = "Omrdet har ett gammalt format.\nDet mste konverteras fr att\nndringar skall kunna sparas.\nVill Du konvertera det?" ;
+ MESSAGE [ dutch ] = "Het bereik heeft een verouderd formaat.\nHet moet worden geconverteerd om de wijzigingen\nte kunnen opslaan.\nWilt u de conversie nu uitvoeren?" ;
+ MESSAGE [ spanish ] = "El formato del rea no es actual.\nHay que convertirlo\npara poder guardar las modificaciones.\nDesea usted convertirlo?" ;
+ MESSAGE [ english_us ] = "The section format is outdated.\nIt needs to be converted so that changes\ncan be saved.\nShould it be converted now?" ;
+ /* ### ACHTUNG: Neuer Text in Resource? Der Bereich liegt in einem alten Format vor.\nEr mu konvertiert werden, um nderungen\nspeichern zu knnen.\nSoll er konvertiert werden? : Der Bereich liegt in einem alten Format vor.\nEr mu konvertiert werden, um nderungen\nspeichern zu knnen.\nSoll er konvertiert werden? */
+ Message = "Der Bereich liegt in einem alten Format vor.\nEr muss konvertiert werden, um nderungen\nspeichern zu knnen.\nSoll er konvertiert werden?" ;
+ Message[ chinese_simplified ] = "еĸʽǾɵġ\nҪ̸ľͱиʽת\nҪתʽ";
+ Message[ russian ] = " .\n , \n \n.?";
+ Message[ polish ] = "Format obszaru nie jest aktualny.\nObszar musi by skonwertowany, by mona byo zapisa zmiany\n. Skonwertowa go?";
+ Message[ japanese ] = "͈̔͂͋ɂ܂B\nύXۑɂ\nϊȂ΂Ȃ܂B\nϊ܂?";
+ Message[ chinese_traditional ] = "oӰϰ쪺榡OªC\nnxsܧNഫ榡C\nznഫ榡H";
+ Message[ arabic ] = " .\n \n .\n ";
+ Message[ dutch ] = "Het bereik heeft een verouderd formaat.\nHet moet worden geconverteerd om de wijzigingen\nte kunnen opslaan.\nWilt u de conversie nu uitvoeren?";
+ Message[ chinese_simplified ] = "еĸʽǾɵġ\nҪ̸ľͱиʽת\nҪתʽ";
+ Message[ greek ] = " .\n \n .\n ;";
+ Message[ korean ] = " ȰԴϴ.\n ̰ ȯϿ \n̵˴ϴ.\n ȯ Ͻðڽϱ?";
+ Message[ turkish ] = "Blmn format eski.\nDeiikliklerin kaydedilebilmesi n\niin deitirilmesi gerekiyor.\nFormat deitirilsin mi?";
+ Message[ language_user1 ] = " ";
+};
+
+String STR_PRIVATETEXT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? StarWriter : Formatierter Text [StarWriter] */
+ Text = "StarOffice Writer" ;
+ Text [ dutch ] = "StarOffice Writer" ;
+ Text [ english_us ] = "StarOffice Writer" ;
+ Text [ italian ] = "StarOffice Writer" ;
+ Text [ spanish ] = "StarOffice Writer" ;
+ Text [ french ] = "StarOffice Writer" ;
+ Text [ swedish ] = "StarOffice Writer" ;
+ Text [ danish ] = "StarOffice Writer" ;
+ Text [ portuguese ] = "StarOffice Writer" ;
+ Text [ portuguese_brazilian ] = "StarOffice Writer" ;
+ Text[ chinese_simplified ] = "StarOffice Writer";
+ Text[ russian ] = "StarOffice Writer";
+ Text[ polish ] = "StarOffice Writer";
+ Text[ japanese ] = "StarOffice Writer";
+ Text[ chinese_traditional ] = "StarOffice Writer";
+ Text[ arabic ] = "StarOffice Writer";
+ Text[ greek ] = "StarOffice Writer";
+ Text[ korean ] = "StarOffice Writer";
+ Text[ turkish ] = "StarOffice Writer";
+ Text[ language_user1 ] = " ";
+};
+String STR_PRIVATEGRAPHIC
+{
+ Text = "Grafik [StarOffice Writer]" ;
+ Text [ ENGLISH ] = "Graphic [StarOffice Writer]" ;
+ Text [ norwegian ] = "Graphic [StarOffice Writer]" ;
+ Text [ italian ] = "Immagine [StarOffice Writer]" ;
+ Text [ portuguese_brazilian ] = "Grfico [StarOffice Writer]" ;
+ Text [ portuguese ] = "Imagem [StarOffice Writer]" ;
+ Text [ finnish ] = "Kuva [StarOffice Writer]" ;
+ Text [ danish ] = "Grafik [StarOffice Writer]" ;
+ Text [ french ] = "Image [StarOffice Writer]" ;
+ Text [ swedish ] = "Grafik [StarOffice Writer]" ;
+ Text [ dutch ] = "Afbeelding [StarOffice Writer]" ;
+ Text [ spanish ] = "Imagen [StarOffice Writer]" ;
+ Text [ english_us ] = "Graphics [StarOffice Writer]" ;
+ Text[ chinese_simplified ] = "ͼ [StarOffice Writer]";
+ Text[ russian ] = " [StarOffice Writer]";
+ Text[ polish ] = "Grafika [StarOffice Writer]";
+ Text[ japanese ] = "̨ [StarOffice Writer]";
+ Text[ greek ] = " [StarOffice Writer]";
+ Text[ korean ] = "׷ [StarOffice Writer]";
+ Text[ chinese_traditional ] = "ϧ [StarOffice Writer]";
+ Text[ arabic ] = "[StarOffice Writer] ";
+ Text[ turkish ] = "Grafik [StarOffice Writer]";
+};
+String STR_PRIVATEOLE
+{
+ Text = "Objekt [StarOffice Writer]" ;
+ Text [ ENGLISH ] = "Object [StarOffice Writer]" ;
+ Text [ english_us ] = "Object [StarOffice Writer]" ;
+ Text [ italian ] = "Oggetto [StarOffice Writer]" ;
+ Text [ spanish ] = "Objeto [StarOffice Writer]" ;
+ Text [ french ] = "Objet [StarOffice Writer]" ;
+ Text [ dutch ] = "Object [StarOffice Writer]" ;
+ Text [ swedish ] = "Objekt [StarOffice Writer]" ;
+ Text [ danish ] = "Objekt [StarOffice Writer]" ;
+ Text [ portuguese ] = "Objecto [StarOffice Writer]" ;
+ Text [ portuguese_brazilian ] = "Objekt [StarOffice Writer]" ;
+ Text[ chinese_simplified ] = " [StarOffice Writer]";
+ Text[ russian ] = " [StarOffice Writer]";
+ Text[ polish ] = "Obiekt [StarOffice Writer]";
+ Text[ japanese ] = "޼ު [StarOffice Writer]";
+ Text[ greek ] = " [StarOffice Writer]";
+ Text[ korean ] = "ü [StarOffice Writer]";
+ Text[ chinese_traditional ] = " [StarOffice Writer]";
+ Text[ arabic ] = "[StarOffice Writer] ";
+ Text[ turkish ] = "Nesne [StarOffice Writer]";
+};
+String STR_DDEFORMAT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? DDE Verknpfung : DDE Verknpfung */
+ Text = "DDE Verknpfung" ;
+ Text [ ENGLISH ] = "DDE link" ;
+ Text [ norwegian ] = "DDE link" ;
+ Text [ italian ] = "Collegamento DDE" ;
+ Text [ portuguese_brazilian ] = "Ligao do DDE" ;
+ Text [ portuguese ] = "Ligao DDE" ;
+ Text [ finnish ] = "DDE-linkki" ;
+ Text [ danish ] = "DDE-kde" ;
+ Text [ french ] = "Lien DDE" ;
+ Text [ swedish ] = "DDE-lnk" ;
+ Text [ dutch ] = "DDE-koppeling" ;
+ Text [ spanish ] = "Vnculo DDE" ;
+ Text [ english_us ] = "DDE link" ;
+ Text[ chinese_simplified ] = "DDE ";
+ Text[ russian ] = " DDE";
+ Text[ polish ] = "cza DDE ";
+ Text[ japanese ] = "DDE ݸ";
+ Text[ chinese_traditional ] = "DDE |";
+ Text[ arabic ] = " DDE";
+ Text[ dutch ] = "DDE-koppeling";
+ Text[ chinese_simplified ] = "DDE ";
+ Text[ greek ] = " DDE";
+ Text[ korean ] = "DDE ";
+ Text[ turkish ] = "DDE balants";
+ Text[ language_user1 ] = " ";
+};
+String STR_RTFFORMAT
+{
+ Text = "Formatierter Text [RTF]" ;
+ Text [ ENGLISH ] = "Formatted text [RTF]" ;
+ Text [ norwegian ] = "Formatert tekst [RTF]" ;
+ Text [ italian ] = "Testo formattato [RTF]" ;
+ Text [ portuguese_brazilian ] = "Texto formatado [RTF]" ;
+ Text [ portuguese ] = "Texto formatado [RTF]" ;
+ Text [ finnish ] = "Muotoiltu teksti [RTF]" ;
+ Text [ danish ] = "Formateret tekst [RTF]" ;
+ Text [ french ] = "Texte format [RTF]" ;
+ Text [ swedish ] = "Formaterad text [RTF]" ;
+ Text [ dutch ] = "Opgemaakte tekst [RTF]" ;
+ Text [ spanish ] = "Texto formateado [RTF]" ;
+ Text [ english_us ] = "Formatted text [RTF]" ;
+ Text[ chinese_simplified ] = "Ѹʽı[RTF]";
+ Text[ russian ] = " [RTF]";
+ Text[ polish ] = "Sformatowany tekst [RTF]";
+ Text[ japanese ] = "ݒς݂÷ [RTF]";
+ Text[ greek ] = " [RTF]";
+ Text[ korean ] = "ִ ؽƮ [RTF]";
+ Text[ chinese_traditional ] = "wg榡ƪr [RTF]";
+ Text[ arabic ] = "[RTF] ";
+ Text[ turkish ] = "Formatl metin [RTF]";
+};
+String STR_TEXTFORMAT
+{
+ Text = "Unformatierter Text" ;
+ Text [ ENGLISH ] = "Unformatted Text" ;
+ Text [ norwegian ] = "Uformatert Tekst" ;
+ Text [ italian ] = "Testo non formattato" ;
+ Text [ portuguese_brazilian ] = "Texto No Formatado" ;
+ Text [ portuguese ] = "Texto no formatado" ;
+ Text [ finnish ] = "Muotoilematon teksti" ;
+ Text [ danish ] = "Uformateret tekst" ;
+ Text [ french ] = "Texte non format" ;
+ Text [ swedish ] = "Oformaterad text" ;
+ Text [ dutch ] = "Tekst zonder opmaak" ;
+ Text [ spanish ] = "Texto no formateado" ;
+ Text [ english_us ] = "Unformatted text" ;
+ Text[ chinese_simplified ] = "δʽı";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Tekst bez formatu";
+ Text[ japanese ] = "ݒ肳ĂȂ÷";
+ Text[ chinese_traditional ] = "榡ƪr";
+ Text[ arabic ] = " ";
+ Text[ dutch ] = "Tekst zonder opmaak";
+ Text[ chinese_simplified ] = "δʽı";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ľ ؽƮ";
+ Text[ turkish ] = "Formatlanmam metin";
+ Text[ language_user1 ] = " ";
+};
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sw/source/ui/dochdl/gloshdl.cxx b/sw/source/ui/dochdl/gloshdl.cxx
new file mode 100644
index 000000000000..aee3290dc6a0
--- /dev/null
+++ b/sw/source/ui/dochdl/gloshdl.cxx
@@ -0,0 +1,1099 @@
+/*************************************************************************
+ *
+ * $RCSfile: gloshdl.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef __RSC //autogen
+#include <tools/errinf.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXMACITEM_HXX //autogen
+#include <svtools/macitem.hxx>
+#endif
+#ifndef _SFX_FCONTNR_HXX
+#include <sfx2/fcontnr.hxx>
+#endif
+#ifndef _SFXDOCFILE_HXX
+#include <sfx2/docfile.hxx>
+#endif
+#ifndef _OFAACCFG_HXX //autogen
+#include <offmgr/ofaaccfg.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#define _SVSTDARR_STRINGS
+#include <svtools/svstdarr.hxx>
+
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx> // Fehlermeldungen
+#endif
+#ifndef _SWVIEW_HXX //autogen
+#include <view.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _SWEVENT_HXX
+#include <swevent.hxx>
+#endif
+#ifndef _GLOSHDL_HXX
+#include <gloshdl.hxx>
+#endif
+#ifndef _GLOSDOC_HXX
+#include <glosdoc.hxx>
+#endif
+#ifndef _GLOSSARY_HXX
+#include <glossary.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx> // fuer Undo-Ids
+#endif
+
+#ifndef _SELGLOS_HXX
+#include <selglos.hxx>
+#endif
+#ifndef _EXPFLD_HXX
+#include <expfld.hxx>
+#endif
+#ifndef _INITUI_HXX
+#include <initui.hxx> // fuer ::GetGlossaries()
+#endif
+#ifndef _GLOSLST_HXX
+#include <gloslst.hxx>
+#endif
+#ifndef _DATAEX_HXX
+#include <dataex.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+
+#ifndef _DOCHDL_HRC
+#include <dochdl.hrc>
+#endif
+#ifndef _SWERROR_H
+#include <swerror.h>
+#endif
+
+
+// PUBLIC METHODES -------------------------------------------------------
+struct TextBlockInfo_Impl
+{
+ String sTitle;
+ String sLongName;
+ String sGroupName;
+};
+typedef TextBlockInfo_Impl* TextBlockInfo_ImplPtr;
+SV_DECL_PTRARR_DEL( TextBlockInfoArr, TextBlockInfo_ImplPtr, 0, 4 )
+SV_IMPL_PTRARR( TextBlockInfoArr, TextBlockInfo_ImplPtr )
+/*------------------------------------------------------------------------
+ Beschreibung: Dialog fuer Bearbeiten Vorlagen
+------------------------------------------------------------------------*/
+
+
+void SwGlossaryHdl::GlossaryDlg()
+{
+ SwGlossaryDlg* pDlg = new SwGlossaryDlg( pViewFrame, this, pWrtShell );
+ String sName, sShortName;
+
+ if( RET_EDIT == pDlg->Execute() )
+ {
+ sName = pDlg->GetCurrGrpName();
+ sShortName = pDlg->GetCurrShortName();
+ }
+
+ delete pDlg;
+ DELETEZ(pCurGrp);
+ if(HasGlossaryList())
+ {
+ GetGlossaryList()->ClearGroups();
+ }
+
+ if( sName.Len() || sShortName.Len() )
+ rStatGlossaries.EditGroupDoc( sName, sShortName );
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Setzen der aktuellen Gruppe; falls aus dem Dialog
+ gerufen, wird die Gruppe temp. erzeugt fuer einen
+ schnelleren Zugriff
+------------------------------------------------------------------------*/
+
+
+void SwGlossaryHdl::SetCurGroup(const String &rGrp, BOOL bApi, BOOL bAlwaysCreateNew )
+{
+ String sGroup(rGrp);
+ if(STRING_NOTFOUND == sGroup.Search(GLOS_DELIM) && !FindGroupName(sGroup))
+ {
+ sGroup += GLOS_DELIM;
+ sGroup += '0';
+ }
+ if(pCurGrp)
+ {
+ BOOL bPathEqual = FALSE;
+ if(!bAlwaysCreateNew)
+ {
+ const String& sCurPath = URIHelper::SmartRelToAbs(pCurGrp->GetFileName());
+ xub_StrLen nSlashPos = sCurPath.SearchBackward( INET_PATH_TOKEN );
+ const String sCurEntryPath = sCurPath.Copy(0, nSlashPos);
+ const SvStrings* pPathArr = rStatGlossaries.GetPathArray();
+ USHORT nCurrentPath = USHRT_MAX;
+ for(USHORT nPath = 0; nPath < pPathArr->Count(); nPath++)
+ {
+ if(sCurEntryPath == *(*pPathArr)[nPath])
+ {
+ nCurrentPath = nPath;
+ break;
+ }
+ }
+ String sPath = sGroup.GetToken(1, GLOS_DELIM);
+ USHORT nComparePath = (USHORT)sPath.ToInt32();
+ const String sCurBase = sCurPath.Copy(nSlashPos + 1, sCurPath.Len() - nSlashPos - 5);
+ if(nCurrentPath == nComparePath &&
+ sGroup.GetToken(0, GLOS_DELIM) == sCurBase)
+ bPathEqual = TRUE;
+ }
+// const String aMac_Tmp(pCurGrp->GetName());
+ // Beim Pfadwechsel kann man sich auf den Namen nicht verlassen
+ if(!bAlwaysCreateNew &&
+ bPathEqual
+// aMac_Tmp == sGroup
+ )
+ return;
+ }
+ aCurGrp = sGroup;
+ if(!bApi)
+ {
+ if(pCurGrp)
+ {
+ rStatGlossaries.PutGroupDoc(pCurGrp);
+ pCurGrp = 0;
+ }
+ pCurGrp = rStatGlossaries.GetGroupDoc(aCurGrp, TRUE);
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+USHORT SwGlossaryHdl::GetGroupCnt() const
+{
+ return rStatGlossaries.GetGroupCnt();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+String SwGlossaryHdl::GetGroupName( USHORT nId, String* pTitle )
+{
+ String sRet = rStatGlossaries.GetGroupName(nId);
+ if(pTitle)
+ {
+ SwTextBlocks* pGroup = rStatGlossaries.GetGroupDoc(sRet, FALSE);
+ if(pGroup)
+ {
+ *pTitle = pGroup->GetName();
+ if(!pTitle->Len())
+ {
+ *pTitle = sRet.GetToken(0, GLOS_DELIM);
+ pGroup->SetName(*pTitle);
+ }
+ rStatGlossaries.PutGroupDoc( pGroup );
+ }
+
+ }
+ return sRet;
+}
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::NewGroup(String &rGrpName, const String& rTitle)
+{
+ if(STRING_NOTFOUND == rGrpName.Search(GLOS_DELIM))
+ FindGroupName(rGrpName);
+ return rStatGlossaries.NewGroupDoc(rGrpName, rTitle);
+}
+/* -----------------23.11.98 13:10-------------------
+ * Umbenennen eines Textbausteins
+ * --------------------------------------------------*/
+BOOL SwGlossaryHdl::RenameGroup(const String & rOld, String& rNew, const String& rNewTitle)
+{
+ BOOL bRet = FALSE;
+ String sOldGroup(rOld);
+ if(STRING_NOTFOUND == rOld.Search(GLOS_DELIM))
+ FindGroupName(sOldGroup);
+ if(rOld == rNew)
+ {
+ SwTextBlocks* pGroup = rStatGlossaries.GetGroupDoc(sOldGroup, FALSE);
+ if(pGroup)
+ {
+ pGroup->SetName(rNewTitle);
+ rStatGlossaries.PutGroupDoc( pGroup );
+ bRet = TRUE;
+ }
+ }
+ else
+ {
+ String sNewGroup(rNew);
+ if(STRING_NOTFOUND == sNewGroup.Search(GLOS_DELIM))
+ {
+ sNewGroup += GLOS_DELIM;
+ sNewGroup += '0';
+ }
+ bRet = rStatGlossaries.RenameGroupDoc(sOldGroup, sNewGroup, rNewTitle);
+ rNew = sNewGroup;
+ }
+ return bRet;
+}
+/* -----------------27.11.98 13:49-------------------
+ *
+ * --------------------------------------------------*/
+BOOL SwGlossaryHdl::CopyOrMove( const String& rSourceGroupName, String& rSourceShortName,
+ const String& rDestGroupName, const String& rLongName, BOOL bMove )
+{
+ SwTextBlocks* pSourceGroup = rStatGlossaries.GetGroupDoc(rSourceGroupName, FALSE);
+
+ SwTextBlocks* pDestGroup = rStatGlossaries.GetGroupDoc(rDestGroupName, FALSE);
+ if(pDestGroup->IsReadOnly() || (bMove && pSourceGroup->IsReadOnly()) )
+ return FALSE;
+ if(pDestGroup->IsOld()&& 0!= pDestGroup->ConvertToNew())
+ return FALSE;
+ if(bMove && pSourceGroup->IsOld() && 0 != pSourceGroup->ConvertToNew())
+ return FALSE;
+
+ //Der Index muss hier ermittelt werden, weil rSourceShortName in CopyBlock evtl veraendert wird
+ USHORT nDeleteIdx = pSourceGroup->GetIndex( rSourceShortName );
+ DBG_ASSERT(USHRT_MAX != nDeleteIdx, "Eintrag nicht gefunden")
+ ULONG nRet = pSourceGroup->CopyBlock( *pDestGroup, rSourceShortName, rLongName );
+ if(!nRet && bMove)
+ {
+ // der Index muss existieren
+ nRet = pSourceGroup->Delete( nDeleteIdx ) ? 0 : 1;
+ }
+ rStatGlossaries.PutGroupDoc( pSourceGroup );
+ rStatGlossaries.PutGroupDoc( pDestGroup );
+ return !nRet;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Loeschen einer Textbausteindatei-Gruppe
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::DelGroup(const String &rGrpName)
+{
+ String sGroup(rGrpName);
+ if(STRING_NOTFOUND == sGroup.Search(GLOS_DELIM))
+ FindGroupName(sGroup);
+ if( rStatGlossaries.DelGroupDoc(sGroup) )
+ {
+ if(pCurGrp)
+ {
+ const String aMac_Tmp(pCurGrp->GetName());
+ if(aMac_Tmp == sGroup)
+ DELETEZ(pCurGrp);
+ }
+ return TRUE;
+ }
+ return FALSE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Anzahl Textbausteine erfragen
+------------------------------------------------------------------------*/
+
+
+USHORT SwGlossaryHdl::GetGlossaryCnt()
+{
+ return pCurGrp ? pCurGrp->GetCount() : 0;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Anzahl Textbausteine aus dem Basic erfragen
+------------------------------------------------------------------------*/
+
+
+USHORT SwGlossaryHdl::GetGlossaryCnt(const String& rGroupName)
+{
+ String sGroupName(rGroupName);
+ if(STRING_NOTFOUND == sGroupName.Search(GLOS_DELIM))
+ FindGroupName(sGroupName);
+ SwTextBlocks* pGrp = rStatGlossaries.GetGroupDoc(sGroupName, FALSE);
+ USHORT nCount = 0;
+ if(pGrp)
+ {
+ nCount = pGrp->GetCount();
+ rStatGlossaries.PutGroupDoc(pGrp);
+
+ }
+ return nCount;
+}
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+String SwGlossaryHdl::GetGlossaryName( USHORT nId )
+{
+ ASSERT(nId < GetGlossaryCnt(), Textbausteinarray ueberindiziert.);
+ return pCurGrp->GetLongName( nId );
+}
+/* -----------------30.11.98 13:18-------------------
+ *
+ * --------------------------------------------------*/
+String SwGlossaryHdl::GetGlossaryShortName(USHORT nId)
+{
+ ASSERT(nId < GetGlossaryCnt(), Textbausteinarray ueberindiziert.);
+ return pCurGrp->GetShortName( nId );
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+String SwGlossaryHdl::GetGlossaryName( USHORT nId, const String& rGroupName )
+{
+ String sGroupName(rGroupName);
+ if(STRING_NOTFOUND == sGroupName.Search(GLOS_DELIM))
+ FindGroupName(sGroupName);
+ SwTextBlocks* pGrp = rStatGlossaries.GetGroupDoc(sGroupName, FALSE);
+ String sName;
+ if(pGrp)
+ {
+ if( nId < pGrp->GetCount())
+ sName = pGrp->GetLongName( nId );
+ rStatGlossaries.PutGroupDoc(pGrp);
+ }
+ return sName;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Kurzname erfragen
+------------------------------------------------------------------------*/
+
+
+String SwGlossaryHdl::GetGlossaryShortName(const String &rName)
+{
+ String sReturn;
+ SwTextBlocks *pTmp =
+ pCurGrp ? pCurGrp: rStatGlossaries.GetGroupDoc( aCurGrp, FALSE );
+ if(pTmp)
+ {
+ USHORT nIdx = pTmp->GetLongIndex( rName );
+ if( nIdx != (USHORT) -1 )
+ sReturn = pTmp->GetShortName( nIdx );
+ if( !pCurGrp )
+ rStatGlossaries.PutGroupDoc( pTmp );
+ }
+ return sReturn;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Kuerzel fuer Textbaustein bereits verwendet?
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::HasShortName(const String& rShortName) const
+{
+ SwTextBlocks *pBlock = pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc( aCurGrp );
+ BOOL bRet = pBlock->GetIndex( rShortName ) != (USHORT) -1;
+ if( !pCurGrp )
+ rStatGlossaries.PutGroupDoc( pBlock );
+ return bRet;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Erzeugen eines Textbausteines
+------------------------------------------------------------------------*/
+
+BOOL SwGlossaryHdl::NewGlossary(const String& rName, const String& rShortName,
+ BOOL bCreateGroup, BOOL bNoAttr)
+{
+ SwTextBlocks *pTmp =
+ pCurGrp ? pCurGrp: rStatGlossaries.GetGroupDoc( aCurGrp, bCreateGroup );
+ //pTmp == 0 if the AutoText path setting is wrong
+ if(!pTmp)
+ return FALSE;
+ if( pTmp->IsOld() )
+ {
+ QueryBox aAsk( pWrtShell->GetView().GetWindow(), SW_RES( MSG_UPDATE_NEW_GLOS_FMT ) );
+ if( aAsk.Execute() == RET_YES )
+ {
+ if( pTmp->ConvertToNew() )
+ {
+ InfoBox(pWrtShell->GetView().GetWindow(), SW_RES(MSG_ERR_INSERT_GLOS)).Execute();
+ return FALSE;
+ }
+ }
+ else
+ return FALSE;
+ }
+
+ String sOnlyTxt;
+ String* pOnlyTxt = 0;
+ if( bNoAttr )
+ {
+ if( !pWrtShell->GetSelectedText( sOnlyTxt, GETSELTXT_PARABRK_TO_ONLYCR ))
+ return FALSE;
+ pOnlyTxt = &sOnlyTxt;
+ }
+
+ const OfaAutoCorrCfg* pCfg = OFF_APP()->GetAutoCorrConfig();
+
+ const USHORT nSuccess = pWrtShell->MakeGlossary( *pTmp, rName, rShortName,
+ pCfg->IsSaveRelFile(), pCfg->IsSaveRelNet(),
+ pOnlyTxt );
+ if(nSuccess == (USHORT) -1 )
+ {
+ InfoBox(pWrtShell->GetView().GetWindow(), SW_RES(MSG_ERR_INSERT_GLOS)).Execute();
+ }
+ if( !pCurGrp )
+ rStatGlossaries.PutGroupDoc( pTmp );
+ return BOOL( nSuccess != (USHORT) -1 );
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Loeschen eines Textbausteines
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::DelGlossary(const String &rShortName)
+{
+ SwTextBlocks *pGlossary = pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc(aCurGrp);
+ //pTmp == 0 if the AutoText path setting is wrong
+ if(!pGlossary)
+ return FALSE;
+ USHORT nIdx = pGlossary->GetIndex( rShortName );
+ if( nIdx != (USHORT) -1 )
+ pGlossary->Delete( nIdx );
+ if( !pCurGrp )
+ rStatGlossaries.PutGroupDoc( pGlossary );
+ return TRUE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Kurzform expandieren
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::ExpandGlossary(BOOL bUseStandard, BOOL bApi)
+{
+ ASSERT(pWrtShell->CanInsert(), illegal);
+ SwTextBlocks *pGlossary;
+ if( bUseStandard )
+ {
+ String sGroupName(SwGlossaryDlg::GetCurrGroup());
+ if(STRING_NOTFOUND == sGroupName.Search(GLOS_DELIM))
+ FindGroupName(sGroupName);
+ pGlossary = rStatGlossaries.GetGroupDoc(sGroupName);
+ }
+ else
+ pGlossary = rStatGlossaries.GetGroupDoc(aCurGrp);
+
+ String aShortName;
+
+ // bei Textselektion diese verwenden
+ if(pWrtShell->SwCrsrShell::HasSelection())
+ {
+ aShortName = pWrtShell->GetSelTxt();
+ }
+ else
+ {
+ if(pWrtShell->IsAddMode())
+ pWrtShell->LeaveAddMode();
+ else if(pWrtShell->IsExtMode())
+ pWrtShell->LeaveExtMode();
+ // Wort selektieren
+ pWrtShell->SelNearestWrd();
+ // Wort erfragen
+ if(pWrtShell->IsSelection())
+ aShortName = pWrtShell->GetSelTxt();
+ }
+ return pGlossary ? Expand( aShortName, &rStatGlossaries, pGlossary, bApi ) : FALSE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Expansion aus Basic aufrufen
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::ExpandGlossary( const String& rShortName, BOOL bApi )
+{
+ ASSERT(pWrtShell->CanInsert(), illegal);
+ String sGroup(SwGlossaryDlg::GetCurrGroup());
+ if(STRING_NOTFOUND == sGroup.Search(GLOS_DELIM))
+ FindGroupName(sGroup);
+
+ SwTextBlocks *pGlossary = rStatGlossaries.GetGroupDoc(sGroup);
+ return pGlossary ? Expand( rShortName, &rStatGlossaries, pGlossary, bApi ) : FALSE;
+}
+
+
+BOOL SwGlossaryHdl::Expand( const String& rShortName,
+ SwGlossaries *pGlossaries,
+ SwTextBlocks *pGlossary,
+ BOOL bApi )
+{
+ TextBlockInfoArr aFoundArr;
+ String aShortName( rShortName );
+ BOOL bCancel = FALSE;
+ // Textbaustein suchen
+ USHORT nFound = pGlossary->GetIndex( aShortName );
+ // Suchen in allen anderen Bereichen
+ if( nFound == (USHORT) -1 )
+ {
+ const International& rAppInt = Application::GetAppInternational();
+ SwGlossaryList* pGlossaryList = ::GetGlossaryList();
+ USHORT nGroupCount = pGlossaryList->GetGroupCount();
+ for(USHORT i = 1; i <= nGroupCount; i++)
+ {
+ // Gruppenname mit Pfad-Extension besorgen
+ String sTitle;
+ String sGroupName = pGlossaryList->GetGroupName(i - 1, FALSE, &sTitle);
+ if(sGroupName == pGlossary->GetName())
+ continue;
+ USHORT nBlockCount = pGlossaryList->GetBlockCount(i -1);
+ if(nBlockCount)
+ {
+ for(USHORT j = 0; j < nBlockCount; j++)
+ {
+ String sEntry;
+ String sLongName(pGlossaryList->GetBlockName(i - 1, j, sEntry));
+ if(COMPARE_EQUAL == rAppInt.Compare(rShortName, sEntry, INTN_COMPARE_IGNORECASE))
+ {
+ TextBlockInfo_Impl* pData = new TextBlockInfo_Impl;
+ pData->sTitle = sTitle;
+ pData->sLongName = sLongName;
+ pData->sGroupName = sGroupName;
+ aFoundArr.Insert(pData, aFoundArr.Count());
+ }
+ }
+ }
+ }
+ if( aFoundArr.Count() ) // einer wurde gefunden
+ {
+ pGlossaries->PutGroupDoc(pGlossary);
+ if(1 == aFoundArr.Count())
+ {
+ TextBlockInfo_Impl* pData = aFoundArr.GetObject(0);
+ pGlossary = (SwTextBlocks *)pGlossaries->GetGroupDoc(pData->sGroupName);
+ nFound = pGlossary->GetIndex( aShortName );
+ }
+ else
+ {
+ SwSelGlossaryDlg *pDlg =
+ new SwSelGlossaryDlg(0, aShortName);
+ for(USHORT i = 0; i < aFoundArr.Count(); ++i)
+ {
+ TextBlockInfo_Impl* pData = aFoundArr.GetObject(i);
+ pDlg->InsertGlos(pData->sTitle, pData->sLongName);
+ }
+ pDlg->SelectEntryPos(0);
+ const USHORT nRet = RET_OK == pDlg->Execute()?
+ pDlg->GetSelectedIdx():
+ LISTBOX_ENTRY_NOTFOUND;
+ delete pDlg;
+ if(LISTBOX_ENTRY_NOTFOUND != nRet)
+ {
+ TextBlockInfo_Impl* pData = aFoundArr.GetObject(nRet);
+ pGlossary = (SwTextBlocks *)pGlossaries->GetGroupDoc(pData->sGroupName);
+ nFound = pGlossary->GetIndex( aShortName );
+ }
+ else
+ {
+ nFound = (USHORT) -1;
+ bCancel = TRUE;
+ }
+ }
+ }
+ }
+
+ // nicht gefunden
+ if( nFound == (USHORT) -1 )
+ {
+ if( !bCancel )
+ {
+ pGlossaries->PutGroupDoc(pGlossary);
+
+ const USHORT nMaxLen = 50;
+ if(pWrtShell->IsSelection() && aShortName.Len() > nMaxLen)
+ {
+ aShortName.Erase(nMaxLen);
+ aShortName.AppendAscii(" ...");
+ }
+ if(!bApi)
+ {
+ String aTmp( SW_RES(STR_NOGLOS1));
+ aTmp += aShortName;
+ aTmp += SW_RESSTR(STR_NOGLOS2);
+ InfoBox( pWrtShell->GetView().GetWindow(), aTmp ).Execute();
+ }
+ }
+
+ return FALSE;
+ }
+ else
+ {
+ String aLongName = pGlossary->GetLongName( nFound );
+ SvxMacro aStartMacro(aEmptyStr, aEmptyStr, STARBASIC);
+ SvxMacro aEndMacro(aEmptyStr, aEmptyStr, STARBASIC);
+ GetMacros( aShortName, aStartMacro, aEndMacro, pGlossary );
+
+ // StartAction darf nich vor HasSelection und DelRight stehen,
+ // sonst wird der moeglich Shellwechsel verzoegert und
+ // API-Programme wuerden dann haengenbleiben
+ // ausserdem darf das Ereignismacro ebenfalls nicht in einer Action gerufen werden
+ pWrtShell->StartUndo(UNDO_INSGLOSSARY);
+ if( aStartMacro.GetMacName().Len() )
+ pWrtShell->ExecMacro( aStartMacro );
+ if(pWrtShell->HasSelection())
+ pWrtShell->DelLeft();
+ pWrtShell->StartAllAction();
+
+ // alle InputFelder zwischenspeichern
+ SwInputFieldList aFldLst( pWrtShell, TRUE );
+
+ pWrtShell->InsertGlossary(*pGlossary, aShortName);
+ pWrtShell->EndAllAction();
+ if( aEndMacro.GetMacName().Len() )
+ {
+ pWrtShell->ExecMacro( aEndMacro );
+ }
+ pWrtShell->EndUndo(UNDO_INSGLOSSARY);
+
+ // fuer alle neuen InputFelder die Eingaben abfordern
+ if( aFldLst.BuildSortLst() )
+ pWrtShell->UpdateInputFlds( &aFldLst );
+ }
+ pGlossaries->PutGroupDoc(pGlossary);
+ return TRUE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Textbaustein einfuegen
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::InsertGlossary(const String &rName)
+{
+ ASSERT(pWrtShell->CanInsert(), illegal);
+
+ SwTextBlocks *pGlos =
+ pCurGrp? pCurGrp: rStatGlossaries.GetGroupDoc(aCurGrp);
+
+ if (!pGlos)
+ return FALSE;
+
+ SvxMacro aStartMacro(aEmptyStr, aEmptyStr, STARBASIC);
+ SvxMacro aEndMacro(aEmptyStr, aEmptyStr, STARBASIC);
+ GetMacros( rName, aStartMacro, aEndMacro, pGlos );
+
+ // StartAction darf nich vor HasSelection und DelRight stehen,
+ // sonst wird der moeglich Shellwechsel verzoegert und
+ // API-Programme wuerden dann haengenbleiben
+ // ausserdem darf das Ereignismacro ebenfalls nicht in einer Action gerufen werden
+ if( aStartMacro.GetMacName().Len() )
+ pWrtShell->ExecMacro( aStartMacro );
+ if( pWrtShell->HasSelection() )
+ pWrtShell->DelRight();
+ pWrtShell->StartAllAction();
+
+ // alle InputFelder zwischenspeichern
+ SwInputFieldList aFldLst( pWrtShell, TRUE );
+
+ pWrtShell->InsertGlossary(*pGlos, rName);
+ pWrtShell->EndAllAction();
+ if( aEndMacro.GetMacName().Len() )
+ {
+ pWrtShell->ExecMacro( aEndMacro );
+ }
+
+ // fuer alle neuen InputFelder die Eingaben abfordern
+ if( aFldLst.BuildSortLst() )
+ pWrtShell->UpdateInputFlds( &aFldLst );
+
+ if(!pCurGrp)
+ rStatGlossaries.PutGroupDoc(pGlos);
+ return TRUE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Macro setzen / erfragen
+------------------------------------------------------------------------*/
+
+
+void SwGlossaryHdl::SetMacros(const String& rShortName,
+ const SvxMacro* pStart,
+ const SvxMacro* pEnd,
+ SwTextBlocks *pGlossary )
+{
+ SwTextBlocks *pGlos = pGlossary ? pGlossary :
+ pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc( aCurGrp );
+ int nIdx = pGlos->GetIndex( rShortName );
+ pGlos->BeginGetDoc( nIdx );
+ SwDoc* pDoc = pGlos->GetDoc();
+
+ if( pStart )
+ pDoc->SetGlobalMacro( SW_EVENT_START_INS_GLOSSARY, *pStart );
+ else
+ pDoc->DelGlobalMacro( SW_EVENT_START_INS_GLOSSARY );
+ if( pEnd )
+ pDoc->SetGlobalMacro( SW_EVENT_END_INS_GLOSSARY, *pEnd );
+ else
+ pDoc->DelGlobalMacro( SW_EVENT_END_INS_GLOSSARY );
+ pGlos->EndGetDoc();
+
+ pGlos->BeginPutDoc( rShortName, pGlos->GetLongName( nIdx ) );
+ pGlos->PutDoc();
+ if( pGlos->GetError() )
+ ErrorHandler::HandleError( pGlos->GetError() );
+
+ if(!pCurGrp && !pGlossary)
+ rStatGlossaries.PutGroupDoc(pGlos);
+}
+
+void SwGlossaryHdl::GetMacros( const String &rShortName,
+ SvxMacro& rStart,
+ SvxMacro& rEnd,
+ SwTextBlocks *pGlossary )
+{
+ SwTextBlocks *pGlos = pGlossary ? pGlossary
+ : pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc(aCurGrp);
+ USHORT nIndex = pGlos->GetIndex( rShortName );
+ if( nIndex != USHRT_MAX )
+ {
+ SvxMacroTableDtor aMacroTbl;
+ if( pGlos->GetMacroTable( nIndex, aMacroTbl ) )
+ {
+ SvxMacro *pMacro = aMacroTbl.Get( SW_EVENT_START_INS_GLOSSARY );
+ if( pMacro )
+ rStart = *pMacro;
+
+ pMacro = aMacroTbl.Get( SW_EVENT_END_INS_GLOSSARY );
+ if( pMacro )
+ rEnd = *pMacro;
+ }
+ }
+
+ if( !pCurGrp && !pGlossary )
+ rStatGlossaries.PutGroupDoc( pGlos );
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung: ctor, dtor
+------------------------------------------------------------------------*/
+
+
+SwGlossaryHdl::SwGlossaryHdl(SfxViewFrame* pVwFrm, SwWrtShell *pSh)
+ : rStatGlossaries( *::GetGlossaries() ),
+ pViewFrame( pVwFrm ),
+ pWrtShell( pSh ),
+ pCurGrp( 0 ),
+ aCurGrp( rStatGlossaries.GetDefName() )
+{}
+
+
+SwGlossaryHdl::~SwGlossaryHdl()
+{
+ if( pCurGrp )
+ rStatGlossaries.PutGroupDoc( pCurGrp );
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Umbenennen eines Textbausteines
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::Rename(const String& rOldShort, const String& rNewShortName,
+ const String& rNewName )
+{
+ BOOL bRet = FALSE;
+ SwTextBlocks *pGlossary = pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc(aCurGrp);
+ if(pGlossary)
+ {
+ USHORT nIdx = pGlossary->GetIndex( rOldShort );
+ USHORT nOldLongIdx = pGlossary->GetLongIndex( rNewName );
+ USHORT nOldIdx = pGlossary->GetIndex( rNewShortName );
+
+ if( nIdx != USHRT_MAX &&
+ (nOldLongIdx == USHRT_MAX || nOldLongIdx == nIdx )&&
+ (nOldIdx == USHRT_MAX || nOldIdx == nIdx ))
+ {
+ String aNewShort( rNewShortName );
+ String aNewName( rNewName );
+ pGlossary->Rename( nIdx, &aNewShort, &aNewName );
+ bRet = pGlossary->GetError() == 0;
+ }
+ if( !pCurGrp )
+ rStatGlossaries.PutGroupDoc(pGlossary);
+ }
+ return bRet;
+}
+
+
+BOOL SwGlossaryHdl::IsReadOnly( const String* pGrpNm ) const
+{
+ SwTextBlocks *pGlossary = pGrpNm ? rStatGlossaries.GetGroupDoc( *pGrpNm )
+ : pCurGrp
+ ? pCurGrp
+ : rStatGlossaries.GetGroupDoc(aCurGrp);
+
+ BOOL bRet = pGlossary ? pGlossary->IsReadOnly() : TRUE;
+ if( !pCurGrp )
+ delete pGlossary;
+ return bRet;
+}
+
+
+BOOL SwGlossaryHdl::IsOld() const
+{
+ SwTextBlocks *pGlossary = pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc(aCurGrp);
+ BOOL bRet = pGlossary ? pGlossary->IsOld() : FALSE;
+ if( !pCurGrp )
+ delete pGlossary;
+ return bRet;
+}
+
+/*-----------------09.06.97 16:15-------------------
+ Gruppe ohne Pfadindex finden
+--------------------------------------------------*/
+BOOL SwGlossaryHdl::FindGroupName(String & rGroup)
+{
+ return rStatGlossaries.FindGroupName(rGroup);
+}
+
+/* -----------------29.07.99 08:34-------------------
+
+ --------------------------------------------------*/
+BOOL SwGlossaryHdl::CopyToClipboard(SwWrtShell& rSh, const String& rShortName)
+{
+ SwTextBlocks *pGlossary = pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc(aCurGrp);
+ SwDataExchangeRef xExch = new SwDataExchange( rSh );
+ int nRet = xExch->CopyGlossary( *pGlossary, rShortName );
+ if( !pCurGrp )
+ rStatGlossaries.PutGroupDoc( pGlossary );
+ return 0 != nRet;
+}
+
+BOOL SwGlossaryHdl::ImportGlossaries( const String& rName )
+{
+ BOOL bRet = FALSE;
+ if( rName.Len() )
+ {
+ const SfxFilter* pFilter = 0;
+ SfxMedium* pMed = new SfxMedium( rName, STREAM_READ, TRUE, TRUE, 0, 0 );
+ SfxFilterMatcher aMatcher( SwDocShell::Factory().GetFilterContainer() );
+ if( !aMatcher.GuessFilter( *pMed, &pFilter, FALSE ) )
+ {
+ SwTextBlocks *pGlossary;
+ pMed->SetFilter( pFilter );
+ Reader* pR = SwIoSystem::GetReader( pFilter->GetUserData() );
+ if( pR && 0 != ( pGlossary = pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc(aCurGrp)) )
+ {
+ SwReader aReader( *pMed, rName );
+ if( aReader.HasGlossaries( *pR ) )
+ {
+ const OfaAutoCorrCfg* pCfg = OFF_APP()->GetAutoCorrConfig();
+ bRet = aReader.ReadGlossaries( *pR, *pGlossary,
+ pCfg->IsSaveRelFile() );
+ }
+ }
+ }
+ DELETEZ(pMed);
+ }
+ return bRet;
+}
+
+String SwGlossaryHdl::GetValidShortCut( const String& rLong,
+ BOOL bCheckInBlock ) const
+{
+ String sRet;
+ SwTextBlocks *pGlossary = pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc( aCurGrp );
+ if( pGlossary )
+ sRet = pGlossary->GetValidShortCut( rLong, bCheckInBlock );
+ return sRet;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.150 2000/09/18 16:05:22 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.149 2000/07/07 13:25:39 jp
+ must changes VCL
+
+ Revision 1.148 2000/06/26 13:12:30 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.147 2000/06/13 09:59:20 os
+ using UCB
+
+ Revision 1.146 2000/06/09 06:51:31 os
+ using UCB
+
+ Revision 1.145 2000/05/23 20:09:50 jp
+ Bugfixes for Unicode
+
+ Revision 1.144 2000/04/17 12:54:30 os
+ UNICODE
+
+ Revision 1.143 2000/04/17 12:36:14 os
+ #74949# search for AutoText short name via SwGlossaryList
+
+ Revision 1.142 2000/04/13 08:22:23 os
+ UNICODE
+
+ Revision 1.141 2000/03/06 08:46:06 os
+ #70359# GetGroupName: if no title is set - set group name as title
+
+ Revision 1.140 2000/02/14 14:49:37 os
+ #70473# Unicode
+
+ Revision 1.139 2000/02/10 10:33:49 os
+ #70359# titles added to AutoText groups
+
+ Revision 1.138 2000/02/09 11:41:28 jp
+ Task #72579#: WW8Reader can import glossaries
+
+ Revision 1.137 2000/02/03 11:08:22 jp
+ Task #72579#: new method GetValidShortCut
+
+ Revision 1.136 2000/02/02 17:01:52 jp
+ Task #72579#: WW8Reader can import glossaries
+
+ Revision 1.135 1999/12/22 09:20:47 os
+ #71203# editing of AutoText: keep macros
+
+ Revision 1.134 1999/11/16 16:18:20 jp
+ remove unused Dialog-Pointer
+
+ Revision 1.133 1999/09/15 14:03:11 os
+ language improvements
+
+ Revision 1.132 1999/08/24 08:28:02 OS
+ #68352# NewGlossary et. al.: GPF if AutoText path settings were wrong
+
+
+ Rev 1.131 24 Aug 1999 10:28:02 OS
+ #68352# NewGlossary et. al.: GPF if AutoText path settings were wrong
+
+ Rev 1.130 29 Jul 1999 09:10:02 OS
+ CopyToClipboard
+
+ Rev 1.129 23 Jul 1999 10:26:32 OS
+ #67828# glossary - methods on doc level
+
+ Rev 1.128 14 Jun 1999 14:40:26 JP
+ Bug #66858#: there is no MDIApplication
+
+ Rev 1.127 14 Jun 1999 08:51:54 OS
+ #66858# MDIApplication::GetActiveWindow now static
+
+ Rev 1.126 19 Feb 1999 16:46:20 OS
+ IsCaseSensitive nicht mehr inline
+
+ Rev 1.125 10 Feb 1999 16:11:58 OS
+ #61050# bei gleichen Gruppennamen immer den richtigen finden
+
+ Rev 1.124 09 Feb 1999 10:46:38 OS
+ #61205# AutoText-Gruppen koennen beliebige Namen erhalten
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/dochdl/makefile.mk b/sw/source/ui/dochdl/makefile.mk
new file mode 100644
index 000000000000..ee59800654c7
--- /dev/null
+++ b/sw/source/ui/dochdl/makefile.mk
@@ -0,0 +1,99 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=dochdl
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ dataex.cxx \
+ gloshdl.cxx \
+ selglos.cxx
+
+SRCFILES = \
+ dochdl.src \
+ selglos.src
+
+SLOFILES = \
+ $(SLO)$/dataex.obj \
+ $(SLO)$/gloshdl.obj \
+ $(SLO)$/selglos.obj
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/dochdl/selglos.cxx b/sw/source/ui/dochdl/selglos.cxx
new file mode 100644
index 000000000000..b82d51ec2d32
--- /dev/null
+++ b/sw/source/ui/dochdl/selglos.cxx
@@ -0,0 +1,170 @@
+/*************************************************************************
+ *
+ * $RCSfile: selglos.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "swtypes.hxx"
+#include "segmentc.hxx"
+
+#include "selglos.hxx"
+
+#include "selglos.hrc"
+#include "dochdl.hrc"
+
+#ifndef _SV_MSGBOX_HXX
+#include <vcl/msgbox.hxx>
+#endif
+
+// STATIC DATA -----------------------------------------------------------
+
+
+// CTOR / DTOR -----------------------------------------------------------
+
+SwSelGlossaryDlg::SwSelGlossaryDlg(Window * pParent, const String &rShortName)
+ : ModalDialog(pParent, SW_RES(DLG_SEL_GLOS)),
+ aGlosBox(this, SW_RES( LB_GLOS)),
+ aGlosFrm(this, SW_RES( GB_GLOS)),
+ aOKBtn(this, SW_RES( BT_OK)),
+ aCancelBtn(this, SW_RES( BT_CANCEL)),
+ aHelpBtn(this, SW_RES(BT_HELP))
+{
+ String sText(aGlosFrm.GetText());
+ sText += rShortName;
+ aGlosFrm.SetText(sText);
+ FreeResource();
+
+ aGlosBox.SetDoubleClickHdl(LINK(this, SwSelGlossaryDlg, DoubleClickHdl));
+}
+
+/*-----------------25.02.94 20:50-------------------
+ dtor ueberladen
+--------------------------------------------------*/
+SwSelGlossaryDlg::~SwSelGlossaryDlg() {}
+/* -----------------25.10.99 08:33-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwSelGlossaryDlg, DoubleClickHdl, ListBox*, pBox)
+{
+ EndDialog(RET_OK);
+ return 0;
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.16 2000/09/18 16:05:22 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.15 2000/04/13 08:22:23 os
+ UNICODE
+
+ Revision 1.14 1999/10/25 06:44:30 os
+ #68967# HelpButton and DoubleClickHdl
+
+ Revision 1.13 1997/11/03 12:13:06 MA
+ precomp entfernt
+
+
+ Rev 1.12 03 Nov 1997 13:13:06 MA
+ precomp entfernt
+
+ Rev 1.11 14 Nov 1996 15:23:02 TRI
+ includes
+
+ Rev 1.10 11 Nov 1996 09:35:36 MA
+ ResMgr
+
+ Rev 1.9 28 Aug 1996 10:27:36 OS
+ includes
+
+ Rev 1.8 24 Nov 1995 16:58:42 OM
+ PCH->PRECOMPILED
+
+ Rev 1.7 25 Oct 1994 17:08:08 ER
+ add: PCH
+
+ Rev 1.6 26 Feb 1994 01:59:36 ER
+ virt. dtor mit export
+
+ Rev 1.5 25 Feb 1994 20:51:54 ER
+ virtuellen dtor wegen export ueberladen
+
+ Rev 1.4 17 Feb 1994 08:41:20 MI
+ SEG_FUNCDEFS ausgefuellt
+
+ Rev 1.3 16 Feb 1994 20:02:32 MI
+ SEG_FUNCDEFS ausgefuellt
+
+ Rev 1.2 16 Feb 1994 16:21:24 MI
+ Pragmas zurechtgerueckt
+
+ Rev 1.1 28 Jan 1994 11:41:02 MI
+ TCOV() entfernt, SW_... nach SEG_... umbenannt
+
+ Rev 1.0 25 Jan 1994 16:01:06 VB
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/dochdl/selglos.hrc b/sw/source/ui/dochdl/selglos.hrc
new file mode 100644
index 000000000000..a5657aed1323
--- /dev/null
+++ b/sw/source/ui/dochdl/selglos.hrc
@@ -0,0 +1,65 @@
+/*************************************************************************
+ *
+ * $RCSfile: selglos.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define BT_OK 100
+#define BT_CANCEL 101
+#define BT_HELP 102
+#define LB_GLOS 1
+#define GB_GLOS 2
diff --git a/sw/source/ui/dochdl/selglos.src b/sw/source/ui/dochdl/selglos.src
new file mode 100644
index 000000000000..4ba82ef17ff7
--- /dev/null
+++ b/sw/source/ui/dochdl/selglos.src
@@ -0,0 +1,155 @@
+/*************************************************************************
+ *
+ * $RCSfile: selglos.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "selglos.hrc"
+#include "dochdl.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+
+ // #define DLG_SEL_GLOS 256
+ModalDialog DLG_SEL_GLOS
+{
+ HelpID = FN_EXPAND_GLOSSARY ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 220 , 100 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? AutoText einfgen : AutoText einfgen */
+ Text = "AutoText einfgen" ;
+ Text [ ENGLISH ] = "Insert AutoText" ;
+ Text [ norwegian ] = "Insert AutoText" ;
+ Text [ italian ] = "Inserisci testo automatico" ;
+ Text [ portuguese_brazilian ] = "Inserir Texto Automtico" ;
+ Text [ portuguese ] = "Inserir AutoTexto" ;
+ Text [ finnish ] = "Lis automaattiteksti" ;
+ Text [ danish ] = "Indst AutoTekst" ;
+ Text [ french ] = "Insrer AutoTexte" ;
+ Text [ swedish ] = "Infoga AutoText" ;
+ Text [ dutch ] = "AutoTekst invoegen" ;
+ Text [ spanish ] = "Insertar AutoTexto" ;
+ Text [ english_us ] = "Insert AutoText" ;
+ Moveable = TRUE ;
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 164 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 164 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 164 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ GroupBox GB_GLOS
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 152 , 91 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? AutoTexte zum Krzel : AutoTexte zum Krzel */
+ Text = "AutoTexte zum Krzel " ;
+ Text [ ENGLISH ] = "Entries for Short Name " ;
+ Text [ norwegian ] = "Entries for Short Name " ;
+ Text [ italian ] = "Testo automatico per la sigla " ;
+ Text [ portuguese_brazilian ] = "Entadas para Abreviaes " ;
+ Text [ portuguese ] = "AutoTexto Abreviatura " ;
+ Text [ finnish ] = "Lyhenteen vastineet " ;
+ Text [ danish ] = "AutoTekst til genvej " ;
+ Text [ french ] = "AutoTextes pour raccourci " ;
+ Text [ swedish ] = "AutoText till genvgen " ;
+ Text [ dutch ] = "AutoTekst voor afkortingen " ;
+ Text [ spanish ] = "AutoTexto para abreviatura " ;
+ Text [ english_us ] = "AutoTexts for shortcut " ;
+ Text[ chinese_simplified ] = "Զͼļд ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Autotekst do skrtu ";
+ Text[ japanese ] = "Ķē͎x ";
+ Text[ chinese_traditional ] = "۰ʹϤ嶰Yg ";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ڵ ؽƮ ٷΰ ";
+ Text[ turkish ] = "Otomatik metin ksaltmas ";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_GLOS
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 140 , 74 ) ;
+ TabStop = TRUE ;
+ AutoHScroll = TRUE ;
+ };
+ Text[ chinese_simplified ] = "Զͼļ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Wstaw autotekst";
+ Text[ japanese ] = "͎x̑}";
+ Text[ chinese_traditional ] = "J۰ʹϤ嶰";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ڵ ؽƮ ";
+ Text[ turkish ] = "Otomatik metin ekle";
+ Text[ language_user1 ] = " ";
+};