summaryrefslogtreecommitdiff
path: root/sw/source/ui/fldui
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/fldui')
-rw-r--r--sw/source/ui/fldui/changedb.cxx663
-rw-r--r--sw/source/ui/fldui/changedb.hrc93
-rw-r--r--sw/source/ui/fldui/changedb.src413
-rw-r--r--sw/source/ui/fldui/flddb.cxx756
-rw-r--r--sw/source/ui/fldui/flddb.hxx137
-rw-r--r--sw/source/ui/fldui/flddb.src337
-rw-r--r--sw/source/ui/fldui/flddinf.cxx571
-rw-r--r--sw/source/ui/fldui/flddinf.hxx132
-rw-r--r--sw/source/ui/fldui/flddinf.src398
-rw-r--r--sw/source/ui/fldui/flddok.cxx872
-rw-r--r--sw/source/ui/fldui/flddok.hxx141
-rw-r--r--sw/source/ui/fldui/flddok.src367
-rw-r--r--sw/source/ui/fldui/fldedt.cxx505
-rw-r--r--sw/source/ui/fldui/fldfunc.cxx779
-rw-r--r--sw/source/ui/fldui/fldfunc.hxx141
-rw-r--r--sw/source/ui/fldui/fldfunc.src380
-rw-r--r--sw/source/ui/fldui/fldmgr.cxx2450
-rw-r--r--sw/source/ui/fldui/fldpage.cxx544
-rw-r--r--sw/source/ui/fldui/fldpage.hxx134
-rw-r--r--sw/source/ui/fldui/fldref.cxx908
-rw-r--r--sw/source/ui/fldui/fldref.hxx130
-rw-r--r--sw/source/ui/fldui/fldref.src352
-rw-r--r--sw/source/ui/fldui/fldtdlg.cxx567
-rw-r--r--sw/source/ui/fldui/fldtdlg.hrc189
-rw-r--r--sw/source/ui/fldui/fldtdlg.src306
-rw-r--r--sw/source/ui/fldui/fldui.src3383
-rw-r--r--sw/source/ui/fldui/fldvar.cxx1562
-rw-r--r--sw/source/ui/fldui/fldvar.hxx172
-rw-r--r--sw/source/ui/fldui/fldvar.src560
-rw-r--r--sw/source/ui/fldui/inpdlg.cxx320
-rw-r--r--sw/source/ui/fldui/inpdlg.hrc68
-rw-r--r--sw/source/ui/fldui/inpdlg.src228
-rw-r--r--sw/source/ui/fldui/javaedit.cxx417
-rw-r--r--sw/source/ui/fldui/javaedit.hrc85
-rw-r--r--sw/source/ui/fldui/javaedit.src319
-rw-r--r--sw/source/ui/fldui/makefile.mk131
36 files changed, 19510 insertions, 0 deletions
diff --git a/sw/source/ui/fldui/changedb.cxx b/sw/source/ui/fldui/changedb.cxx
new file mode 100644
index 000000000000..51fb0631bece
--- /dev/null
+++ b/sw/source/ui/fldui/changedb.cxx
@@ -0,0 +1,663 @@
+/*************************************************************************
+ *
+ * $RCSfile: changedb.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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
+
+#define _CHANGEDB_CXX
+
+#include <svtools/stdctrl.hxx>
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+
+#ifdef REPLACE_OFADBMGR
+#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
+#include <com/sun/star/container/XNameAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDB_XDATABASEACCESS_HPP_
+#include <com/sun/star/sdb/XDatabaseAccess.hpp>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+
+#else
+
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SBA_SBAOBJ_HXX //autogen
+#include <offmgr/sbaobj.hxx>
+#endif
+
+#endif
+
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _DBMGR_HXX
+#include <dbmgr.hxx>
+#endif
+#ifndef _FLDMGR_HXX
+#include <fldmgr.hxx>
+#endif
+#ifndef _EXPFLD_HXX
+#include <expfld.hxx>
+#endif
+#ifndef _TXTATR_HXX
+#include <txtatr.hxx>
+#endif
+#ifndef _NDTXT_HXX
+#include <ndtxt.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _DBFLD_HXX
+#include <dbfld.hxx>
+#endif
+#ifndef _CHANGEDB_HXX
+#include <changedb.hxx>
+#endif
+
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _CHANGEDB_HRC
+#include <changedb.hrc>
+#endif
+
+#ifdef REPLACE_OFADBMGR
+using namespace rtl;
+using namespace com::sun::star::uno;
+using namespace com::sun::star::container;
+using namespace com::sun::star::lang;
+//using namespace com::sun::star::sdb;
+//using namespace com::sun::star::sdbc;
+//using namespace com::sun::star::sdbcx;
+//using namespace com::sun::star::beans;
+#define C2U(cChar) OUString::createFromAscii(cChar)
+#endif
+
+/*--------------------------------------------------------------------
+ Beschreibung: Feldeinfuegen bearbeiten
+ --------------------------------------------------------------------*/
+
+
+SwChangeDBDlg::SwChangeDBDlg(SwView& rVw) :
+ SvxStandardDialog(&rVw.GetViewFrame()->GetWindow(), SW_RES(DLG_CHANGE_DB)),
+
+ aDescFT (this, SW_RES(FT_DESC )),
+ aUsedDBFT (this, SW_RES(FT_USEDDB )),
+ aAvailDBFT (this, SW_RES(FT_AVAILDB )),
+ aDBListGB (this, SW_RES(GB_DBLIST )),
+ aUsedDBTLB (this, SW_RES(TLB_USEDDB )),
+ aAvailDBTLB (this, SW_RES(TLB_AVAILDB )),
+ aDocDBTextFT(this, SW_RES(FT_DOCDBTEXT )),
+ aDocDBNameFT(this, SW_RES(FT_DOCDBNAME )),
+ aOKBT (this, SW_RES(BT_OK )),
+ aCancelBT (this, SW_RES(BT_CANCEL )),
+ aHelpBT (this, SW_RES(BT_HELP )),
+// aChangeBT (this, SW_RES(BT_CHANGEDB )),
+
+ aRootOpened (SW_RES(BMP_ROOT_CLOSED)),
+ aRootClosed (SW_RES(BMP_ROOT_OPENED)),
+ aDBBMP (SW_RES(BMP_DB)),
+ aTableBMP (SW_RES(BMP_TABLE)),
+
+ pMgr( new SwFldMgr() ),
+ pSh(rVw.GetWrtShellPtr())
+{
+ FillDBPopup();
+
+ FreeResource();
+
+ ShowDBName(pSh->GetDBName());
+ aOKBT.SetClickHdl(LINK(this, SwChangeDBDlg, ButtonHdl));
+
+ aUsedDBTLB.SetSelectionMode(MULTIPLE_SELECTION);
+ aUsedDBTLB.SetWindowBits(WB_HASLINES|WB_CLIPCHILDREN|WB_SORT|WB_HASBUTTONS|WB_HASBUTTONSATROOT|WB_HSCROLL);
+ aUsedDBTLB.SetFont(GetSettings().GetStyleSettings().GetAppFont());
+ aUsedDBTLB.SetSpaceBetweenEntries(0);
+ aUsedDBTLB.SetNodeBitmaps( aRootOpened, aRootClosed );
+
+ Link aLink = LINK(this, SwChangeDBDlg, TreeSelectHdl);
+
+ aUsedDBTLB.SetSelectHdl(aLink);
+ aUsedDBTLB.SetDeselectHdl(aLink);
+ aAvailDBTLB.SetSelectHdl(aLink);
+ aAvailDBTLB.SetDeselectHdl(aLink);
+ TreeSelectHdl();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Datenbank-Listboxen initialisieren
+ --------------------------------------------------------------------*/
+
+
+void SwChangeDBDlg::FillDBPopup()
+{
+#ifdef REPLACE_OFADBMGR
+ Reference<XNameAccess> xDBContext;
+ Reference< XMultiServiceFactory > xMgr( ::utl::getProcessServiceFactory() );
+ if( xMgr.is() )
+ {
+ Reference<XInterface> xInstance = xMgr->createInstance( C2U( "com.sun.star.sdb.DatabaseContext" ));
+ xDBContext = Reference<XNameAccess>(xInstance, UNO_QUERY) ;
+ }
+ DBG_ASSERT(xDBContext.is(), "com.sun.star.sdb.DataBaseContext: service not available")
+// SwNewDBMgr* pNewDBMgr = pSh->GetNewDBMgr();
+
+// String sDBNames = pNewDBMgr->GetSbaObject()->GetDatabaseNames();
+// SfxApplication* pSfxApp = SFX_APP();
+// sDBNames = pSfxApp->LocalizeDBName(INI2NATIONAL, sDBNames);
+
+// USHORT nDBNamesCount = sDBNames.GetTokenCount();
+
+ String sDataBaseName(pSh->GetDBName());
+ String sDBName(sDataBaseName.GetToken(0, DB_DELIM));
+ String sTableName(sDataBaseName.GetToken(1, DB_DELIM));
+ aAvailDBTLB.Select(sDBName, sTableName, aEmptyStr);
+
+// sDBNames = pNewDBMgr->GetSbaObject()->GetDatabaseNames();
+ SvStringsDtor aAllDBNames(5, 5);
+
+ Sequence<OUString> aDBNames = xDBContext->getElementNames();
+ const OUString* pDBNames = aDBNames.getConstArray();
+ long nDBCount = aDBNames.getLength();
+
+ for(long i = 0; i < nDBCount; i++)
+ {
+ String sDBName(pDBNames[i]);
+ aAllDBNames.Insert(new String(sDBName), aAllDBNames.Count());
+ }
+
+ SvStringsDtor aDBNameList(5, 1);
+ pSh->GetAllUsedDB( aDBNameList, &aAllDBNames );
+
+ USHORT nCount = aDBNameList.Count();
+ aUsedDBTLB.Clear();
+ SvLBoxEntry *pFirst = 0;
+ SvLBoxEntry *pLast = 0;
+
+ for (i = 0; i < nCount; i++)
+ {
+ sDBName = *aDBNameList.GetObject(i);
+ sDBName = sDBName.GetToken(0);
+ pLast = Insert(sDBName);
+ if (!pFirst)
+ pFirst = pLast;
+ }
+
+ if (pFirst)
+ {
+ aUsedDBTLB.MakeVisible(pFirst);
+ aUsedDBTLB.Select(pFirst);
+ }
+
+#else
+
+ SwNewDBMgr* pNewDBMgr = pSh->GetNewDBMgr();
+
+ String sDBNames = pNewDBMgr->GetSbaObject()->GetDatabaseNames();
+ SfxApplication* pSfxApp = SFX_APP();
+ sDBNames = pSfxApp->LocalizeDBName(INI2NATIONAL, sDBNames);
+
+ USHORT nDBNamesCount = sDBNames.GetTokenCount();
+
+
+
+// if (rDBName.Len())
+// sDBName = pSfxApp->LocalizeDBName(INI2NATIONAL, rDBName);
+// else
+ String sDBName = pSfxApp->LocalizeDBName(INI2NATIONAL, pSh->GetDBName());
+ aAvailDBTLB.Select(sDBName);
+
+ SvStringsDtor aDBNameList(5, 1);
+
+ sDBNames = pNewDBMgr->GetSbaObject()->GetDatabaseNames();
+ SvStringsDtor aAllDBNames(5, 5);
+ for (USHORT i = 0; i < nDBNamesCount; i++)
+#ifdef UNX
+ aAllDBNames.Insert(new String(sDBNames.GetToken(i)), aAllDBNames.Count());
+#else
+ aAllDBNames.Insert(new String(sDBNames.GetToken(i).ToUpperAscii()), aAllDBNames.Count());
+#endif
+
+
+ pSh->GetAllUsedDB( aDBNameList, &aAllDBNames );
+
+ USHORT nCount = aDBNameList.Count();
+ aUsedDBTLB.Clear();
+ SvLBoxEntry *pFirst = 0;
+ SvLBoxEntry *pLast = 0;
+
+ for (i = 0; i < nCount; i++)
+ {
+ sDBName = pNewDBMgr->ExtractDBName(*aDBNameList.GetObject(i));
+
+#ifndef UNX
+ // Richtige Schreibweise ermitteln (upper/lower-case)
+ for (USHORT i2 = 0; i2 < nDBNamesCount; i2++)
+ {
+ if (sDBName.GetToken(0, DB_DELIM).ToUpperAscii() == sDBNames.GetToken(i2).ToUpperAscii())
+ {
+ sDBName = sDBNames.GetToken(i2);
+ break;
+ }
+ }
+#endif
+ pLast = Insert(sDBName);
+ if (!pFirst)
+ pFirst = pLast;
+ }
+
+ if (pFirst)
+ {
+ aUsedDBTLB.MakeVisible(pFirst);
+ aUsedDBTLB.Select(pFirst);
+ }
+#endif //REPLACE_OFADBMGR
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SvLBoxEntry* SwChangeDBDlg::Insert(const String& rDBName)
+{
+ String sDBName(rDBName.GetToken(0, DB_DELIM));
+ String sTableName(rDBName.GetToken(1, DB_DELIM));
+ SvLBoxEntry* pParent;
+ SvLBoxEntry* pChild;
+
+#ifdef REPLACE_OFADBMGR
+#else
+ sDBName = SFX_APP()->LocalizeDBName(INI2NATIONAL, sDBName);
+#endif //REPLACE_OFADBMGR
+
+ USHORT nParent = 0;
+ USHORT nChild = 0;
+
+#ifdef REPLACE_OFADBMGR
+ while ((pParent = aUsedDBTLB.GetEntry(nParent++)) != NULL)
+ {
+ if (sDBName == aUsedDBTLB.GetEntryText(pParent))
+ {
+ while ((pChild = aUsedDBTLB.GetEntry(pParent, nChild++)) != NULL)
+ {
+ if (sTableName == aUsedDBTLB.GetEntryText(pChild))
+ return pChild;
+ }
+ return aUsedDBTLB.InsertEntry(sTableName, aTableBMP, aTableBMP, pParent);
+ }
+ }
+#else
+ while ((pParent = aUsedDBTLB.GetEntry(nParent++)) != NULL)
+ {
+#ifdef UNX
+ if (sDBName == aUsedDBTLB.GetEntryText(pParent))
+#else
+ if (sDBName.ToUpperAscii() == aUsedDBTLB.GetEntryText(pParent).ToUpperAscii())
+#endif
+ {
+ while ((pChild = aUsedDBTLB.GetEntry(pParent, nChild++)) != NULL)
+ {
+#ifdef UNX
+ if (sTableName == aUsedDBTLB.GetEntryText(pChild))
+#else
+ if (sTableName.ToUpperAscii() == aUsedDBTLB.GetEntryText(pChild).ToUpperAscii())
+#endif
+ return pChild;
+ }
+ return aUsedDBTLB.InsertEntry(sTableName, aTableBMP, aTableBMP, pParent);
+ }
+ }
+#endif
+ pParent = aUsedDBTLB.InsertEntry(sDBName, aDBBMP, aDBBMP);
+ return aUsedDBTLB.InsertEntry(sTableName, aTableBMP, aTableBMP, pParent);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Dialog zerstoeren
+ --------------------------------------------------------------------*/
+
+
+__EXPORT SwChangeDBDlg::~SwChangeDBDlg()
+{
+ delete pMgr;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Schliessen
+ --------------------------------------------------------------------*/
+
+
+void __EXPORT SwChangeDBDlg::Apply()
+{
+ UpdateFlds();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwChangeDBDlg::UpdateFlds()
+{
+ SvStringsDtor aDBNames( (BYTE)aUsedDBTLB.GetSelectionCount(), 1 );
+ SvLBoxEntry* pEntry = aUsedDBTLB.FirstSelected();
+
+ while( pEntry )
+ {
+ if( aUsedDBTLB.GetParent( pEntry ))
+ {
+ String* pTmp = new String( aUsedDBTLB.GetEntryText(
+ aUsedDBTLB.GetParent( pEntry )));
+#ifdef REPLACE_OFADBMGR
+#else
+ *pTmp = SFX_APP()->LocalizeDBName( NATIONAL2INI, *pTmp);
+#endif
+ *pTmp += DB_DELIM;
+ *pTmp += aUsedDBTLB.GetEntryText( pEntry );
+ aDBNames.Insert(pTmp, aDBNames.Count() );
+ }
+ pEntry = aUsedDBTLB.NextSelected(pEntry);
+ }
+
+ pSh->StartAllAction();
+#ifdef REPLACE_OFADBMGR
+ String sTableName, sColumnName;
+ String sTemp(aAvailDBTLB.GetDBName(sTableName, sColumnName));
+ sTemp += DB_DELIM;
+ sTemp += sTableName;
+ pSh->ChangeDBFields( aDBNames, sTemp);
+#else
+ pSh->ChangeDBFields( aDBNames, aAvailDBTLB.GetDBName());
+#endif
+ pSh->EndAllAction();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwChangeDBDlg, ButtonHdl, Button *, pBtn )
+{
+#ifdef REPLACE_OFADBMGR
+ String sTableName, sColumnName;
+ String sTemp(aAvailDBTLB.GetDBName(sTableName, sColumnName));
+ sTemp += DB_DELIM;
+ sTemp += sTableName;
+ sTemp += DB_DELIM;
+ sTemp += sColumnName;
+ pSh->ChgDBName(sTemp);
+#else
+ String sNewDBName(aAvailDBTLB.GetDBName());
+ pSh->ChgDBName(sNewDBName);
+#endif
+ ShowDBName(pSh->GetDBName());
+ EndDialog(RET_OK);
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwChangeDBDlg, TreeSelectHdl, SvTreeListBox *, pBox )
+{
+ BOOL bEnable = FALSE;
+
+ SvLBoxEntry* pEntry = aAvailDBTLB.GetCurEntry();
+
+ if (pEntry)
+ {
+ if (aAvailDBTLB.GetParent(pEntry))
+ bEnable = TRUE;
+ aOKBT.Enable( bEnable );
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Datenbankname fuer Anzeige wandeln
+ --------------------------------------------------------------------*/
+
+void SwChangeDBDlg::ShowDBName(const String& rDBName)
+{
+ String sTmp(rDBName.GetToken(0, DB_DELIM));
+ String sName;
+
+#ifdef REPLACE_OFADBMGR
+#else
+ sTmp = SFX_APP()->LocalizeDBName(INI2NATIONAL, sTmp);
+#endif
+ sTmp += '.';
+ sTmp += rDBName.GetToken(1, DB_DELIM);
+
+ for (USHORT i = 0; i < sTmp.Len(); i++)
+ {
+ sName += sTmp.GetChar(i);
+ if (sTmp.GetChar(i) == '~')
+ sName += '~';
+ }
+
+ aDocDBNameFT.SetText(sName);
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.43 2000/09/18 16:05:27 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.42 2000/07/07 15:25:43 os
+ replace ofadbmgr
+
+ Revision 1.41 2000/06/26 13:35:59 os
+ new DataBase API
+
+ Revision 1.40 2000/04/18 15:17:31 os
+ UNICODE
+
+ Revision 1.39 2000/03/03 15:17:00 os
+ StarView remainders removed
+
+ Revision 1.38 2000/02/11 14:46:04 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.37 2000/01/31 12:53:09 os
+ #72339# dialog needs one apply button only
+
+ Revision 1.36 1999/09/29 06:49:52 mh
+ chg: header
+
+ Revision 1.35 1999/06/09 17:34:28 JP
+ have to change: no cast from GetpApp to SfxApp/OffApp, SfxShell only subclass of SfxApp
+
+
+ Rev 1.34 09 Jun 1999 19:34:28 JP
+ have to change: no cast from GetpApp to SfxApp/OffApp, SfxShell only subclass of SfxApp
+
+ Rev 1.33 04 Feb 1999 21:18:30 JP
+ Bug #61404#/#61014#: Optimierung der Schnittstellen
+
+ Rev 1.32 19 Nov 1998 13:18:44 OM
+ #59660# Eintrag vorselektieren
+
+ Rev 1.31 06 Nov 1997 17:03:22 OM
+ Geaenderte DB-Selektionsbox
+
+ Rev 1.30 03 Nov 1997 13:18:10 MA
+ precomp entfernt
+
+ Rev 1.29 30 Oct 1997 14:30:48 OM
+ Feldbefehl-Umstellung
+
+ Rev 1.28 18 Sep 1997 14:34:04 OM
+ Feldumstellung
+
+ Rev 1.27 02 Sep 1997 09:55:54 OM
+ SDB-Headeranpassung
+
+ Rev 1.26 15 Aug 1997 12:11:20 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.25 06 Aug 1997 13:39:54 TRI
+ VCL: GetpApp() statt pApp
+
+ Rev 1.24 23 Jul 1997 20:25:52 HJS
+ includes
+
+ Rev 1.23 14 May 1997 19:01:46 OM
+ Datenbank auch in ExpressionFields austauschen
+
+ Rev 1.22 13 May 1997 13:11:06 OM
+ #39586# Datenbank festlegen beendet Dialog
+
+ Rev 1.21 08 Apr 1997 12:44:38 MA
+ includes
+
+ Rev 1.20 07 Apr 1997 18:23:06 MH
+ chg: header
+
+ Rev 1.19 18 Mar 1997 15:24:14 OM
+ Sortierte Treelistbox
+
+ Rev 1.18 11 Nov 1996 09:56:04 MA
+ ResMgr
+
+ Rev 1.17 28 Oct 1996 11:29:52 OM
+ #32799#Namen der aktuellen Datenbank korrekt anzeigen
+
+ Rev 1.16 02 Oct 1996 16:50:26 MA
+ Umstellung Enable/Disable
+
+ Rev 1.15 25 Sep 1996 14:11:42 OM
+ Neue Datenbanktrenner
+
+ Rev 1.14 28 Aug 1996 12:13:32 OS
+ includes
+
+ Rev 1.13 14 Aug 1996 11:45:54 OM
+ Neue Segs
+
+ Rev 1.12 14 Aug 1996 11:44:34 OM
+ Datenbankumstellung
+
+ Rev 1.11 23 Jul 1996 16:08:30 OM
+ Neue Segs
+
+ Rev 1.10 23 Jul 1996 16:07:28 OM
+ Datenbank am Dok umsetzen
+
+ Rev 1.9 17 Jul 1996 13:47:30 OM
+ Datenbankumstellung 327
+
+ Rev 1.8 23 May 1996 16:34:40 OM
+ DB-Namen in Expressionfields austauschen
+
+ Rev 1.7 23 May 1996 15:29:02 OM
+ Schreibweise der DB-Namen restaurieren
+
+ Rev 1.6 22 May 1996 12:04:38 OM
+ ChangeDBFields an Doc verlagert
+
+ Rev 1.5 20 May 1996 16:33:28 OM
+ Nur verwendete Datenbanken zu Auswahl stellen
+
+ Rev 1.4 20 May 1996 11:06:44 OM
+ ChangeDBFields in die EditShell verlagert
+
+ Rev 1.3 15 May 1996 17:05:28 OM
+ Neue Segs
+
+ Rev 1.2 15 May 1996 17:05:02 OM
+ Datenbanken austauschen
+
+ Rev 1.1 15 May 1996 14:02:22 OM
+ Neue Segs
+
+ Rev 1.0 15 May 1996 14:01:12 OM
+ Initial revision.
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/fldui/changedb.hrc b/sw/source/ui/fldui/changedb.hrc
new file mode 100644
index 000000000000..0588662bafbe
--- /dev/null
+++ b/sw/source/ui/fldui/changedb.hrc
@@ -0,0 +1,93 @@
+/*************************************************************************
+ *
+ * $RCSfile: changedb.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _CHANGEDB_HRC
+#define _CHANGEDB_HRC
+
+// #include -----------------------------------------------------------------
+
+// Elemente -----------------------------------------------------------------
+
+#define FT_DESC 1
+#define FT_DOCDBTEXT 2
+#define FT_DOCDBNAME 3
+#define BT_CHANGEDB 4
+#define FT_USEDDB 5
+#define FT_AVAILDB 6
+#define TLB_USEDDB 7
+#define TLB_AVAILDB 8
+#define GB_DBLIST 9
+#define BT_OK 10
+#define BT_CANCEL 11
+#define BT_HELP 11
+
+/*--------------------------------------------------------------------
+ Beschreibung: Bitmaps
+ --------------------------------------------------------------------*/
+
+#define BMP_ROOT_CLOSED 1
+#define BMP_ROOT_OPENED 2
+#define BMP_DB 3
+#define BMP_TABLE 4
+
+#endif
+
+
diff --git a/sw/source/ui/fldui/changedb.src b/sw/source/ui/fldui/changedb.src
new file mode 100644
index 000000000000..53c74a8a33ad
--- /dev/null
+++ b/sw/source/ui/fldui/changedb.src
@@ -0,0 +1,413 @@
+/*************************************************************************
+ *
+ * $RCSfile: changedb.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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 "changedb.hrc"
+#include "fldui.hrc"
+
+#define IMAGE_STDBTN_COLOR Color { Red = 0xff00 ; Green = 0x0000 ; Blue = 0xff00 ; }
+
+ModalDialog DLG_CHANGE_DB
+{
+ // HelpID = HID_EDIT_FIELD;
+ OutputSize = TRUE ;
+ // Hide = TRUE;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 266 , 151 ) ;
+ Text = "Datenbank austauschen" ;
+ Text [ ENGLISH ] = "Change Database Name" ;
+ Text [ english_us ] = "Exchange Databases" ;
+ Text [ italian ] = "Scambia database" ;
+ Text [ spanish ] = "Cambiar Bases de Datos" ;
+ Text [ french ] = "Changer de base de donnes" ;
+ Text [ dutch ] = "Database wisselen" ;
+ Text [ swedish ] = "Byt databas" ;
+ Text [ danish ] = "Udskift database" ;
+ Text [ portuguese_brazilian ] = "Datenbank austauschen" ;
+ Text [ portuguese ] = "Substituir base de dados" ;
+ Moveable = TRUE ;
+ FixedText FT_DESC
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 190 , 45 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? In diesem Dialog knnen Sie Datenbanken, auf die Sie in Ihrem Dokument ber Datenbankfelder zugreifen, durch andere Datenbanken austauschen. Sie knnen nur eine nderung pro Arbeitsgang durchfhren. In der linken Liste ist Mehrfachselektion mglich. : In diesem Dialog knnen Sie Datenbanken, auf die Sie in Ihrem Dokument ber Datenbankfelder zugreifen, durch andere Datenbanken austauschen. Sie knnen nur eine nderung pro Arbeitsgang durchfhren. In der linken Liste ist Mehrfachselektion mglich. */
+ Text = "In diesem Dialog knnen Sie Datenbanken, auf die Sie in Ihrem Dokument ber Datenbankfelder zugreifen, durch andere Datenbanken austauschen. Sie knnen nur eine nderung pro Arbeitsgang durchfhren. In der linken Liste ist Mehrfachselektion mglich." ;
+ Text [ ENGLISH ] = "???" ;
+ WordBreak = TRUE ;
+ Left = TRUE ;
+ Text [ english_us ] = "Use this dialog to exchange the database accessed in your document via database fields with another one. You can only make one change at a time. Multiple selection is possible in the list on the left." ;
+ Text [ italian ] = "In questo dialogo si possono scambiare database ai quali si accede tramite campi di database. Si pu effettuare una modifica per volta. Nell'elenco di sinistra possibile una selezione multipla." ;
+ Text [ spanish ] = "En este dilogo puede intercambiar por otras las bases de datos a las que acceda a travs de los campos. Se puede realizar solo un cambio por fase de trabajo. En la lista izquierda es posible hacer una seleccin mltiple." ;
+ Text [ french ] = "Cette bote de dialogue vous permet d'changer les bases de donnes auxquelles vous accdez dans vos documents par des champs de formulaire. Vous pouvez excuter une seule modification par saisie. La liste de gauche permet une slection multiple." ;
+ Text [ dutch ] = "In deze dialoog kunt u gegevensbestanden waarop u in uw document via de speciale velden betrekking neemt, door andere gegevensbestanden vervangen. In de linker lijst is een meervoudige keuze mogelijk." ;
+ Text [ swedish ] = "I denna dialog kan man byta ut de databaser, som kan ns via databasfltet i Ditt dokument, mot andra databaser. Man kan bara gra en ndring t gngen. I den vnstra listen finns mjlighet till multipel markering." ;
+ Text [ danish ] = "I denne dialog kan du udskifte databaser, som du har adgang til via databasefelter. Du kan kun udfre en ndring ad gangen. I listen til venstre er der mulighed for multimarkering." ;
+ Text [ portuguese_brazilian ] = "In diesem Dialog knnen Sie Datenbanken, auf die Sie in Ihrem Dokument ber Datenbankfelder zugreifen, durch andere Datenbanken austauschen. Sie knnen nur eine nderung pro Arbeitsgang durchfhren. In der linken Liste ist Mehrfachselektion mglich." ;
+ Text [ portuguese ] = "Nesta caixa de dilogo poder substituir bases de dados por outras, tendo acesso a elas no seu documento atravs dos campos da base de dados. apenas possvel uma alterao por cada operao. Na lista da esquerda poder seleccionar vrias opes." ;
+ Text[ chinese_simplified ] = "Իܹʹһݿǰ༭ĵʹõݿ⡣ÿֻһġ󷽵еԽжѡ";
+ Text[ russian ] = " , , . . .";
+ Text[ polish ] = "W tym dialogu moesz wymieni dostpne w twoim dokumencie poprzez pola bazy danych na inne. Moesz dokona tylko jednej zmiany podczas sesji roboczej. Na licie z lewej strony moliwa jest wielokrotna selekcja.";
+ Text[ japanese ] = "޲۸ނłްް̨ނʂāA޷Ăɱްް𑼂ްްƌł܂Bx1‚̕ύXł܂BؽĂł͕I”\\łB";
+ Text[ chinese_traditional ] = "boӹܤzϥΤ@ӨLƮwӥNzes誺ҨϥΪƮwCzCu@@ܧCzb椺@hܡC";
+ Text[ arabic ] = " ǡ ʡ ʡ . . .";
+ Text[ dutch ] = "In deze dialoog kunt u gegevensbestanden waarop u in uw document via de speciale velden betrekking neemt, door andere gegevensbestanden vervangen. In de linker lijst is een meervoudige keuze mogelijk.";
+ Text[ chinese_simplified ] = "Իܹʹһݿǰ༭ĵʹõݿ⡣ÿֻһġ󷽵еԽжѡ";
+ Text[ greek ] = " , , . . .";
+ Text[ korean ] = " ȭڿ, ͺ̽ ϰų ȯϴ ͺ̽ ʵ带 ϽǼ ֽϴ.ѹ ѹ ϴ. Ʈ 󿡼, մϴ.";
+ Text[ turkish ] = "Bu diyalogda, belgenizdeki veritaban alanlar yoluyla eritiiniz veritabanlarn bakalar ile deitirebilirsiniz. Her ilemde yalnzca tek bir deiiklik yaplabilir. Soldaki listede birden fazla seim yaplabilir.";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_USEDDB
+ {
+ Pos = MAP_APPFONT ( 12 , 60 ) ;
+ Size = MAP_APPFONT ( 80 , 10 ) ;
+ Text = "Verwendete Datenbanken" ;
+ Text [ ENGLISH ] = "Used Databases" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Databases in Use" ;
+ Text [ italian ] = "Database utilizzati" ;
+ Text [ spanish ] = "Bases de datos utilizadas" ;
+ Text [ french ] = "Bases de donnes utilises" ;
+ Text [ dutch ] = "Gebruikte gegevensbestanden" ;
+ Text [ swedish ] = "Anvnda databaser" ;
+ Text [ danish ] = "Anvendte databaser" ;
+ Text [ portuguese_brazilian ] = "Verwendete Datenbanken" ;
+ Text [ portuguese ] = "Bases de dados utilizadas" ;
+ Text[ chinese_simplified ] = "ʹõݿ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Uyte bazy danych";
+ Text[ japanese ] = "gpꂽްް";
+ Text[ chinese_traditional ] = "ҨϥΪƮw";
+ Text[ arabic ] = " ";
+ Text[ dutch ] = "Gebruikte gegevensbestanden";
+ Text[ chinese_simplified ] = "ʹõݿ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ͺ̽ Դϴ.";
+ Text[ turkish ] = "Kullanlan veritabanlar";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_AVAILDB
+ {
+ Pos = MAP_APPFONT ( 108 , 60 ) ;
+ Size = MAP_APPFONT ( 80 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Verfgbare Datenbanken : Verfgbare Datenbanken */
+ Text = "Verfgbare Datenbanken" ;
+ Text [ ENGLISH ] = "Available Databases" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Available Databases" ;
+ Text [ italian ] = "Database disponibili" ;
+ Text [ spanish ] = "Bases de datos diponibles" ;
+ Text [ french ] = "Bases de donnes disponibles" ;
+ Text [ dutch ] = "Beschikbare gegevensbestanden" ;
+ Text [ swedish ] = "Tillgngliga databaser" ;
+ Text [ danish ] = "Tilgngelige databaser" ;
+ Text [ portuguese_brazilian ] = "Verfgbare Datenbanken" ;
+ Text [ portuguese ] = "Bases de dados disponveis" ;
+ Text[ chinese_simplified ] = "ʹõݿ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Dostpne bazy danych";
+ Text[ japanese ] = "gpłްް";
+ Text[ chinese_traditional ] = "{sƮw";
+ Text[ arabic ] = " ";
+ Text[ dutch ] = "Beschikbare gegevensbestanden";
+ Text[ chinese_simplified ] = "ʹõݿ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ͺ̽ 밡";
+ Text[ turkish ] = "Mevcut veritabanlar";
+ Text[ language_user1 ] = " ";
+ };
+ Control TLB_USEDDB
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 73 ) ;
+ Size = MAP_APPFONT ( 90 , 52 ) ;
+ TabStop = TRUE ;
+ };
+ Control TLB_AVAILDB
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 108 , 73 ) ;
+ Size = MAP_APPFONT ( 90 , 52 ) ;
+ TabStop = TRUE ;
+ };
+ /* MultiListBox LB_USEDDB {
+ Sort = TRUE;
+ Border = TRUE;
+ SimpleMode = TRUE;
+ Pos = MAP_APPFONT( 12, 73 );
+ Size = MAP_APPFONT( 90, 52 );
+ TabStop = TRUE;
+ };
+ ListBox LB_AVAILDB {
+ Sort = TRUE;
+ Border = TRUE;
+ Pos = MAP_APPFONT( 108, 73 );
+ Size = MAP_APPFONT( 90, 52 );
+ TabStop = TRUE;
+ };*/
+ FixedText FT_DOCDBTEXT
+ {
+ Pos = MAP_APPFONT ( 6 , 136 ) ;
+ Size = MAP_APPFONT ( 100 , 10 ) ;
+ Text = "Am Dokument gesetzte Datenbank:" ;
+ Text [ ENGLISH ] = "???" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Database applied to document:" ;
+ Text [ italian ] = "Database applicato a documento" ;
+ Text [ spanish ] = "Base de datos aplicada al doc.:" ;
+ Text [ french ] = "Base de donnes attache au document :" ;
+ Text [ dutch ] = "Gekoppeld gegevensbestand" ;
+ Text [ swedish ] = "Databaser anvnda fr dokumentet:" ;
+ Text [ danish ] = "Database tilknyttet til dokument:" ;
+ Text [ portuguese_brazilian ] = "Am Dokument gesetzte Datenbank:" ;
+ Text [ portuguese ] = "Base de dados aplicada ao documento:" ;
+ Text[ chinese_simplified ] = "ĵʹõݿ⣺";
+ Text[ russian ] = " , :";
+ Text[ polish ] = "Baza danych ustawiona przy dok.:";
+ Text[ japanese ] = "޷ĂɓKpꂽްް:";
+ Text[ chinese_traditional ] = "ϥΪƮwG";
+ Text[ arabic ] = " :";
+ Text[ dutch ] = "Gekoppeld gegevensbestand";
+ Text[ chinese_simplified ] = "ĵʹõݿ⣺";
+ Text[ greek ] = " :";
+ Text[ korean ] = " ͺ̽ :";
+ Text[ turkish ] = "Belge ile kullanlan veritaban:";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_DOCDBNAME
+ {
+ Pos = MAP_APPFONT ( 109 , 136 ) ;
+ Size = MAP_APPFONT ( 94 , 10 ) ;
+ Text = "Adressen.Adressen" ;
+ Text [ ENGLISH ] = "???" ;
+ Left = TRUE ;
+ Text [ dutch ] = "Adressen.Adressen" ;
+ Text [ english_us ] = "Addresses.Addresses" ;
+ Text [ italian ] = "Indirizzi.Indirizzi" ;
+ Text [ spanish ] = "Direcciones.Direcciones" ;
+ Text [ french ] = "Adresses.Adresses" ;
+ Text [ swedish ] = "Adresser.Adresser" ;
+ Text [ danish ] = "Adresser.Adresser" ;
+ Text [ portuguese_brazilian ] = "Adressen.Adressen" ;
+ Text [ portuguese ] = "Endereos. Endereos" ;
+ Text[ chinese_simplified ] = "ַ.ַ";
+ Text[ russian ] = ".";
+ Text[ polish ] = "Adresy.Adresy";
+ Text[ japanese ] = "Z.Z";
+ Text[ chinese_traditional ] = "a}.a}";
+ Text[ arabic ] = " ";
+ Text[ dutch ] = "Adressen.Adressen";
+ Text[ chinese_simplified ] = "ַ.ַ";
+ Text[ greek ] = ".";
+ Text[ korean ] = "ּ.ּ";
+ Text[ turkish ] = "Adresler.Adresler";
+ Text[ language_user1 ] = " ";
+ };
+/* PushButton BT_CHANGEDB
+ {
+ Pos = MAP_APPFONT ( 210 , 135 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "Festlegen" ;
+ Text [ ENGLISH ] = "???" ;
+ TabStop = TRUE ;
+ Text [ dutch ] = "Definiren" ;
+ Text [ english_us ] = "Define" ;
+ Text [ italian ] = "Definisci" ;
+ Text [ spanish ] = "Definir" ;
+ Text [ french ] = "Dfinir" ;
+ Text [ swedish ] = "Definiera" ;
+ Text [ danish ] = "Fastlg" ;
+ Text [ portuguese ] = "Definir" ;
+ Text [ portuguese_brazilian ] = "Festlegen" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Zdefiniuj";
+ Text[ japanese ] = "m";
+ Text[ chinese_traditional ] = "wq";
+ Text[ arabic ] = "";
+ Text[ dutch ] = "Define";
+ Text[ chinese_simplified ] = "Define";
+ Text[ greek ] = "";
+ Text[ korean ] = "Define";
+ };
+ */ GroupBox GB_DBLIST
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 198 , 128 ) ;
+ Text = "Datenbank austauschen" ;
+ Text [ ENGLISH ] = "Change Database Names" ;
+ Text [ dutch ] = "Database wisselen" ;
+ Text [ english_us ] = "Exchange databases" ;
+ Text [ italian ] = "Scambia database" ;
+ Text [ spanish ] = "Cambiar Bases de Datos" ;
+ Text [ french ] = "Changer de base de donnes" ;
+ Text [ swedish ] = "Byt databas" ;
+ Text [ danish ] = "Udskift database" ;
+ Text [ portuguese_brazilian ] = "Datenbank austauschen" ;
+ Text [ portuguese ] = "Substituir base de dados" ;
+ Text[ chinese_simplified ] = "ݿ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Wymie baz danych";
+ Text[ japanese ] = "ްް̌";
+ Text[ chinese_traditional ] = "Ʈw";
+ Text[ arabic ] = " ";
+ Text[ dutch ] = "Database wisselen";
+ Text[ chinese_simplified ] = "ݿ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ͺ̽ ȯ";
+ Text[ turkish ] = "Veritabannn deitirilmesi";
+ Text[ language_user1 ] = " ";
+ };
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 210 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ Disable = TRUE ;
+ Text = "Festlegen" ;
+ TabStop = TRUE ;
+ Text [ dutch ] = "Definiren" ;
+ Text [ english_us ] = "Define" ;
+ Text [ italian ] = "Definisci" ;
+ Text [ spanish ] = "Definir" ;
+ Text [ french ] = "Dfinir" ;
+ Text [ swedish ] = "Definiera" ;
+ Text [ danish ] = "Definer" ;
+ Text [ portuguese ] = "Definir" ;
+ Text [ portuguese_brazilian ] = "Festlegen" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Zdefiniuj";
+ Text[ japanese ] = "mF";
+ Text[ chinese_traditional ] = "wq";
+ Text[ arabic ] = "";
+ Text[ dutch ] = "Definiren";
+ Text[ chinese_simplified ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Tanmla";
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 210 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Text = "~Schlieen" ;
+ Text [ ENGLISH ] = "~Close" ;
+ Text [ norwegian ] = "~Lukk" ;
+ Text [ italian ] = "~Chiudi" ;
+ Text [ portuguese_brazilian ] = "~Fechar" ;
+ Text [ portuguese ] = "~Fechar" ;
+ Text [ finnish ] = "~Sulje" ;
+ Text [ danish ] = "~Luk" ;
+ Text [ french ] = "~Fermer" ;
+ Text [ swedish ] = "~Stng" ;
+ Text [ dutch ] = "~Sluiten" ;
+ Text [ spanish ] = "~Cerrar" ;
+ Text [ english_us ] = "~Close" ;
+ Text[ chinese_simplified ] = "ر(~C)";
+ Text[ russian ] = "";
+ Text[ polish ] = "~Zamknij";
+ Text[ japanese ] = "‚(~C)";
+ Text[ chinese_traditional ] = "(~C)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "~";
+ Text[ korean ] = "ݱ(~C)";
+ Text[ turkish ] = "~k";
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 210 , 60 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ Bitmap BMP_ROOT_CLOSED
+ {
+ File = "plus.bmp" ;
+ };
+ Bitmap BMP_ROOT_OPENED
+ {
+ File = "minus.bmp" ;
+ };
+ Image BMP_DB
+ {
+ ImageBitmap = Bitmap { File = "db.bmp" ; };
+ MaskColor = IMAGE_STDBTN_COLOR ;
+ };
+ Image BMP_TABLE
+ {
+ ImageBitmap = Bitmap { File = "table.bmp" ; };
+ MaskColor = IMAGE_STDBTN_COLOR ;
+ };
+ Text[ chinese_simplified ] = "ݿ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Wymie baz danych";
+ Text[ japanese ] = "ްް̌";
+ Text[ chinese_traditional ] = "󴫸Ʈw";
+ Text[ arabic ] = " ";
+ Text[ dutch ] = "Database wisselen";
+ Text[ chinese_simplified ] = "ݿ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ͺ̽ ȯ";
+ Text[ turkish ] = "Veritabannn deitirilmesi";
+ Text[ language_user1 ] = " ";
+};
+
diff --git a/sw/source/ui/fldui/flddb.cxx b/sw/source/ui/fldui/flddb.cxx
new file mode 100644
index 000000000000..3ef394ce56ff
--- /dev/null
+++ b/sw/source/ui/fldui/flddb.cxx
@@ -0,0 +1,756 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddb.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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 _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _DBFLD_HXX
+#include <dbfld.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _FLDTDLG_HXX
+#include <fldtdlg.hxx>
+#endif
+#ifndef _NUMRULE_HXX
+#include <numrule.hxx>
+#endif
+
+#ifndef _FLDTDLG_HRC
+#include <fldtdlg.hrc>
+#endif
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _FLDDB_HXX
+#include <flddb.hxx>
+#endif
+
+#define USER_DATA_VERSION_1 "1"
+#define USER_DATA_VERSION USER_DATA_VERSION_1
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldDBPage::SwFldDBPage(Window* pParent, const SfxItemSet& rCoreSet ) :
+ SwFldPage( pParent, SW_RES( TP_FLD_DB ), rCoreSet ),
+ aTypeFT (this, SW_RES(FT_DBTYPE)),
+ aTypeLB (this, SW_RES(LB_DBTYPE)),
+ aSelectionFT(this, SW_RES(FT_DBSELECTION)),
+ aDatabaseTLB(this, SW_RES(TLB_DBLIST), aEmptyStr, FALSE),
+ aConditionFT(this, SW_RES(FT_DBCONDITION)),
+ aConditionED(this, SW_RES(ED_DBCONDITION)),
+ aValueFT (this, SW_RES(FT_DBSETNUMBER)),
+ aValueED (this, SW_RES(ED_DBSETNUMBER)),
+ aDBFormatRB (this, SW_RES(RB_DBOWNFORMAT)),
+ aNewFormatRB(this, SW_RES(RB_DBFORMAT)),
+ aNumFormatLB(this, SW_RES(LB_DBNUMFORMAT)),
+ aFormatLB (this, SW_RES(LB_DBFORMAT)),
+ aFormatGB (this, SW_RES(GB_DBFORMAT))
+{
+ FreeResource();
+
+ aOldNumSelectHdl = aNumFormatLB.GetSelectHdl();
+
+ aNumFormatLB.SetSelectHdl(LINK(this, SwFldDBPage, NumSelectHdl));
+ aDatabaseTLB.SetSelectHdl(LINK(this, SwFldDBPage, TreeSelectHdl));
+ aDatabaseTLB.SetDoubleClickHdl(LINK(this, SwFldDBPage, InsertHdl));
+
+ aValueED.SetModifyHdl(LINK(this, SwFldDBPage, ModifyHdl));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+__EXPORT SwFldDBPage::~SwFldDBPage()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: TabPage initialisieren
+ --------------------------------------------------------------------*/
+
+void __EXPORT SwFldDBPage::Reset(const SfxItemSet& rSet)
+{
+ Init(); // Allgemeine initialisierung
+
+ aTypeLB.SetUpdateMode(FALSE);
+ USHORT nOldPos = aTypeLB.GetSelectEntryPos();
+#ifdef REPLACE_OFADBMGR
+ sOldDBName = aDatabaseTLB.GetDBName(sOldTableName, sOldColumnName);
+#else
+ sOldDBName = aDatabaseTLB.GetDBName();
+#endif
+
+ aTypeLB.Clear();
+
+ USHORT nPos, nTypeId, i;
+
+ if (!IsFldEdit())
+ {
+ // TypeListBox initialisieren
+ const SwFldGroupRgn& rRg = GetFldMgr().GetGroupRange(IsFldDlgHtmlMode(), GetGroup());
+
+ for(i = rRg.nStart; i < rRg.nEnd; ++i)
+ {
+ nTypeId = GetFldMgr().GetTypeId(i);
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(i));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ }
+ }
+ else
+ {
+ nTypeId = GetCurField()->GetTypeId();
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(GetFldMgr().GetPos(nTypeId)));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ }
+
+ // alte Pos selektieren
+ if (GetTypeSel() != LISTBOX_ENTRY_NOTFOUND)
+ aTypeLB.SelectEntryPos(GetTypeSel());
+
+ aFormatLB.Clear();
+
+ USHORT nSize = GetFldMgr().GetFormatCount(TYP_DBSETNUMBERFLD, FALSE, IsFldDlgHtmlMode());
+ for( i = 0; i < nSize; ++i )
+ {
+ USHORT nPos = aFormatLB.InsertEntry(GetFldMgr().GetFormatStr(TYP_DBSETNUMBERFLD, i));
+ USHORT nFmtId = GetFldMgr().GetFormatId( TYP_DBSETNUMBERFLD, i );
+ aFormatLB.SetEntryData( nPos, (void*)nFmtId );
+ if( SVX_NUM_ARABIC == nFmtId )
+ aFormatLB.SelectEntryPos( nPos );
+ }
+
+ if (!IsFldEdit())
+ {
+ if (nOldPos != LISTBOX_ENTRY_NOTFOUND)
+ aTypeLB.SelectEntryPos(nOldPos);
+
+ if (sOldDBName.Len())
+ {
+#ifdef REPLACE_OFADBMGR
+ aDatabaseTLB.Select(sOldDBName, sOldTableName, sOldColumnName);
+#else
+ aDatabaseTLB.Select(sOldDBName);
+#endif
+ }
+ else
+ {
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+#ifdef REPLACE_OFADBMGR
+ String sTmp(pSh->GetDBName());
+
+ aDatabaseTLB.Select(
+ sTmp.GetToken(0, DB_DELIM),
+ sTmp.GetToken(1, DB_DELIM),
+ sTmp.GetToken(2, DB_DELIM));
+#else
+ aDatabaseTLB.Select(pSh->GetDBName());
+#endif
+ }
+ }
+
+ if( !IsRefresh() )
+ {
+ String sUserData = GetUserData();
+ if(sUserData.GetToken(0, ';').EqualsIgnoreCaseAscii(USER_DATA_VERSION_1))
+ {
+ String sVal = sUserData.GetToken(1, ';');
+ USHORT nVal = sVal.ToInt32();
+ if(nVal != USHRT_MAX)
+ {
+ for(USHORT i = 0; i < aTypeLB.GetEntryCount(); i++)
+ if(nVal == (USHORT)(ULONG)aTypeLB.GetEntryData(i))
+ {
+ aTypeLB.SelectEntryPos(i);
+ break;
+ }
+ }
+ }
+ }
+ TypeHdl(0);
+
+ aTypeLB.SetUpdateMode(TRUE);
+ aTypeLB.SetSelectHdl(LINK(this, SwFldDBPage, TypeHdl));
+ aTypeLB.SetDoubleClickHdl(LINK(this, SwFldDBPage, InsertHdl));
+
+ if (IsFldEdit())
+ {
+ aConditionED.SaveValue();
+ aValueED.SaveValue();
+#ifdef REPLACE_OFADBMGR
+ sOldDBName = aDatabaseTLB.GetDBName(sOldTableName, sOldColumnName);
+#else
+ sOldDBName = aDatabaseTLB.GetDBName();
+#endif
+ nOldFormat = GetCurField()->GetFormat();
+ nOldSubType = GetCurField()->GetSubType();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL __EXPORT SwFldDBPage::FillItemSet(SfxItemSet& rSet)
+{
+#ifdef REPLACE_OFADBMGR
+ String sTableName, sColumnName;
+ String sDBName = aDatabaseTLB.GetDBName(sTableName, sColumnName);
+#else
+ String sDBName = aDatabaseTLB.GetDBName();
+#endif
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+
+ if (!sDBName.Len())
+ {
+#ifdef REPLACE_OFADBMGR
+ String sTmp = pSh->GetDBName();
+ sDBName = sTmp.GetToken(0, DB_DELIM);
+ sTableName = sTmp.GetToken(1, DB_DELIM);
+#else
+ sDBName = pSh->GetDBName();
+#endif
+ }
+ else
+ {
+#ifdef REPLACE_OFADBMGR
+ String sNewDBName = sDBName;
+ sNewDBName += DB_DELIM;
+ sNewDBName += sTableName;
+ pSh->ChgDBName(sNewDBName);
+#else
+ // keine Spaltennamen an ChgDBName uebergeben
+ String sNewDBName = sDBName.GetToken(0, DB_DELIM);
+ sNewDBName += DB_DELIM;
+ sNewDBName += sDBName.GetToken(1, DB_DELIM);
+ pSh->ChgDBName(sNewDBName);
+#endif
+ }
+
+ if (sDBName.Len()) // Ohne Datenbank kein neuer Feldbefehl
+ {
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+ String aVal(aValueED.GetText());
+ String aName(aConditionED.GetText());
+ ULONG nFormat = 0;
+ USHORT nSubType = 0;
+
+ sDBName += DB_DELIM;
+#ifdef REPLACE_OFADBMGR
+ sDBName += sTableName;
+ sDBName += DB_DELIM;
+ if(sColumnName.Len())
+ {
+ sDBName += sColumnName;
+ sDBName += DB_DELIM;
+ }
+#endif
+ aName.Insert(sDBName, 0);
+
+ switch (nTypeId)
+ {
+ case TYP_DBFLD:
+ nFormat = aNumFormatLB.GetFormat();
+ if (aNewFormatRB.IsEnabled() && aNewFormatRB.IsChecked())
+ nSubType = SUB_OWN_FMT;
+ aName = sDBName;
+ break;
+
+ case TYP_DBSETNUMBERFLD:
+ nFormat = (USHORT)(ULONG)aFormatLB.GetEntryData(
+ aFormatLB.GetSelectEntryPos() );
+ break;
+ }
+
+
+#ifdef REPLACE_OFADBMGR
+ String sTempDBName, sTempTableName, sTempColumnName;
+ sTempDBName = aDatabaseTLB.GetDBName(sTempTableName, sTempColumnName);
+ BOOL bDBListBoxChanged = sOldDBName != sTempDBName ||
+ sOldTableName != sTempTableName || sOldColumnName != sTempColumnName;
+#else
+ BOOL bDBListBoxChanged = sOldDBName != aDatabaseTLB.GetDBName();
+#endif
+ if (!IsFldEdit() ||
+ aConditionED.GetSavedValue() != aConditionED.GetText() ||
+ aValueED.GetSavedValue() != aValueED.GetText() ||
+ bDBListBoxChanged ||
+ nOldFormat != nFormat || nOldSubType != nSubType)
+ {
+ InsertFld( nTypeId, nSubType, aName, aVal, nFormat);
+ }
+ }
+
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxTabPage* __EXPORT SwFldDBPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return ( new SwFldDBPage( pParent, rAttrSet ) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldDBPage::GetGroup()
+{
+ return GRP_DB;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDBPage, TypeHdl, ListBox *, pBox )
+{
+ // Alte ListBoxPos sichern
+ const USHORT nOld = GetTypeSel();
+
+ // Aktuelle ListBoxPos
+ SetTypeSel(aTypeLB.GetSelectEntryPos());
+
+ if(GetTypeSel() == LISTBOX_ENTRY_NOTFOUND)
+ {
+ SetTypeSel(0);
+ aTypeLB.SelectEntryPos(0);
+ }
+
+ if (nOld != GetTypeSel())
+ {
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+ BOOL bCond = FALSE, bSetNo = FALSE, bFormat = FALSE, bDBFormat = FALSE;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ aDatabaseTLB.ShowColumns(nTypeId == TYP_DBFLD);
+
+ if (IsFldEdit())
+ {
+#ifdef REPLACE_OFADBMGR
+ String sDBName, sTableName, sColumnName;
+ if (nTypeId == TYP_DBFLD)
+ {
+ sDBName = ((SwDBField*)GetCurField())->GetDBName();
+ sColumnName = ((SwDBFieldType*)GetCurField()->GetTyp())->GetColumnName();
+ }
+ else
+ {
+ sDBName = ((SwDBNameInfField*)GetCurField())->GetDBName(pSh->GetDoc());
+ }
+ sTableName = sDBName.GetToken(1, DB_DELIM);
+ sDBName = sDBName.GetToken(0, DB_DELIM);
+
+ aDatabaseTLB.Select(sDBName, sTableName, sColumnName);
+#else
+ String sDBName;
+ if (nTypeId == TYP_DBFLD)
+ {
+ sDBName = ((SwDBField*)GetCurField())->GetDBName();
+ sDBName += DB_DELIM;
+ sDBName += ((SwDBFieldType*)GetCurField()->GetTyp())->GetColumnName();
+ }
+ else
+ sDBName = ((SwDBNameInfField*)GetCurField())->GetDBName(pSh->GetDoc());
+
+ aDatabaseTLB.Select(sDBName);
+#endif
+ }
+
+ switch (nTypeId)
+ {
+ case TYP_DBFLD:
+ bFormat = TRUE;
+ bDBFormat = TRUE;
+ aNumFormatLB.Show();
+ aFormatLB.Hide();
+
+ if (pBox) // Typ wurde vom User geaendert
+ aDBFormatRB.Check();
+
+ if (IsFldEdit())
+ {
+ if (GetCurField()->GetFormat() != 0 && GetCurField()->GetFormat() != ULONG_MAX)
+ aNumFormatLB.SetDefFormat(GetCurField()->GetFormat());
+
+ if (GetCurField()->GetSubType() & SUB_OWN_FMT)
+ aNewFormatRB.Check();
+ else
+ aDBFormatRB.Check();
+ }
+ break;
+
+ case TYP_DBNUMSETFLD:
+ bSetNo = TRUE;
+ // kein break!
+ case TYP_DBNEXTSETFLD:
+ bCond = TRUE;
+ if (IsFldEdit())
+ {
+ aConditionED.SetText(GetCurField()->GetPar1());
+ aValueED.SetText(GetCurField()->GetPar2());
+ }
+ break;
+
+ case TYP_DBNAMEFLD:
+ break;
+
+ case TYP_DBSETNUMBERFLD:
+ bFormat = TRUE;
+ aNewFormatRB.Check();
+ aNumFormatLB.Hide();
+ aFormatLB.Show();
+ if( IsFldEdit() )
+ {
+ for( USHORT nI = aFormatLB.GetEntryCount(); nI; )
+ if( GetCurField()->GetFormat() == (USHORT)(ULONG)
+ aFormatLB.GetEntryData( --nI ))
+ {
+ aFormatLB.SelectEntryPos( nI );
+ break;
+ }
+ }
+ break;
+ }
+
+ aConditionFT.Enable(bCond);
+ aConditionED.Enable(bCond);
+ aValueFT.Enable(bSetNo);
+ aValueED.Enable(bSetNo);
+ if (nTypeId != TYP_DBFLD)
+ {
+ aDBFormatRB.Enable(bDBFormat);
+ aNewFormatRB.Enable(bDBFormat|bFormat);
+ aNumFormatLB.Enable(bDBFormat);
+ aFormatLB.Enable(bFormat);
+ }
+ aFormatGB.Enable(bDBFormat|bFormat);
+
+ if (!IsFldEdit())
+ {
+ aValueED.SetText(aEmptyStr);
+ if (bCond)
+ aConditionED.SetText( String::CreateFromAscii(
+ RTL_CONSTASCII_STRINGPARAM( "TRUE" )));
+ else
+ aConditionED.SetText(aEmptyStr);
+ }
+
+ CheckInsert();
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDBPage, NumSelectHdl, NumFormatListBox *, pLB )
+{
+ aNewFormatRB.Check();
+ aOldNumSelectHdl.Call(pLB);
+
+ return 0;
+}
+
+/*---------------------------------------------------------------------
+ Beschreibung:
+---------------------------------------------------------------------*/
+
+void SwFldDBPage::CheckInsert()
+{
+ BOOL bInsert = TRUE;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ SvLBoxEntry* pEntry = aDatabaseTLB.GetCurEntry();
+
+ if (pEntry)
+ {
+ pEntry = aDatabaseTLB.GetParent(pEntry);
+
+ if (nTypeId == TYP_DBFLD && pEntry)
+ pEntry = aDatabaseTLB.GetParent(pEntry);
+
+ bInsert &= pEntry != 0;
+ }
+ else
+ bInsert = FALSE;
+
+ if (nTypeId == TYP_DBNUMSETFLD)
+ {
+ BOOL bHasValue = aValueED.GetText().Len() != 0;
+
+ bInsert &= bHasValue;
+ }
+
+ EnableInsert(bInsert);
+}
+
+/*---------------------------------------------------------------------
+ Beschreibung:
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDBPage, TreeSelectHdl, SvTreeListBox *, pBox )
+{
+ SvLBoxEntry* pColEntry;
+ SvLBoxEntry* pEntry = pColEntry = pBox->GetCurEntry();
+ if (pEntry)
+ {
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ pEntry = aDatabaseTLB.GetParent(pEntry);
+
+ if (nTypeId == TYP_DBFLD && pEntry)
+ pEntry = aDatabaseTLB.GetParent(pEntry);
+
+ CheckInsert();
+
+ if (nTypeId == TYP_DBFLD)
+ {
+ BOOL bNumFormat = FALSE;
+
+ if (pEntry != 0)
+ {
+#ifdef REPLACE_OFADBMGR
+ String sTableName;
+ String sColumnName;
+ BOOL bIsTable;
+ String sDBName = aDatabaseTLB.GetDBName(sTableName, sColumnName, &bIsTable);
+ bNumFormat = GetFldMgr().IsDBNumeric(sDBName,
+ sTableName,
+ bIsTable,
+ sColumnName);
+#else
+ String sName(aDatabaseTLB.GetDBName());
+ String sColumnName(sName.GetToken(2, DB_DELIM));
+ String sDBName(sName.GetToken(0, DB_DELIM));
+ sDBName += DB_DELIM;
+ sDBName += sName.GetToken(1, DB_DELIM);
+ bNumFormat = GetFldMgr().IsDBNumeric(sDBName, sColumnName);
+#endif
+ if (!IsFldEdit())
+ aDBFormatRB.Check();
+ }
+
+ aDBFormatRB.Enable(bNumFormat);
+ aNewFormatRB.Enable(bNumFormat);
+ aNumFormatLB.Enable(bNumFormat);
+ aFormatGB.Enable(bNumFormat);
+ }
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Modify
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDBPage, ModifyHdl, Edit *, EMPTYARG )
+{
+ CheckInsert();
+ return 0;
+}
+
+/* -----------------12.01.99 11:21-------------------
+ *
+ * --------------------------------------------------*/
+void SwFldDBPage::FillUserData()
+{
+ String sData( String::CreateFromAscii(
+ RTL_CONSTASCII_STRINGPARAM( USER_DATA_VERSION )));
+ sData += ';';
+ USHORT nTypeSel = aTypeLB.GetSelectEntryPos();
+
+ if( LISTBOX_ENTRY_NOTFOUND == nTypeSel )
+ nTypeSel = USHRT_MAX;
+ else
+ nTypeSel = (ULONG)aTypeLB.GetEntryData( nTypeSel );
+ sData += String::CreateFromInt32( nTypeSel );
+ SetUserData(sData);
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.31 2000/09/18 16:05:28 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.30 2000/07/07 15:25:43 os
+ replace ofadbmgr
+
+ Revision 1.29 2000/06/30 08:52:52 os
+ #76541# string assertions removed
+
+ Revision 1.28 2000/06/26 13:35:59 os
+ new DataBase API
+
+ Revision 1.27 2000/05/23 18:36:33 jp
+ Bugfixes for Unicode
+
+ Revision 1.26 2000/04/18 15:17:31 os
+ UNICODE
+
+ Revision 1.25 1999/02/25 16:24:50 JP
+ Bug #62438#: UserData nur auswerten, wenn kein Refresh ist
+
+
+ Rev 1.24 25 Feb 1999 17:24:50 JP
+ Bug #62438#: UserData nur auswerten, wenn kein Refresh ist
+
+ Rev 1.23 21 Jan 1999 09:50:36 OS
+ #59900# Fussnoten im Dialog korrekt sortieren; keine prot. Member
+
+ Rev 1.22 12 Jan 1999 11:42:26 OS
+ #60579# ausgewaehlten Typ in den UserData speichern
+
+ Rev 1.21 11 Dec 1998 15:16:24 OM
+ #60051# Richtiges Format fuer Serienbrieffelder waehlen
+
+ Rev 1.20 17 Nov 1998 10:50:38 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.19 04 Nov 1998 13:27:56 OM
+ #58939# Bei Formataenderung RadioButton vorselektieren
+
+ Rev 1.18 10 Aug 1998 16:39:58 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.17 09 Jul 1998 09:52:58 JP
+ EmptyStr benutzen
+
+ Rev 1.16 10 Jun 1998 13:26:08 OM
+ Alten Typ nach Reset restaurieren
+
+ Rev 1.15 27 Mar 1998 15:23:54 OM
+ #48909# Insert-Btn korrekt enablen/disablen
+
+ Rev 1.14 06 Mar 1998 13:07:48 OM
+ Nur bei Aenderung Feld aktualisieren
+
+ Rev 1.13 04 Mar 1998 08:32:24 MH
+ chg: Syntax
+
+ Rev 1.12 16 Feb 1998 09:39:00 OM
+ Fuer Solaris nicht direkt von void* auf ushort casten
+
+ Rev 1.11 06 Jan 1998 18:12:54 OM
+ Felbefehl-Dlg
+
+ Rev 1.10 05 Jan 1998 17:44:34 OM
+ DB-Feldbefehl bearbeiten
+
+ Rev 1.9 12 Dec 1997 17:14:00 OM
+ Listbox bei numerischen Formaten enablen
+
+ Rev 1.8 11 Dec 1997 16:58:00 OM
+ Feldumstellung
+
+ Rev 1.7 20 Nov 1997 17:01:20 OM
+ Neuer Felddialog
+
+ Rev 1.6 19 Nov 1997 16:30:42 OM
+ Datenbank-TP Drag&Drop
+
+ Rev 1.5 18 Nov 1997 10:34:36 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.4 17 Nov 1997 09:06:36 OM
+ Basisklasse fuer Feldbefehl-TPs
+
+ Rev 1.3 05 Nov 1997 17:02:46 OM
+ Spaltennamen anzeigen
+
+ Rev 1.2 05 Nov 1997 15:35:38 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.1 30 Oct 1997 14:31:42 OM
+ Feldbefehl-Umstellung
+
+ Rev 1.0 28 Oct 1997 15:05:06 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/fldui/flddb.hxx b/sw/source/ui/fldui/flddb.hxx
new file mode 100644
index 000000000000..5dc89b9b2ca9
--- /dev/null
+++ b/sw/source/ui/fldui/flddb.hxx
@@ -0,0 +1,137 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddb.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWFLDDB_HXX
+#define _SWFLDDB_HXX
+
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#include "condedit.hxx"
+#include "dbtree.hxx"
+#include "numfmtlb.hxx"
+
+#include "fldpage.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwFldDBPage : public SwFldPage
+{
+ FixedText aTypeFT;
+ ListBox aTypeLB;
+ FixedText aSelectionFT;
+ SwDBTreeList aDatabaseTLB;
+ FixedText aConditionFT;
+ ConditionEdit aConditionED;
+ FixedText aValueFT;
+ Edit aValueED;
+ RadioButton aDBFormatRB;
+ RadioButton aNewFormatRB;
+ NumFormatListBox aNumFormatLB;
+ ListBox aFormatLB;
+ GroupBox aFormatGB;
+
+ String sOldDBName;
+#ifdef REPLACE_OFADBMGR
+ String sOldTableName;
+ String sOldColumnName;
+#endif
+ ULONG nOldFormat;
+ USHORT nOldSubType;
+ Link aOldNumSelectHdl;
+
+ DECL_LINK( TypeHdl, ListBox* );
+ DECL_LINK( NumSelectHdl, NumFormatListBox* pLB = 0);
+ DECL_LINK( TreeSelectHdl, SvTreeListBox* pBox );
+ DECL_LINK( ModifyHdl, Edit *pED = 0 );
+
+ void CheckInsert();
+
+protected:
+ virtual USHORT GetGroup();
+
+public:
+ SwFldDBPage(Window* pParent, const SfxItemSet& rSet);
+
+ ~SwFldDBPage();
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ virtual void FillUserData();
+};
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/flddb.src b/sw/source/ui/fldui/flddb.src
new file mode 100644
index 000000000000..2dc7bc334cef
--- /dev/null
+++ b/sw/source/ui/fldui/flddb.src
@@ -0,0 +1,337 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddb.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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 "globals.hrc"
+#include "fldtdlg.hrc"
+#include "helpid.h"
+TabPage TP_FLD_DB
+{
+ HelpID = HID_FLD_DB ;
+ SVLook = TRUE ;
+ Hide = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Text = "Datenbank" ;
+ Text [ ENGLISH ] = "Database" ;
+ FixedText FT_DBTYPE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Feldtyp" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "~Tipo di campo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo de ~campo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Felttype" ;
+ Text [ french ] = "~Type de champ" ;
+ Text [ swedish ] = "~Flttyp" ;
+ Text [ dutch ] = "~Veldtype" ;
+ Text [ spanish ] = "~Tipo de campo" ;
+ Text [ english_us ] = "~Type" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ֶ(~T)";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Typ pola";
+ Text[ japanese ] = "̨ނ̎(~T)";
+ Text[ chinese_traditional ] = "(~T)";
+ Text[ arabic ] = " ";
+ Text[ greek ] = "~ ";
+ Text[ korean ] = "(~T)";
+ Text[ turkish ] = "Alan tipi";
+ };
+ ListBox LB_DBTYPE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 54 ) ;
+ TabStop = TRUE ;
+ Sort = TRUE ;
+ AutoHScroll = TRUE ;
+ /* StringList =
+ {
+ < "Beliebiger Datensatz" ; > ;
+ < "Datensatznummer" ; > ;
+ < "Nchster Datensatz" ; > ;
+ < "Serienbrieffeld" ; > ;
+ < "Datenbankname" ; > ;
+ };*/
+ };
+ FixedText FT_DBCONDITION
+ {
+ Pos = MAP_APPFONT ( 6 , 76 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ TEXT = "Bedin~gung" ;
+ TEXT [ English ] = "Conditio~n" ;
+ TEXT [ norwegian ] = "Vilkr" ;
+ TEXT [ italian ] = "Con~dizione" ;
+ TEXT [ portuguese_brazilian ] = "condio" ;
+ TEXT [ portuguese ] = "~Condio" ;
+ TEXT [ finnish ] = "Ehto" ;
+ TEXT [ danish ] = "Betingelse" ;
+ TEXT [ french ] = "~Si" ;
+ TEXT [ swedish ] = "~Villkor" ;
+ TEXT [ dutch ] = "~Voorwaarde" ;
+ TEXT [ spanish ] = "Con~dicin" ;
+ TEXT [ english_us ] = "~Condition" ;
+ Left = TRUE ;
+ TEXT[ chinese_simplified ] = "(~C)";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Warunek";
+ TEXT[ japanese ] = "(~C)";
+ TEXT[ chinese_traditional ] = "(~C)";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "(~C)";
+ TEXT[ turkish ] = "Koul";
+ };
+ Edit ED_DBCONDITION
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 88 ) ;
+ Size = MAP_APPFONT ( 76 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText FT_DBSETNUMBER
+ {
+ Pos = MAP_APPFONT ( 6 , 105 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ TEXT = "Sat~znummer" ;
+ TEXT [ English ] = "Setnumber" ;
+ TEXT [ norwegian ] = "Setnumber" ;
+ TEXT [ italian ] = "Numero di record" ;
+ TEXT [ portuguese_brazilian ] = "Definir nmero" ;
+ TEXT [ portuguese ] = "~Nmero de registo" ;
+ TEXT [ finnish ] = "Joukon numero" ;
+ TEXT [ danish ] = "Datapostnummer" ;
+ TEXT [ french ] = "~Numro de l'enregistrement" ;
+ TEXT [ swedish ] = "Datapostnummer" ;
+ TEXT [ dutch ] = "~Record-nummer" ;
+ TEXT [ spanish ] = "Nmero de registro" ;
+ TEXT [ english_us ] = "Record number" ;
+ Left = TRUE ;
+ TEXT[ chinese_simplified ] = "Ŀ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Numer zdania";
+ TEXT[ japanese ] = "ںޔԍ";
+ TEXT[ chinese_traditional ] = "ظX";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = "ڵ ȣ";
+ TEXT[ turkish ] = "Veri kmesi numaras";
+ };
+ Edit ED_DBSETNUMBER
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 117 ) ;
+ Size = MAP_APPFONT ( 76 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText FT_DBSELECTION
+ {
+ Pos = MAP_APPFONT ( 88 , 3 ) ;
+ Size = MAP_APPFONT ( 166 , 10 ) ;
+ Text = "Datenbank~auswahl" ;
+ Text [ ENGLISH ] = "Database s~election" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Database s~election" ;
+ Text [ portuguese_brazilian ] = "Datenbank~auswahl" ;
+ Text [ swedish ] = "Datab~asurval" ;
+ Text [ danish ] = "Databaseudvalg" ;
+ Text [ italian ] = "Scelta ~database" ;
+ Text [ spanish ] = "~Seleccionar base de datos" ;
+ Text [ french ] = "~Slection d'une base de donnes" ;
+ Text [ dutch ] = "Selectie ~database" ;
+ Text [ portuguese ] = "~Seleccionar base de dados" ;
+ Text[ chinese_simplified ] = "ѡݿ(~E)";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Wybr bazy danych";
+ Text[ japanese ] = "ްް̑I(~E)";
+ Text[ chinese_traditional ] = "ܸƮw(~E)";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ͺ̽ (~E)";
+ Text[ turkish ] = "Veritaban seimi";
+ };
+ Control TLB_DBLIST
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 16 ) ;
+ Size = MAP_APPFONT ( 166 , 72 ) ;
+ TabStop = TRUE ;
+ };
+ RadioButton RB_DBOWNFORMAT
+ {
+ Pos = MAP_APPFONT ( 94 , 103 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "A~us Datenbank" ;
+ Text [ ENGLISH ] = "From database" ;
+ Check = TRUE ;
+ Text [ english_us ] = "From database" ;
+ Text [ portuguese_brazilian ] = "Aus Datenbank" ;
+ Text [ swedish ] = "Frn databas" ;
+ Text [ danish ] = "Fra database" ;
+ Text [ italian ] = "Dal database" ;
+ Text [ spanish ] = "De la base de datos" ;
+ Text [ french ] = "~De la B.D." ;
+ Text [ dutch ] = "~Uit database" ;
+ Text [ portuguese ] = "~Da base de dados" ;
+ Text[ chinese_simplified ] = "ݿ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Z bazy danych";
+ Text[ japanese ] = "ްް";
+ Text[ chinese_traditional ] = "qƮw";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ͺ̽ ";
+ Text[ turkish ] = "Kaynak veritaban";
+ };
+ RadioButton RB_DBFORMAT
+ {
+ Pos = MAP_APPFONT ( 94 , 115 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "Se~lbst definiert" ;
+ Text [ ENGLISH ] = "User defined" ;
+ Text [ english_us ] = "User-defined" ;
+ Text [ portuguese_brazilian ] = "Selbstdefiniert" ;
+ Text [ swedish ] = "Anvndardefinierat" ;
+ Text [ danish ] = "Brugerdefineret" ;
+ Text [ italian ] = "Personalizzato" ;
+ Text [ spanish ] = "Definido por el usuario" ;
+ Text [ french ] = "D~fini par l'utilisateur" ;
+ Text [ dutch ] = "~Zelf gedefinieerd" ;
+ Text [ portuguese ] = "D~efinido pelo utilizador" ;
+ Text[ chinese_simplified ] = "ûԶ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Zdefiniowane przez uytkownika";
+ Text[ japanese ] = "հް`";
+ Text[ chinese_traditional ] = "ۭq";
+ Text[ arabic ] = " ";
+ Text[ greek ] = "";
+ Text[ korean ] = " ";
+ Text[ turkish ] = "Kullanc tanml";
+ };
+ ListBox LB_DBNUMFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 160 , 113 ) ;
+ Size = MAP_APPFONT ( 88 , 60 ) ;
+ TabStop = TRUE ;
+ AutoHScroll = TRUE ;
+ DropDown = TRUE ;
+ };
+ ListBox LB_DBFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 160 , 113 ) ;
+ Size = MAP_APPFONT ( 88 , 60 ) ;
+ TabStop = TRUE ;
+ AutoHScroll = TRUE ;
+ DropDown = TRUE ;
+ Sort = FALSE ;
+ Hide = TRUE ;
+ };
+ GroupBox GB_DBFORMAT
+ {
+ Pos = MAP_APPFONT ( 88 , 91 ) ;
+ Size = MAP_APPFONT ( 166 , 38 ) ;
+ TEXT = "Format" ;
+ TEXT [ English ] = "Format" ;
+ Text [ english_us ] = "Format" ;
+ Text [ portuguese_brazilian ] = "Format" ;
+ Text [ swedish ] = "Format" ;
+ Text [ danish ] = "Format" ;
+ Text [ italian ] = "Formato" ;
+ Text [ spanish ] = "Formato" ;
+ Text [ french ] = "Format" ;
+ Text [ dutch ] = "Formaat" ;
+ Text [ portuguese ] = "Formato" ;
+ Text[ chinese_simplified ] = "ʽ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "榡";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Format";
+ };
+ Text [ english_us ] = "Database" ;
+ Text [ portuguese_brazilian ] = "Datenbank" ;
+ Text [ swedish ] = "Databas" ;
+ Text [ danish ] = "Database" ;
+ Text [ italian ] = "Database" ;
+ Text [ spanish ] = "Base de datos" ;
+ Text [ french ] = "Base de donnes" ;
+ Text [ dutch ] = "Database" ;
+ Text [ portuguese ] = "Base de dados" ;
+ Text[ chinese_simplified ] = "ݿ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Baza danych";
+ Text[ japanese ] = "ްް";
+ Text[ chinese_traditional ] = "Ʈw";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ͺ̽";
+ Text[ turkish ] = "Veritaban";
+};
diff --git a/sw/source/ui/fldui/flddinf.cxx b/sw/source/ui/fldui/flddinf.cxx
new file mode 100644
index 000000000000..9ba592230a3e
--- /dev/null
+++ b/sw/source/ui/fldui/flddinf.cxx
@@ -0,0 +1,571 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddinf.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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 _SV_SVAPP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+
+#ifndef _ZFORLIST_HXX //autogen
+#include <svtools/zforlist.hxx>
+#endif
+
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _DOCUFLD_HXX
+#include <docufld.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+
+#ifndef _FLDTDLG_HRC
+#include <fldtdlg.hrc>
+#endif
+#ifndef _FLDDINF_HXX
+#include <flddinf.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+
+#define USER_DATA_VERSION_1 "1"
+#define USER_DATA_VERSION USER_DATA_VERSION_1
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldDokInfPage::SwFldDokInfPage(Window* pWindow, const SfxItemSet& rCoreSet ) :
+ SwFldPage( pWindow, SW_RES( TP_FLD_DOKINF ), rCoreSet ),
+
+ aTypeFT (this, SW_RES(FT_DOKINFTYPE)),
+ aTypeTLB (this, SW_RES(TLB_DOKINFTYPE)),
+ aSelectionFT(this, SW_RES(FT_DOKINFSELECTION)),
+ aSelectionLB(this, SW_RES(LB_DOKINFSELECTION)),
+ aFormatFT (this, SW_RES(FT_DOKINFFORMAT)),
+ aFormatLB (this, SW_RES(LB_DOKINFFORMAT)),
+ aFixedCB (this, SW_RES(CB_DOKINFFIXEDCONTENT)),
+
+ aRootOpened (SW_RES(BMP_DOKINFROOT_OPENED)),
+ aRootClosed (SW_RES(BMP_DOKINFROOT_CLOSED)),
+ aInfoStr (SW_RES(STR_DOKINF_INFO)),
+ pSelEntry (0)
+{
+ FreeResource();
+
+ aTypeTLB.SetHelpId(HID_FIELD_DINF_TYPE);
+ aTypeTLB.SetSelectionMode(SINGLE_SELECTION);
+ aTypeTLB.SetWindowBits(WB_HASLINES|WB_CLIPCHILDREN|WB_SORT|WB_HASBUTTONS|WB_HASBUTTONSATROOT|WB_HSCROLL);
+ // Font nicht setzen, damit der Font des Controls uebernommen wird!
+ // Sonst bei falschem Font Bug an OV.
+ aTypeTLB.SetSpaceBetweenEntries(0);
+
+ aTypeTLB.SetNodeBitmaps( aRootOpened, aRootClosed );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+__EXPORT SwFldDokInfPage::~SwFldDokInfPage()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void __EXPORT SwFldDokInfPage::Reset(const SfxItemSet& rSet)
+{
+ Init(); // Allgemeine initialisierung
+
+ // TypeListBox initialisieren
+ aTypeTLB.SetUpdateMode(FALSE);
+ aTypeTLB.Clear();
+ pSelEntry = 0;
+
+ // SubTypes in der TypeLB anzeigen
+ USHORT nTypeId = TYP_DOCINFOFLD;
+ SvLBoxEntry* pEntry = 0;
+
+ SvLBoxEntry* pInfo = 0;
+
+ USHORT nSubType = USHRT_MAX;
+
+ if (IsFldEdit())
+ nSubType = ((SwDocInfoField*)GetCurField())->GetSubType() & 0xff;
+
+ USHORT nSelEntryData = USHRT_MAX;
+ String sUserData = GetUserData();
+ if(sUserData.GetToken(0, ';').EqualsIgnoreCaseAscii(USER_DATA_VERSION_1))
+ {
+ String sVal = sUserData.GetToken(1, ';');
+ nSelEntryData = sVal.ToInt32();
+ }
+
+ SvStringsDtor& rLst = GetFldMgr().GetSubTypes(nTypeId);
+ for (USHORT i = 0; i < rLst.Count(); ++i)
+ {
+ if (!IsFldEdit() || nSubType == i)
+ {
+ if (i >= DI_INFO1 && i <= DI_INFO4)
+ {
+ if (!pInfo && !IsFldEdit())
+ {
+ pInfo = aTypeTLB.InsertEntry(aInfoStr);
+ pInfo->SetUserData((void*)USHRT_MAX);
+ }
+ pEntry = aTypeTLB.InsertEntry(*rLst[i], pInfo);
+ pEntry->SetUserData((void*)i);
+ }
+ else
+ {
+ if (!(IsFldDlgHtmlMode() && (i == DI_EDIT || i == DI_THEMA || i == DI_PRINT)))
+ {
+ pEntry = aTypeTLB.InsertEntry(*rLst[i]);
+ pEntry->SetUserData((void*)i);
+ }
+ }
+ if(nSelEntryData == i)
+ pSelEntry = pEntry;
+ }
+ }
+
+ // alte Pos selektieren
+ if (pSelEntry != 0)
+ {
+ aTypeTLB.Select(pSelEntry);
+ nSubType = (USHORT)(ULONG)pSelEntry->GetUserData();
+ }
+ else
+ {
+ pSelEntry = aTypeTLB.GetEntry(0);
+ nSubType = (USHORT)(ULONG)pSelEntry->GetUserData();
+ }
+
+ FillSelectionLB(nSubType);
+ TypeHdl();
+
+ aTypeTLB.SetUpdateMode(TRUE);
+ aTypeTLB.SetSelectHdl(LINK(this, SwFldDokInfPage, TypeHdl));
+ aTypeTLB.SetDoubleClickHdl(LINK(this, SwFldDokInfPage, InsertHdl));
+ aSelectionLB.SetSelectHdl(LINK(this, SwFldDokInfPage, SubTypeHdl));
+ aSelectionLB.SetDoubleClickHdl(LINK(this, SwFldDokInfPage, InsertHdl));
+ aFormatLB.SetDoubleClickHdl(LINK(this, SwFldDokInfPage, InsertHdl));
+
+ if (IsFldEdit())
+ {
+ nOldSel = aSelectionLB.GetSelectEntryPos();
+ nOldFormat = GetCurField()->GetFormat();
+ aFixedCB.SaveValue();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDokInfPage, TypeHdl, ListBox *, EMPTYARG )
+{
+ // Alte ListBoxPos sichern
+ SvLBoxEntry* pOldEntry = pSelEntry;
+
+ // Aktuelle ListBoxPos
+ pSelEntry = aTypeTLB.FirstSelected();
+
+ if(!pSelEntry)
+ {
+ pSelEntry = aTypeTLB.GetEntry(0);
+ aTypeTLB.Select(pSelEntry);
+ }
+ else
+
+ if (pOldEntry != pSelEntry)
+ FillSelectionLB((USHORT)(ULONG)pSelEntry->GetUserData());
+
+ SubTypeHdl();
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDokInfPage, SubTypeHdl, ListBox *, pBox )
+{
+ USHORT nSubType = (USHORT)(ULONG)pSelEntry->GetUserData();
+ USHORT nPos = aSelectionLB.GetSelectEntryPos();
+ USHORT nExtSubType;
+
+ if (nSubType != DI_EDIT)
+ {
+ if (nPos == LISTBOX_ENTRY_NOTFOUND)
+ {
+ if (!aSelectionLB.GetEntryCount())
+ {
+ aFormatLB.Clear();
+ aFormatLB.Enable(FALSE);
+ aFormatFT.Enable(FALSE);
+ return 0;
+ }
+ nPos = 0;
+ }
+
+ nExtSubType = (USHORT)(ULONG)aSelectionLB.GetEntryData(nPos);
+ }
+ else
+ nExtSubType = DI_SUB_TIME;
+
+ USHORT nOldType = 0;
+ USHORT nNewType = 0;
+ BOOL bEnable = FALSE;
+ BOOL bOneArea = FALSE;
+
+ if (aFormatLB.IsEnabled())
+ nOldType = aFormatLB.GetFormatType();
+
+ switch (nExtSubType)
+ {
+ case DI_SUB_AUTHOR:
+ break;
+
+ case DI_SUB_DATE:
+ nNewType = NUMBERFORMAT_DATE;
+ bOneArea = TRUE;
+ break;
+
+ case DI_SUB_TIME:
+ nNewType = NUMBERFORMAT_TIME;
+ bOneArea = TRUE;
+ break;
+ }
+
+ if (!nNewType)
+ {
+ aFormatLB.Clear();
+ }
+ else
+ {
+ if (nOldType != nNewType)
+ {
+ aFormatLB.SetFormatType(nNewType);
+ aFormatLB.SetOneArea(bOneArea);
+ }
+ bEnable = TRUE;
+ }
+
+ ULONG nFormat = IsFldEdit() ? ((SwDocInfoField*)GetCurField())->GetFormat() : 0;
+
+ USHORT nOldSubType = IsFldEdit() ? (((SwDocInfoField*)GetCurField())->GetSubType() & 0xff00) : 0;
+
+ if (IsFldEdit())
+ {
+ USHORT nPos = aSelectionLB.GetSelectEntryPos();
+ if (nPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ nSubType = (USHORT)(ULONG)aSelectionLB.GetEntryData(nPos);
+
+ nOldSubType &= ~DI_SUB_FIXED;
+ if (nOldSubType == nSubType)
+ {
+ if (!nFormat && (nNewType == NUMBERFORMAT_DATE || nNewType == NUMBERFORMAT_TIME))
+ {
+ SwWrtShell &rSh = ::GetActiveView()->GetWrtShell();
+ SvNumberFormatter* pFormatter = rSh.GetNumberFormatter();
+ LanguageType eLang = aFormatLB.GetCurLanguage();
+
+ if (nNewType == NUMBERFORMAT_DATE)
+ nFormat = pFormatter->GetFormatIndex( NF_DATE_SYSTEM_SHORT, eLang);
+ else if (nNewType == NUMBERFORMAT_TIME)
+ nFormat = pFormatter->GetFormatIndex( NF_TIME_HHMM, eLang);
+ }
+ aFormatLB.SetDefFormat(nFormat);
+ }
+ }
+ }
+
+ aFormatLB.Enable(bEnable);
+ aFormatFT.Enable(bEnable);
+
+ if (bEnable && aFormatLB.GetSelectEntryPos() == LISTBOX_ENTRY_NOTFOUND)
+ {
+ aFormatLB.SelectEntryPos(0);
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldDokInfPage::FillSelectionLB(USHORT nSubType)
+{
+ // Format-Listbox fuellen
+ USHORT nTypeId = TYP_DOCINFOFLD;
+
+ EnableInsert(nSubType != USHRT_MAX);
+
+ if (nSubType == USHRT_MAX) // Info-Text
+ nSubType = DI_INFO1;
+
+ aSelectionLB.Clear();
+
+ USHORT nSize = 0;
+ USHORT nSelPos = USHRT_MAX;
+ USHORT nExtSubType = IsFldEdit() ? (((SwDocInfoField*)GetCurField())->GetSubType() & 0xff00) : 0;
+
+ if (IsFldEdit())
+ {
+ aFixedCB.Check((nExtSubType & DI_SUB_FIXED) != 0);
+ nExtSubType = ((nExtSubType & ~DI_SUB_FIXED) >> 8) - 1;
+ }
+
+ if (nSubType < DI_CREATE || nSubType == DI_DOCNO || nSubType == DI_EDIT)
+ {
+ // Format Box ist fuer Title und Time leer
+ }
+ else
+ {
+ nSize = GetFldMgr().GetFormatCount(nTypeId, FALSE, IsFldDlgHtmlMode());
+ for (USHORT i = 0; i < nSize; i++)
+ {
+ USHORT nPos = aSelectionLB.InsertEntry(GetFldMgr().GetFormatStr(nTypeId, i));
+ aSelectionLB.SetEntryData(nPos, (void*)GetFldMgr().GetFormatId(nTypeId, i));
+ if (IsFldEdit() && i == nExtSubType)
+ nSelPos = nPos;
+ }
+ }
+
+ BOOL bEnable = nSize != 0;
+
+ if (nSize)
+ {
+ if (!aSelectionLB.GetSelectEntryCount())
+ aSelectionLB.SelectEntryPos(nSelPos == USHRT_MAX ? 0 : nSelPos);
+
+ bEnable = TRUE;
+ }
+
+ aSelectionFT.Enable(bEnable);
+ aSelectionLB.Enable(bEnable);
+
+ return nSize;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL __EXPORT SwFldDokInfPage::FillItemSet(SfxItemSet& rSet)
+{
+ if (!pSelEntry || (USHORT)(ULONG)pSelEntry->GetUserData() == USHRT_MAX)
+ return FALSE;
+
+ USHORT nTypeId = TYP_DOCINFOFLD;
+ USHORT nSubType = (USHORT)(ULONG)pSelEntry->GetUserData();
+
+ ULONG nFormat = 0;
+
+ USHORT nPos = aSelectionLB.GetSelectEntryPos();
+ if (nPos != LISTBOX_ENTRY_NOTFOUND)
+ nSubType |= (USHORT)(ULONG)aSelectionLB.GetEntryData(nPos);
+
+ if (aFixedCB.IsChecked())
+ nSubType |= DI_SUB_FIXED;
+
+ nPos = aFormatLB.GetSelectEntryPos();
+ if(nPos != LISTBOX_ENTRY_NOTFOUND)
+ nFormat = aFormatLB.GetFormat();
+
+ if (!IsFldEdit() || nOldSel != aSelectionLB.GetSelectEntryPos() ||
+ nOldFormat != nFormat || aFixedCB.GetState() != aFixedCB.GetSavedValue())
+ {
+ InsertFld(nTypeId, nSubType, aEmptyStr, aEmptyStr, nFormat);
+ }
+
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxTabPage* __EXPORT SwFldDokInfPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return ( new SwFldDokInfPage( pParent, rAttrSet ) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldDokInfPage::GetGroup()
+{
+ return GRP_REG;
+}
+/* -----------------12.01.99 11:21-------------------
+ *
+ * --------------------------------------------------*/
+void SwFldDokInfPage::FillUserData()
+{
+ String sData( String::CreateFromAscii(
+ RTL_CONSTASCII_STRINGPARAM( USER_DATA_VERSION )));
+ sData += ';';
+ SvLBoxEntry* pEntry = aTypeTLB.FirstSelected();
+ USHORT nTypeSel = pEntry ? (ULONG)pEntry->GetUserData() : USHRT_MAX;
+ sData += String::CreateFromInt32( nTypeSel );
+ SetUserData(sData);
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.21 2000/09/18 16:05:28 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.20 2000/06/30 08:52:52 os
+ #76541# string assertions removed
+
+ Revision 1.19 2000/05/23 18:36:37 jp
+ Bugfixes for Unicode
+
+ Revision 1.18 2000/04/18 15:17:31 os
+ UNICODE
+
+ Revision 1.17 2000/02/11 14:46:08 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.16 1999/02/19 07:48:26 MA
+ #61949# CurrShell gibt es nicht mehr
+
+
+ Rev 1.15 19 Feb 1999 08:48:26 MA
+ #61949# CurrShell gibt es nicht mehr
+
+ Rev 1.14 21 Jan 1999 09:46:24 OS
+ #59900# Fussnoten im Dialog korrekt sortieren; keine prot. Member
+
+ Rev 1.13 12 Jan 1999 11:42:24 OS
+ #60579# ausgewaehlten Typ in den UserData speichern
+
+ Rev 1.12 06 Mar 1998 14:53:52 OM
+ Nur bei Aenderung Feld aktualisieren
+
+ Rev 1.11 25 Feb 1998 16:47:58 OM
+ Fixe Author- und ExtUser-Felder
+
+ Rev 1.10 16 Feb 1998 10:10:22 OM
+ Fuer Solaris nicht direkt von void* auf ushort casten
+
+ Rev 1.9 12 Feb 1998 11:06:02 OM
+ Zahlenformat fuer Docinfofelder
+
+ Rev 1.8 03 Feb 1998 12:21:38 OM
+ #46621# HelpIDs fuer Feldbefehl-Dlg
+
+ Rev 1.7 19 Dec 1997 18:24:30 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.6 12 Dec 1997 16:10:06 OM
+ AutoUpdate bei FocusWechsel u.a.
+
+ Rev 1.5 11 Dec 1997 16:58:00 OM
+ Feldumstellung
+
+ Rev 1.4 10 Dec 1997 14:42:08 OM
+ Fixe DocInfoFelder
+
+ Rev 1.3 21 Nov 1997 17:19:46 OM
+ Feldbefehl-Umstellung: DocInfo
+
+ Rev 1.2 20 Nov 1997 17:01:22 OM
+ Neuer Felddialog
+
+ Rev 1.1 05 Nov 1997 15:35:38 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.0 30 Oct 1997 14:30:02 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/fldui/flddinf.hxx b/sw/source/ui/fldui/flddinf.hxx
new file mode 100644
index 000000000000..5a61b627e10b
--- /dev/null
+++ b/sw/source/ui/fldui/flddinf.hxx
@@ -0,0 +1,132 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddinf.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWFLDDINF_HXX
+#define _SWFLDDINF_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SVTREEBOX_HXX //autogen
+#include <svtools/svtreebx.hxx>
+#endif
+
+#include "numfmtlb.hxx"
+#include "fldpage.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwFldDokInfPage : public SwFldPage
+{
+ FixedText aTypeFT;
+ SvTreeListBox aTypeTLB;
+ FixedText aSelectionFT;
+ ListBox aSelectionLB;
+ FixedText aFormatFT;
+ NumFormatListBox aFormatLB;
+ CheckBox aFixedCB;
+
+ SvLBoxEntry* pSelEntry;
+
+ Bitmap aRootOpened;
+ Bitmap aRootClosed;
+ String aInfoStr;
+
+ USHORT nOldSel;
+ ULONG nOldFormat;
+
+ DECL_LINK( TypeHdl, ListBox* pLB = 0 );
+ DECL_LINK( SubTypeHdl, ListBox* pLB = 0 );
+
+ USHORT FillSelectionLB(USHORT nSubTypeId);
+
+protected:
+ virtual USHORT GetGroup();
+
+public:
+ SwFldDokInfPage(Window* pWindow, const SfxItemSet& rSet);
+
+ ~SwFldDokInfPage();
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ virtual void FillUserData();
+};
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/flddinf.src b/sw/source/ui/fldui/flddinf.src
new file mode 100644
index 000000000000..9a968d45c076
--- /dev/null
+++ b/sw/source/ui/fldui/flddinf.src
@@ -0,0 +1,398 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddinf.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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 "globals.hrc"
+#include "fldtdlg.hrc"
+#include "helpid.h"
+TabPage TP_FLD_DOKINF
+{
+ HelpID = HID_FLD_DOKINF ;
+ SVLook = TRUE ;
+ Hide = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Text = "Dokumentinfo" ;
+ Text [ ENGLISH ] = "Document information" ;
+ FixedText FT_DOKINFTYPE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Feldtyp" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "~Tipo di campo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo de ~campo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Felttype" ;
+ Text [ french ] = "~Type de champ" ;
+ Text [ swedish ] = "~Flttyp" ;
+ Text [ dutch ] = "~Veldtype" ;
+ Text [ spanish ] = "~Tipo de campo" ;
+ Text [ english_us ] = "~Type" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ֶ(~T)";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Typ pola";
+ Text[ japanese ] = "̨ނ̎(~T)";
+ Text[ chinese_traditional ] = "(~T)";
+ Text[ arabic ] = " ";
+ Text[ greek ] = "~ ";
+ Text[ korean ] = "(~T)";
+ Text[ turkish ] = "A~lan tipi";
+ Text[ language_user1 ] = " ";
+ };
+ Control TLB_DOKINFTYPE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_DOKINFSELECTION
+ {
+ Pos = MAP_APPFONT ( 88 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Auswahl" ;
+ Text [ ENGLISH ] = "Selection" ;
+ Text [ norwegian ] = "Selection" ;
+ Text [ italian ] = "Selezione" ;
+ Text [ portuguese_brazilian ] = "Seleo" ;
+ Text [ portuguese ] = "~Seleco" ;
+ Text [ finnish ] = "Valinta" ;
+ Text [ danish ] = "Udvalg" ;
+ Text [ french ] = "~Slection" ;
+ Text [ swedish ] = "~Urval" ;
+ Text [ dutch ] = "~Selectie" ;
+ Text [ spanish ] = "Se~leccin" ;
+ Text [ english_us ] = "S~elect" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ѡ(~E)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Wybr";
+ Text[ japanese ] = "I(~E)";
+ Text[ chinese_traditional ] = "(~E)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "~";
+ Text[ korean ] = "(~E)";
+ Text[ turkish ] = "S~eim";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_DOKINFSELECTION
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ StringList =
+ {
+ < "Autor" ; > ;
+ < "Uhrzeit" ; > ;
+ < "Datum" ; > ;
+ < "Datum Zeit Autor" ; > ;
+ };
+ stringlist [ english_us ] =
+ {
+ < "Author" ; > ;
+ < "Time" ; > ;
+ < "Date" ; > ;
+ < "Date Time Author" ; > ;
+ };
+ stringlist [ portuguese_brazilian ] =
+ {
+ < "Autor" ; > ;
+ < "Uhrzeit" ; > ;
+ < "Datum" ; > ;
+ < "Datum Zeit Autor" ; > ;
+ };
+ stringlist [ swedish ] =
+ {
+ < "Frfattare" ; > ;
+ < "Klockslag" ; > ;
+ < "Datum" ; > ;
+ < "Datum Tid Frfattare" ; > ;
+ };
+ stringlist [ danish ] =
+ {
+ < "Forfatter" ; > ;
+ < "Klokkeslt" ; > ;
+ < "Dato" ; > ;
+ < "Dato Tid Forfatter" ; > ;
+ };
+ stringlist [ italian ] =
+ {
+ < "Autore" ; > ;
+ < "Orario" ; > ;
+ < "Data" ; > ;
+ < "Data orario autore" ; > ;
+ };
+ stringlist [ spanish ] =
+ {
+ < "Autor" ; > ;
+ < "Hora" ; > ;
+ < "Fecha" ; > ;
+ < "Fecha Hora Autor" ; > ;
+ };
+ stringlist [ french ] =
+ {
+ < "Auteur" ; > ;
+ < "Heure" ; > ;
+ < "Date" ; > ;
+ < "Date Heure Auteur" ; > ;
+ };
+ stringlist [ dutch ] =
+ {
+ < "Auteur" ; > ;
+ < "Tijd" ; > ;
+ < "Datum" ; > ;
+ < "Datum Tijd Auteur" ; > ;
+ };
+ stringlist [ portuguese ] =
+ {
+ < "Autor" ; > ;
+ < "Horas" ; > ;
+ < "Data" ; > ;
+ < "Data Horas Autor" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "" ; > ;
+ < "ʱ" ; > ;
+ < "" ; > ;
+ < " ʱ " ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "" ; > ;
+ < "" ; > ;
+ < "" ; > ;
+ < " " ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Autor" ; > ;
+ < "Godzina" ; > ;
+ < "Data" ; > ;
+ < "Data Godzina Autor" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "쐬" ; > ;
+ < "" ; > ;
+ < "t" ; > ;
+ < "t@@쐬" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "@" ; > ;
+ < "ɶ" ; > ;
+ < "" ; > ;
+ < " ɶ @" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "" ; > ;
+ < "" ; > ;
+ < "" ; > ;
+ < " " ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "" ; > ;
+ < "" ; > ;
+ < "" ; > ;
+ < " " ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "ۼ" ; > ;
+ < "ð" ; > ;
+ < "" ; > ;
+ < " ð ۼ" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Yazan" ; > ;
+ < "Saat" ; > ;
+ < "Tarih" ; > ;
+ < "Tarih Saat Yazan" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ };
+ };
+ FixedText FT_DOKINFFORMAT
+ {
+ Pos = MAP_APPFONT ( 170 , 3 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ TEXT = "F~ormat" ;
+ TEXT [ English ] = "Format" ;
+ Left = TRUE ;
+ Text [ english_us ] = "F~ormat" ;
+ Text [ portuguese_brazilian ] = "F~ormat" ;
+ Text [ swedish ] = "F~ormat" ;
+ Text [ danish ] = "Format" ;
+ Text [ italian ] = "F~ormato" ;
+ Text [ spanish ] = "F~ormato" ;
+ Text [ french ] = "F~ormat" ;
+ Text [ dutch ] = "F~ormaat" ;
+ Text [ portuguese ] = "F~ormato" ;
+ Text[ chinese_simplified ] = "ʽ(~O)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "(~O)";
+ Text[ chinese_traditional ] = "榡(~O)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "~";
+ Text[ korean ] = "(~O)";
+ Text[ turkish ] = "F~ormat";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_DOKINFFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 16 ) ;
+ Size = MAP_APPFONT ( 84 , 98 ) ;
+ TabStop = TRUE ;
+ AutoHScroll = TRUE ;
+ };
+ CheckBox CB_DOKINFFIXEDCONTENT
+ {
+ Pos = MAP_APPFONT ( 170 , 120 ) ;
+ Size = MAP_APPFONT ( 72 , 10 ) ;
+ TEXT = "~Inhalt fixieren" ;
+ TEXT [ English ] = "Fixed content" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "Fi~xed content" ;
+ Text [ portuguese_brazilian ] = "~Inhalt fixieren" ;
+ Text [ swedish ] = "Fixera ~innehll" ;
+ Text [ danish ] = "Fast indhold" ;
+ Text [ italian ] = "~Fissa il contenuto" ;
+ Text [ spanish ] = "~Fijar contenido" ;
+ Text [ french ] = "Contenu f~ixe" ;
+ Text [ dutch ] = "~Inhoud fixeren" ;
+ Text [ portuguese ] = "~Contudo fixo" ;
+ Text[ chinese_simplified ] = "̶(~X)";
+ Text[ russian ] = ". ";
+ Text[ polish ] = "Staa tre";
+ Text[ japanese ] = "ěŒ(~F)";
+ Text[ chinese_traditional ] = "Twe(~F)";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ~";
+ Text[ korean ] = " (~X)";
+ Text[ turkish ] = "erii sabitle";
+ Text[ language_user1 ] = " ";
+ };
+ Bitmap BMP_DOKINFROOT_OPENED
+ {
+ File = "plus.bmp" ;
+ };
+ Bitmap BMP_DOKINFROOT_CLOSED
+ {
+ File = "minus.bmp" ;
+ };
+ String STR_DOKINF_INFO
+ {
+ TEXT = "Info" ;
+ TEXT [ English ] = "Info" ;
+ Text [ english_us ] = "Info" ;
+ Text [ portuguese_brazilian ] = "Info" ;
+ Text [ swedish ] = "Info" ;
+ Text [ danish ] = "Info" ;
+ Text [ italian ] = "Info" ;
+ Text [ spanish ] = "Informacin" ;
+ Text [ french ] = "Info" ;
+ Text [ dutch ] = "Info" ;
+ Text [ portuguese ] = "Info" ;
+ Text[ chinese_simplified ] = "й";
+ Text[ russian ] = "";
+ Text[ polish ] = "Informacja";
+ Text[ japanese ] = "̫Ұ";
+ Text[ chinese_traditional ] = "";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Bilgi";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "DocInformation" ;
+ Text [ portuguese_brazilian ] = "Dokumentinfo" ;
+ Text [ swedish ] = "Dokumentinfo" ;
+ Text [ danish ] = "Dokumentinfo" ;
+ Text [ italian ] = "Info documento" ;
+ Text [ spanish ] = "Informacin del documento" ;
+ Text [ french ] = "Info document" ;
+ Text [ dutch ] = "Documentinfo" ;
+ Text [ portuguese ] = "Info. sobre documento" ;
+ Text[ chinese_simplified ] = "ĵϢ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Informacje o dokumencie";
+ Text[ japanese ] = "޷ ̫Ұ";
+ Text[ chinese_traditional ] = "T";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Belge bilgileri";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/flddok.cxx b/sw/source/ui/fldui/flddok.cxx
new file mode 100644
index 000000000000..4cf7743f6995
--- /dev/null
+++ b/sw/source/ui/fldui/flddok.cxx
@@ -0,0 +1,872 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddok.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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 _SV_SVAPP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+
+#ifndef _FLDDAT_HXX //autogen
+#include <flddat.hxx>
+#endif
+#ifndef _DOCUFLD_HXX //autogen
+#include <docufld.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _CHPFLD_HXX
+#include <chpfld.hxx>
+#endif
+
+#ifndef _FLDTDLG_HRC
+#include <fldtdlg.hrc>
+#endif
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _FLDDOK_HXX
+#include <flddok.hxx>
+#endif
+
+#define USER_DATA_VERSION_1 "1"
+#define USER_DATA_VERSION USER_DATA_VERSION_1
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldDokPage::SwFldDokPage(Window* pWindow, const SfxItemSet& rCoreSet ) :
+ SwFldPage( pWindow, SW_RES( TP_FLD_DOK ), rCoreSet ),
+
+ aTypeFT (this, SW_RES(FT_DOKTYPE)),
+ aTypeLB (this, SW_RES(LB_DOKTYPE)),
+ aSelectionFT (this, SW_RES(FT_DOKSELECTION)),
+ aSelectionLB (this, SW_RES(LB_DOKSELECTION)),
+ aValueFT (this, SW_RES(FT_DOKVALUE)),
+ aValueED (this, SW_RES(ED_DOKVALUE)),
+ aLevelED (this, SW_RES(ED_DOKLEVEL)),
+ aDateOffsetED (this, SW_RES(ED_DOKDATEOFF)),
+
+ aFormatFT (this, SW_RES(FT_DOKFORMAT)),
+ aFormatLB (this, SW_RES(LB_DOKFORMAT)),
+ aNumFormatLB (this, SW_RES(LB_DOKNUMFORMAT)),
+ aFixedCB (this, SW_RES(CB_DOKFIXEDCONTENT)),
+
+ sDateOffset (SW_RES(STR_DOKDATEOFF)),
+ sTimeOffset (SW_RES(STR_DOKTIMEOFF)),
+ aRootOpened (SW_RES(BMP_DOKROOT_OPENED)),
+ aRootClosed (SW_RES(BMP_DOKROOT_CLOSED))
+{
+ FreeResource();
+
+ aSelectionLB.SetDoubleClickHdl(LINK(this, SwFldDokPage, InsertHdl));
+ aFormatLB.SetDoubleClickHdl(LINK(this, SwFldDokPage, InsertHdl));
+ aNumFormatLB.SetDoubleClickHdl(LINK(this, SwFldDokPage, NumFormatHdl));
+
+ aLevelED.SetMax(MAXLEVEL);
+ aDateOffsetED.SetMin(LONG_MIN);
+ aDateOffsetED.SetMax(LONG_MAX);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+__EXPORT SwFldDokPage::~SwFldDokPage()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void __EXPORT SwFldDokPage::Reset(const SfxItemSet& rSet)
+{
+ SavePos(&aTypeLB);
+ Init(); // Allgemeine initialisierung
+
+ // TypeListBox initialisieren
+ const SwFldGroupRgn& rRg = GetFldMgr().GetGroupRange(IsFldDlgHtmlMode(), GetGroup());
+
+ aTypeLB.SetUpdateMode(FALSE);
+ aTypeLB.Clear();
+
+ USHORT nPos, nTypeId;
+ BOOL bPage = FALSE;
+
+ if (!IsFldEdit())
+ {
+ // Typ-Listbox fuellen
+ for(short i = rRg.nStart; i < rRg.nEnd; ++i)
+ {
+ nTypeId = GetFldMgr().GetTypeId(i);
+
+ switch (nTypeId)
+ {
+ case TYP_PREVPAGEFLD:
+ case TYP_NEXTPAGEFLD:
+ case TYP_PAGENUMBERFLD:
+ if (!bPage)
+ {
+ nPos = aTypeLB.InsertEntry(SW_RESSTR(FMT_REF_PAGE));
+ aTypeLB.SetEntryData(nPos, (void*)USHRT_MAX);
+ bPage = TRUE;
+ }
+ break;
+
+ default:
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(i));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ break;
+ }
+ }
+ }
+ else
+ {
+ nTypeId = GetCurField()->GetTypeId();
+ if (nTypeId == TYP_FIXDATEFLD)
+ nTypeId = TYP_DATEFLD;
+ if (nTypeId == TYP_FIXTIMEFLD)
+ nTypeId = TYP_TIMEFLD;
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(GetFldMgr().GetPos(nTypeId)));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ }
+
+ // alte Pos selektieren
+ RestorePos(&aTypeLB);
+
+ aTypeLB.SetUpdateMode(TRUE);
+ aTypeLB.SetDoubleClickHdl(LINK(this, SwFldDokPage, InsertHdl));
+ aTypeLB.SetSelectHdl(LINK(this, SwFldDokPage, TypeHdl));
+ aFormatLB.SetSelectHdl(LINK(this, SwFldDokPage, FormatHdl));
+
+ if( !IsRefresh() )
+ {
+ String sUserData = GetUserData();
+ if( sUserData.GetToken(0, ';').EqualsIgnoreCaseAscii(USER_DATA_VERSION_1 ))
+ {
+ String sVal = sUserData.GetToken(1, ';');
+ USHORT nVal = sVal.ToInt32();
+ if(nVal != USHRT_MAX)
+ {
+ for(USHORT i = 0; i < aTypeLB.GetEntryCount(); i++)
+ if(nVal == (USHORT)(ULONG)aTypeLB.GetEntryData(i))
+ {
+ aTypeLB.SelectEntryPos(i);
+ break;
+ }
+ }
+ }
+ }
+ TypeHdl(0);
+
+ if (IsFldEdit())
+ {
+ nOldSel = aSelectionLB.GetSelectEntryPos();
+ nOldFormat = GetCurField()->GetFormat();
+ aFixedCB.SaveValue();
+ aValueED.SaveValue();
+ aLevelED.SaveValue();
+ aDateOffsetED.SaveValue();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDokPage, TypeHdl, ListBox *, EMPTYARG )
+{
+ // Alte ListBoxPos sichern
+ const USHORT nOld = GetTypeSel();
+
+ // Aktuelle ListBoxPos
+ SetTypeSel(aTypeLB.GetSelectEntryPos());
+
+ if(GetTypeSel() == LISTBOX_ENTRY_NOTFOUND)
+ {
+ SetTypeSel(0);
+ aTypeLB.SelectEntryPos(0);
+ }
+
+ USHORT nCount;
+
+ if (nOld != GetTypeSel())
+ {
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ // Auswahl-Listbox fuellen
+ aSelectionLB.Clear();
+
+ if (nTypeId != USHRT_MAX)
+ {
+ SvStringsDtor& rLst = GetFldMgr().GetSubTypes(nTypeId);
+
+ if (nTypeId != TYP_AUTHORFLD)
+ nCount = rLst.Count();
+ else
+ nCount = GetFldMgr().GetFormatCount(nTypeId, FALSE, IsFldDlgHtmlMode());
+
+ USHORT nPos;
+
+ for (USHORT i = 0; i < nCount; ++i)
+ {
+ if (!IsFldEdit())
+ {
+ if (nTypeId != TYP_AUTHORFLD)
+ nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ else
+ nPos = aSelectionLB.InsertEntry(GetFldMgr().GetFormatStr(nTypeId, i));
+
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ }
+ else
+ {
+ BOOL bInsert = FALSE;
+
+ switch (nTypeId)
+ {
+ case TYP_DATEFLD:
+ case TYP_TIMEFLD:
+ nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ if (((SwDateTimeField*)GetCurField())->IsFixed() && !i)
+ aSelectionLB.SelectEntryPos(nPos);
+ if (!((SwDateTimeField*)GetCurField())->IsFixed() && i)
+ aSelectionLB.SelectEntryPos(nPos);
+ break;
+
+ case TYP_EXTUSERFLD:
+ case TYP_DOCSTATFLD:
+ nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ if (GetCurField()->GetSubType() == i)
+ aSelectionLB.SelectEntryPos(nPos);
+ break;
+
+ case TYP_AUTHORFLD:
+ {
+ String sFmt(GetFldMgr().GetFormatStr(nTypeId, i));
+ nPos = aSelectionLB.InsertEntry(sFmt);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ aSelectionLB.SelectEntry(GetFldMgr().GetFormatStr(nTypeId, GetCurField()->GetFormat()));
+ break;
+ }
+
+ default:
+ if (*rLst[i] == GetCurField()->GetPar1())
+ bInsert = TRUE;
+ break;
+ }
+ if (bInsert)
+ {
+ nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ break;
+ }
+ }
+ }
+ aSelectionLB.SetSelectHdl(Link());
+ }
+ else
+ {
+ AddSubType(TYP_PAGENUMBERFLD);
+ AddSubType(TYP_PREVPAGEFLD);
+ AddSubType(TYP_NEXTPAGEFLD);
+ nTypeId = (USHORT)(ULONG)aSelectionLB.GetEntryData(0);
+ nCount = 3;
+ aSelectionLB.SetSelectHdl(LINK(this, SwFldDokPage, SubTypeHdl));
+ }
+
+ BOOL bEnable = nCount != 0;
+
+ if (bEnable && !aSelectionLB.GetSelectEntryCount())
+ aSelectionLB.SelectEntryPos(0);
+
+ aSelectionLB.Enable( bEnable );
+ aSelectionFT.Enable( bEnable );
+
+ // Format-Listbox fuellen
+ USHORT nSize = FillFormatLB(nTypeId);
+
+ BOOL bValue = FALSE, bLevel = FALSE, bNumFmt = FALSE, bOffset = FALSE;
+ BOOL bFormat = nSize != 0;
+ BOOL bOneArea = FALSE;
+ BOOL bFixed = FALSE;
+ USHORT nFmtType = 0;
+
+ switch (nTypeId)
+ {
+ case TYP_DATEFLD:
+ bFormat = bNumFmt = bOneArea = bOffset = TRUE;
+
+ nFmtType = NUMBERFORMAT_DATE;
+ aValueFT.SetText(sDateOffset);
+ aDateOffsetED.SetFirst(-31); // Ein Monat
+ aDateOffsetED.SetLast(31);
+
+ if (IsFldEdit())
+ aDateOffsetED.SetValue( ((SwDateTimeField*)GetCurField())->GetOffset() / 24 / 60);
+ break;
+
+ case TYP_TIMEFLD:
+ bFormat = bNumFmt = bOneArea = bOffset = TRUE;
+
+ nFmtType = NUMBERFORMAT_TIME;
+ aValueFT.SetText(sTimeOffset);
+ aDateOffsetED.SetFirst(-1440); // Ein Tag
+ aDateOffsetED.SetLast(1440);
+
+ if (IsFldEdit())
+ aDateOffsetED.SetValue( ((SwDateTimeField*)GetCurField())->GetOffset() );
+ break;
+
+ case TYP_PREVPAGEFLD:
+ case TYP_NEXTPAGEFLD:
+ if (IsFldEdit())
+ {
+ USHORT nTmp = (USHORT)(ULONG)aFormatLB.GetEntryData(
+ aFormatLB.GetSelectEntryPos() );
+ String sOldTxt(aValueFT.GetText());
+
+ if (FMT_NUM_PAGESPECIAL - FMT_NUM_BEGIN != nTmp)
+ {
+ short nOff = GetCurField()->GetPar2().ToInt32();
+ if( TYP_NEXTPAGEFLD == nTypeId && 1 != nOff )
+ aValueED.SetText( nOff - 1 );
+ else if( TYP_PREVPAGEFLD == nTypeId && -1 != nOff )
+ aValueED.SetText( nOff + 1 );
+ else
+ aValueED.SetText(aEmptyStr);
+ }
+ else
+ aValueED.SetText(((SwPageNumberField*)GetCurField())->GetUserString());
+ }
+ bValue = TRUE;
+ break;
+
+ case TYP_CHAPTERFLD:
+ aValueFT.SetText(SW_RESSTR(STR_LEVEL));
+ if (IsFldEdit())
+ aLevelED.SetText(String::CreateFromInt32(((SwChapterField*)GetCurField())->GetLevel() + 1));
+ bLevel = TRUE;
+ break;
+
+ case TYP_PAGENUMBERFLD:
+ aValueFT.SetText( SW_RESSTR( STR_OFFSET ));
+ if (IsFldEdit())
+ aValueED.SetText(GetCurField()->GetPar2());
+ bValue = TRUE;
+ break;
+
+ case TYP_EXTUSERFLD:
+ case TYP_AUTHORFLD:
+ case TYP_FILENAMEFLD:
+ bFixed = TRUE;
+ break;
+
+ default:
+ break;
+ }
+
+ if (bNumFmt)
+ {
+ if (IsFldEdit())
+ {
+ aNumFormatLB.SetDefFormat(GetCurField()->GetFormat());
+
+ if (aNumFormatLB.GetFormatType() == (NUMBERFORMAT_DATE|NUMBERFORMAT_TIME))
+ {
+ // Format-Typ immer einstellen, da sonst bei kombinierten Datum/Zeitformaten
+ // beide Formate gleichzeitig angezeigt werden wuerden
+ aNumFormatLB.SetFormatType(0);
+ aNumFormatLB.SetFormatType(nFmtType);
+ // Nochmal richtiges Format einstellen
+ aNumFormatLB.SetDefFormat(GetCurField()->GetFormat());
+ }
+ }
+ else
+ aNumFormatLB.SetFormatType(nFmtType);
+
+ aNumFormatLB.SetOneArea(bOneArea);
+ }
+
+ aFormatLB.Show(!bNumFmt);
+ aNumFormatLB.Show(bNumFmt);
+
+ Size aSz(aFormatLB.GetSizePixel());
+
+ if (bValue | bLevel | bOffset)
+ aSz.Height() = aFormatLB.LogicToPixel(Size(1, 82), MAP_APPFONT).Height();
+ else
+ aSz.Height() = aFormatLB.LogicToPixel(Size(1, 98), MAP_APPFONT).Height();
+
+ aValueFT.Show(bValue | bLevel | bOffset);
+ aValueED.Show(bValue);
+ aLevelED.Show(bLevel);
+ aDateOffsetED.Show(bOffset);
+ aFixedCB.Show(!bValue && !bLevel && !bOffset);
+
+ aFormatLB.SetSizePixel(aSz);
+ aNumFormatLB.SetSizePixel(aSz);
+
+ aFormatLB.Enable(bFormat);
+ aFormatFT.Enable(bFormat);
+ aFixedCB.Enable(bFixed);
+
+ if (IsFldEdit())
+ aFixedCB.Check(((GetCurField()->GetFormat() & AF_FIXED) != 0) & bFixed);
+
+ if (aNumFormatLB.GetSelectEntryPos() == LISTBOX_ENTRY_NOTFOUND)
+ aNumFormatLB.SelectEntryPos(0);
+ aValueFT.Enable(bValue | bLevel | bOffset);
+ aValueED.Enable(bValue);
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldDokPage::AddSubType(USHORT nTypeId)
+{
+ USHORT nPos = aSelectionLB.InsertEntry(*SwFieldType::GetFldNames()->GetObject(nTypeId));
+ aSelectionLB.SetEntryData(nPos, (void*)nTypeId);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDokPage, SubTypeHdl, ListBox *, EMPTYARG )
+{
+ USHORT nPos = aSelectionLB.GetSelectEntryPos();
+ if(nPos == LISTBOX_ENTRY_NOTFOUND)
+ nPos = 0;
+
+ USHORT nTypeId = (USHORT)(ULONG)aSelectionLB.GetEntryData(nPos);
+ FillFormatLB(nTypeId);
+
+ USHORT nTextRes = 0;
+ switch (nTypeId)
+ {
+ case TYP_CHAPTERFLD:
+ nTextRes = STR_LEVEL;
+ break;
+
+ case TYP_PREVPAGEFLD:
+ case TYP_NEXTPAGEFLD:
+ nTextRes = SVX_NUM_CHAR_SPECIAL == (USHORT)(ULONG)aFormatLB.GetEntryData(
+ aFormatLB.GetSelectEntryPos() )
+ ? STR_VALUE : STR_OFFSET;
+ break;
+
+ case TYP_PAGENUMBERFLD:
+ nTextRes = STR_OFFSET;
+ break;
+ }
+
+ if( nTextRes )
+ aValueFT.SetText( SW_RESSTR( nTextRes ));
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldDokPage::FillFormatLB(USHORT nTypeId)
+{
+ // Format-Listbox fuellen
+ aFormatLB.Clear();
+
+ if (nTypeId == TYP_AUTHORFLD)
+ return aFormatLB.GetEntryCount();
+
+ USHORT nSize = GetFldMgr().GetFormatCount(nTypeId, FALSE, IsFldDlgHtmlMode());
+
+ for( USHORT i = 0; i < nSize; ++i )
+ {
+ USHORT nPos = aFormatLB.InsertEntry(GetFldMgr().GetFormatStr(nTypeId, i));
+ USHORT nFmtId = GetFldMgr().GetFormatId( nTypeId, i );
+ aFormatLB.SetEntryData( nPos, (void*)nFmtId );
+ if (IsFldEdit() && nFmtId == (GetCurField()->GetFormat() & ~AF_FIXED))
+ aFormatLB.SelectEntryPos( nPos );
+ }
+
+ if( nSize && !aFormatLB.GetSelectEntryCount() )
+ {
+ aFormatLB.SelectEntry( SW_RESSTR(FMT_NUM_PAGEDESC) );
+ if( !aFormatLB.GetSelectEntryCount() )
+ {
+ aFormatLB.SelectEntry( SW_RESSTR(FMT_NUM_ARABIC) );
+ if( !aFormatLB.GetSelectEntryCount() )
+ aFormatLB.SelectEntryPos( 0 );
+ }
+ }
+
+ FormatHdl();
+
+ return nSize;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDokPage, FormatHdl, ListBox *, EMPTYARG )
+{
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ if (nTypeId == USHRT_MAX)
+ {
+ USHORT nPos = aSelectionLB.GetSelectEntryPos();
+ if(nPos == LISTBOX_ENTRY_NOTFOUND)
+ nPos = 0;
+
+ nTypeId = (USHORT)(ULONG)aSelectionLB.GetEntryData(nPos);
+ }
+
+ if (nTypeId == TYP_NEXTPAGEFLD || nTypeId == TYP_PREVPAGEFLD)
+ {
+ // Prev/Next - PageNumFelder Sonderbehandlung:
+ USHORT nTmp = (USHORT)(ULONG)aFormatLB.GetEntryData(
+ aFormatLB.GetSelectEntryPos() );
+ String sOldTxt( aValueFT.GetText() );
+ String sNewTxt( SW_RES( SVX_NUM_CHAR_SPECIAL == nTmp ? STR_VALUE
+ : STR_OFFSET ));
+
+ if( sOldTxt != sNewTxt )
+ aValueFT.SetText( sNewTxt );
+
+ if (sOldTxt != aValueFT.GetText())
+ aValueED.SetText( aEmptyStr );
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL __EXPORT SwFldDokPage::FillItemSet(SfxItemSet& rSet)
+{
+ BOOL bPage = FALSE;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ if (nTypeId == USHRT_MAX)
+ {
+ USHORT nPos = aSelectionLB.GetSelectEntryPos();
+ if(nPos == LISTBOX_ENTRY_NOTFOUND)
+ nPos = 0;
+ nTypeId = (USHORT)(ULONG)aSelectionLB.GetEntryData(nPos);
+ bPage = TRUE;
+ }
+
+ String aVal(aValueED.GetText());
+ ULONG nFormat = 0;
+ USHORT nSubType = 0;
+
+ if (aFormatLB.IsEnabled())
+ {
+ USHORT nPos = aFormatLB.GetSelectEntryPos();
+ if(nPos != LISTBOX_ENTRY_NOTFOUND)
+ nFormat = (USHORT)(ULONG)aFormatLB.GetEntryData(nPos);
+ }
+
+ if (aSelectionLB.IsEnabled())
+ {
+ USHORT nPos = aSelectionLB.GetSelectEntryPos();
+ if(nPos != LISTBOX_ENTRY_NOTFOUND)
+ nSubType = (USHORT)(ULONG)aSelectionLB.GetEntryData(nPos);
+ }
+
+ switch (nTypeId)
+ {
+ case TYP_AUTHORFLD:
+ nFormat = nSubType;
+ nSubType = 0;
+ // kein break!
+ case TYP_EXTUSERFLD:
+ nFormat |= aFixedCB.IsChecked() ? AF_FIXED : 0;
+ break;
+
+ case TYP_FILENAMEFLD:
+ nFormat |= aFixedCB.IsChecked() ? FF_FIXED : 0;
+ break;
+
+ case TYP_DATEFLD:
+ case TYP_TIMEFLD:
+ {
+ nFormat = aNumFormatLB.GetFormat();
+ long nVal = aDateOffsetED.GetValue();
+ if (nTypeId == TYP_DATEFLD)
+ aVal = String::CreateFromInt32(nVal * 60 * 24);
+ else
+ aVal = String::CreateFromInt32(nVal);
+ break;
+ }
+
+ case TYP_NEXTPAGEFLD:
+ case TYP_PREVPAGEFLD:
+ case TYP_PAGENUMBERFLD:
+ case TYP_GETREFPAGEFLD:
+ {
+ if( SVX_NUM_CHAR_SPECIAL != nFormat &&
+ (TYP_PREVPAGEFLD == nTypeId || TYP_NEXTPAGEFLD == nTypeId))
+ {
+ short nVal = aValueED.GetText().ToInt32();
+ aVal = String::CreateFromInt32(nVal);
+ }
+ break;
+ }
+
+ case TYP_CHAPTERFLD:
+ aVal = aLevelED.GetText();
+ break;
+
+ default:
+ break;
+ }
+
+ if (!IsFldEdit() ||
+ nOldSel != aSelectionLB.GetSelectEntryPos() ||
+ nOldFormat != nFormat ||
+ aFixedCB.GetState() != aFixedCB.GetSavedValue() ||
+ aValueED.GetText() != aValueED.GetSavedValue() ||
+ aLevelED.GetText() != aLevelED.GetSavedValue() ||
+ aDateOffsetED.GetText() != aDateOffsetED.GetSavedValue())
+ {
+ InsertFld( nTypeId, nSubType, aEmptyStr, aVal, nFormat );
+ }
+
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxTabPage* __EXPORT SwFldDokPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return ( new SwFldDokPage( pParent, rAttrSet ) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldDokPage::GetGroup()
+{
+ return GRP_DOC;
+}
+
+/* -----------------12.01.99 10:09-------------------
+ *
+ * --------------------------------------------------*/
+void SwFldDokPage::FillUserData()
+{
+ String sData( String::CreateFromAscii(
+ RTL_CONSTASCII_STRINGPARAM( USER_DATA_VERSION )));
+ sData += ';';
+ USHORT nTypeSel = aTypeLB.GetSelectEntryPos();
+ if( LISTBOX_ENTRY_NOTFOUND == nTypeSel )
+ nTypeSel = USHRT_MAX;
+ else
+ nTypeSel = (ULONG)aTypeLB.GetEntryData( nTypeSel );
+ sData += String::CreateFromInt32( nTypeSel );
+ SetUserData(sData);
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.36 2000/09/18 16:05:28 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.35 2000/08/23 11:33:25 os
+ CreateFromInt32
+
+ Revision 1.34 2000/06/30 08:52:52 os
+ #76541# string assertions removed
+
+ Revision 1.33 2000/05/23 18:36:41 jp
+ Bugfixes for Unicode
+
+ Revision 1.32 2000/04/18 15:17:31 os
+ UNICODE
+
+ Revision 1.31 2000/02/24 17:57:26 hr
+ #73447#: removed temporary
+
+ Revision 1.30 2000/02/11 14:46:18 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.29 1999/03/23 09:51:34 OS
+ #61673# Reihenfolge der Seitenfelder besser
+
+
+ Rev 1.28 23 Mar 1999 10:51:34 OS
+ #61673# Reihenfolge der Seitenfelder besser
+
+ Rev 1.27 25 Feb 1999 17:24:50 JP
+ Bug #62438#: UserData nur auswerten, wenn kein Refresh ist
+
+ Rev 1.26 21 Jan 1999 09:50:36 OS
+ #59900# Fussnoten im Dialog korrekt sortieren; keine prot. Member
+
+ Rev 1.25 12 Jan 1999 11:42:24 OS
+ #60579# ausgewaehlten Typ in den UserData speichern
+
+ Rev 1.24 17 Nov 1998 10:50:38 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.23 04 Nov 1998 12:11:06 OM
+ #58851# Fixe Dateinamenfelder bearbeiten
+
+ Rev 1.22 27 Oct 1998 15:53:24 OM
+ #58427# Fixes FilenameField
+
+ Rev 1.21 10 Aug 1998 16:39:58 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.20 20 May 1998 15:59:52 OM
+ Kombinierte DateTime-Formate verarbeiten
+
+ Rev 1.19 20 May 1998 13:24:22 OM
+ Offset fuer DateTimeFields
+
+ Rev 1.18 03 Apr 1998 13:16:48 OM
+ #49062 Spinbutton fuer Kapitelebenen
+
+ Rev 1.17 26 Mar 1998 17:00:28 OM
+ Feldbefehl: Seitenanzahl im Html-Mode
+
+ Rev 1.16 26 Mar 1998 16:43:10 OM
+ Feldbefehl: Seitenanzahl im Html-Mode
+
+ Rev 1.15 06 Mar 1998 15:38:30 OM
+ Nur bei Aenderung Feld aktualisieren
+
+ Rev 1.14 25 Feb 1998 16:47:58 OM
+ Fixe Author- und ExtUser-Felder
+
+ Rev 1.13 16 Feb 1998 10:10:22 OM
+ Fuer Solaris nicht direkt von void* auf ushort casten
+
+ Rev 1.12 12 Feb 1998 13:58:24 OM
+ #47262# Offset loeschen
+
+ Rev 1.11 14 Jan 1998 10:30:26 OM
+ Kapitelfeldebene bearbeiten
+
+ Rev 1.10 09 Jan 1998 16:56:50 OM
+ Bei Dok-Wechsel updaten
+
+ Rev 1.9 08 Jan 1998 14:58:24 OM
+ Traveling
+
+ Rev 1.8 07 Jan 1998 17:17:42 OM
+ Referenzen editieren
+
+ Rev 1.7 05 Jan 1998 17:44:34 OM
+ DB-Feldbefehl bearbeiten
+
+ Rev 1.6 19 Dec 1997 18:24:30 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.5 12 Dec 1997 16:10:06 OM
+ AutoUpdate bei FocusWechsel u.a.
+
+ Rev 1.4 11 Dec 1997 16:58:00 OM
+ Feldumstellung
+
+ Rev 1.3 20 Nov 1997 17:01:22 OM
+ Neuer Felddialog
+
+ Rev 1.2 07 Nov 1997 16:39:32 OM
+ NumberFormat-Listbox
+
+ Rev 1.1 05 Nov 1997 15:35:40 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.0 04 Nov 1997 10:07:18 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/fldui/flddok.hxx b/sw/source/ui/fldui/flddok.hxx
new file mode 100644
index 000000000000..066071f63efa
--- /dev/null
+++ b/sw/source/ui/fldui/flddok.hxx
@@ -0,0 +1,141 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddok.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWFLDDOK_HXX
+#define _SWFLDDOK_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+#ifndef _SV_FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#include "numfmtlb.hxx"
+#include "fldpage.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwFldDokPage : public SwFldPage
+{
+ FixedText aTypeFT;
+ ListBox aTypeLB;
+ FixedText aSelectionFT;
+ ListBox aSelectionLB;
+ FixedText aValueFT;
+ Edit aValueED;
+ NumericField aLevelED;
+ NumericField aDateOffsetED;
+ FixedText aFormatFT;
+ ListBox aFormatLB;
+ NumFormatListBox aNumFormatLB;
+ CheckBox aFixedCB;
+
+ String sDateOffset;
+ String sTimeOffset;
+ Bitmap aRootOpened;
+ Bitmap aRootClosed;
+
+ USHORT nOldSel;
+ ULONG nOldFormat;
+
+ DECL_LINK( TypeHdl, ListBox* pLB = 0 );
+ DECL_LINK( FormatHdl, ListBox* pLB = 0 );
+ DECL_LINK( SubTypeHdl, ListBox* pLB = 0 );
+
+ void AddSubType(USHORT nTypeId);
+ USHORT FillFormatLB(USHORT nTypeId);
+
+protected:
+ virtual USHORT GetGroup();
+
+public:
+ SwFldDokPage(Window* pWindow, const SfxItemSet& rSet);
+
+ ~SwFldDokPage();
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ virtual void FillUserData();
+};
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/flddok.src b/sw/source/ui/fldui/flddok.src
new file mode 100644
index 000000000000..2e7afc5a0444
--- /dev/null
+++ b/sw/source/ui/fldui/flddok.src
@@ -0,0 +1,367 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddok.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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 "globals.hrc"
+#include "fldtdlg.hrc"
+#include "helpid.h"
+TabPage TP_FLD_DOK
+{
+ HelpID = HID_FLD_DOK ;
+ SVLook = TRUE ;
+ Hide = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Text = "Dokument" ;
+ Text [ ENGLISH ] = "Document" ;
+ FixedText FT_DOKTYPE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Feldtyp" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "~Tipo di campo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "~Tipo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Felttype" ;
+ Text [ french ] = "~Type de champ" ;
+ Text [ swedish ] = "~Flttyp" ;
+ Text [ dutch ] = "~Veldtype" ;
+ Text [ spanish ] = "~Tipo de campo" ;
+ Text [ english_us ] = "~Type" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ֶ(~T)";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Typ pola";
+ Text[ japanese ] = "̨ނ̎(~T)";
+ Text[ chinese_traditional ] = "(~T)";
+ Text[ arabic ] = " ";
+ Text[ greek ] = "~ ";
+ Text[ korean ] = "(~T)";
+ Text[ turkish ] = "~Alan tipi";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_DOKTYPE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ Sort = TRUE ;
+ AutoHScroll = TRUE ;
+ };
+ FixedText FT_DOKSELECTION
+ {
+ Pos = MAP_APPFONT ( 88 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Auswahl" ;
+ Text [ ENGLISH ] = "Selection" ;
+ Text [ norwegian ] = "Selection" ;
+ Text [ italian ] = "Selezione" ;
+ Text [ portuguese_brazilian ] = "Seleo" ;
+ Text [ portuguese ] = "~Seleco" ;
+ Text [ finnish ] = "Valinta" ;
+ Text [ danish ] = "Udvalg" ;
+ Text [ french ] = "~Slection" ;
+ Text [ swedish ] = "Urv~al" ;
+ Text [ dutch ] = "~Selectie" ;
+ Text [ spanish ] = "Se~leccin" ;
+ Text [ english_us ] = "S~elect" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ѡ(~E)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Wybr";
+ Text[ japanese ] = "I(~E)";
+ Text[ chinese_traditional ] = "(~E)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "~";
+ Text[ korean ] = "(~E)";
+ Text[ turkish ] = "~Seim";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_DOKSELECTION
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ // Keine Sortierung auf Wunsch von MA (wg. Absender)
+ // Sort = TRUE;
+ TabStop = TRUE ;
+ };
+ FixedText FT_DOKFORMAT
+ {
+ Pos = MAP_APPFONT ( 170 , 3 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ TEXT = "F~ormat" ;
+ TEXT [ English ] = "Format" ;
+ Left = TRUE ;
+ Text [ english_us ] = "F~ormat" ;
+ Text [ portuguese_brazilian ] = "F~ormat" ;
+ Text [ swedish ] = "F~ormat" ;
+ Text [ danish ] = "Format" ;
+ Text [ italian ] = "F~ormato" ;
+ Text [ spanish ] = "F~ormato" ;
+ Text [ french ] = "F~ormat" ;
+ Text [ dutch ] = "~Notatie" ;
+ Text [ portuguese ] = "F~ormato" ;
+ Text[ chinese_simplified ] = "ʽ(~O)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "(~O)";
+ Text[ chinese_traditional ] = "榡(~O)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "~";
+ Text[ korean ] = "(~O)";
+ Text[ turkish ] = "F~ormat";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_DOKFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 16 ) ;
+ // Size = MAP_APPFONT ( 84 , 82 ) ;
+ Size = MAP_APPFONT ( 84 , 98 ) ;
+ TabStop = TRUE ;
+ DropDown = FALSE ;
+ Sort = TRUE ;
+ AutoHScroll = TRUE ;
+ };
+ ListBox LB_DOKNUMFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 16 ) ;
+ // Size = MAP_APPFONT ( 84 , 82 ) ;
+ Size = MAP_APPFONT ( 84 , 98 ) ;
+ TabStop = TRUE ;
+ AutoHScroll = TRUE ;
+ Hide = TRUE ;
+ };
+ FixedText FT_DOKVALUE
+ {
+ Pos = MAP_APPFONT ( 170 , 105 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ TEXT = "Ko~rrektur" ;
+ TEXT [ English ] = "Offs~et" ;
+ TEXT [ norwegian ] = "Offset" ;
+ TEXT [ italian ] = "~Correzione" ;
+ TEXT [ portuguese_brazilian ] = "Deslocar" ;
+ TEXT [ portuguese ] = "~Correco" ;
+ TEXT [ finnish ] = "Siirroa" ;
+ TEXT [ danish ] = "Korrektion" ;
+ TEXT [ french ] = "C~orrecture" ;
+ TEXT [ swedish ] = "Ko~rrigering" ;
+ TEXT [ dutch ] = "~Correctie" ;
+ TEXT [ spanish ] = "~Correccin" ;
+ TEXT [ english_us ] = "O~ffset" ;
+ Left = TRUE ;
+ Hide = TRUE ;
+ TEXT[ chinese_simplified ] = "޸(~F)";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Korekta";
+ TEXT[ japanese ] = "C(~F)";
+ TEXT[ chinese_traditional ] = "ק(~F)";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "(~F)";
+ TEXT[ turkish ] = "Dzeltme";
+ TEXT[ language_user1 ] = " ";
+ };
+ Edit ED_DOKVALUE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 117 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Hide = TRUE ;
+ };
+ NumericField ED_DOKLEVEL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 117 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ Text = "1" ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Hide = TRUE ;
+ Minimum = 1 ;
+ Maximum = 10 ;
+ First = 1 ;
+ SpinSize = 1 ;
+ };
+ NumericField ED_DOKDATEOFF
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 117 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ Text = "0" ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Hide = TRUE ;
+ SpinSize = 1 ;
+ };
+ CheckBox CB_DOKFIXEDCONTENT
+ {
+ Pos = MAP_APPFONT ( 170 , 120 ) ;
+ Size = MAP_APPFONT ( 72 , 10 ) ;
+ TEXT = "~Inhalt fixieren" ;
+ TEXT [ English ] = "Fixed content" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "~Fixed content" ;
+ Text [ portuguese_brazilian ] = "~Inhalt fixieren" ;
+ Text [ swedish ] = "Fixera ~innehll" ;
+ Text [ danish ] = "Fast indhold" ;
+ Text [ italian ] = "~Fissa il contenuto" ;
+ Text [ spanish ] = "~Fijar contenido" ;
+ Text [ french ] = "Contenu f~ixe" ;
+ Text [ dutch ] = "~Inhoud fixeren" ;
+ Text [ portuguese ] = "Contedo ~fixo" ;
+ Text[ chinese_simplified ] = "̶(~F)";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Staa tre";
+ Text[ japanese ] = "ěŒ(~F)";
+ Text[ chinese_traditional ] = "Twe(~F)";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ~";
+ Text[ korean ] = " (~F)";
+ Text[ turkish ] = "erii sabitle";
+ Text[ language_user1 ] = " ";
+ };
+ Bitmap BMP_DOKROOT_OPENED
+ {
+ File = "plus.bmp" ;
+ };
+ Bitmap BMP_DOKROOT_CLOSED
+ {
+ File = "minus.bmp" ;
+ };
+ String STR_DOKDATEOFF
+ {
+ TEXT = "Ko~rrektur in Tagen" ;
+ TEXT [ English ] = "Offs~et in days" ;
+ Text [ english_us ] = "Offs~et in days" ;
+ Text [ portuguese_brazilian ] = "Ko~rrektur in Tagen" ;
+ Text [ swedish ] = "Ko~rrigering i dagar" ;
+ Text [ danish ] = "Korrektion i dage" ;
+ Text [ italian ] = "Correzione in ~giorni" ;
+ Text [ spanish ] = "~Correccin en das" ;
+ Text [ french ] = "Co~rrection en jours" ;
+ Text [ dutch ] = "Co~rrectie in dagen" ;
+ Text [ portuguese ] = "Co~rreco em dias" ;
+ Text[ chinese_simplified ] = "޸(~E)";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Korekta dni";
+ Text[ japanese ] = "̏C(~E)";
+ Text[ chinese_traditional ] = "קѼ(~E)";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ĥ ȿ (~E)";
+ Text[ turkish ] = "Dzeltme (gn)";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_DOKTIMEOFF
+ {
+ TEXT = "Ko~rrektur in Minuten" ;
+ TEXT [ English ] = "Offs~et in minutes" ;
+ Text [ english_us ] = "Offs~et in minutes" ;
+ Text [ portuguese_brazilian ] = "Ko~rrektur in Minuten" ;
+ Text [ swedish ] = "Ko~rrigering i minuter" ;
+ Text [ danish ] = "Korrektion i minutter" ;
+ Text [ italian ] = "Co~rrezione in minuti" ;
+ Text [ spanish ] = "~Correccin en minutos" ;
+ Text [ french ] = "Co~rrection en minutes" ;
+ Text [ dutch ] = "Co~rrectie in minuten" ;
+ Text [ portuguese ] = "Co~rreco em minutos" ;
+ Text[ chinese_simplified ] = "޸ķ趨(~E)";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Korekta minut";
+ Text[ japanese ] = "̏C(~E)";
+ Text[ chinese_traditional ] = "ק]w(~E)";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = " г (~E)";
+ Text[ turkish ] = "Dzeltme (dakika)";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "Document" ;
+ Text [ portuguese_brazilian ] = "Dokument" ;
+ Text [ swedish ] = "Dokument" ;
+ Text [ danish ] = "Dokument" ;
+ Text [ italian ] = "Documento" ;
+ Text [ spanish ] = "Documento" ;
+ Text [ french ] = "Document" ;
+ Text [ dutch ] = "Document" ;
+ Text [ portuguese ] = "Documento" ;
+ Text[ chinese_simplified ] = "ĵ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Dokument";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Belge";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/fldedt.cxx b/sw/source/ui/fldui/fldedt.cxx
new file mode 100644
index 000000000000..5677a70c11da
--- /dev/null
+++ b/sw/source/ui/fldui/fldedt.cxx
@@ -0,0 +1,505 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldedt.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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 _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SVX_ADRITEM_HXX //autogen
+#include <svx/adritem.hxx>
+#endif
+#ifndef _SVX_OPTGENRL_HXX //autogen
+#include <svx/optgenrl.hxx>
+#endif
+
+#ifndef _ADDRDLG_HXX
+#include <addrdlg.hxx>
+#endif
+#ifndef _DOCUFLD_HXX
+#include <docufld.hxx>
+#endif
+#ifndef _FINDER_HXX
+#include <finder.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _DBFLD_HXX
+#include <dbfld.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _FLDDB_HXX
+#include <flddb.hxx>
+#endif
+#ifndef _FLDDINF_HXX
+#include <flddinf.hxx>
+#endif
+#ifndef _FLDVAR_HXX
+#include <fldvar.hxx>
+#endif
+#ifndef _FLDDOK_HXX
+#include <flddok.hxx>
+#endif
+#ifndef _FLDFUNC_HXX
+#include <fldfunc.hxx>
+#endif
+#ifndef _FLDREF_HXX
+#include <fldref.hxx>
+#endif
+#ifndef _FLDEDT_HXX
+#include <fldedt.hxx>
+#endif
+
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldEditDlg::SwFldEditDlg(SwView& rVw) :
+ SfxSingleTabDialog(&rVw.GetViewFrame()->GetWindow(), 0, 0),
+ pSh (rVw.GetWrtShellPtr()),
+ aAddressBT (this, SW_RES(PB_FLDEDT_ADDRESS)),
+ aPrevBT (this, SW_RES(BTN_FLDEDT_PREV)),
+ aNextBT (this, SW_RES(BTN_FLDEDT_NEXT))
+{
+ SwFldMgr aMgr(pSh);
+
+ SwField *pCurFld = aMgr.GetCurFld();
+ if(!pCurFld)
+ return;
+
+ pSh->SetCareWin(this);
+ pSh->Right(TRUE);
+ pSh->SwapPam();
+ USHORT nGroup = aMgr.GetGroup(FALSE, pCurFld->GetTypeId(), pCurFld->GetSubType());
+
+ CreatePage(nGroup);
+
+ GetOKButton()->SetClickHdl(LINK(this, SwFldEditDlg, OKHdl));
+
+ // Buttons selbst positionieren, da sie sonst bei unterschiedlichen
+ // Fontgroessen im Wald stehen, und da PB im SingleTabDlg feste Pixelgroessen
+ // fuer seine Buttons und die Dialogbreite verwendet.
+ aPrevBT.SetPosPixel(Point(GetOKButton()->GetPosPixel().X(), aPrevBT.GetPosPixel().Y()));
+ USHORT nWidth = GetOKButton()->GetOutputSize().Width() / 2 - 3;
+ Size aNewSize(LogicToPixel(Size(nWidth, GetOKButton()->GetOutputSize().Height())));
+ aPrevBT.SetSizePixel(aNewSize);
+
+ aNextBT.SetSizePixel(aPrevBT.GetSizePixel());
+
+ long nXPos = GetOKButton()->GetPosPixel().X() + GetOKButton()->GetSizePixel().Width()
+ - aNextBT.GetSizePixel().Width() - 1;
+ aNextBT.SetPosPixel(Point(nXPos, aNextBT.GetPosPixel().Y()));
+
+ aAddressBT.SetPosPixel(Point(GetOKButton()->GetPosPixel().X(), aAddressBT.GetPosPixel().Y()));
+ aAddressBT.SetSizePixel(GetOKButton()->GetSizePixel());
+
+ aPrevBT.SetClickHdl(LINK(this, SwFldEditDlg, NextPrevHdl));
+ aNextBT.SetClickHdl(LINK(this, SwFldEditDlg, NextPrevHdl));
+
+ aAddressBT.SetClickHdl(LINK(this, SwFldEditDlg, AddressHdl));
+ aAddressBT.SetHelpId(HID_FLDEDT_ADDRESS);
+
+ Init();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Controlls initialisieren
+ --------------------------------------------------------------------*/
+
+void SwFldEditDlg::Init()
+{
+ SwFldPage* pPage = (SwFldPage*)GetTabPage();
+
+ if( pPage )
+ {
+ SwFldMgr& rMgr = pPage->GetFldMgr();
+
+ SwField *pCurFld = rMgr.GetCurFld();
+
+ if(!pCurFld)
+ return;
+
+ // Traveling nur bei mehr als einem Feld
+ pSh->StartAction();
+ pSh->CreateCrsr();
+
+ BOOL bMove = rMgr.GoNext();
+ if( bMove )
+ rMgr.GoPrev();
+ aNextBT.Enable(bMove);
+
+ if( 0 != ( bMove = rMgr.GoPrev() ) )
+ rMgr.GoNext();
+ aPrevBT.Enable( bMove );
+
+ if (pCurFld->GetTypeId() == TYP_EXTUSERFLD)
+ aAddressBT.Show();
+
+ pSh->DestroyCrsr();
+ pSh->EndAction();
+ }
+
+ GetOKButton()->Enable( !pSh->IsReadOnlyAvailable() ||
+ !pSh->HasReadonlySel() );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxTabPage* SwFldEditDlg::CreatePage(USHORT nGroup)
+{
+ // TabPage erzeugen
+ SfxTabPage* pPage = 0;
+ USHORT nHelpId = 0;
+
+ switch (nGroup)
+ {
+ case GRP_DOC:
+ pPage = SwFldDokPage::Create(this, *(SfxItemSet*)0);
+ nHelpId = HID_EDIT_FLD_DOK;
+ break;
+ case GRP_FKT:
+ pPage = SwFldFuncPage::Create(this, *(SfxItemSet*)0);
+ nHelpId = HID_EDIT_FLD_FUNC;
+ break;
+ case GRP_REF:
+ pPage = SwFldRefPage::Create(this, *(SfxItemSet*)0);
+ nHelpId = HID_EDIT_FLD_REF;
+ break;
+ case GRP_REG:
+ pPage = SwFldDokInfPage::Create(this, *(SfxItemSet*)0);
+ nHelpId = HID_EDIT_FLD_DOKINF;
+ break;
+ case GRP_DB:
+ pPage = SwFldDBPage::Create(this, *(SfxItemSet*)0);
+ nHelpId = HID_EDIT_FLD_DB;
+ break;
+ case GRP_VAR:
+ pPage = SwFldVarPage::Create(this, *(SfxItemSet*)0);
+ nHelpId = HID_EDIT_FLD_VAR;
+ break;
+
+ }
+ pPage->SetHelpId(nHelpId);
+ SetTabPage(pPage);
+
+ String sTitle(GetText());
+ sTitle.Insert(String::CreateFromAscii(": "), 0);
+ sTitle.Insert(SW_RESSTR(STR_FLD_EDIT_DLG), 0);
+ SetText(sTitle);
+
+ return pPage;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldEditDlg::~SwFldEditDlg()
+{
+ pSh->SetCareWin(NULL);
+ pSh->EnterStdMode();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldEditDlg::EnableInsert(BOOL bEnable)
+{
+ if( bEnable && pSh->IsReadOnlyAvailable() && pSh->HasReadonlySel() )
+ bEnable = FALSE;
+ GetOKButton()->Enable( bEnable );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldEditDlg::InsertHdl()
+{
+ GetOKButton()->Click();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Aendern des Feldes anstossen
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldEditDlg, OKHdl, Button *, pBtn )
+{
+ if (GetOKButton()->IsEnabled())
+ {
+ SfxTabPage* pPage = GetTabPage();
+ if (pPage)
+ {
+ pPage->FillItemSet(*(SfxItemSet*)0);
+
+ }
+ EndDialog( RET_OK );
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+short SwFldEditDlg::Execute()
+{
+ // Ohne TabPage kein Dialog
+ return GetTabPage() ? Dialog::Execute() : RET_CANCEL;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Traveling zwishen Feldern gleichen Typs
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldEditDlg, NextPrevHdl, Button *, pButton )
+{
+ BOOL bNext = pButton == &aNextBT;
+
+ pSh->EnterStdMode();
+
+ SwFieldType *pOldTyp = 0;
+ SwFldPage* pPage = (SwFldPage*)GetTabPage();
+ SwFldMgr& rMgr = pPage->GetFldMgr();
+ SwField *pCurFld = rMgr.GetCurFld();
+
+ if (pCurFld->GetTypeId() == TYP_DBFLD)
+ pOldTyp = (SwDBFieldType*)pCurFld->GetTyp();
+
+ if( GetOKButton()->IsEnabled() )
+ pPage->FillItemSet(*(SfxItemSet*)0);
+
+ rMgr.GoNextPrev( bNext, pOldTyp );
+ pCurFld = rMgr.GetCurFld();
+ pSh->Right(TRUE);
+ pSh->SwapPam();
+
+ USHORT nGroup = rMgr.GetGroup(FALSE, pCurFld->GetTypeId(), pCurFld->GetSubType());
+
+ if (nGroup != pPage->GetGroup())
+ pPage = (SwFldPage*)CreatePage(nGroup);
+
+ pPage->EditNewField();
+
+ Init();
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldEditDlg, AddressHdl, PushButton *, pButton )
+{
+ SwFldPage* pPage = (SwFldPage*)GetTabPage();
+ SwFldMgr& rMgr = pPage->GetFldMgr();
+ SwField *pCurFld = rMgr.GetCurFld();
+
+ SfxItemSet aSet( pSh->GetAttrPool(),
+ SID_ATTR_ADDRESS, SID_ATTR_ADDRESS,
+ SID_FIELD_GRABFOCUS, SID_FIELD_GRABFOCUS,
+ 0L );
+ SvxAddressItem aAddress( pPathFinder->GetAddress() );
+ aSet.Put(aAddress);
+ USHORT nEditPos = UNKNOWN_EDIT;
+
+ switch(pCurFld->GetSubType())
+ {
+ case EU_FIRSTNAME: nEditPos = FIRSTNAME_EDIT; break;
+ case EU_NAME: nEditPos = LASTNAME_EDIT; break;
+ case EU_SHORTCUT: nEditPos = SHORTNAME_EDIT; break;
+ case EU_COMPANY: nEditPos = COMPANY_EDIT; break;
+ case EU_STREET: nEditPos = STREET_EDIT; break;
+ case EU_TITLE: nEditPos = TITLE_EDIT; break;
+ case EU_POSITION: nEditPos = POSITION_EDIT; break;
+ case EU_PHONE_PRIVATE:nEditPos = TELPRIV_EDIT; break;
+ case EU_PHONE_COMPANY:nEditPos = TELCOMPANY_EDIT; break;
+ case EU_FAX: nEditPos = FAX_EDIT; break;
+ case EU_EMAIL: nEditPos = EMAIL_EDIT; break;
+ case EU_COUNTRY: nEditPos = COUNTRY_EDIT; break;
+ case EU_ZIP: nEditPos = PLZ_EDIT; break;
+ case EU_CITY: nEditPos = CITY_EDIT; break;
+ case EU_STATE: nEditPos = STATE_EDIT; break;
+
+ default: nEditPos = UNKNOWN_EDIT; break;
+
+ }
+ aSet.Put(SfxUInt16Item(SID_FIELD_GRABFOCUS, nEditPos));
+ SwAddrDlg aDlg( this, aSet );
+ aDlg.Execute();
+ const SfxItemSet* pSfxItemSet = aDlg.GetOutputItemSet();
+ const SvxAddressItem* pAddrItem;
+
+ if( pSfxItemSet && SFX_ITEM_SET == pSfxItemSet->GetItemState(SID_ATTR_ADDRESS,
+ FALSE, (const SfxPoolItem**)&pAddrItem) )
+ {
+ pPathFinder->SetAddress( (SvxAddressItem&)*pAddrItem );
+ pSh->UpdateFlds( *pCurFld );
+ }
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.146 2000/09/18 16:05:28 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.145 2000/05/10 11:55:12 os
+ Basic API removed
+
+ Revision 1.144 2000/04/18 15:17:31 os
+ UNICODE
+
+ Revision 1.143 2000/02/11 14:46:27 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.142 1999/09/21 14:05:23 os
+ SwExtUserSubType: language
+
+ Revision 1.141 1999/01/20 13:16:52 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+
+ Rev 1.140 20 Jan 1999 14:16:52 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.139 15 Oct 1998 16:02:48 OM
+ #57965# Variablennamen fuer Eingabefeld verwenden
+
+ Rev 1.138 19 Aug 1998 17:22:12 JP
+ Bug #55247#: fuers MoveNext-/-PrevFldType einen eigenen Pam verwenden
+
+ Rev 1.137 15 Jun 1998 13:07:50 OM
+ #50908# Positionskorrektur der Imagebuttons
+
+ Rev 1.136 08 Apr 1998 09:48:52 OM
+ #47470 Neue HelpIDs beim bearbeiten von Felbefehlen
+
+ Rev 1.135 06 Mar 1998 14:53:52 OM
+ Nur bei Aenderung Feld aktualisieren
+
+ Rev 1.134 03 Mar 1998 15:26:56 OM
+ Feld beim traveln selektieren
+
+ Rev 1.133 25 Feb 1998 16:56:48 OM
+ Fixe Author- und ExtUser-Felder
+
+ Rev 1.132 06 Feb 1998 14:17:04 OM
+ #47145# Buttongroesse anpassen
+
+ Rev 1.131 09 Jan 1998 16:56:50 OM
+ Bei Dok-Wechsel updaten
+
+ Rev 1.130 08 Jan 1998 16:16:26 OM
+ Traveling
+
+ Rev 1.129 08 Jan 1998 13:36:20 OM
+ Feldbefehl-Traveling
+
+ Rev 1.128 08 Jan 1998 12:56:24 OM
+ Feldbefehl-Traveling
+
+ Rev 1.127 16 Dec 1997 17:01:40 OM
+ Feldbefehle bearbeiten
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/fldui/fldfunc.cxx b/sw/source/ui/fldui/fldfunc.cxx
new file mode 100644
index 000000000000..06bea4663cda
--- /dev/null
+++ b/sw/source/ui/fldui/fldfunc.cxx
@@ -0,0 +1,779 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldfunc.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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 _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+
+#ifndef _BASOBJ_HXX //autogen
+#include <basctl/basobj.hxx>
+#endif
+
+#ifndef _BASMGR_HXX //autogen
+#include <basic/basmgr.hxx>
+#endif
+
+#ifndef _SB_SBSTAR_HXX //autogen
+#include <basic/sbstar.hxx>
+#endif
+
+#ifndef _SB_SBMOD_HXX //autogen
+#include <basic/sbmod.hxx>
+#endif
+
+#ifndef _SWDOCSH_HXX //autogen
+#include <docsh.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _DOCUFLD_HXX
+#include <docufld.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _FLDFUNC_HXX
+#include <fldfunc.hxx>
+#endif
+
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _FLDTDLG_HRC
+#include <fldtdlg.hrc>
+#endif
+
+#define USER_DATA_VERSION_1 "1"
+#define USER_DATA_VERSION USER_DATA_VERSION_1
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldFuncPage::SwFldFuncPage(Window* pParent, const SfxItemSet& rCoreSet ) :
+ SwFldPage( pParent, SW_RES( TP_FLD_FUNC ), rCoreSet ),
+
+ aTypeFT (this, SW_RES(FT_FUNCTYPE)),
+ aTypeLB (this, SW_RES(LB_FUNCTYPE)),
+ aSelectionFT(this, SW_RES(FT_FUNCSELECTION)),
+ aSelectionLB(this, SW_RES(LB_FUNCSELECTION)),
+ aFormatFT (this, SW_RES(FT_FUNCFORMAT)),
+ aFormatLB (this, SW_RES(LB_FUNCFORMAT)),
+ aNameFT (this, SW_RES(FT_FUNCNAME)),
+ aNameED (this, SW_RES(ED_FUNCNAME)),
+ aValueFT (this, SW_RES(FT_FUNCVALUE)),
+ aValueED (this, SW_RES(ED_FUNCVALUE)),
+ aCond1FT (this, SW_RES(FT_FUNCCOND1)),
+ aCond1ED (this, SW_RES(ED_FUNCCOND1)),
+ aCond2FT (this, SW_RES(FT_FUNCCOND2)),
+ aCond2ED (this, SW_RES(ED_FUNCCOND2)),
+ aMacroBT (this, SW_RES(BT_FUNCMACRO))
+{
+ FreeResource();
+
+ aNameED.SetPosPixel(Point(aNameED.GetPosPixel().X(), aFormatLB.GetPosPixel().Y()));
+
+ sOldValueFT = aValueFT.GetText();
+ sOldNameFT = aNameFT.GetText();
+
+ aCond1ED.ShowBrackets(FALSE);
+ aCond2ED.ShowBrackets(FALSE);
+
+// SwWrtShell* pSh = (SwWrtShell*)ViewShell::GetCurrShell();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+__EXPORT SwFldFuncPage::~SwFldFuncPage()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void __EXPORT SwFldFuncPage::Reset(const SfxItemSet& rSet)
+{
+ SavePos(&aTypeLB);
+ Init(); // Allgemeine initialisierung
+
+ aTypeLB.SetUpdateMode(FALSE);
+ aTypeLB.Clear();
+
+ USHORT nPos, nTypeId;
+ BOOL bPage = FALSE;
+
+ if (!IsFldEdit())
+ {
+ // TypeListBox initialisieren
+ const SwFldGroupRgn& rRg = GetFldMgr().GetGroupRange(IsFldDlgHtmlMode(), GetGroup());
+
+ // Typ-Listbox fuellen
+ for(short i = rRg.nStart; i < rRg.nEnd; ++i)
+ {
+ nTypeId = GetFldMgr().GetTypeId(i);
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(i));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ }
+ }
+ else
+ {
+ nTypeId = GetCurField()->GetTypeId();
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(GetFldMgr().GetPos(nTypeId)));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+
+ if (nTypeId == TYP_MACROFLD)
+ {
+ String sName(GetCurField()->GetPar1());
+ BasicManager *pBasMgr = 0;
+ GetFldMgr().SetMacroModule(0);
+
+ if (sName.GetToken( 0, '.') == SFX_APP()->GetName())
+ pBasMgr = SFX_APP()->GetBasicManager();
+ else
+ {
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+ pBasMgr = pSh->GetView().GetDocShell()->GetBasicManager();
+ }
+
+ if (pBasMgr)
+ {
+ String sLibName(sName.GetToken(1, '.'));
+ StarBASIC* pBasic = pBasMgr->GetLib(sLibName);
+
+ if (pBasic)
+ {
+ SbModule* pModule = BasicIDE::FindModule( pBasic, sName.GetToken( 2, '.') );
+ GetFldMgr().SetMacroModule(pModule);
+ }
+ }
+
+ if (sName.Len())
+ {
+ // Inhalt von sName umdrehen
+ String sBuf;
+ String sTmp;
+ USHORT nPos = 0;
+ USHORT nCount = sName.GetTokenCount('.');
+
+ for (int i = nCount - 1; i >= nCount - 4; i--)
+ {
+ if (i == nCount - 4)
+ {
+ nPos = 0;
+ sName.GetToken(i, '.', nPos);
+ sTmp = sName.Copy(0, nPos - 1);
+ }
+ else
+ {
+ sTmp = sName.GetToken(i, '.');
+ sTmp += '.';
+ }
+
+ sBuf += sTmp;
+ }
+
+ sName = sBuf;
+ }
+
+ GetFldMgr().SetMacroPath(sName);
+ }
+ }
+
+ // alte Pos selektieren
+ RestorePos(&aTypeLB);
+
+ aTypeLB.SetDoubleClickHdl (LINK(this, SwFldFuncPage, InsertHdl));
+ aTypeLB.SetSelectHdl (LINK(this, SwFldFuncPage, TypeHdl));
+ aSelectionLB.SetSelectHdl (LINK(this, SwFldFuncPage, SelectHdl));
+ aSelectionLB.SetDoubleClickHdl (LINK(this, SwFldFuncPage, InsertMacroHdl));
+ aFormatLB.SetDoubleClickHdl (LINK(this, SwFldFuncPage, InsertHdl));
+ aMacroBT.SetClickHdl (LINK(this, SwFldFuncPage, MacroHdl));
+
+ if( !IsRefresh() )
+ {
+ String sUserData = GetUserData();
+ if(sUserData.GetToken(0, ';').EqualsIgnoreCaseAscii(USER_DATA_VERSION_1))
+ {
+ String sVal = sUserData.GetToken(1, ';');
+ USHORT nVal = sVal.ToInt32();
+ if(nVal != USHRT_MAX)
+ {
+ for(USHORT i = 0; i < aTypeLB.GetEntryCount(); i++)
+ if(nVal == (USHORT)(ULONG)aTypeLB.GetEntryData(i))
+ {
+ aTypeLB.SelectEntryPos(i);
+ break;
+ }
+ }
+ }
+ }
+ TypeHdl(0);
+
+ aTypeLB.SetUpdateMode(TRUE);
+
+ if (IsFldEdit())
+ {
+ aNameED.SaveValue();
+ aValueED.SaveValue();
+ aCond1ED.SaveValue();
+ aCond2ED.SaveValue();
+ nOldFormat = GetCurField()->GetFormat();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldFuncPage, TypeHdl, ListBox *, pBox )
+{
+ // Alte ListBoxPos sichern
+ const USHORT nOld = GetTypeSel();
+
+ // Aktuelle ListBoxPos
+ SetTypeSel(aTypeLB.GetSelectEntryPos());
+
+ if(GetTypeSel() == LISTBOX_ENTRY_NOTFOUND)
+ {
+ SetTypeSel(0);
+ aTypeLB.SelectEntryPos(0);
+ }
+
+ if (nOld != GetTypeSel())
+ {
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ // Auswahl-Listbox fuellen
+ UpdateSubType();
+
+ // Format-Listbox fuellen
+ aFormatLB.Clear();
+
+ USHORT nSize = GetFldMgr().GetFormatCount(nTypeId, FALSE, IsFldDlgHtmlMode());
+
+ for (USHORT i = 0; i < nSize; i++)
+ {
+ USHORT nPos = aFormatLB.InsertEntry(GetFldMgr().GetFormatStr(nTypeId, i));
+ aFormatLB.SetEntryData( nPos, (void*)GetFldMgr().GetFormatId( nTypeId, i ) );
+ }
+
+ if (nSize)
+ {
+ if (IsFldEdit() && nTypeId == TYP_JUMPEDITFLD)
+ aFormatLB.SelectEntry(SW_RESSTR(FMT_MARK_BEGIN + (USHORT)GetCurField()->GetFormat()));
+
+ if (!aFormatLB.GetSelectEntryCount())
+ aFormatLB.SelectEntryPos(0);
+ }
+
+ BOOL bValue = FALSE, bName = FALSE, bMacro = FALSE, bInsert = TRUE;
+ BOOL bShowSelection = FALSE;
+ BOOL bFormat = nSize != 0;
+
+ // fuer Conditional Text zwei Controls
+ if(nTypeId != TYP_CONDTXTFLD)
+ {
+ aCond1FT.Hide();
+ aCond1ED.Hide();
+ aCond2FT.Hide();
+ aCond2ED.Hide();
+ aValueFT.Show();
+ aValueED.Show();
+ }
+ aNameED.EnableDrop(FALSE);
+
+ if (IsFldEdit())
+ {
+ aNameED.SetText(GetCurField()->GetPar1());
+ aValueED.SetText(GetCurField()->GetPar2());
+ }
+ else
+ {
+ aNameED.SetText(aEmptyStr);
+ aValueED.SetText(aEmptyStr);
+ }
+
+ if (aNameFT.GetText() != sOldNameFT)
+ aNameFT.SetText(sOldNameFT);
+ if (aValueFT.GetText() != sOldValueFT)
+ aValueFT.SetText(sOldValueFT);
+
+ switch (nTypeId)
+ {
+ case TYP_MACROFLD:
+ bMacro = TRUE;
+ bShowSelection = TRUE;
+ if (GetFldMgr().GetMacroPath().Len())
+ bValue = TRUE;
+ else
+ bInsert = FALSE;
+
+ aNameFT.SetText(SW_RESSTR(STR_MACNAME));
+ aValueFT.SetText(SW_RESSTR(STR_PROMPT));
+ aNameED.SetText(aSelectionLB.GetSelectEntry());
+ break;
+
+ case TYP_HIDDENPARAFLD:
+ aNameFT.SetText(SW_RESSTR(STR_COND));
+ aNameED.EnableDrop(TRUE);
+ bName = TRUE;
+ break;
+
+ case TYP_HIDDENTXTFLD:
+ aNameFT.SetText(SW_RESSTR(STR_COND));
+ aNameED.EnableDrop(TRUE);
+ aValueFT.SetText(SW_RESSTR(STR_INSTEXT));
+ if (!IsFldEdit())
+ aValueED.SetText(::GetActiveView()->GetWrtShell().GetSelTxt());
+ bName = bValue = TRUE;
+ break;
+
+ case TYP_CONDTXTFLD:
+ aNameFT.SetText(SW_RESSTR(STR_COND));
+ aNameED.EnableDrop(TRUE);
+ if (IsFldEdit())
+ {
+ aCond1ED.SetText(GetCurField()->GetPar2().GetToken(0, '|'));
+ aCond2ED.SetText(GetCurField()->GetPar2().GetToken(1, '|'));
+ }
+
+ bName = bValue = TRUE;
+
+ aCond1FT.Show();
+ aCond1ED.Show();
+ aCond2FT.Show();
+ aCond2ED.Show();
+ aValueFT.Hide();
+ aValueED.Hide();
+ break;
+
+ case TYP_JUMPEDITFLD:
+ aNameFT.SetText(SW_RESSTR(STR_JUMPEDITFLD));
+ aValueFT.SetText(SW_RESSTR(STR_PROMPT));
+ bName = bValue = TRUE;
+ break;
+
+ case TYP_INPUTFLD:
+ aValueFT.SetText(SW_RESSTR(STR_PROMPT));
+ bValue = TRUE;
+ // bShowSelection = TRUE;
+ break;
+
+ default:
+ break;
+ }
+
+ if (bShowSelection)
+ {
+ aSelectionLB.Show();
+ aSelectionFT.Show();
+ aFormatLB.Hide();
+ aFormatFT.Hide();
+ }
+ else
+ {
+ aFormatLB.Show();
+ aFormatFT.Show();
+ aSelectionLB.Hide();
+ aSelectionFT.Hide();
+ }
+
+ aFormatLB.Enable(bFormat);
+ aFormatFT.Enable(bFormat);
+ aNameFT.Enable(bName);
+ aNameED.Enable(bName);
+ aValueFT.Enable(bValue);
+ aValueED.Enable(bValue);
+ aMacroBT.Enable(bMacro);
+
+ EnableInsert(bInsert);
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldFuncPage, SelectHdl, ListBox *, pBox )
+{
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ if (nTypeId == TYP_MACROFLD)
+ aNameED.SetText(aSelectionLB.GetSelectEntry());
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldFuncPage, InsertMacroHdl, ListBox *, pBox )
+{
+ SelectHdl();
+ InsertHdl();
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Typen in der SelectionBox erneuern
+ --------------------------------------------------------------------*/
+
+
+void SwFldFuncPage::UpdateSubType()
+{
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ // Auswahl-Listbox fuellen
+ aSelectionLB.SetUpdateMode(FALSE);
+ aSelectionLB.Clear();
+
+ SvStringsDtor& rLst = GetFldMgr().GetSubTypes(nTypeId);
+ USHORT nCount = rLst.Count();
+
+ for (USHORT i = 0; i < nCount; ++i)
+ {
+ USHORT nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ }
+
+ BOOL bEnable = nCount != 0;
+
+ aSelectionLB.Enable( bEnable );
+ aSelectionFT.Enable( bEnable );
+
+ if (bEnable)
+ {
+ if (nTypeId == TYP_MACROFLD)
+ {
+ BOOL bHasMacro = GetFldMgr().GetMacroPath().Len() != 0;
+
+ if (bHasMacro)
+ {
+ aSelectionLB.SelectEntry(GetFldMgr().GetMacroPath());
+ aNameED.SetText(aSelectionLB.GetSelectEntry());
+ aValueFT.Enable();
+ aValueED.Enable();
+ }
+ EnableInsert(bHasMacro);
+ }
+ else
+ aSelectionLB.SelectEntryPos(0);
+ }
+ aSelectionLB.SetUpdateMode(TRUE);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: MacroBrowser aufrufen, Listbox mit Macros fuellen
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldFuncPage, MacroHdl, Button *, pBtn )
+{
+ Window* pDefModalDlgParent = Application::GetDefDialogParent();
+ Application::SetDefDialogParent( pBtn );
+
+ String sMacro(TurnMacroString(aNameED.GetText()));
+ while (sMacro.SearchAndReplace('.', ';') != STRING_NOTFOUND);
+
+ if (GetFldMgr().ChooseMacro(sMacro))
+ UpdateSubType();
+
+ Application::SetDefDialogParent( pDefModalDlgParent );
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL __EXPORT SwFldFuncPage::FillItemSet(SfxItemSet& rSet)
+{
+ BOOL bPage = FALSE;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ USHORT nSubType = 0;
+
+ ULONG nFormat = aFormatLB.GetSelectEntryPos();
+
+ if(nFormat == LISTBOX_ENTRY_NOTFOUND)
+ nFormat = 0;
+ else
+ nFormat = (ULONG)aFormatLB.GetEntryData((USHORT)nFormat);
+
+ String aVal(aValueED.GetText());
+ String aName(aNameED.GetText());
+
+ switch(nTypeId)
+ {
+ case TYP_INPUTFLD:
+ nSubType = INP_TXT;
+ break;
+
+ case TYP_MACROFLD:
+ aName = TurnMacroString(aName);
+ break;
+
+ case TYP_CONDTXTFLD:
+ aVal = aCond1ED.GetText();
+ aVal += '|';
+ aVal += aCond2ED.GetText();
+ break;
+
+ default:
+ break;
+ }
+
+ if (!IsFldEdit() ||
+ aNameED.GetSavedValue() != aNameED.GetText() ||
+ aValueED.GetSavedValue() != aValueED.GetText() ||
+ aCond1ED.GetSavedValue() != aCond1ED.GetText() ||
+ aCond2ED.GetSavedValue() != aCond2ED.GetText() ||
+ nOldFormat != nFormat)
+ {
+ InsertFld( nTypeId, nSubType, aName, aVal, nFormat );
+ }
+
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+String SwFldFuncPage::TurnMacroString(const String &rMacro)
+{
+ if (rMacro.Len())
+ {
+ // Inhalt von aName umdrehen
+ String sTmp, sBuf;
+ USHORT nPos = 0;
+
+ for (USHORT i = 0; i < 4 && nPos != STRING_NOTFOUND; i++)
+ {
+ if (i == 3)
+ sTmp = rMacro.Copy(nPos);
+ else
+ sTmp = rMacro.GetToken(0, '.', nPos);
+
+ if( sBuf.Len() )
+ sTmp += '.';
+ sBuf.Insert( sTmp, 0 );
+ }
+ return sBuf;
+ }
+
+ return rMacro;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxTabPage* __EXPORT SwFldFuncPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return ( new SwFldFuncPage( pParent, rAttrSet ) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldFuncPage::GetGroup()
+{
+ return GRP_FKT;
+}
+
+/* -----------------12.01.99 10:09-------------------
+ *
+ * --------------------------------------------------*/
+void SwFldFuncPage::FillUserData()
+{
+ String sData( String::CreateFromAscii(
+ RTL_CONSTASCII_STRINGPARAM( USER_DATA_VERSION )));
+ sData += ';';
+ USHORT nTypeSel = aTypeLB.GetSelectEntryPos();
+ if( LISTBOX_ENTRY_NOTFOUND == nTypeSel )
+ nTypeSel = USHRT_MAX;
+ else
+ nTypeSel = (ULONG)aTypeLB.GetEntryData( nTypeSel );
+ sData += String::CreateFromInt32( nTypeSel );
+ SetUserData(sData);
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.28 2000/09/18 16:05:28 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.27 2000/09/04 11:43:02 tbe
+ basicide, isetbrw, si, vcdlged moved from svx to basctl
+
+ Revision 1.26 2000/06/30 08:52:52 os
+ #76541# string assertions removed
+
+ Revision 1.25 2000/05/23 18:36:44 jp
+ Bugfixes for Unicode
+
+ Revision 1.24 2000/04/18 15:17:31 os
+ UNICODE
+
+ Revision 1.23 2000/03/03 15:17:01 os
+ StarView remainders removed
+
+ Revision 1.22 1999/02/25 16:24:50 JP
+ Bug #62438#: UserData nur auswerten, wenn kein Refresh ist
+
+
+ Rev 1.21 25 Feb 1999 17:24:50 JP
+ Bug #62438#: UserData nur auswerten, wenn kein Refresh ist
+
+ Rev 1.20 21 Jan 1999 09:50:36 OS
+ #59900# Fussnoten im Dialog korrekt sortieren; keine prot. Member
+
+ Rev 1.19 12 Jan 1999 11:42:26 OS
+ #60579# ausgewaehlten Typ in den UserData speichern
+
+ Rev 1.18 10 Aug 1998 16:39:58 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.17 24 Jul 1998 13:57:08 OM
+ #53246# Makros vorselektieren
+
+ Rev 1.16 20 Jul 1998 11:31:00 OM
+ #53244# Makros beim Bearbeiten nicht zersemmeln
+
+ Rev 1.15 20 Jul 1998 09:38:52 OM
+ #53278# Flackern vermeiden
+
+ Rev 1.14 29 May 1998 16:41:18 OM
+ #50667# Makrofelder bearbeiten
+
+ Rev 1.13 18 May 1998 14:52:42 OM
+ #50001 Keine eckigen Klammern in DB-Condition-Fields
+
+ Rev 1.12 13 Mar 1998 16:30:42 OM
+ #48197# Focus nach MacroDlg greppen
+
+ Rev 1.11 07 Mar 1998 14:38:46 OM
+ Feld nur bei Aenderung aktualisieren
+
+ Rev 1.10 04 Mar 1998 08:37:50 MH
+ chg: Syntax
+
+ Rev 1.9 03 Feb 1998 09:24:58 OM
+ Test
+
+ Rev 1.8 02 Feb 1998 15:04:36 OM
+ #46781# Macrofelder auch ausfuehren, wenn Dateiname mehr als 1 Punkt enthaelt
+
+ Rev 1.7 09 Jan 1998 16:56:52 OM
+ Bei Dok-Wechsel updaten
+
+ Rev 1.6 08 Jan 1998 14:58:26 OM
+ Traveling
+
+ Rev 1.5 06 Jan 1998 18:12:54 OM
+ Felbefehl-Dlg
+
+ Rev 1.4 12 Dec 1997 16:10:06 OM
+ AutoUpdate bei FocusWechsel u.a.
+
+ Rev 1.3 11 Dec 1997 16:58:02 OM
+ Feldumstellung
+
+ Rev 1.2 25 Nov 1997 12:59:28 OM
+ Funktionen-TP
+
+ Rev 1.1 25 Nov 1997 12:38:42 OM
+ Funktionen-TP
+
+ Rev 1.0 04 Nov 1997 10:07:18 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/fldui/fldfunc.hxx b/sw/source/ui/fldui/fldfunc.hxx
new file mode 100644
index 000000000000..6eba1598d219
--- /dev/null
+++ b/sw/source/ui/fldui/fldfunc.hxx
@@ -0,0 +1,141 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldfunc.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWFLDFUNC_HXX
+#define _SWFLDFUNC_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#include "condedit.hxx"
+#include "fldpage.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwFldFuncPage : public SwFldPage
+{
+ FixedText aTypeFT;
+ ListBox aTypeLB;
+ FixedText aSelectionFT;
+ ListBox aSelectionLB;
+ FixedText aFormatFT;
+ ListBox aFormatLB;
+ FixedText aNameFT;
+ ConditionEdit aNameED;
+ FixedText aValueFT;
+ Edit aValueED;
+ FixedText aCond1FT;
+ ConditionEdit aCond1ED;
+ FixedText aCond2FT;
+ ConditionEdit aCond2ED;
+ PushButton aMacroBT;
+
+ String sOldValueFT;
+ String sOldNameFT;
+
+ ULONG nOldFormat;
+
+ DECL_LINK( TypeHdl, ListBox* pLB = 0 );
+ DECL_LINK( SelectHdl, ListBox* pLB = 0 );
+ DECL_LINK( InsertMacroHdl, ListBox* pLB = 0 );
+
+ // Macro auswhlen
+ DECL_LINK( MacroHdl, Button * );
+
+ void UpdateSubType();
+ String TurnMacroString(const String &rMacro);
+
+protected:
+ virtual USHORT GetGroup();
+
+public:
+ SwFldFuncPage(Window* pParent, const SfxItemSet& rSet);
+
+ ~SwFldFuncPage();
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ virtual void FillUserData();
+};
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/fldfunc.src b/sw/source/ui/fldui/fldfunc.src
new file mode 100644
index 000000000000..c9f287149dac
--- /dev/null
+++ b/sw/source/ui/fldui/fldfunc.src
@@ -0,0 +1,380 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldfunc.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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 "globals.hrc"
+#include "fldtdlg.hrc"
+#include "helpid.h"
+TabPage TP_FLD_FUNC
+{
+ HelpID = HID_FLD_FUNC ;
+ SVLook = TRUE ;
+ Hide = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Text = "Funktionen" ;
+ Text [ ENGLISH ] = "Functions" ;
+ FixedText FT_FUNCTYPE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Feldtyp" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "~Tipo di campo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo de ~campo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Felttype" ;
+ Text [ french ] = "~Type de champ" ;
+ Text [ swedish ] = "~Flttyp" ;
+ Text [ dutch ] = "~Veldtype" ;
+ Text [ spanish ] = "~Tipo de campo" ;
+ Text [ english_us ] = "~Type" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ֶ(~T)";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Typ pola";
+ Text[ japanese ] = "̨ނ̎(~T)";
+ Text[ chinese_traditional ] = "(~T)";
+ Text[ arabic ] = " ";
+ Text[ greek ] = "~ ";
+ Text[ korean ] = "(~T)";
+ Text[ turkish ] = "~Alan tipi";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_FUNCTYPE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ Sort = FALSE ;
+ AutoHScroll = TRUE ;
+ };
+ FixedText FT_FUNCSELECTION
+ {
+ Pos = MAP_APPFONT ( 88 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Auswahl" ;
+ Text [ ENGLISH ] = "Selection" ;
+ Text [ norwegian ] = "Selection" ;
+ Text [ italian ] = "~Selezione" ;
+ Text [ portuguese_brazilian ] = "Seleo" ;
+ Text [ portuguese ] = "~Seleco" ;
+ Text [ finnish ] = "Valinta" ;
+ Text [ danish ] = "Udvalg" ;
+ Text [ french ] = "~Slection" ;
+ Text [ swedish ] = "~Urval" ;
+ Text [ dutch ] = "~Selectie" ;
+ Text [ spanish ] = "Se~leccin" ;
+ Text [ english_us ] = "S~elect" ;
+ Hide = TRUE ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ѡ(~E)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Wybr";
+ Text[ japanese ] = "I(~E)";
+ Text[ chinese_traditional ] = "(~E)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "~";
+ Text[ korean ] = "(~E)";
+ Text[ turkish ] = "~Seim";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_FUNCSELECTION
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ Sort = TRUE ;
+ AutoHScroll = TRUE ;
+ };
+ FixedText FT_FUNCFORMAT
+ {
+ Pos = MAP_APPFONT ( 88 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "F~ormat" ;
+ Text [ ENGLISH ] = "Format" ;
+ Left = TRUE ;
+ Text [ english_us ] = "F~ormat" ;
+ Text [ portuguese_brazilian ] = "F~ormat" ;
+ Text [ swedish ] = "F~ormat" ;
+ Text [ danish ] = "Format" ;
+ Text [ italian ] = "F~ormato" ;
+ Text [ spanish ] = "F~ormato" ;
+ Text [ french ] = "F~ormat" ;
+ Text [ dutch ] = "F~ormaat" ;
+ Text [ portuguese ] = "F~ormato" ;
+ Text[ chinese_simplified ] = "ʽ(~O)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "(~O)";
+ Text[ chinese_traditional ] = "榡(~O)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "~";
+ Text[ korean ] = "(~O)";
+ Text[ turkish ] = "F~ormat";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_FUNCFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_FUNCNAME
+ {
+ Pos = MAP_APPFONT ( 170 , 3 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Text = "Na~me" ;
+ TEXT [ English ] = "Na~me" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Na~me" ;
+ Text [ portuguese_brazilian ] = "Na~me" ;
+ Text [ swedish ] = "Na~mn" ;
+ Text [ danish ] = "Navn" ;
+ Text [ italian ] = "No~me" ;
+ Text [ spanish ] = "No~mbre" ;
+ Text [ french ] = "~Nom" ;
+ Text [ dutch ] = "Naa~m" ;
+ Text [ portuguese ] = "No~me" ;
+ Text[ chinese_simplified ] = "(~M)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "O(~M)";
+ Text[ chinese_traditional ] = "W(~M)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "̸(~M)";
+ Text[ turkish ] = "~Ad";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_FUNCNAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 15 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText FT_FUNCVALUE
+ {
+ Pos = MAP_APPFONT ( 170 , 33 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Text = "~Wert" ;
+ Text [ ENGLISH ] = "Value" ;
+ Text [ norwegian ] = "Verdi" ;
+ Text [ italian ] = "~Valore" ;
+ Text [ portuguese_brazilian ] = "Valor" ;
+ Text [ portuguese ] = "Valor" ;
+ Text [ finnish ] = "Arvo" ;
+ Text [ danish ] = "Vrdi" ;
+ Text [ french ] = "~Valeur" ;
+ Text [ swedish ] = "~Vrde" ;
+ Text [ dutch ] = "~Waarde" ;
+ Text [ spanish ] = "~Valor" ;
+ Text [ english_us ] = "~Value" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ֵ(~V)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Warto";
+ Text[ japanese ] = "l(~V)";
+ Text[ chinese_traditional ] = "ƭ(~V)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "(~V)";
+ Text[ turkish ] = "D~eer";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_FUNCVALUE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 45 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText FT_FUNCCOND1
+ {
+ Pos = MAP_APPFONT ( 170 , 33 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Text = "~Dann" ;
+ Text [ ENGLISH ] = "Then" ;
+ Left = TRUE ;
+ Hide = TRUE ;
+ Text [ english_us ] = "Then" ;
+ Text [ portuguese_brazilian ] = "Dann" ;
+ Text [ swedish ] = "S" ;
+ Text [ danish ] = "S" ;
+ Text [ italian ] = "Poi" ;
+ Text [ spanish ] = "Entonces" ;
+ Text [ french ] = "~Alors" ;
+ Text [ dutch ] = "~Dan" ;
+ Text [ portuguese ] = "~Ento" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Wtedy";
+ Text[ japanese ] = "𖞂Ƃ";
+ Text[ chinese_traditional ] = "N";
+ Text[ arabic ] = " ";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "O halde";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_FUNCCOND1
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 45 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Hide = TRUE ;
+ };
+ FixedText FT_FUNCCOND2
+ {
+ Pos = MAP_APPFONT ( 170 , 63 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Text = "So~nst" ;
+ Text [ ENGLISH ] = "Else" ;
+ Left = TRUE ;
+ Hide = TRUE ;
+ Text [ english_us ] = "Else" ;
+ Text [ portuguese_brazilian ] = "Sonst" ;
+ Text [ swedish ] = "Annars" ;
+ Text [ danish ] = "Ellers" ;
+ Text [ italian ] = "Altrimenti" ;
+ Text [ spanish ] = "Si no" ;
+ Text [ french ] = "~Sinon" ;
+ Text [ dutch ] = "~Anders" ;
+ Text [ portuguese ] = "~Seno" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "W przeciwnym wypadku";
+ Text[ japanese ] = "𖞂ȂƂ";
+ Text[ chinese_traditional ] = "_h";
+ Text[ arabic ] = " ";
+ Text[ greek ] = "";
+ Text[ korean ] = "Ÿ";
+ Text[ turkish ] = "Yoksa";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_FUNCCOND2
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 75 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Hide = TRUE ;
+ };
+ PushButton BT_FUNCMACRO
+ {
+ Pos = MAP_APPFONT ( 204 , 115 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "M~akro..." ;
+ Text [ English ] = "M~acro..." ;
+ Text [ norwegian ] = "Macro..." ;
+ Text [ italian ] = "~Macro..." ;
+ Text [ portuguese_brazilian ] = "Macro..." ;
+ Text [ portuguese ] = "Macro..." ;
+ Text [ french ] = "~Macro..." ;
+ Text [ dutch ] = "~Macro..." ;
+ Text [ spanish ] = "M~acro..." ;
+ Text [ danish ] = "Makro..." ;
+ Text [ swedish ] = "M~akro..." ;
+ Text [ finnish ] = "Macro..." ;
+ Text [ english_us ] = "~Macro..." ;
+ Disable = TRUE ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "(~M)...";
+ Text[ russian ] = "...";
+ Text[ polish ] = "Makro...";
+ Text[ japanese ] = "ϸ(~C)...";
+ Text[ chinese_traditional ] = "(~C)...";
+ Text[ arabic ] = "...";
+ Text[ greek ] = "...";
+ Text[ korean ] = "ũ(~M)...";
+ Text[ turkish ] = "M~akro...";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "Functions" ;
+ Text [ portuguese_brazilian ] = "Funktionen" ;
+ Text [ swedish ] = "Funktioner" ;
+ Text [ danish ] = "Funktioner" ;
+ Text [ italian ] = "Funzioni" ;
+ Text [ spanish ] = "Funciones" ;
+ Text [ french ] = "Fonctions" ;
+ Text [ dutch ] = "Functies" ;
+ Text [ portuguese ] = "Funes" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Funkcje";
+ Text[ japanese ] = "@\\";
+ Text[ chinese_traditional ] = "\\";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "Լ";
+ Text[ turkish ] = "Fonksiyon";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/fldmgr.cxx b/sw/source/ui/fldui/fldmgr.cxx
new file mode 100644
index 000000000000..f2c7a221d751
--- /dev/null
+++ b/sw/source/ui/fldui/fldmgr.cxx
@@ -0,0 +1,2450 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldmgr.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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 "cmdid.h"
+#include "view.hxx"
+#include "wrtsh.hxx" // Actives Fenster
+#include "doc.hxx" // Actives Fenster
+#include "docsh.hxx" // Actives Fenster
+#include "swmodule.hxx"
+#include "hintids.hxx"
+#include "charatr.hxx"
+
+#ifdef REPLACE_OFADBMGR
+#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
+#include <com/sun/star/container/XNameAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XDATASOURCE_HPP_
+#include <com/sun/star/sdbc/XDataSource.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_DATATYPE_HPP_
+#include <com/sun/star/sdbc/DataType.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XTABLESSUPPLIER_HPP_
+#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XCOLUMNSSUPPLIER_HPP_
+#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDB_XQUERIESSUPPLIER_HPP_
+#include <com/sun/star/sdb/XQueriesSupplier.hpp>
+#endif
+//#ifndef _COM_SUN_STAR_SDB_XDATABASEACCESS_HPP_
+//#include <com/sun/star/sdb/XDatabaseAccess.hpp>
+//#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+
+#else
+
+
+#endif //REPLACE_OFADBMGR
+
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+
+#ifndef _SFXDOCINF_HXX //autogen
+#include <sfx2/docinf.hxx>
+#endif
+
+#ifndef _SFX_OBJSH_HXX //autogen
+#include <sfx2/objsh.hxx>
+#endif
+
+#ifndef _LINKMGR_HXX //autogen
+#include <so3/linkmgr.hxx>
+#endif
+
+#ifndef _BASMGR_HXX //autogen
+#include <basic/basmgr.hxx>
+#endif
+
+#ifndef _SVX_LANGITEM_HXX //autogen
+#include <svx/langitem.hxx>
+#endif
+
+#ifndef _SFXMACITEM_HXX //autogen
+#include <svtools/macitem.hxx>
+#endif
+
+#ifndef _SB_SBMOD_HXX //autogen
+#include <basic/sbmod.hxx>
+#endif
+
+#ifndef _FMTRFMRK_HXX //autogen
+#include <fmtrfmrk.hxx>
+#endif
+
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+
+#ifndef _SB_SBSTAR_HXX //autogen
+#include <basic/sbstar.hxx>
+#endif
+
+#ifndef _SB_SBMETH_HXX //autogen
+#include <basic/sbmeth.hxx>
+#endif
+
+#ifndef _SBXCLASS_HXX //autogen
+#include <svtools/sbx.hxx>
+#endif
+#ifndef _BASOBJ_HXX //autogen
+#include <basctl/basobj.hxx>
+#endif
+
+#ifndef _ZFORLIST_HXX //autogen
+#include <svtools/zforlist.hxx>
+#endif
+
+#ifndef _ZFORMAT_HXX //autogen
+#include <svtools/zformat.hxx>
+#endif
+
+#ifndef _SB_SBMOD_HXX //autogen
+#include <basic/sbmod.hxx>
+#endif
+#ifndef _FMTINFMT_HXX //autogen
+#include <fmtinfmt.hxx>
+#endif
+#ifndef _CELLATR_HXX
+#include <cellatr.hxx>
+#endif
+#include "dbmgr.hxx"
+#include "shellres.hxx"
+#include "fldbas.hxx"
+#include "docufld.hxx"
+#include "chpfld.hxx"
+#include "ddefld.hxx"
+#include "expfld.hxx"
+#include "reffld.hxx"
+#include "usrfld.hxx"
+#include "dbfld.hxx"
+#include "authfld.hxx"
+#include "flddat.hxx"
+#include "fldmgr.hxx"
+
+#include "fldui.hrc"
+
+#ifdef REPLACE_OFADBMGR
+using namespace rtl;
+using namespace com::sun::star::uno;
+using namespace com::sun::star::container;
+using namespace com::sun::star::lang;
+using namespace com::sun::star::sdb;
+using namespace com::sun::star::sdbc;
+using namespace com::sun::star::sdbcx;
+using namespace com::sun::star::beans;
+#define C2U(cChar) rtl::OUString::createFromAscii(cChar)
+
+#endif
+
+/*--------------------------------------------------------------------
+ Beschreibung: Gruppen der Felder
+ --------------------------------------------------------------------*/
+enum
+{
+ GRP_DOC_BEGIN = 0,
+ GRP_DOC_END = GRP_DOC_BEGIN + 11,
+
+ GRP_FKT_BEGIN = GRP_DOC_END,
+ GRP_FKT_END = GRP_FKT_BEGIN + 6,
+
+ GRP_REF_BEGIN = GRP_FKT_END,
+ GRP_REF_END = GRP_REF_BEGIN + 2,
+
+ GRP_REG_BEGIN = GRP_REF_END,
+ GRP_REG_END = GRP_REG_BEGIN + 1,
+
+ GRP_DB_BEGIN = GRP_REG_END,
+ GRP_DB_END = GRP_DB_BEGIN + 5,
+
+ GRP_VAR_BEGIN = GRP_DB_END,
+ GRP_VAR_END = GRP_VAR_BEGIN + 9
+};
+
+enum
+{
+ GRP_WEB_DOC_BEGIN = 0,
+ GRP_WEB_DOC_END = GRP_WEB_DOC_BEGIN + 9,
+
+ GRP_WEB_FKT_BEGIN = GRP_WEB_DOC_END + 2,
+ GRP_WEB_FKT_END = GRP_WEB_FKT_BEGIN + 0, // Die Gruppe ist leer!
+
+ GRP_WEB_REF_BEGIN = GRP_WEB_FKT_END + 6, // Die Gruppe ist leer!
+ GRP_WEB_REF_END = GRP_WEB_REF_BEGIN + 0,
+
+ GRP_WEB_REG_BEGIN = GRP_WEB_REF_END + 2,
+ GRP_WEB_REG_END = GRP_WEB_REG_BEGIN + 1,
+
+ GRP_WEB_DB_BEGIN = GRP_WEB_REG_END, // Die Gruppe ist leer!
+ GRP_WEB_DB_END = GRP_WEB_DB_BEGIN + 0,
+
+ GRP_WEB_VAR_BEGIN = GRP_WEB_DB_END + 5,
+ GRP_WEB_VAR_END = GRP_WEB_VAR_BEGIN + 1
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: Formate in der richtigen Reihenfolge
+ --------------------------------------------------------------------*/
+static const USHORT __FAR_DATA aSetFmt[] =
+{
+// die Reihenfolge muss zu Beginn mit den ResourceIds fuer FMT_SETVAR_???
+// uebereinstimmen
+ 0,
+ 0
+};
+
+static const USHORT __FAR_DATA aGetFmt[] =
+{
+// die Reihenfolge muss zu Beginn mit den ResourceIds fuer FMT_GETVAR_???
+// uebereinstimmen
+ 0
+};
+
+static const USHORT __FAR_DATA aUsrFmt[] =
+{
+// die Reihenfolge muss zu Beginn mit den ResourceIds fuer FMT_SETVAR_???
+// uebereinstimmen
+ 0,
+ SUB_CMD
+};
+
+static const USHORT __FAR_DATA aDBFmt[] =
+{
+// die Reihenfolge muss zu Beginn mit den ResourceIds fuer FMT_DBFLD_???
+// uebereinstimmen
+ SUB_OWN_FMT
+};
+
+static const USHORT VF_COUNT = sizeof(aGetFmt) / sizeof(USHORT);
+static const USHORT VF_USR_COUNT = sizeof(aUsrFmt) / sizeof(USHORT);
+static const USHORT VF_DB_COUNT = sizeof(aDBFmt) / sizeof(USHORT);
+
+/*--------------------------------------------------------------------
+ Beschreibung: Feldtypen und Subtypes
+ --------------------------------------------------------------------*/
+struct SwFldPack
+{
+ USHORT nTypeId;
+
+ USHORT nSubTypeStart;
+ USHORT nSubTypeEnd;
+
+ ULONG nFmtBegin;
+ ULONG nFmtEnd;
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: Strings und Formate
+ --------------------------------------------------------------------*/
+static const SwFldPack __FAR_DATA aSwFlds[] =
+{
+ // Dokument
+ TYP_EXTUSERFLD, FLD_EU_BEGIN, FLD_EU_END, 0, 0,
+ TYP_AUTHORFLD, 0, 0, FMT_AUTHOR_BEGIN, FMT_AUTHOR_END,
+ TYP_DATEFLD, FLD_DATE_BEGIN, FLD_DATE_END, 0, 0,
+ TYP_TIMEFLD, FLD_TIME_BEGIN, FLD_TIME_END, 0, 0,
+ TYP_PAGENUMBERFLD, 0, 0, FMT_NUM_BEGIN, FMT_NUM_END-1,
+ TYP_NEXTPAGEFLD, 0, 0, FMT_NUM_BEGIN, FMT_NUM_END,
+ TYP_PREVPAGEFLD, 0, 0, FMT_NUM_BEGIN, FMT_NUM_END,
+ TYP_FILENAMEFLD, 0, 0, FMT_FF_BEGIN, FMT_FF_END,
+ TYP_DOCSTATFLD, FLD_STAT_BEGIN, FLD_STAT_END, FMT_NUM_BEGIN, FMT_NUM_END-1,
+
+ TYP_CHAPTERFLD, 0, 0, FMT_CHAPTER_BEGIN, FMT_CHAPTER_END,
+ TYP_TEMPLNAMEFLD, 0, 0, FMT_FF_BEGIN, FMT_FF_END,
+
+ // Funktion
+ TYP_CONDTXTFLD, 0, 0, 0, 0,
+ TYP_INPUTFLD, FLD_INPUT_BEGIN, FLD_INPUT_END, 0, 0,
+ TYP_MACROFLD, 0, 0, 0, 0,
+ TYP_JUMPEDITFLD, 0, 0, FMT_MARK_BEGIN, FMT_MARK_END,
+ TYP_HIDDENTXTFLD, 0, 0, 0, 0,
+ TYP_HIDDENPARAFLD, 0, 0, 0, 0,
+
+ // Referenzen
+ TYP_SETREFFLD, 0, 0, 0, 0,
+ TYP_GETREFFLD, 0, 0, FMT_REF_BEGIN, FMT_REF_END,
+
+ // Ablage
+ TYP_DOCINFOFLD, 0, 0, FMT_REG_BEGIN, FMT_REG_END,
+
+ // Datenbank
+ TYP_DBFLD, 0, 0, FMT_DBFLD_BEGIN, FMT_DBFLD_END,
+ TYP_DBNEXTSETFLD, 0, 0, 0, 0,
+ TYP_DBNUMSETFLD, 0, 0, 0, 0,
+ TYP_DBSETNUMBERFLD, 0, 0, FMT_NUM_BEGIN, FMT_NUM_END-2,
+ TYP_DBNAMEFLD, 0, 0, 0, 0,
+
+ // Variablen
+ TYP_SETFLD, 0, 0, FMT_SETVAR_BEGIN, FMT_SETVAR_END,
+
+ TYP_GETFLD, 0, 0, FMT_GETVAR_BEGIN, FMT_GETVAR_END,
+ TYP_DDEFLD, 0, 0, FMT_DDE_BEGIN, FMT_DDE_END,
+ TYP_FORMELFLD, 0, 0, FMT_GETVAR_BEGIN, FMT_GETVAR_END,
+ TYP_INPUTFLD, FLD_INPUT_BEGIN, FLD_INPUT_END, 0, 0,
+ TYP_SEQFLD, 0, 0, FMT_NUM_BEGIN, FMT_NUM_END-2,
+ TYP_SETREFPAGEFLD, FLD_PAGEREF_BEGIN, FLD_PAGEREF_END,0, 0,
+ TYP_GETREFPAGEFLD, 0, 0, FMT_NUM_BEGIN, FMT_NUM_END-1,
+ TYP_USERFLD, 0, 0, FMT_USERVAR_BEGIN, FMT_USERVAR_END
+};
+
+String* SwFldMgr::pDate = 0;
+String* SwFldMgr::pTime = 0;
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Zugriff auf die Shell
+ --------------------------------------------------------------------*/
+
+SwWrtShell* lcl_GetShell()
+{
+ SwView* pView;
+ if ( 0 != (pView = ::GetActiveView()) )
+ return pView->GetWrtShellPtr();
+ return 0;
+}
+
+inline USHORT GetPackCount() { return sizeof(aSwFlds) / sizeof(SwFldPack); }
+
+/*--------------------------------------------------------------------
+ Beschreibung: FieldManager regelt das Einfuegen und Updaten
+ von Feldern
+ --------------------------------------------------------------------*/
+
+SwFldMgr::SwFldMgr(SwWrtShell* pSh ) :
+ bEvalExp(TRUE),
+ pModule(0),
+ pMacroItem(0),
+ pWrtShell(pSh)
+{
+ // aktuelles Feld ermitteln falls vorhanden
+ GetCurFld();
+}
+
+
+SwFldMgr::~SwFldMgr()
+{
+ aSubLst.DeleteAndDestroy(0, aSubLst.Count());
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: RefMark ueber Namen organisieren
+ --------------------------------------------------------------------*/
+
+BOOL SwFldMgr::CanInsertRefMark( const String& rStr )
+{
+ SwWrtShell &rSh = pWrtShell ? *pWrtShell : *lcl_GetShell();
+ USHORT nCnt = rSh.GetCrsrCnt();
+
+ // der letzte Crsr muss keine aufgespannte Selektion
+ if( 1 < nCnt && !rSh.SwCrsrShell::HasSelection() )
+ --nCnt;
+
+ return 2 > nCnt && 0 == rSh.GetRefMark( rStr );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Alle DBTypes loeschen
+ --------------------------------------------------------------------*/
+
+void SwFldMgr::RemoveDBTypes()
+{
+ SwWrtShell &rSh = pWrtShell ? *pWrtShell : *lcl_GetShell();
+ USHORT nCount = rSh.GetFldTypeCount(RES_DBFLD);
+ for ( USHORT i=0; i < nCount ; ++i )
+ {
+ SwFieldType* pType = rSh.GetFldType( i, RES_DBFLD );
+ if( !pType->GetDepends() )
+ {
+ rSh.RemoveFldType( i--, RES_DBFLD );
+ nCount--;
+ }
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Zugriff ueber ResIds
+ --------------------------------------------------------------------*/
+
+USHORT SwFldMgr::GetFldTypeCount(USHORT nResId) const
+{
+ return pWrtShell ?
+ pWrtShell->GetFldTypeCount(nResId) :
+ ::lcl_GetShell()->GetFldTypeCount(nResId);
+}
+
+
+SwFieldType* SwFldMgr::GetFldType(USHORT nResId, USHORT nId) const
+{
+ return pWrtShell ?
+ pWrtShell->GetFldType(nId, nResId) :
+ ::lcl_GetShell()->GetFldType(nId, nResId);
+}
+
+
+SwFieldType* SwFldMgr::GetFldType(USHORT nResId, const String& rName) const
+{
+ return pWrtShell ?
+ pWrtShell->GetFldType(nResId, rName) :
+ ::lcl_GetShell()->GetFldType(nResId, rName);
+}
+
+
+void SwFldMgr::RemoveFldType(USHORT nResId, USHORT nId)
+{
+ pWrtShell ?
+ pWrtShell->RemoveFldType(nId, nResId) :
+ ::lcl_GetShell()->RemoveFldType(nId, nResId);
+}
+
+
+void SwFldMgr::RemoveFldType(USHORT nResId, const String& rName )
+{
+ pWrtShell ?
+ pWrtShell->RemoveFldType(nResId, rName) :
+ ::lcl_GetShell()->RemoveFldType(nResId, rName);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Aktuelles Feld ermitteln
+ --------------------------------------------------------------------*/
+
+
+SwField* SwFldMgr::GetCurFld()
+{
+ SwWrtShell *pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+ if ( pSh )
+ pCurFld = pSh->GetCurFld();
+ else
+ pCurFld = NULL;
+
+ // Strings und Format initialisieren
+ //
+ aCurPar1.Erase();
+ aCurPar2.Erase();
+ sCurFrame.Erase();
+ nCurFmt = 0;
+
+ if(!pCurFld)
+ return 0;
+
+ // Aktuelle Werte aufbereiten Parameter 1 und Parameter 2
+ // als auch das Format ermitteln
+ //
+ const USHORT nTypeId = pCurFld->GetTypeId();
+
+ nCurFmt = pCurFld->GetFormat();
+ aCurPar1 = pCurFld->GetPar1();
+ aCurPar2 = pCurFld->GetPar2();
+
+ switch( nTypeId )
+ {
+ case TYP_PAGENUMBERFLD:
+ case TYP_NEXTPAGEFLD:
+ case TYP_PREVPAGEFLD:
+ case TYP_GETREFPAGEFLD:
+ if( nCurFmt == SVX_NUM_PAGEDESC )
+ nCurFmt -= 2;
+ break;
+ }
+ return pCurFld;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Gruppen-Bereich liefern
+ --------------------------------------------------------------------*/
+
+
+const SwFldGroupRgn& SwFldMgr::GetGroupRange(BOOL bHtmlMode, USHORT nGrpId) const
+{
+static SwFldGroupRgn __READONLY_DATA aRanges[] =
+{
+ /* Dokument */ GRP_DOC_BEGIN, GRP_DOC_END,
+ /* Funktionen */ GRP_FKT_BEGIN, GRP_FKT_END,
+ /* Referenzen */ GRP_REF_BEGIN, GRP_REF_END,
+ /* Ablage */ GRP_REG_BEGIN, GRP_REG_END,
+ /* DB */ GRP_DB_BEGIN, GRP_DB_END,
+ /* User */ GRP_VAR_BEGIN, GRP_VAR_END,
+};
+static SwFldGroupRgn __READONLY_DATA aWebRanges[] =
+{
+ /* Dokument */ GRP_WEB_DOC_BEGIN, GRP_WEB_DOC_END,
+ /* Funktionen */ GRP_WEB_FKT_BEGIN, GRP_WEB_FKT_END,
+ /* Referenzen */ GRP_WEB_REF_BEGIN, GRP_WEB_REF_END,
+ /* Ablage */ GRP_WEB_REG_BEGIN, GRP_WEB_REG_END,
+ /* DB */ GRP_WEB_DB_BEGIN, GRP_WEB_DB_END,
+ /* User */ GRP_WEB_VAR_BEGIN, GRP_WEB_VAR_END,
+};
+
+ if (bHtmlMode)
+ return aWebRanges[(USHORT)nGrpId];
+ else
+ return aRanges[(USHORT)nGrpId];
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: GroupId bestimmen
+ --------------------------------------------------------------------*/
+
+USHORT SwFldMgr::GetGroup(BOOL bHtmlMode, USHORT nTypeId, USHORT nSubType) const
+{
+ if (nTypeId == TYP_SETINPFLD)
+ nTypeId = TYP_SETFLD;
+
+ if (nTypeId == TYP_INPUTFLD && (nSubType & INP_USR))
+ nTypeId = TYP_USERFLD;
+
+ if (nTypeId == TYP_FIXDATEFLD)
+ nTypeId = TYP_DATEFLD;
+
+ if (nTypeId == TYP_FIXTIMEFLD)
+ nTypeId = TYP_TIMEFLD;
+
+ for (USHORT i = GRP_DOC; i <= GRP_VAR; i++)
+ {
+ const SwFldGroupRgn& rRange = GetGroupRange(bHtmlMode, i);
+ for (USHORT nPos = rRange.nStart; nPos < rRange.nEnd; nPos++)
+ {
+ if (aSwFlds[nPos].nTypeId == nTypeId)
+ return i;
+ }
+ }
+ return USHRT_MAX;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Namen zur TypeId ermitteln
+ ZUGRIFF ueber TYP_....
+ --------------------------------------------------------------------*/
+
+
+USHORT SwFldMgr::GetTypeId(USHORT nPos) const
+{
+ ASSERT(nPos < ::GetPackCount(), "unzulaessige Pos");
+ return aSwFlds[ nPos ].nTypeId;
+}
+
+
+const String& SwFldMgr::GetTypeStr(USHORT nPos) const
+{
+ ASSERT(nPos < ::GetPackCount(), "unzulaessige TypeId");
+
+ USHORT nFldWh = aSwFlds[ nPos ].nTypeId;
+
+ // Sonderbehandlung fuer Datum/Zeit Felder (ohne var/fix)
+ if( TYP_DATEFLD == nFldWh )
+ {
+ if( !pDate )
+ pDate = new SW_RESSTR( STR_DATEFLD );
+ return *pDate;
+ }
+ if( TYP_TIMEFLD == nFldWh )
+ {
+ if( !pTime )
+ pTime = new SW_RESSTR( STR_TIMEFLD );
+ return *pTime;
+ }
+
+ return *SwFieldType::GetFldNames()->GetObject( nFldWh );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Pos in der Liste bestimmen
+ --------------------------------------------------------------------*/
+
+
+USHORT SwFldMgr::GetPos(USHORT nTypeId) const
+{
+ switch( nTypeId )
+ {
+ case TYP_FIXDATEFLD: nTypeId = TYP_DATEFLD; break;
+ case TYP_FIXTIMEFLD: nTypeId = TYP_TIMEFLD; break;
+ case TYP_SETINPFLD: nTypeId = TYP_SETFLD; break;
+ case TYP_USRINPFLD: nTypeId = TYP_USERFLD; break;
+ }
+
+ for(USHORT i = 0; i < GetPackCount(); i++)
+ if(aSwFlds[i].nTypeId == nTypeId)
+ return i;
+
+ return USHRT_MAX;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Subtypen eines Feldes lokalisieren
+ --------------------------------------------------------------------*/
+
+SvStringsDtor& SwFldMgr::GetSubTypes(USHORT nTypeId)
+{
+ // aSubLst.DeleteAndDestroy(0, aSubLst.Count());
+ for (USHORT i=0; i < aSubLst.Count(); )
+ {
+ String* pStr = aSubLst[i];
+ DELETEZ(pStr);
+ aSubLst.Remove(i);
+ }
+
+ const USHORT nPos = GetPos(nTypeId);
+
+ switch(nTypeId)
+ {
+ case TYP_SETREFFLD:
+ case TYP_GETREFFLD:
+ {
+ // Referenzen sind keine Felder
+ pWrtShell ?
+ pWrtShell->GetRefMarks( &aSubLst ) :
+ ::lcl_GetShell()->GetRefMarks( &aSubLst );
+ break;
+ }
+ case TYP_MACROFLD:
+ {
+ if (sMacroPath.Len())
+ {
+ String sPath = sMacroPath.Copy(sMacroPath.Search('.', 0));
+ if (pModule)
+ {
+ SbxArray* pSbxArray = pModule->GetMethods();
+
+ for (USHORT nMethod = 0; nMethod < pSbxArray->Count(); nMethod++)
+ {
+ SbMethod* pMethod = (SbMethod*)pSbxArray->Get(nMethod);
+ DBG_ASSERT( pMethod, "Methode nicht gefunden! (NULL)" );
+
+ String* pNew = new String(pMethod->GetName());
+ *pNew += sPath;
+ aSubLst.Insert(pNew, aSubLst.Count());
+ }
+ }
+ else
+ {
+ String* pNew = new String(sMacroPath);
+ aSubLst.Insert(pNew, aSubLst.Count());
+ }
+ }
+ break;
+ }
+ case TYP_INPUTFLD:
+ { String* pNew = new SW_RESSTR(aSwFlds[nPos].nSubTypeStart);
+ aSubLst.Insert(pNew, aSubLst.Count());
+ // Weiter bei generischen Typen
+ }
+ case TYP_DDEFLD:
+ case TYP_SEQFLD:
+ case TYP_FORMELFLD:
+ case TYP_GETFLD:
+ case TYP_SETFLD:
+ case TYP_USERFLD:
+ {
+ SwWrtShell &rSh = pWrtShell ? *pWrtShell : *::lcl_GetShell();
+ const USHORT nCount = rSh.GetFldTypeCount();
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ SwFieldType* pFldType = rSh.GetFldType( i );
+ const USHORT nWhich = pFldType->Which();
+
+ if((nTypeId == TYP_DDEFLD && pFldType->Which() == RES_DDEFLD) ||
+
+ (nTypeId == TYP_USERFLD && nWhich == RES_USERFLD) ||
+
+ (nTypeId == TYP_GETFLD && nWhich == RES_SETEXPFLD &&
+ !(((SwSetExpFieldType*)pFldType)->GetType() & GSE_SEQ)) ||
+
+ (nTypeId == TYP_SETFLD && nWhich == RES_SETEXPFLD &&
+ !(((SwSetExpFieldType*)pFldType)->GetType() & GSE_SEQ)) ||
+
+ (nTypeId == TYP_SEQFLD && nWhich == RES_SETEXPFLD &&
+ (((SwSetExpFieldType*)pFldType)->GetType() & GSE_SEQ)) ||
+
+ ((nTypeId == TYP_INPUTFLD || nTypeId == TYP_FORMELFLD) &&
+ (nWhich == RES_USERFLD ||
+ nWhich == RES_SETEXPFLD &&
+ !(((SwSetExpFieldType*)pFldType)->GetType() & GSE_SEQ)) ) )
+ {
+ String* pNew = new String(pFldType->GetName());
+ aSubLst.Insert(pNew, aSubLst.Count());
+ }
+ }
+ break;
+ }
+ case TYP_DBNEXTSETFLD:
+ case TYP_DBNUMSETFLD:
+ case TYP_DBNAMEFLD:
+ case TYP_DBSETNUMBERFLD:
+ break;
+
+ default:
+ {
+ // statische SubTypes
+ if(nPos != USHRT_MAX)
+ {
+ USHORT nCount;
+ if (nTypeId == TYP_DOCINFOFLD)
+ nCount = DI_SUBTYPE_END - DI_SUBTYPE_BEGIN;
+ else
+ nCount = aSwFlds[nPos].nSubTypeEnd - aSwFlds[nPos].nSubTypeStart;
+
+ SwWrtShell &rSh = pWrtShell ? *pWrtShell : *::lcl_GetShell();
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ String* pNew;
+ if (nTypeId == TYP_DOCINFOFLD)
+ {
+ if (i >= DI_INFO1 && i <= DI_INFO4)
+ pNew = new String( rSh.GetInfo()->GetUserKey(i-DI_INFO1).GetTitle());
+ else
+ pNew = new String(*ViewShell::GetShellRes()->aDocInfoLst[i]);
+ }
+ else
+ pNew = new SW_RESSTR(aSwFlds[nPos].nSubTypeStart + i);
+
+ aSubLst.Insert(pNew, aSubLst.Count());
+ }
+ }
+ }
+ }
+ return aSubLst;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Format ermitteln
+ ZUGRIFF ueber TYP_....
+ --------------------------------------------------------------------*/
+
+
+USHORT SwFldMgr::GetFormatCount(USHORT nTypeId, BOOL bIsText, BOOL bHtmlMode) const
+{
+ ASSERT(nTypeId < TYP_END, "unzulaessige TypeId");
+
+ {
+ const USHORT nPos = GetPos(nTypeId);
+
+ if(nPos == USHRT_MAX || (bHtmlMode && nTypeId == TYP_SETFLD))
+ return 0;
+
+ ULONG nStart = aSwFlds[nPos].nFmtBegin;
+ ULONG nEnd = aSwFlds[nPos].nFmtEnd;
+
+ if (bIsText && nEnd - nStart >= 2)
+ return 2;
+
+ if (nTypeId == TYP_FILENAMEFLD)
+ nEnd -= 2; // Kein Bereich oder Vorlage
+
+ switch(nStart)
+ {
+ case FMT_GETVAR_BEGIN:
+ case FMT_SETVAR_BEGIN: return VF_COUNT;
+ case FMT_USERVAR_BEGIN: return VF_USR_COUNT;
+ case FMT_DBFLD_BEGIN: return VF_DB_COUNT;
+ }
+ return (USHORT)(nEnd - nStart);
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: FormatString zu einem Typ ermitteln
+ --------------------------------------------------------------------*/
+
+
+String SwFldMgr::GetFormatStr(USHORT nTypeId, ULONG nFormatId) const
+{
+ String aRet;
+ SwWrtShell *pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+ ASSERT(nTypeId < TYP_END, "unzulaessige TypeId");
+
+ const USHORT nPos = GetPos(nTypeId);
+
+ if(nPos == USHRT_MAX)
+ return aRet;
+
+ ULONG nStart;
+
+ nStart = aSwFlds[nPos].nFmtBegin;
+
+ if (nTypeId == TYP_FILENAMEFLD)
+ nFormatId &= ~FF_FIXED; // Fixed-Flag ausmaskieren
+
+ aRet = SW_RESSTR((USHORT)(nStart + nFormatId));
+
+ return aRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: FormatId aus Pseudo-ID ermitteln
+ --------------------------------------------------------------------*/
+
+USHORT SwFldMgr::GetFormatId(USHORT nTypeId, ULONG nFormatId) const
+{
+ USHORT nId = (USHORT)nFormatId;
+
+ switch( nTypeId )
+ {
+ case TYP_DOCINFOFLD:
+ switch( aSwFlds[ GetPos( nTypeId ) ].nFmtBegin + nFormatId )
+ {
+ case FMT_REG_AUTHOR: nId = DI_SUB_AUTHOR; break;
+ case FMT_REG_TIME: nId = DI_SUB_TIME; break;
+ case FMT_REG_DATE: nId = DI_SUB_DATE; break;
+ }
+ break;
+
+ case TYP_PAGENUMBERFLD:
+ case TYP_NEXTPAGEFLD:
+ case TYP_PREVPAGEFLD:
+ case TYP_DOCSTATFLD:
+ case TYP_DBSETNUMBERFLD:
+ case TYP_SEQFLD:
+ case TYP_GETREFPAGEFLD:
+ switch( aSwFlds[ GetPos( nTypeId ) ].nFmtBegin + nFormatId )
+ {
+ case FMT_NUM_ABC: nId = SVX_NUM_CHARS_UPPER_LETTER; break;
+ case FMT_NUM_SABC: nId = SVX_NUM_CHARS_LOWER_LETTER; break;
+ case FMT_NUM_ROMAN: nId = SVX_NUM_ROMAN_UPPER; break;
+ case FMT_NUM_SROMAN: nId = SVX_NUM_ROMAN_LOWER; break;
+ case FMT_NUM_ARABIC: nId = SVX_NUM_ARABIC; break;
+ case FMT_NUM_PAGEDESC: nId = SVX_NUM_PAGEDESC; break;
+ case FMT_NUM_PAGESPECIAL: nId = SVX_NUM_CHAR_SPECIAL; break;
+ case FMT_NUM_ABC_N: nId = SVX_NUM_CHARS_UPPER_LETTER_N; break;
+ case FMT_NUM_SABC_N: nId = SVX_NUM_CHARS_LOWER_LETTER_N; break;
+ }
+ break;
+
+ case TYP_DDEFLD:
+ switch ( aSwFlds[ GetPos( nTypeId ) ].nFmtBegin + nFormatId )
+ {
+ case FMT_DDE_NORMAL: nId = LINKUPDATE_ONCALL; break;
+ case FMT_DDE_HOT: nId = LINKUPDATE_ALWAYS; break;
+ }
+ break;
+ }
+
+ return nId;
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Traveling
+ --------------------------------------------------------------------*/
+
+
+BOOL SwFldMgr::GoNextPrev( BOOL bNext, SwFieldType* pTyp )
+{
+ SwWrtShell* pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+
+ if( !pTyp && pCurFld )
+ {
+ const USHORT nTypeId = pCurFld->GetTypeId();
+ if( TYP_SETINPFLD == nTypeId || TYP_USRINPFLD == nTypeId )
+ pTyp = pSh->GetFldType( 0, RES_INPUTFLD );
+ else
+ pTyp = pCurFld->GetTyp();
+ }
+
+ if (pTyp && pTyp->Which() == RES_DBFLD)
+ {
+ // Fuer Feldbefehl-bearbeiten (alle DB-Felder anspringen)
+ return pSh->MoveFldType( 0, bNext, USHRT_MAX, RES_DBFLD );
+ }
+
+ return pTyp && pSh ? pSh->MoveFldType( pTyp, bNext ) : FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Feldtypen einfuegen
+ --------------------------------------------------------------------*/
+
+
+void SwFldMgr::InsertFldType(SwFieldType& rType)
+{
+ pWrtShell ?
+ pWrtShell->InsertFldType(rType) :
+ ::lcl_GetShell()->InsertFldType(rType);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Aktuelle TypeId ermitteln
+ --------------------------------------------------------------------*/
+
+
+USHORT SwFldMgr::GetCurTypeId() const
+{
+ return pCurFld->GetTypeId();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Ueber String Feld einfuegen oder Update
+ --------------------------------------------------------------------*/
+
+
+BOOL SwFldMgr::InsertFld(USHORT nType,
+ USHORT nSubType,
+ const String& rPar1,
+ const String& rPar2,
+ ULONG nFormat,
+ SwWrtShell* pSh,
+ sal_Unicode cSeparator)
+{
+ SwField* pFld = 0;
+ BOOL bExp = FALSE;
+ BOOL bTbl = FALSE;
+ BOOL bPageVar = FALSE;
+
+ if (pSh == NULL)
+ pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+
+ switch(nType)
+ { // ACHTUNG dieses Feld wird ueber einen gesonderten Dialog eingefuegt
+ case TYP_POSTITFLD:
+ {
+ SwPostItFieldType* pType =
+ (SwPostItFieldType*)pSh->GetFldType(0, RES_POSTITFLD);
+ pFld = new SwPostItField(pType, rPar1, rPar2, Date());
+ break;
+ }
+ case TYP_SCRIPTFLD:
+ {
+ SwScriptFieldType* pType =
+ (SwScriptFieldType*)pSh->GetFldType(0, RES_SCRIPTFLD);
+ pFld = new SwScriptField(pType, rPar1, rPar2, (BOOL)nFormat);
+ break;
+ }
+ case TYP_AUTHORITY:
+ {
+ SwAuthorityFieldType* pType =
+ (SwAuthorityFieldType*)pSh->GetFldType(0, RES_AUTHORITY);
+ if(!pType)
+ {
+ pType =
+ (SwAuthorityFieldType*)pSh->InsertFldType(
+ SwAuthorityFieldType(pSh->GetDoc()));
+ }
+ pFld = new SwAuthorityField(pType, rPar1);
+ }
+ break;
+ case TYP_DATEFLD:
+ case TYP_TIMEFLD:
+ {
+ USHORT nSub = (nType == TYP_DATEFLD) ? DATEFLD : TIMEFLD;
+ nSub |= nSubType == DATE_VAR ? 0 : FIXEDFLD;
+
+ SwDateTimeFieldType* pTyp =
+ (SwDateTimeFieldType*)pSh->GetFldType(0, RES_DATETIMEFLD);
+ pFld = new SwDateTimeField(pTyp, nSub, nFormat);
+ pFld->SetPar2(rPar2);
+ break;
+ }
+ case TYP_FILENAMEFLD:
+ {
+ SwFileNameFieldType* pTyp =
+ (SwFileNameFieldType*)pSh->GetFldType(0, RES_FILENAMEFLD);
+ pFld = new SwFileNameField(pTyp, nFormat);
+ break;
+ }
+ case TYP_TEMPLNAMEFLD:
+ {
+ SwTemplNameFieldType* pTyp =
+ (SwTemplNameFieldType*)pSh->GetFldType(0, RES_TEMPLNAMEFLD);
+ pFld = new SwTemplNameField(pTyp, nFormat);
+ break;
+ }
+ case TYP_CHAPTERFLD:
+ { USHORT nByte = rPar2.ToInt32();
+ SwChapterFieldType* pTyp =
+ (SwChapterFieldType*)pSh->GetFldType(0, RES_CHAPTERFLD);
+ pFld = new SwChapterField(pTyp, nFormat);
+ nByte = Max(USHORT(1), nByte);
+ nByte = Min(nByte, USHORT(MAXLEVEL));
+ nByte -= 1;
+ ((SwChapterField*)pFld)->SetLevel((BYTE)nByte);
+ break;
+ }
+ case TYP_NEXTPAGEFLD:
+ case TYP_PREVPAGEFLD:
+ case TYP_PAGENUMBERFLD:
+ {
+ short nOff = rPar2.ToInt32();
+
+ if(nType == TYP_NEXTPAGEFLD)
+ {
+ if( SVX_NUM_CHAR_SPECIAL == nFormat )
+ nOff = 1;
+ else
+ nOff += 1;
+ nSubType = PG_NEXT;
+ }
+ else if(nType == TYP_PREVPAGEFLD)
+ {
+ if( SVX_NUM_CHAR_SPECIAL == nFormat )
+ nOff = -1;
+ else
+ nOff -= 1;
+ nSubType = PG_PREV;
+ }
+ else
+ nSubType = PG_RANDOM;
+
+ SwPageNumberFieldType* pTyp =
+ (SwPageNumberFieldType*)pSh->GetFldType(0, RES_PAGENUMBERFLD);
+ pFld = new SwPageNumberField(pTyp, nSubType, nFormat, nOff);
+
+ if( SVX_NUM_CHAR_SPECIAL == nFormat &&
+ ( PG_PREV == nSubType || PG_NEXT == nSubType ) )
+ ((SwPageNumberField*)pFld)->SetUserString( rPar2 );
+ break;
+ }
+ case TYP_DOCSTATFLD:
+ { SwDocStatFieldType* pTyp =
+ (SwDocStatFieldType*)pSh->GetFldType(0, RES_DOCSTATFLD);
+ pFld = new SwDocStatField(pTyp, nSubType, nFormat);
+ break;
+ }
+ case TYP_AUTHORFLD:
+ { SwAuthorFieldType* pTyp =
+ (SwAuthorFieldType*)pSh->GetFldType(0, RES_AUTHORFLD);
+ pFld = new SwAuthorField(pTyp, nFormat);
+ break;
+ }
+ case TYP_CONDTXTFLD:
+ case TYP_HIDDENTXTFLD:
+ {
+ SwHiddenTxtFieldType* pTyp =
+ (SwHiddenTxtFieldType*)pSh->GetFldType(0, RES_HIDDENTXTFLD);
+ pFld = new SwHiddenTxtField(pTyp, TRUE, rPar1, rPar2, FALSE, nType);
+ bExp = TRUE;
+ break;
+ }
+ case TYP_HIDDENPARAFLD:
+ {
+ SwHiddenParaFieldType* pTyp =
+ (SwHiddenParaFieldType*)pSh->GetFldType(0, RES_HIDDENPARAFLD);
+ pFld = new SwHiddenParaField(pTyp, rPar1);
+ bExp = TRUE;
+ break;
+ }
+ case TYP_SETREFFLD:
+ {
+ if( rPar1.Len() > 0 && CanInsertRefMark( rPar1 ) )
+ {
+ pSh->SetAttr( SwFmtRefMark( rPar1 ) );
+ return TRUE;
+ }
+ return FALSE;
+ }
+ case TYP_GETREFFLD:
+ {
+ SwGetRefFieldType* pTyp =
+ (SwGetRefFieldType*)pSh->GetFldType(0, RES_GETREFFLD);
+ USHORT nSeqNo = rPar2.ToInt32();
+ pFld = new SwGetRefField(pTyp, rPar1, nSubType, nSeqNo, nFormat);
+ bExp = TRUE;
+ break;
+ }
+ case TYP_DDEFLD:
+ {
+ //JP 28.08.95: DDE-Topics/-Items koennen Blanks in ihren
+ // Namen haben! Wird hier noch nicht beachtet.
+ String sCmd( rPar2 );
+ USHORT nTmpPos = sCmd.SearchAndReplace( ' ', cTokenSeperator );
+ sCmd.SearchAndReplace( ' ', cTokenSeperator, nTmpPos );
+
+ SwDDEFieldType* pTyp = (SwDDEFieldType*)pSh->InsertFldType(
+ SwDDEFieldType( rPar1, sCmd, (USHORT)nFormat ));
+ pFld = new SwDDEField( pTyp );
+ break;
+ }
+ case TYP_MACROFLD:
+ {
+ SwMacroFieldType* pTyp =
+ (SwMacroFieldType*)pSh->GetFldType(0, RES_MACROFLD);
+
+ pFld = new SwMacroField(pTyp, rPar1, rPar2);
+ break;
+ }
+ case TYP_INTERNETFLD:
+ {
+ SwFmtINetFmt aFmt( rPar1, sCurFrame );
+ if( pMacroItem )
+ aFmt.SetMacroTbl( &pMacroItem->GetMacroTable() );
+ return pSh->InsertURL( aFmt, rPar2 );
+ }
+ case TYP_JUMPEDITFLD:
+ {
+ SwJumpEditFieldType* pTyp =
+ (SwJumpEditFieldType*)pSh->GetFldType(0, RES_JUMPEDITFLD);
+
+ pFld = new SwJumpEditField(pTyp, nFormat, rPar1, rPar2 );
+ break;
+ }
+ case TYP_DOCINFOFLD:
+ {
+ SwDocInfoFieldType* pTyp = (SwDocInfoFieldType*)pSh->GetFldType(
+ 0, RES_DOCINFOFLD );
+ pFld = new SwDocInfoField(pTyp, nSubType, nFormat);
+ break;
+ }
+ case TYP_EXTUSERFLD:
+ {
+ SwExtUserFieldType* pTyp = (SwExtUserFieldType*)pSh->GetFldType(
+ 0, RES_EXTUSERFLD);
+ pFld = new SwExtUserField(pTyp, nSubType, nFormat);
+ break;
+ }
+ case TYP_DBFLD:
+ {
+ String sDBName;
+ String sPar1;
+
+ if (rPar1.Search(DB_DELIM) == STRING_NOTFOUND)
+ {
+ sDBName = pSh->GetDBName();
+ sPar1 = rPar1;
+ }
+ else
+ {
+ sDBName = rPar1.GetToken(0, DB_DELIM);
+ sDBName += DB_DELIM;
+ sDBName += rPar1.GetToken(1, DB_DELIM);
+ sPar1 = rPar1.GetToken(2, DB_DELIM);
+ }
+
+ if (sDBName.Len() && pSh->GetDBName() != sDBName)
+ pSh->ChgDBName(sDBName);
+
+ SwDBFieldType* pTyp = (SwDBFieldType*)pSh->InsertFldType(
+ SwDBFieldType(pSh->GetDoc(), sPar1, sDBName) );
+ pFld = new SwDBField(pTyp);
+ pFld->SetSubType(nSubType);
+
+ if( !(nSubType & SUB_OWN_FMT) ) // Datenbankformat ermitteln
+ {
+#ifdef REPLACE_OFADBMGR
+ String sSourceName(sDBName.GetToken(0, DB_DELIM));
+ String sTableName(sDBName.GetToken(1, DB_DELIM));
+ nFormat = pSh->GetNewDBMgr()->GetColumnFmt( sSourceName, sTableName, sPar1,
+ pSh->GetNumberFormatter(), GetCurrLanguage() );
+#else
+ nFormat = pSh->GetNewDBMgr()->GetColumnFmt( sDBName, sPar1,
+ pSh->GetNumberFormatter() );
+#endif
+ }
+ pFld->ChangeFormat( nFormat );
+
+ bExp = TRUE;
+ break;
+ }
+ case TYP_DBSETNUMBERFLD:
+ case TYP_DBNUMSETFLD:
+ case TYP_DBNEXTSETFLD:
+ case TYP_DBNAMEFLD:
+ {
+ USHORT nPos, nTablePos, nExpPos;
+ String sDBName, sPar1;
+
+ // DBName aus rPar1 extrahieren. Format: DBName.TableName.ExpStrg
+ if ((nTablePos = rPar1.Search(DB_DELIM)) != STRING_NOTFOUND)
+ sDBName = rPar1.Copy(0, nTablePos++);
+ if ((nExpPos = rPar1.Search(DB_DELIM, nTablePos)) != STRING_NOTFOUND)
+ {
+ sDBName += DB_DELIM;
+ sDBName += rPar1.Copy(nTablePos, nExpPos++ - nTablePos);
+ }
+ if (nExpPos != STRING_NOTFOUND)
+ nPos = nExpPos;
+ else if (nTablePos != STRING_NOTFOUND)
+ nPos = nTablePos;
+ else
+ nPos = 0;
+ sPar1 = rPar1.Copy(nPos);
+
+#ifdef REPLACE_OFADBMGR
+ if (sDBName.Len() && pSh->GetDBName() != sDBName)
+#else
+ if (sDBName.Len() && pSh->GetDBName().ToUpperAscii() != sDBName.ToUpperAscii())
+#endif
+ pSh->ChgDBName(sDBName);
+
+ switch(nType)
+ {
+ case TYP_DBNAMEFLD:
+ {
+ SwDBNameFieldType* pTyp =
+ (SwDBNameFieldType*)pSh->GetFldType(0, RES_DBNAMEFLD);
+ pFld = new SwDBNameField(pTyp, sDBName);
+
+ break;
+ }
+ case TYP_DBNEXTSETFLD:
+ {
+ SwDBNextSetFieldType* pTyp = (SwDBNextSetFieldType*)pSh->GetFldType(
+ 0, RES_DBNEXTSETFLD);
+ pFld = new SwDBNextSetField(pTyp, sPar1, rPar2, sDBName);
+ bExp = TRUE;
+ break;
+ }
+ case TYP_DBNUMSETFLD:
+ {
+ SwDBNumSetFieldType* pTyp = (SwDBNumSetFieldType*)pSh->GetFldType(
+ 0, RES_DBNUMSETFLD);
+ pFld = new SwDBNumSetField( pTyp, sPar1, rPar2, sDBName);
+ bExp = TRUE;
+ break;
+ }
+ case TYP_DBSETNUMBERFLD:
+ {
+ SwDBSetNumberFieldType* pTyp = (SwDBSetNumberFieldType*)
+ pSh->GetFldType(0, RES_DBSETNUMBERFLD);
+ pFld = new SwDBSetNumberField( pTyp, sDBName, nFormat);
+ bExp = TRUE;
+ break;
+ }
+ }
+ break;
+ }
+ case TYP_USERFLD:
+ {
+ SwUserFieldType* pTyp =
+ (SwUserFieldType*)pSh->GetFldType(RES_USERFLD, rPar1);
+
+ // nur wenn vorhanden
+ if(!pTyp)
+ {
+ pTyp = (SwUserFieldType*)pSh->InsertFldType(
+ SwUserFieldType(pSh->GetDoc(), rPar1));
+ }
+ if (pTyp->GetContent(nFormat) != rPar2)
+ pTyp->SetContent(rPar2, nFormat);
+ pFld = new SwUserField(pTyp, 0, nFormat);
+ if (pFld->GetSubType() != nSubType)
+ pFld->SetSubType(nSubType);
+ bTbl = TRUE;
+ break;
+ }
+ case TYP_INPUTFLD:
+ {
+ if ((nSubType & 0x00ff) == INP_VAR)
+ {
+ SwSetExpFieldType* pTyp = (SwSetExpFieldType*)
+ pSh->GetFldType(RES_SETEXPFLD, rPar1);
+
+ // kein Experssion Type mit dem Namen vorhanden -> anlegen
+ if(pTyp)
+ {
+ SwSetExpField* pExpFld =
+ new SwSetExpField(pTyp, aEmptyStr, nFormat);
+
+ // Typ vom SwSetExpFieldType nicht veraendern:
+ USHORT nOldSubType = pExpFld->GetSubType();
+ pExpFld->SetSubType(nOldSubType | (nSubType & 0xff00));
+
+ pExpFld->SetPromptText(rPar2);
+ pExpFld->SetInputFlag(TRUE) ;
+ bExp = TRUE;
+ pFld = pExpFld;
+ }
+ else
+ return FALSE;
+ }
+ else
+ {
+ SwInputFieldType* pTyp =
+ (SwInputFieldType*)pSh->GetFldType(0, RES_INPUTFLD);
+
+ SwInputField* pInpFld =
+ new SwInputField(pTyp, rPar1, rPar2, nSubType|SUB_INVISIBLE, nFormat);
+ pFld = pInpFld;
+ }
+
+ // Dialog starten
+ //
+ pSh->StartInputFldDlg(pFld, FALSE);
+ break;
+ }
+ case TYP_SETFLD:
+ {
+ if (!rPar2.Len()) // Leere Variablen sind nicht erlaubt
+ return FALSE;
+
+ SwSetExpFieldType* pTyp = (SwSetExpFieldType*)pSh->InsertFldType(
+ SwSetExpFieldType(pSh->GetDoc(), rPar1) );
+
+ SwSetExpField* pExpFld = new SwSetExpField( pTyp, rPar2, nFormat);
+ pExpFld->SetSubType(nSubType);
+ pExpFld->SetPar2(rPar2);
+ bExp = TRUE;
+ pFld = pExpFld;
+ break;
+ }
+ case TYP_SEQFLD:
+ {
+ SwSetExpFieldType* pTyp = (SwSetExpFieldType*)pSh->InsertFldType(
+ SwSetExpFieldType(pSh->GetDoc(), rPar1, GSE_SEQ));
+
+ BYTE nLevel = nSubType & 0xff;
+
+ pTyp->SetOutlineLvl(nLevel);
+ if (nLevel != 0x7f && cSeparator == 0)
+ cSeparator = '.';
+
+ pTyp->SetDelimiter(cSeparator);
+ SwSetExpField* pExpFld = new SwSetExpField(pTyp, rPar2, nFormat);
+ bExp = TRUE;
+ pFld = pExpFld;
+ nSubType = GSE_SEQ;
+ break;
+ }
+ case TYP_GETFLD:
+ {
+ // gibt es ein entprechendes SetField
+ SwSetExpFieldType* pSetTyp = (SwSetExpFieldType*)
+ pSh->GetFldType(RES_SETEXPFLD, rPar1);
+
+ if(pSetTyp)
+ {
+ SwGetExpFieldType* pTyp = (SwGetExpFieldType*)pSh->GetFldType(
+ 0, RES_GETEXPFLD);
+ pFld = new SwGetExpField(pTyp, rPar1, pSetTyp->GetType(), nFormat);
+ pFld->SetSubType(nSubType | pSetTyp->GetType());
+ bExp = TRUE;
+ }
+ else
+ return FALSE;
+ break;
+ }
+ case TYP_FORMELFLD:
+ {
+ if(pSh->GetFrmType(0,FALSE) & FRMTYPE_TABLE)
+ {
+ pSh->StartAllAction();
+
+ SvNumberFormatter* pFormatter = pSh->GetDoc()->GetNumberFormatter();
+ const SvNumberformat* pEntry = pFormatter->GetEntry(nFormat);
+
+ if (pEntry)
+ {
+ SfxStringItem aFormat(FN_NUMBER_FORMAT, pEntry->GetFormatstring());
+ pSh->GetView().GetViewFrame()->GetDispatcher()->
+ Execute(FN_NUMBER_FORMAT, SFX_CALLMODE_SYNCHRON, &aFormat, 0L);
+ }
+
+ SfxItemSet aBoxSet( pSh->GetAttrPool(),
+ RES_BOXATR_FORMULA, RES_BOXATR_FORMULA );
+
+ String sFml( rPar2 );
+ if( sFml.EraseLeadingChars().Len() &&
+ '=' == sFml.GetChar( 0 ) )
+ sFml.Erase( 0, 1 );
+
+ aBoxSet.Put( SwTblBoxFormula( sFml ));
+ pSh->SetTblBoxFormulaAttrs( aBoxSet );
+ pSh->UpdateTable();
+
+ pSh->EndAllAction();
+ return TRUE;
+
+/* // In der Tabelle Tabellenformeln einfuegen
+ SwTblFieldType* pTyp = (SwTblFieldType*)pSh->GetFldType(
+ 0, RES_TABLEFLD);
+ pFld = new SwTblField(pTyp, rPar2, GSE_EXPR, nFormat);
+ bTbl = TRUE;*/
+ }
+ else
+ {
+ SwGetExpFieldType* pTyp = (SwGetExpFieldType*)
+ pSh->GetFldType(0, RES_GETEXPFLD);
+ pFld = new SwGetExpField(pTyp, rPar2, GSE_FORMULA, nFormat);
+ pFld->SetSubType(nSubType);
+ bExp = TRUE;
+ }
+ break;
+ }
+ case TYP_SETREFPAGEFLD:
+ pFld = new SwRefPageSetField( (SwRefPageSetFieldType*)
+ pSh->GetFldType( 0, RES_REFPAGESETFLD ),
+ rPar2.ToInt32(), 0 != nSubType );
+ bPageVar = TRUE;
+ break;
+
+ case TYP_GETREFPAGEFLD:
+ pFld = new SwRefPageGetField( (SwRefPageGetFieldType*)
+ pSh->GetFldType( 0, RES_REFPAGEGETFLD ), nFormat );
+ bPageVar = TRUE;
+ break;
+
+ default:
+ { ASSERT(!this, "Falscher Feldtyp");
+ return FALSE;
+ }
+ }
+ ASSERT(pFld, "Feld nicht vorhanden");
+
+ USHORT nLang = GetCurrLanguage();
+
+ // Language
+ pFld->SetLanguage(nLang);
+
+ // Einfuegen
+ pSh->StartAllAction();
+
+ pSh->Insert(*pFld);
+
+ if(bExp && bEvalExp)
+ pSh->UpdateExpFlds(TRUE);
+
+ if(bTbl)
+ {
+ pSh->Left();
+ pSh->UpdateFlds(*pFld);
+ pSh->Right();
+ }
+ else if( bPageVar )
+ ((SwRefPageGetFieldType*)pSh->GetFldType( 0, RES_REFPAGEGETFLD ))->UpdateFlds();
+ else if( TYP_GETREFFLD == nType )
+ pFld->GetTyp()->Modify( 0, 0 );
+
+ // temporaeres Feld loeschen
+ delete pFld;
+
+ pSh->EndAllAction();
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Felder Update
+ --------------------------------------------------------------------*/
+
+
+void SwFldMgr::UpdateCurFld(ULONG nFormat,
+ const String& rPar1,
+ const String& rPar2)
+{
+ // Format aendern
+ ASSERT(pCurFld, "kein Feld an der CursorPos");
+
+ SwFieldType* pType = pCurFld->GetTyp();
+ const USHORT nTypeId = pCurFld->GetTypeId();
+
+ SwWrtShell &rSh = pWrtShell ? *pWrtShell : *::lcl_GetShell();
+ rSh.StartAllAction();
+
+ BOOL bSetPar2 = TRUE;
+ String sPar1( rPar1 );
+ String sPar2( rPar2 );
+
+ // Order to Format
+ switch( nTypeId )
+ {
+ case TYP_DDEFLD:
+ {
+ //JP 28.08.95: DDE-Topics/-Items koennen Blanks in ihren
+ // Namen haben! Wird hier noch nicht beachtet.
+ USHORT nTmpPos = sPar2.SearchAndReplace( ' ', cTokenSeperator );
+ sPar2.SearchAndReplace( ' ', cTokenSeperator, nTmpPos );
+ break;
+ }
+
+ case TYP_CHAPTERFLD:
+ {
+ USHORT nByte = rPar2.ToInt32();
+ nByte = Max(USHORT(1), nByte);
+ nByte = Min(nByte, USHORT(MAXLEVEL));
+ nByte -= 1;
+ ((SwChapterField*)pCurFld)->SetLevel((BYTE)nByte);
+ bSetPar2 = FALSE;
+ break;
+ }
+
+ case TYP_SCRIPTFLD:
+ ((SwScriptField*)pCurFld)->SetCodeURL((BOOL)nFormat);
+ break;
+
+ case TYP_NEXTPAGEFLD:
+ if( SVX_NUM_CHAR_SPECIAL == nFormat )
+ {
+ ((SwPageNumberField*)pCurFld)->SetUserString( sPar2 );
+ sPar2 = 1;
+ }
+ else
+ {
+ if( nFormat + 2 == SVX_NUM_PAGEDESC )
+ nFormat = SVX_NUM_PAGEDESC;
+ short nOff = sPar2.ToInt32();
+ nOff += 1;
+ sPar2 = nOff;
+ }
+ break;
+
+ case TYP_PREVPAGEFLD:
+ if( SVX_NUM_CHAR_SPECIAL == nFormat )
+ {
+ ((SwPageNumberField*)pCurFld)->SetUserString( sPar2 );
+ sPar2 = -1;
+ }
+ else
+ {
+ if( nFormat + 2 == SVX_NUM_PAGEDESC )
+ nFormat = SVX_NUM_PAGEDESC;
+ short nOff = sPar2.ToInt32();
+ nOff -= 1;
+ sPar2 = nOff;
+ }
+ break;
+
+ case TYP_PAGENUMBERFLD:
+ case TYP_GETREFPAGEFLD:
+ if( nFormat + 2 == SVX_NUM_PAGEDESC )
+ nFormat = SVX_NUM_PAGEDESC;
+ break;
+
+ case TYP_GETREFFLD:
+ {
+ bSetPar2 = FALSE;
+ ((SwGetRefField*)pCurFld)->SetSubType( rPar2.ToInt32() );
+ USHORT nPos = rPar2.Search( '|' );
+ if( STRING_NOTFOUND != nPos )
+ ((SwGetRefField*)pCurFld)->SetSeqNo( rPar2.Copy( nPos + 1 ).ToInt32());
+ }
+ break;
+ }
+
+ // Format setzen
+ // Format wegen NumberFormatter vor SetPar2 einstellen!
+ pCurFld->ChangeFormat(nFormat);
+
+ pCurFld->SetPar1( sPar1 );
+ if( bSetPar2 )
+ pCurFld->SetPar2( sPar2 );
+
+ // Update anschmeissen
+ if(nTypeId == TYP_DDEFLD ||
+ nTypeId == TYP_USERFLD ||
+ nTypeId == TYP_USRINPFLD)
+ {
+ pType->UpdateFlds();
+ rSh.SetModified();
+ }
+ else
+ rSh.SwEditShell::UpdateFlds(*pCurFld);
+
+ rSh.EndAllAction();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Setzen / Erfragen Werte von Benutzerfeldern aus BASIC
+------------------------------------------------------------------------*/
+
+
+BOOL SwFldMgr::SetFieldValue(const String &rFieldName,
+ const String &rValue)
+{
+ SwWrtShell* pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+ SwUserFieldType* pType = (SwUserFieldType*)pWrtShell->InsertFldType(
+ SwUserFieldType( pSh->GetDoc(), rFieldName ));
+
+ if(pType)
+ pType->SetContent(rValue);
+ return 0 != pType;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Wert Datenbankfeld erfragen
+------------------------------------------------------------------------*/
+
+
+String SwFldMgr::GetDataBaseFieldValue(const String &rDBName, const String &rFieldName, SwWrtShell* pSh)
+{
+ String sFieldName(rFieldName);
+
+ if (rDBName.Len())
+ sFieldName = rDBName;
+ else
+ sFieldName = pSh->GetDBName();
+ sFieldName += DB_DELIM;
+ sFieldName += rFieldName;
+
+ SwFieldList aLst(pWrtShell ? pWrtShell : ::lcl_GetShell());
+
+ aLst.InsertFields(RES_DBFLD, &sFieldName);
+ SwField* pFld = aLst.GetLastField();
+
+ if(!pFld)
+ pFld = aLst.GetNextField();
+
+ if(pFld)
+ return pFld->Expand();
+
+ return aEmptyStr;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Ist das Datenbankfeld numerisch?
+ Anm: Im Fehlerfall wird TRUE returnt.
+ --------------------------------------------------------------------*/
+
+#ifdef REPLACE_OFADBMGR
+BOOL SwFldMgr::IsDBNumeric(const String& rDBName, const String& rTblQryName,
+ BOOL bIsTable, const String& rFldName)
+{
+ BOOL bNumeric = TRUE;
+ if(!GetDBContext().is() || !xDBContext->hasByName(rDBName))
+ return bNumeric;
+ Any aDBSource = xDBContext->getByName(rDBName);
+ Reference<XDataSource>* pxSource = (Reference<XDataSource>*)aDBSource.getValue();
+ Reference<XConnection> xConnection;
+ try
+ {
+ OUString sDummy;
+ xConnection = (*pxSource)->getConnection(sDummy, sDummy);
+ }
+ catch(...) {}
+ Reference<XColumnsSupplier> xColsSupplier;
+
+ if(bIsTable)
+ {
+ Reference<XTablesSupplier> xTSupplier = Reference<XTablesSupplier>(xConnection, UNO_QUERY);
+ if(xTSupplier.is())
+ {
+ Reference<XNameAccess> xTbls = xTSupplier->getTables();
+ DBG_ASSERT(xTbls->hasByName(rTblQryName), "table not available anymore?")
+ try
+ {
+ Any aTable = xTbls->getByName(rTblQryName);
+ Reference<XPropertySet> xPropSet = *(Reference<XPropertySet>*)aTable.getValue();
+ xColsSupplier = Reference<XColumnsSupplier>(xPropSet, UNO_QUERY);
+ }
+ catch(...){}
+ }
+ }
+ else
+ {
+ Reference<XQueriesSupplier> xQSupplier = Reference<XQueriesSupplier>(xConnection, UNO_QUERY);
+ if(xQSupplier.is())
+ {
+ Reference<XNameAccess> xQueries = xQSupplier->getQueries();
+ DBG_ASSERT(xQueries->hasByName(rTblQryName), "table not available anymore?")
+ try
+ {
+ Any aQuery = xQueries->getByName(rTblQryName);
+ Reference<XPropertySet> xPropSet = *(Reference<XPropertySet>*)aQuery.getValue();
+ xColsSupplier = Reference<XColumnsSupplier>(xPropSet, UNO_QUERY);
+ }
+ catch(...){}
+ }
+ }
+
+ if(xColsSupplier.is())
+ {
+ Reference <XNameAccess> xCols = xColsSupplier->getColumns();
+ if(xCols.is() && xCols->hasByName(rFldName))
+ {
+ Any aCol = xCols->getByName(rFldName);
+ Reference <XPropertySet> xCol = *(Reference <XPropertySet>*)aCol.getValue();
+ Any aType = xCol->getPropertyValue(C2S("Type"));
+ sal_Int32 eDataType;
+ aType >>= eDataType;
+ switch(eDataType)
+ {
+ case DataType::BIT:
+ case DataType::TINYINT:
+ case DataType::SMALLINT:
+ case DataType::INTEGER:
+ case DataType::BIGINT:
+ case DataType::FLOAT:
+ case DataType::REAL:
+ case DataType::DOUBLE:
+ case DataType::NUMERIC:
+ case DataType::DECIMAL:
+ case DataType::DATE:
+ case DataType::TIME:
+ case DataType::TIMESTAMP:
+ break;
+
+ case DataType::BINARY:
+ case DataType::VARBINARY:
+ case DataType::LONGVARBINARY:
+ case DataType::SQLNULL:
+ case DataType::OTHER:
+ case DataType::OBJECT:
+ case DataType::DISTINCT:
+ case DataType::STRUCT:
+ case DataType::ARRAY:
+ case DataType::BLOB:
+ case DataType::CLOB:
+ case DataType::REF:
+ case DataType::CHAR:
+ case DataType::VARCHAR:
+ case DataType::LONGVARCHAR:
+ default:
+ bNumeric = FALSE;
+ }
+ }
+ }
+ return bNumeric;
+}
+
+#else
+BOOL SwFldMgr::IsDBNumeric(const String& rDBName, USHORT nCol)
+{
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+ String sDBName;
+ if (!rDBName.Len())
+ sDBName = pSh->GetDBDesc();
+ else
+ sDBName = rDBName;
+
+ SwNewDBMgr* pDBMgr = pSh->GetNewDBMgr();
+ BOOL bRet = TRUE;
+ if(nCol > 0 && pDBMgr->OpenDB(DBMGR_STD, sDBName, FALSE))
+ {
+ short nType = pDBMgr->GetColumnFormatType(DBMGR_STD, nCol);
+
+ switch (nType)
+ {
+ case dbCurrency:
+ case dbCounter:
+ case dbNumeric:
+ case dbDateTime:
+ case dbDate:
+ case dbTime:
+ case dbBool:
+ case dbDecimal:
+ case dbBigInt:
+ bRet = TRUE;
+ break;
+
+ default:
+ bRet = FALSE;
+ break;
+ }
+ }
+ return bRet;
+}
+
+BOOL SwFldMgr::IsDBNumeric(const String& rDBName, const String& rFldName)
+{
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+ SwNewDBMgr* pDBMgr = pSh->GetNewDBMgr();
+
+ String sDBName;
+ if (!rDBName.Len())
+ sDBName = pSh->GetDBDesc();
+ else
+ sDBName = rDBName;
+
+ if( pDBMgr->OpenDB(DBMGR_STD, sDBName, FALSE))
+ {
+ int nCol = pDBMgr->GetColumnPos(DBMGR_STD, rFldName);
+ if (nCol > 0)
+ return IsDBNumeric(rDBName, nCol);
+ }
+ return TRUE;
+}
+#endif
+
+/*--------------------------------------------------------------------
+ Beschreibung: ExpressionFields explizit evaluieren
+ --------------------------------------------------------------------*/
+
+
+void SwFldMgr::EvalExpFlds(SwWrtShell* pSh)
+{
+ if (pSh == NULL)
+ pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+
+ if(pSh)
+ {
+ pSh->StartAllAction();
+ pSh->UpdateExpFlds(TRUE);
+ pSh->EndAllAction();
+ }
+}
+
+
+USHORT SwFldMgr::GetCurrLanguage() const
+{
+ SwWrtShell* pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+ if(pSh)
+ {
+ SfxItemSet aSet( pSh->GetAttrPool(), RES_CHRATR_LANGUAGE, RES_CHRATR_LANGUAGE);
+ pSh->GetAttr(aSet);
+ return ((const SvxLanguageItem&)aSet.Get( RES_CHRATR_LANGUAGE ) ).GetLanguage();
+ }
+
+ LanguageType eCurLanguage = GetpApp()->GetAppInternational().GetLanguage();
+
+ return (USHORT)eCurLanguage;
+}
+
+
+void SwFieldType::_GetFldName()
+{
+ static const USHORT coFldCnt = STR_TYPE_END - STR_TYPE_BEGIN;
+
+ static USHORT __READONLY_DATA coFldNms[ coFldCnt ] = {
+ FLD_DATE_STD,
+ FLD_TIME_STD,
+ STR_FILENAMEFLD,
+ STR_DBNAMEFLD,
+ STR_CHAPTERFLD,
+ STR_PAGENUMBERFLD,
+ STR_DOCSTATFLD,
+ STR_AUTHORFLD,
+ STR_SETFLD,
+ STR_GETFLD,
+ STR_FORMELFLD,
+ STR_HIDDENTXTFLD,
+ STR_SETREFFLD,
+ STR_GETREFFLD,
+ STR_DDEFLD,
+ STR_MACROFLD,
+ STR_INPUTFLD,
+ STR_HIDDENPARAFLD,
+ STR_DOCINFOFLD,
+ STR_DBFLD,
+ STR_USERFLD,
+ STR_POSTITFLD,
+ STR_TEMPLNAMEFLD,
+ STR_SEQFLD,
+ STR_DBNEXTSETFLD,
+ STR_DBNUMSETFLD,
+ STR_DBSETNUMBERFLD,
+ STR_CONDTXTFLD,
+ STR_NEXTPAGEFLD,
+ STR_PREVPAGEFLD,
+ STR_EXTUSERFLD,
+ FLD_DATE_FIX,
+ FLD_TIME_FIX,
+ STR_SETINPUTFLD,
+ STR_USRINPUTFLD,
+ STR_SETREFPAGEFLD,
+ STR_GETREFPAGEFLD,
+ STR_INTERNETFLD,
+ STR_JUMPEDITFLD,
+ STR_SCRIPTFLD,
+ STR_AUTHORITY
+ };
+
+ // Infos fuer Felder einfuegen
+ SwFieldType::pFldNames = new SvStringsDtor( (BYTE)coFldCnt, 2 );
+ for( USHORT nIdx = 0; nIdx < coFldCnt; ++nIdx )
+ {
+ String* pTmp = new SW_RESSTR( coFldNms[ nIdx ] );
+ pTmp->EraseAllChars('~');
+ SwFieldType::pFldNames->Insert(pTmp, nIdx );
+ }
+}
+
+
+BOOL SwFldMgr::SetUserSubType(const String& rName, USHORT nType)
+{
+ BOOL bRet = FALSE;
+ SwUserFieldType *pType =
+ (SwUserFieldType *) (pWrtShell ?
+ pWrtShell->GetFldType(RES_USERFLD, rName) :
+ ::lcl_GetShell()->GetFldType(RES_USERFLD, rName));
+
+ if(pType)
+ {
+ pType->SetType(nType);
+ bRet = TRUE;
+ }
+ return bRet;
+}
+
+BOOL SwFldMgr::InsertURL( const String& rName,
+ const String& rVal,
+ const String& rFrame,
+ const SvxMacroItem* pItem)
+{
+ sCurFrame = rFrame;
+ pMacroItem = pItem;
+ BOOL bRet = InsertFld(TYP_INTERNETFLD, 0, rName, rVal, 0);
+ sCurFrame = aEmptyStr;
+ pMacroItem = 0;
+ return bRet;
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL SwFldMgr::ChooseMacro(const String &rSelMacro)
+{
+ String sSelMacro(rSelMacro);
+ SfxApplication* pSfxApp = SFX_APP();
+
+ if (sSelMacro.GetToken(0) == pSfxApp->GetName())
+ { // Malte arbeitet (faelschlicherweise) in ChooseMacro mit
+ // GetTitle statt GetName, daher diese Konvertierung:
+ sSelMacro.SetToken( 0, ';', Application::GetAppName());
+ }
+ else
+ {
+ SwWrtShell *pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+ if (pSh)
+ {
+ SwDocShell* pDocSh = pSh->GetView().GetDocShell();
+
+ if (sSelMacro.GetToken(0) == pDocSh->GetName())
+ { // Malte arbeitet (faelschlicherweise) in ChooseMacro mit
+ // GetTitle statt GetName, daher diese Konvertierung:
+ sSelMacro.SetToken( 0, ';', pDocSh->GetTitle( SFX_TITLE_FILENAME ));
+ }
+ }
+ }
+ SbMethod* pMethod = BasicIDE::ChooseMacro(FALSE, TRUE, sSelMacro);
+ BOOL bRet = FALSE;
+
+ if (pMethod)
+ {
+ SbModule* pModule = pMethod->GetModule();
+ SbxObject* pObject = pModule->GetParent();
+
+ SetMacroModule(pModule);
+
+ ASSERT(pObject->IsA(TYPE(StarBASIC)), "Kein Basic gefunden!");
+
+ String sMacro(pMethod->GetName());
+ sMacro += '.';
+ sMacro += pModule->GetName();
+ sMacro += '.';
+ sMacro += pObject->GetName();
+ sMacro += '.';
+
+ StarBASIC* pLib = (StarBASIC*)pObject;
+ pSfxApp->EnterBasicCall();
+ BOOL bFound = FALSE;
+ BasicManager* pBasicMgr = pSfxApp->GetBasicManager();
+ SfxObjectShell* pDocShell = 0;
+ while ( !bFound && pBasicMgr )
+ {
+ USHORT nLibs = pBasicMgr->GetLibCount();
+ for ( USHORT nLib = 0; nLib < nLibs; nLib++ )
+ {
+ StarBASIC* pL = pBasicMgr->GetLib( nLib );
+ if ( pL == pLib )
+ {
+ bFound = TRUE;
+ break;
+ }
+ }
+ if(!bFound)
+ {
+ if ( pDocShell )
+ pDocShell = SfxObjectShell::GetNext( *pDocShell );
+ else
+ pDocShell = SfxObjectShell::GetFirst();
+ }
+
+ pBasicMgr = ( pDocShell ? pDocShell->GetBasicManager() : 0 );
+ }
+ pSfxApp->LeaveBasicCall();
+ if(pDocShell)
+ sMacro += pDocShell->GetName();
+ else
+ sMacro += pSfxApp->GetName();
+
+
+ SetMacroPath(sMacro);
+ bRet = TRUE;
+ }
+
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+ULONG SwFldMgr::GetDefaultFormat(USHORT nTypeId, BOOL bIsText, SvNumberFormatter* pFormatter, double* pVal)
+{
+ double fValue;
+ short nDefFormat;
+
+ switch (nTypeId)
+ {
+ case TYP_TIMEFLD:
+ case TYP_DATEFLD:
+ {
+ Date aDate;
+ Date* pNullDate = pFormatter->GetNullDate();
+
+ fValue = aDate - *pNullDate;
+
+ Time aTime;
+
+ ULONG nNumFmtTime = (ULONG)aTime.GetSec() + (ULONG)aTime.GetMin() * 60L +
+ (ULONG)aTime.GetHour() * 3600L;
+
+ fValue += (double)nNumFmtTime / 86400.0;
+
+ nDefFormat = (nTypeId == TYP_DATEFLD) ? NUMBERFORMAT_DATE : NUMBERFORMAT_TIME;
+ }
+ break;
+
+ default:
+ if (bIsText)
+ {
+ fValue = 0.0;
+ nDefFormat = NUMBERFORMAT_TEXT;
+ }
+ else
+ {
+ fValue = 0.0;
+ nDefFormat = NUMBERFORMAT_ALL;
+ }
+ break;
+ }
+
+ if (pVal)
+ *pVal = fValue;
+
+ return pFormatter->GetStandardFormat(nDefFormat, GetCurrLanguage());
+}
+#ifdef REPLACE_OFADBMGR
+/* -----------------------------23.06.00 17:32--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Reference<XNameAccess> SwFldMgr::GetDBContext()
+{
+ if(!xDBContext.is())
+ {
+ Reference< XMultiServiceFactory > xMgr( ::utl::getProcessServiceFactory() );
+ if( xMgr.is() )
+ {
+ Reference<XInterface> xInstance = xMgr->createInstance( C2U( "com.sun.star.sdb.DatabaseContext" ));
+ xDBContext = Reference<XNameAccess>(xInstance, UNO_QUERY) ;
+ }
+ DBG_ASSERT(xDBContext.is(), "com.sun.star.sdb.DataBaseContext: service not available")
+ }
+ return xDBContext;
+}
+#endif
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.285 2000/09/18 16:05:29 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.284 2000/09/07 15:59:23 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.283 2000/09/04 11:43:16 tbe
+ basicide, isetbrw, si, vcdlged moved from svx to basctl
+
+ Revision 1.282 2000/08/15 19:53:15 jp
+ Bug #76817#: DDE-Field - use the correct format Id's
+
+ Revision 1.281 2000/07/18 12:50:08 os
+ replace ofadbmgr
+
+ Revision 1.280 2000/06/30 08:52:52 os
+ #76541# string assertions removed
+
+ Revision 1.279 2000/06/26 13:36:00 os
+ new DataBase API
+
+ Revision 1.278 2000/05/26 07:21:29 os
+ old SW Basic API Slots removed
+
+ Revision 1.277 2000/04/18 15:17:32 os
+ UNICODE
+
+ Revision 1.276 2000/02/11 14:46:35 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.275 1999/10/21 10:50:48 os
+ SwAuthorityFieldType has SwDoc* member
+
+ Revision 1.274 1999/10/11 09:00:11 os
+ AuthorityField(Type):Import/Export interfaces
+
+ Revision 1.273 1999/09/20 09:46:33 os
+ second param at SwAuthorityField
+
+ Revision 1.272 1999/09/15 14:04:02 os
+ AuthorityField(-Type), RES_AUTHORITY
+
+ Revision 1.271 1999/01/12 20:16:08 JP
+ Bug #60431#: Datenbank Numberformate ggfs. ins Doc uebertragen
+
+
+ Rev 1.270 12 Jan 1999 21:16:08 JP
+ Bug #60431#: Datenbank Numberformate ggfs. ins Doc uebertragen
+
+ Rev 1.269 27 Nov 1998 14:52:16 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.268 17 Nov 1998 10:50:38 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.267 04 Nov 1998 12:11:08 OM
+ #58851# Fixe Dateinamenfelder bearbeiten
+
+ Rev 1.266 16 Oct 1998 12:55:46 OM
+ #57970# Zahlenformat Seitenvorlage fuer Statistikfeld
+
+ Rev 1.265 15 Oct 1998 16:02:50 OM
+ #57965# Variablennamen fuer Eingabefeld verwenden
+
+ Rev 1.264 15 Sep 1998 16:01:58 OM
+ #55149# In Dialogen Zahlenformat der Applikation verwenden
+
+ Rev 1.263 10 Aug 1998 16:40:00 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.262 24 Jul 1998 13:57:04 OM
+ #53246# Makros vorselektieren
+
+ Rev 1.261 07 Jul 1998 17:04:58 OM
+ #52283# Ueber alle DB-Feldbefehle navigieren
+
+ Rev 1.260 18 Jun 1998 11:16:42 OM
+ Kapitelebenen fuer Nummernkreise
+
+ Rev 1.259 20 May 1998 13:24:24 OM
+ Offset fuer DateTimeFields
+
+ Rev 1.258 15 Apr 1998 16:39:34 OM
+ #47244 SubType nich veraendern
+
+ Rev 1.257 26 Mar 1998 17:00:22 OM
+ Feldbefehl: Seitenanzahl im Html-Mode
+
+ Rev 1.256 26 Mar 1998 16:43:06 OM
+ Feldbefehl: Seitenanzahl im Html-Mode
+
+ Rev 1.255 06 Mar 1998 15:31:20 OM
+ Neue numerische Datenbankformate
+
+ Rev 1.254 13 Feb 1998 14:14:50 JP
+ UpdateFld: TYP_INETFLD gibt es nicht mehr!
+
+ Rev 1.253 27 Jan 1998 22:43:52 JP
+ GetNumDepend durch GetDepends ersetzt
+
+ Rev 1.252 13 Jan 1998 15:01:48 OM
+ Formula-Field wieder unterstuetzt
+
+ Rev 1.251 12 Jan 1998 17:10:20 OM
+ Formelfelder wieder erlauben
+
+ Rev 1.250 12 Jan 1998 12:42:58 OM
+ Nummernkreise nicht doppelt anlegen
+
+ Rev 1.249 06 Jan 1998 18:12:56 OM
+ Felbefehl-Dlg
+
+ Rev 1.248 19 Dec 1997 18:24:26 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.247 17 Dec 1997 15:23:36 OM
+ #46218# Korrekte Sprache besorgen
+
+ Rev 1.246 16 Dec 1997 17:01:42 OM
+ Feldbefehle bearbeiten
+
+ Rev 1.245 11 Dec 1997 16:58:02 OM
+ Feldumstellung
+
+ Rev 1.244 05 Dec 1997 13:16:38 OM
+ #45750# DDE-Field Delimiter fuer Basic wandeln
+
+ Rev 1.243 28 Nov 1997 19:50:38 MA
+ includes
+
+ Rev 1.242 27 Nov 1997 13:17:18 OM
+ Variablen-TP
+
+ Rev 1.241 25 Nov 1997 12:38:44 OM
+ Funktionen-TP
+
+ Rev 1.240 21 Nov 1997 17:19:44 OM
+ Feldbefehl-Umstellung: DocInfo
+
+ Rev 1.239 18 Nov 1997 14:33:14 OM
+ Sba-Umstellung 372
+
+ Rev 1.238 18 Nov 1997 10:33:12 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.237 14 Nov 1997 11:42:36 OM
+ Aufgeraeumt
+
+ Rev 1.236 30 Oct 1997 14:30:52 OM
+ Feldbefehl-Umstellung
+
+ Rev 1.235 15 Oct 1997 11:57:24 OM
+ Feldumstellung
+
+ Rev 1.234 13 Oct 1997 11:43:16 OM
+ Feldumstellung
+
+ Rev 1.233 09 Oct 1997 16:13:44 OM
+ Feldumstellung
+
+ Rev 1.232 07 Oct 1997 10:51:26 OM
+ Feldumstellung
+
+ Rev 1.231 06 Oct 1997 15:40:44 OM
+ Feldumstellung
+
+ Rev 1.230 02 Oct 1997 15:21:44 OM
+ Feldumstellung
+
+ Rev 1.229 24 Sep 1997 15:18:56 OM
+ Feldumstellung
+
+ Rev 1.228 18 Sep 1997 14:34:02 OM
+ Feldumstellung
+
+ Rev 1.227 02 Sep 1997 09:55:56 OM
+ SDB-Headeranpassung
+
+ Rev 1.226 01 Sep 1997 13:12:40 OS
+ DLL-Umstellung
+
+ Rev 1.225 25 Aug 1997 11:54:20 OS
+ 368-Changes SBA
+
+ Rev 1.224 15 Aug 1997 12:11:24 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.223 09 Aug 1997 13:17:38 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.222 05 Aug 1997 12:38:24 MH
+ chg: header
+
+ Rev 1.221 09 Jul 1997 17:33:24 HJS
+ includes
+
+ Rev 1.220 29 May 1997 16:16:00 OM
+ URL in ScriptDialog eingeben
+
+ Rev 1.219 29 Apr 1997 16:10:22 OM
+ Unsichtbare Benutzerfelder
+
+ Rev 1.218 28 Apr 1997 16:31:04 JP
+ SetFldValue: immer einen FldTypen anlegen.
+
+ Rev 1.217 08 Apr 1997 10:32:42 MA
+ includes
+
+ Rev 1.216 04 Apr 1997 10:32:28 OM
+ Datenbanken nach Gebrauch wieder schliessen
+
+ Rev 1.215 14 Mar 1997 14:07:22 OM
+ #37666# GPF beim Bearbeiten alter 3.x DB-Feldbefehlen behoben
+
+ Rev 1.214 11 Mar 1997 13:15:12 OM
+ Datenbank beim Feldeinfuegen am Dok setzen
+
+ Rev 1.213 26 Feb 1997 02:22:20 OM
+ #37068# Feldbefhel-Dlg GPF gefixt
+
+ Rev 1.212 25 Feb 1997 20:04:10 OM
+ GPF in Feldbefehlen behoben
+
+ Rev 1.211 24 Feb 1997 20:29:30 OM
+ Offset-Fehler behoben
+
+ Rev 1.210 23 Feb 1997 21:14:42 OM
+ Aufgeraeumt
+
+ Rev 1.209 23 Feb 1997 15:05:54 OS
+ SetFieldValue liefert BOOL
+
+ Rev 1.208 22 Feb 1997 21:22:58 OM
+ Aufgeraeumt
+
+ Rev 1.207 22 Feb 1997 16:43:14 OM
+ Basic-Umstellung: OpenColumn
+
+ Rev 1.206 17 Feb 1997 10:39:18 OM
+ Neue Feldbefehle im Webmode
+
+ Rev 1.205 16 Feb 1997 10:48:20 OM
+ DBMGR an Ofa verschoben
+
+ Rev 1.204 13 Feb 1997 17:37:42 OM
+ Neu: javaedit
+
+ Rev 1.203 11 Feb 1997 16:52:04 OM
+ Eingabefeld ueber Basic ohne Dialog einfuegen
+
+ Rev 1.202 09 Feb 1997 16:34:06 OM
+ Variable setzen: html_on/off
+
+ Rev 1.201 07 Feb 1997 17:19:50 OM
+ Web-Mode fuer Feldbefehle-Dlg
+
+ Rev 1.200 07 Feb 1997 11:34:14 OM
+ Web-Mode fuer FeldbefehlDlg
+
+ Rev 1.199 05 Feb 1997 09:35:56 OM
+ Verschiebung in den Bereichen behoben
+
+ Rev 1.198 03 Feb 1997 17:08:58 OM
+ InsertURL aus Feldbefehl-Dlg entfernt
+
+ Rev 1.197 29 Jan 1997 13:14:18 MA
+ unbenutzes entfernt
+
+ Rev 1.196 17 Dec 1996 15:37:46 OM
+ Macrofelder editieren
+
+ Rev 1.195 11 Dec 1996 10:21:04 MA
+ Warnings
+
+ Rev 1.194 26 Nov 1996 20:39:32 JP
+ RefFelder werden jetzt mit&nach den ExpFeldern aktualisiert
+
+ Rev 1.193 13 Nov 1996 15:00:58 JP
+ neuer FeldTyp fuer Scripts (z.B. JavaScript)
+
+ Rev 1.192 11 Nov 1996 09:55:52 MA
+ ResMgr
+
+ Rev 1.191 08 Nov 1996 14:55:58 JP
+ ueberfluessiges Include entfernt
+
+ Rev 1.190 07 Nov 1996 15:46:56 JP
+ Bug #33084#: Referenzen nach einfuegen updaten
+
+ Rev 1.189 05 Nov 1996 22:45:06 JP
+ UpdateCurFld..() entfernt - ueberflussig; UpdateFld: GetRefFld sonderbehandelt
+
+ Rev 1.188 05 Nov 1996 15:32:42 JP
+ Umstellungen fuer neue Referenz-Seite
+
+ Rev 1.187 01 Nov 1996 03:55:46 MH
+ add: includes
+
+ Rev 1.186 24 Oct 1996 13:36:20 JP
+ String Umstellung: [] -> GetChar()
+
+ Rev 1.185 25 Sep 1996 14:11:48 OM
+ Neue Datenbanktrenner
+
+ Rev 1.184 19 Sep 1996 14:32:30 OM
+ Datenbank Basicanbindung
+
+ Rev 1.183 02 Sep 1996 18:43:00 JP
+ INetFeld entfernt
+
+ Rev 1.182 30 Aug 1996 12:45:42 OS
+ UpdateGlosPath kann Blockliste aktualisieren
+
+ Rev 1.181 28 Aug 1996 12:11:14 OS
+ includes
+
+ Rev 1.180 21 Aug 1996 13:08:52 OS
+ Manager gfs. mit wrtshell konstruieren
+
+ Rev 1.179 20 Aug 1996 17:22:18 JP
+ Bug #30489#: Mehrfachselektion bei SetRef-Feldern abklemmen
+
+ Rev 1.178 16 Aug 1996 11:27:56 OM
+ Dokinfo aufgegliedert
+
+ Rev 1.177 15 Aug 1996 09:56:44 AMA
+ Fix: Macros am INetFmt setzen.
+
+ Rev 1.176 12 Aug 1996 10:50:04 AMA
+ Chg: SwFmtINetFmt jetzt mit TargetFrame im CTor.
+
+ Rev 1.175 08 Aug 1996 15:33:34 AMA
+ New: Benutze InsertURL (als Textattribut) an der EditShell
+
+ Rev 1.174 05 Aug 1996 15:18:24 OM
+ Datenbankumstellung
+
+ Rev 1.173 25 Jul 1996 16:41:54 OM
+ Umstellung auf Tabellen
+
+ Rev 1.172 23 Jul 1996 14:29:40 JP
+ PageNext/-Prev: mit Offset; InsertField: nach Left auch wieder ein Right rufen
+
+ Rev 1.171 10 Jul 1996 17:47:56 OM
+ LocalizeDBName in Expfld verschoben
+
+
+*************************************************************************/
+
diff --git a/sw/source/ui/fldui/fldpage.cxx b/sw/source/ui/fldui/fldpage.cxx
new file mode 100644
index 000000000000..9af15462a85d
--- /dev/null
+++ b/sw/source/ui/fldui/fldpage.cxx
@@ -0,0 +1,544 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldpage.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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 _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+
+#ifndef _DBFLD_HXX //autogen
+#include <dbfld.hxx>
+#endif
+#ifndef _FLDDAT_HXX
+#include <flddat.hxx>
+#endif
+#ifndef _FMTFLD_HXX //autogen
+#include <fmtfld.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _FLDEDT_HXX
+#include <fldedt.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _EXPFLD_HXX
+#include <expfld.hxx>
+#endif
+#ifndef _FLDTDLG_HXX
+#include <fldtdlg.hxx>
+#endif
+#ifndef _FLDPAGE_HXX
+#include <fldpage.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldPage::SwFldPage(Window *pParent, const ResId &rId, const SfxItemSet &rAttrSet ) :
+ SfxTabPage (pParent, rId, rAttrSet),
+ nPageId (rId.GetId()),
+ bFldDlgHtmlMode (FALSE),
+ nFldDlgAktGrpSel(0),
+ nTypeSel (LISTBOX_ENTRY_NOTFOUND),
+ nSelectionSel (LISTBOX_ENTRY_NOTFOUND),
+ bFldEdit (FALSE),
+ pCurFld (0),
+ bInsert (TRUE),
+ bRefresh (FALSE)
+{
+// FreeResource();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldPage::~SwFldPage()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldPage::GetGroup()
+{
+ ASSERT (0, "GetGroup not implemented!");
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: TabPage initialisieren
+ --------------------------------------------------------------------*/
+
+void SwFldPage::Init()
+{
+ SwDocShell* pDocSh = (SwDocShell*)SfxObjectShell::Current();
+ BOOL bNewMode = (::GetHtmlMode(pDocSh) & HTMLMODE_ON) != 0;
+
+ bFldEdit = GetTabDialog() == 0;
+ pCurFld = aMgr.GetCurFld();
+
+ nFldDlgAktGrpSel = GetGroup();
+
+ if (bNewMode != bFldDlgHtmlMode)
+ {
+ bFldDlgHtmlMode = bNewMode;
+
+ // Bereichslistbox initialisieren
+ if (bFldDlgHtmlMode)
+ {
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+
+ (SwSetExpFieldType*)pSh->InsertFldType(SwSetExpFieldType(pDocSh->GetDoc(),
+ String::CreateFromAscii("HTML_ON"), 1));
+ (SwSetExpFieldType*)pSh->InsertFldType(SwSetExpFieldType(pDocSh->GetDoc(),
+ String::CreateFromAscii("HTML_OFF"), 1));
+ }
+ }
+
+ aMgr.GetCurFld(); // FieldManager neu initialisieren
+ // wichtig fuer Dok-Wechsel (fldtdlg:ReInitTabPage)
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Seite neu initialisieren
+ --------------------------------------------------------------------*/
+
+void SwFldPage::ActivatePage()
+{
+ EnableInsert(bInsert);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Kompletter Reset; neues Feld editieren
+ --------------------------------------------------------------------*/
+
+void SwFldPage::EditNewField()
+{
+ nFldDlgAktGrpSel = 0;
+ nTypeSel = LISTBOX_ENTRY_NOTFOUND;
+ nSelectionSel = LISTBOX_ENTRY_NOTFOUND;
+ bRefresh = TRUE;
+ Reset(*(SfxItemSet*)0);
+ bRefresh = FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Feld einfuegen
+ --------------------------------------------------------------------*/
+
+BOOL SwFldPage::InsertFld(USHORT nTypeId, USHORT nSubType, const String& rPar1,
+ const String& rPar2, ULONG nFormatId, sal_Unicode cSeparator)
+{
+ BOOL bRet = FALSE;
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+
+ if (!IsFldEdit()) // Neues Feld einfuegen
+ {
+ bRet = aMgr.InsertFld( nTypeId, nSubType, rPar1, rPar2, nFormatId, 0, cSeparator );
+
+ }
+ else // Feld aendern
+ {
+ String sPar1(rPar1);
+ String sPar2(rPar2);
+ BOOL bDBChanged = FALSE;
+
+ switch( nTypeId )
+ {
+ case TYP_DATEFLD:
+ case TYP_TIMEFLD:
+ nSubType = ((nTypeId == TYP_DATEFLD) ? DATEFLD : TIMEFLD) |
+ ((nSubType == DATE_VAR) ? 0 : FIXEDFLD);
+ break;
+
+ case TYP_DBNAMEFLD:
+ case TYP_DBNEXTSETFLD:
+ case TYP_DBNUMSETFLD:
+ case TYP_DBSETNUMBERFLD:
+ {
+ USHORT nPos, nTablePos, nExpPos;
+ String sDBName;
+
+ // DBName aus rPar1 extrahieren. Format: DBName.TableName.ExpStrg
+ if ((nTablePos = rPar1.Search(DB_DELIM)) != STRING_NOTFOUND)
+ sDBName = rPar1.Copy(0, nTablePos++);
+ if ((nExpPos = rPar1.Search(DB_DELIM, nTablePos)) != STRING_NOTFOUND)
+ {
+ sDBName += DB_DELIM;
+ sDBName += rPar1.Copy(nTablePos, nExpPos++ - nTablePos);
+ }
+ if (nExpPos != STRING_NOTFOUND)
+ nPos = nExpPos;
+ else if (nTablePos != STRING_NOTFOUND)
+ nPos = nTablePos;
+ else
+ nPos = 0;
+ sPar1 = rPar1.Copy(nPos);
+
+ ((SwDBNameInfField*)pCurFld)->SetDBName(sDBName);
+ bDBChanged = TRUE;
+ }
+ break;
+
+ case TYP_DBFLD:
+ {
+ String sDBName = rPar1.GetToken(0, DB_DELIM);
+ sDBName += DB_DELIM;
+ sDBName += rPar1.GetToken(1, DB_DELIM);
+ String sColumn = rPar1.GetToken(2, DB_DELIM);
+
+ SwDBFieldType* pOldTyp = (SwDBFieldType*)pCurFld->GetTyp();
+ SwDBFieldType* pTyp = (SwDBFieldType*)pSh->InsertFldType(
+ SwDBFieldType(pSh->GetDoc(), sColumn, sDBName));
+
+ SwClientIter aIter( *pOldTyp );
+
+ for( SwFmtFld* pFmtFld = (SwFmtFld*)aIter.First( TYPE(SwFmtFld) );
+ pFmtFld; pFmtFld = (SwFmtFld*)aIter.Next() )
+ {
+ if( pFmtFld->GetFld() == pCurFld)
+ {
+ pTyp->Add(pFmtFld); // Feld auf neuen Typ umhaengen
+ pCurFld->ChgTyp(pTyp);
+ break;
+ }
+ }
+ bDBChanged = TRUE;
+ }
+ break;
+
+ case TYP_SEQFLD:
+ {
+ SwSetExpFieldType* pTyp = (SwSetExpFieldType*)pCurFld->GetTyp();
+ pTyp->SetOutlineLvl(nSubType & 0xff);
+ pTyp->SetDelimiter((char)((nSubType & 0xff00) >> 8));
+
+ nSubType = GSE_SEQ;
+ }
+ break;
+
+ case TYP_INPUTFLD:
+ {
+ // User- oder SetField ?
+ if (aMgr.GetFldType(RES_USERFLD, sPar1) == 0 &&
+ !(pCurFld->GetSubType() & INP_TXT)) // SETEXPFLD
+ {
+ SwSetExpField* pFld = (SwSetExpField*)pCurFld;
+ pFld->SetPromptText(sPar2);
+ sPar2 = pFld->GetPar2();
+ }
+ }
+ break;
+ }
+
+ pSh->StartAllAction();
+
+ pCurFld->SetSubType(nSubType);
+
+ aMgr.UpdateCurFld( nFormatId, sPar1, sPar2 );
+
+ switch (nTypeId)
+ {
+ case TYP_HIDDENTXTFLD:
+ case TYP_HIDDENPARAFLD:
+ aMgr.EvalExpFlds(pSh);
+ break;
+ }
+
+ if (bDBChanged) // Datenbank geaendert
+ {
+ switch(nTypeId)
+ {
+ case TYP_DBFLD:
+ ((SwDBField*)pCurFld)->ClearInitialized();
+ ((SwDBField*)pCurFld)->InitContent();
+ case TYP_DBNAMEFLD:
+ case TYP_DBNEXTSETFLD:
+ case TYP_DBNUMSETFLD:
+ case TYP_DBSETNUMBERFLD:
+ pCurFld->GetTyp()->UpdateFlds();
+ break;
+ }
+ }
+
+ pSh->SetUndoNoResetModified();
+ pSh->EndAllAction();
+ }
+
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldPage::SavePos(ListBox* pLst1, ListBox* pLst2, ListBox* pLst3)
+{
+ if (pLst1 && pLst1->GetEntryCount())
+ sLst1 = pLst1->GetSelectEntry();
+ else
+ sLst1.Erase();
+
+ if (pLst2 && pLst2->GetEntryCount())
+ sLst2 = pLst2->GetSelectEntry();
+ else
+ sLst2.Erase();
+
+ if (pLst3 && pLst3->GetEntryCount())
+ sLst3 = pLst3->GetSelectEntry();
+ else
+ sLst3.Erase();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldPage::RestorePos(ListBox* pLst1, ListBox* pLst2, ListBox* pLst3)
+{
+ USHORT nPos = 0;
+
+ if (pLst1 && pLst1->GetEntryCount() && sLst1.Len() && (nPos = pLst1->GetEntryPos(sLst1)) != LISTBOX_ENTRY_NOTFOUND)
+ pLst1->SelectEntryPos(nPos);
+ if (pLst2 && pLst2->GetEntryCount() && sLst1.Len() && (nPos = pLst2->GetEntryPos(sLst1)) != LISTBOX_ENTRY_NOTFOUND)
+ pLst2->SelectEntryPos(nPos);
+ if (pLst3 && pLst3->GetEntryCount() && sLst1.Len() && (nPos = pLst3->GetEntryPos(sLst1)) != LISTBOX_ENTRY_NOTFOUND)
+ pLst3->SelectEntryPos(nPos);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Einfuegen von neuen Feldern
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldPage, InsertHdl, Button *, pBtn )
+{
+ SwFldDlg *pDlg = (SwFldDlg*)GetTabDialog();
+
+ if (pDlg)
+ {
+ pDlg->InsertHdl();
+
+ if (pBtn)
+ pBtn->GrabFocus(); // Wegen InputField-Dlg
+ }
+ else
+ {
+ SwFldEditDlg *pEditDlg = (SwFldEditDlg *)GetParent();
+ pEditDlg->InsertHdl();
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: "Einfuegen"-Button Enablen/Disablen
+ --------------------------------------------------------------------*/
+
+void SwFldPage::EnableInsert(BOOL bEnable)
+{
+ SwFldDlg *pDlg = (SwFldDlg*)GetTabDialog();
+
+ if (pDlg)
+ {
+ if (pDlg->GetCurPageId() == nPageId)
+ pDlg->EnableInsert(bEnable);
+ }
+ else
+ {
+ SwFldEditDlg *pEditDlg = (SwFldEditDlg *)GetParent();
+ pEditDlg->EnableInsert(bEnable);
+ }
+
+ bInsert = bEnable;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldPage, NumFormatHdl, ListBox *, pLst )
+{
+ InsertHdl();
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.25 2000/09/18 16:05:29 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.24 2000/06/30 08:52:53 os
+ #76541# string assertions removed
+
+ Revision 1.23 2000/05/10 11:55:13 os
+ Basic API removed
+
+ Revision 1.22 2000/04/18 15:17:32 os
+ UNICODE
+
+ Revision 1.21 2000/02/11 14:46:39 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.20 1999/01/20 13:16:52 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+
+ Rev 1.19 20 Jan 1999 14:16:52 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.18 29 Oct 1998 14:08:32 OM
+ #58544# Butzerfeld: richtigen Inhalt anzeigen
+
+ Rev 1.17 15 Oct 1998 16:02:52 OM
+ #57965# Variablennamen fuer Eingabefeld verwenden
+
+ Rev 1.16 18 Jun 1998 11:16:44 OM
+ Kapitelebenen fuer Nummernkreise
+
+ Rev 1.15 27 Mar 1998 16:26:18 OM
+ #48007# UpdateExpFlds bei Aenderung von HiddenText und HiddenParaField
+
+ Rev 1.14 18 Mar 1998 10:33:56 OM
+ #48197# Focus restaurieren nach InputDlg
+
+ Rev 1.13 06 Mar 1998 14:54:24 OM
+ Nur bei Aenderung Feld aktualisieren
+
+ Rev 1.12 08 Jan 1998 13:36:20 OM
+ Feldbefehl-Traveling
+
+ Rev 1.11 08 Jan 1998 10:19:04 OM
+ Referenzen editieren
+
+ Rev 1.10 06 Jan 1998 18:13:34 OM
+ Felbefehl-Dlg
+
+ Rev 1.9 19 Dec 1997 18:25:00 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.8 16 Dec 1997 17:01:44 OM
+ Feldbefehle bearbeiten
+
+ Rev 1.7 12 Dec 1997 16:10:08 OM
+ AutoUpdate bei FocusWechsel u.a.
+
+ Rev 1.6 11 Dec 1997 16:58:50 OM
+ Feldumstellung
+
+ Rev 1.5 09 Dec 1997 17:16:46 OM
+ Kein alter Feldbefehl-Dialog mehr
+
+ Rev 1.4 28 Nov 1997 19:51:32 MA
+ includes
+
+ Rev 1.3 20 Nov 1997 17:02:04 OM
+ Neuer Felddialog
+
+ Rev 1.2 19 Nov 1997 16:30:42 OM
+ Datenbank-TP Drag&Drop
+
+ Rev 1.1 18 Nov 1997 10:34:36 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.0 17 Nov 1997 09:07:00 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/fldui/fldpage.hxx b/sw/source/ui/fldui/fldpage.hxx
new file mode 100644
index 000000000000..a2cfc89e6c6d
--- /dev/null
+++ b/sw/source/ui/fldui/fldpage.hxx
@@ -0,0 +1,134 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldpage.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWFLDPAGE_HXX
+#define _SWFLDPAGE_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#include "fldmgr.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwFldPage : public SfxTabPage
+{
+ USHORT nFldDlgAktGrpSel;
+ String sLst1;
+ String sLst2;
+ String sLst3;
+ USHORT nPageId;
+ BOOL bFldEdit;
+ BOOL bInsert;
+
+ SwFldMgr aMgr;
+ USHORT nTypeSel;
+ USHORT nSelectionSel;
+ BOOL bFldDlgHtmlMode;
+ BOOL bRefresh;
+ SwField *pCurFld;
+
+protected:
+
+ USHORT GetTypeSel() {return nTypeSel;}
+ void SetTypeSel(USHORT nSet) {nTypeSel = nSet;}
+ USHORT GetSelectionSel() {return nSelectionSel;}
+ void SetSelectionSel(USHORT nSet) {nSelectionSel = nSet;}
+ BOOL IsFldDlgHtmlMode() {return bFldDlgHtmlMode;}
+ BOOL IsRefresh() { return bRefresh;}
+ SwField* GetCurField() {return pCurFld;}
+
+ DECL_LINK( InsertHdl, Button *pBtn = 0 );
+ DECL_LINK( NumFormatHdl, ListBox *pBtn = 0 );
+
+ void Init();
+ void SavePos(ListBox* pLst1, ListBox* pLst2 = 0, ListBox* pLst3 = 0);
+ void RestorePos(ListBox* pLst1, ListBox* pLst2 = 0, ListBox* pLst3 = 0);
+ void EnableInsert(BOOL bEnable = TRUE);
+ inline BOOL IsFldEdit() const { return bFldEdit; }
+
+ // Feld einfuegen
+ BOOL InsertFld( USHORT nTypeId,
+ USHORT nSubType,
+ const String& rPar1,
+ const String& rPar2,
+ ULONG nFormatId,
+ sal_Unicode cDelim = ' ');
+
+public:
+ SwFldPage( Window *pParent,
+ const ResId &rId,
+ const SfxItemSet &rAttrSet );
+
+ ~SwFldPage();
+
+ virtual void ActivatePage();
+
+ inline SwFldMgr& GetFldMgr() { return aMgr; }
+ void EditNewField();
+ virtual USHORT GetGroup() = 0;
+};
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/fldref.cxx b/sw/source/ui/fldui/fldref.cxx
new file mode 100644
index 000000000000..acc266285ef0
--- /dev/null
+++ b/sw/source/ui/fldui/fldref.cxx
@@ -0,0 +1,908 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldref.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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"
+
+#ifndef _SWVIEW_HXX //autogen
+#include <view.hxx>
+#endif
+#ifndef _BOOKMRK_HXX //autogen
+#include <bookmrk.hxx>
+#endif
+#ifndef _EXPFLD_HXX //autogen
+#include <expfld.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _FLDREF_HXX
+#include <fldref.hxx>
+#endif
+#ifndef _REFFLD_HXX
+#include <reffld.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _FLDTDLG_HRC
+#include <fldtdlg.hrc>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+
+#define REFFLDFLAG 0x4000
+#define REFFLDFLAG_BOOKMARK 0x4800
+#define REFFLDFLAG_FOOTNOTE 0x5000
+#define REFFLDFLAG_ENDNOTE 0x6000
+
+USHORT nFldDlgFmtSel = 0;
+
+#define USER_DATA_VERSION_1 "1"
+#define USER_DATA_VERSION USER_DATA_VERSION_1
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldRefPage::SwFldRefPage(Window* pParent, const SfxItemSet& rCoreSet ) :
+ SwFldPage( pParent, SW_RES( TP_FLD_REF ), rCoreSet ),
+
+ aTypeFT (this, SW_RES(FT_REFTYPE)),
+ aTypeLB (this, SW_RES(LB_REFTYPE)),
+ aSelectionFT (this, SW_RES(FT_REFSELECTION)),
+ aSelectionLB (this, SW_RES(LB_REFSELECTION)),
+ aFormatFT (this, SW_RES(FT_REFFORMAT)),
+ aFormatLB (this, SW_RES(LB_REFFORMAT)),
+ aNameFT (this, SW_RES(FT_REFNAME)),
+ aNameED (this, SW_RES(ED_REFNAME)),
+ aValueFT (this, SW_RES(FT_REFVALUE)),
+ aValueED (this, SW_RES(ED_REFVALUE)),
+
+ sBookmarkTxt (SW_RES(STR_REFBOOKMARK)),
+ sFootnoteTxt (SW_RES(STR_REFFOOTNOTE)),
+ sEndnoteTxt (SW_RES(STR_REFENDNOTE))
+{
+ FreeResource();
+
+ aNameED.SetModifyHdl(LINK(this, SwFldRefPage, ModifyHdl));
+
+// SwWrtShell* pSh = (SwWrtShell*)ViewShell::GetCurrShell();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldRefPage::~SwFldRefPage()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldRefPage::Reset(const SfxItemSet& )
+{
+ if (!IsFldEdit())
+ SavePos(&aTypeLB);
+ SetSelectionSel(LISTBOX_ENTRY_NOTFOUND);
+ SetTypeSel(LISTBOX_ENTRY_NOTFOUND);
+ Init(); // Allgemeine initialisierung
+
+ // TypeListBox initialisieren
+ aTypeLB.SetUpdateMode(FALSE);
+ aTypeLB.Clear();
+
+ // Typ-Listbox fuellen
+
+ // mit den Sequence-Typen auffuellen
+ SwView *pView = ::GetActiveView();
+ ASSERT(pView, View fehlt);
+ SwWrtShell &rSh = pView->GetWrtShell();
+ USHORT nPos;
+
+ USHORT nFldTypeCnt = rSh.GetFldTypeCount(RES_SETEXPFLD);
+
+ for (USHORT n = 0; n < nFldTypeCnt; ++n)
+ {
+ SwSetExpFieldType* pType = (SwSetExpFieldType*)rSh.GetFldType(n, RES_SETEXPFLD);
+
+ if ((GSE_SEQ & pType->GetType()) && pType->GetDepends() && rSh.IsUsed(*pType))
+ {
+ nPos = aTypeLB.InsertEntry(pType->GetName());
+ aTypeLB.SetEntryData(nPos, (void*)(REFFLDFLAG | n));
+ }
+ }
+
+ // Textmarken - jetzt immer (wegen Globaldokumenten)
+ nFldTypeCnt = rSh.GetBookmarkCnt(TRUE);
+ nPos = aTypeLB.InsertEntry(sBookmarkTxt);
+ aTypeLB.SetEntryData(nPos, (void*)REFFLDFLAG_BOOKMARK);
+
+ // Fussnoten:
+ if( rSh.HasFtns() )
+ {
+ nPos = aTypeLB.InsertEntry(sFootnoteTxt);
+ aTypeLB.SetEntryData(nPos, (void*)REFFLDFLAG_FOOTNOTE);
+ }
+
+ // Endnoten:
+ if( rSh.HasFtns(TRUE) )
+ {
+ nPos = aTypeLB.InsertEntry(sEndnoteTxt);
+ aTypeLB.SetEntryData(nPos, (void*)REFFLDFLAG_ENDNOTE);
+ }
+
+ // Referenz setzen / einfuegen
+ const SwFldGroupRgn& rRg = GetFldMgr().GetGroupRange(IsFldDlgHtmlMode(), GetGroup());
+
+ for (short i = rRg.nStart; i < rRg.nEnd; ++i)
+ {
+ const USHORT nTypeId = GetFldMgr().GetTypeId(i);
+
+ if (!IsFldEdit() || nTypeId != TYP_SETREFFLD)
+ {
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(i), i - rRg.nStart);
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ }
+ }
+
+ // alte Pos selektieren
+ if (!IsFldEdit())
+ RestorePos(&aTypeLB);
+
+ aTypeLB.SetUpdateMode(TRUE);
+ aTypeLB.SetDoubleClickHdl (LINK(this, SwFldRefPage, InsertHdl));
+ aTypeLB.SetSelectHdl (LINK(this, SwFldRefPage, TypeHdl));
+ aSelectionLB.SetSelectHdl (LINK(this, SwFldRefPage, SubTypeHdl));
+ aSelectionLB.SetDoubleClickHdl (LINK(this, SwFldRefPage, InsertHdl));
+ aFormatLB.SetDoubleClickHdl (LINK(this, SwFldRefPage, InsertHdl));
+
+ nFldDlgFmtSel = 0;
+
+ if( !IsRefresh() )
+ {
+ String sUserData = GetUserData();
+ if(!IsRefresh() && sUserData.GetToken(0, ';').
+ EqualsIgnoreCaseAscii(USER_DATA_VERSION_1))
+ {
+ String sVal = sUserData.GetToken(1, ';');
+ USHORT nVal = sVal.ToInt32();
+ if(nVal != USHRT_MAX)
+ {
+ for(USHORT i = 0; i < aTypeLB.GetEntryCount(); i++)
+ if(nVal == (USHORT)(ULONG)aTypeLB.GetEntryData(i))
+ {
+ aTypeLB.SelectEntryPos(i);
+ break;
+ }
+ }
+ }
+ }
+ TypeHdl(0);
+
+ if (IsFldEdit())
+ {
+ aTypeLB.SaveValue();
+ aSelectionLB.SaveValue();
+ aFormatLB.SaveValue();
+ aNameED.SaveValue();
+ aValueED.SaveValue();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldRefPage, TypeHdl, ListBox *, pBox )
+{
+ // Alte ListBoxPos sichern
+ const USHORT nOld = GetTypeSel();
+
+ // Aktuelle ListBoxPos
+ SetTypeSel(aTypeLB.GetSelectEntryPos());
+
+ if(GetTypeSel() == LISTBOX_ENTRY_NOTFOUND)
+ {
+ if (IsFldEdit())
+ {
+ // Positionen selektieren
+ String sName;
+ USHORT nFlag = 0;
+
+ switch( GetCurField()->GetSubType() )
+ {
+ case REF_BOOKMARK:
+ sName = sBookmarkTxt;
+ nFlag = REFFLDFLAG_BOOKMARK;
+ break;
+
+ case REF_FOOTNOTE:
+ sName = sFootnoteTxt;
+ nFlag = REFFLDFLAG_FOOTNOTE;
+ break;
+
+ case REF_ENDNOTE:
+ sName = sEndnoteTxt;
+ nFlag = REFFLDFLAG_ENDNOTE;
+ break;
+
+ case REF_SETREFATTR:
+ sName = SW_RESSTR(STR_GETREFFLD);
+ nFlag = REF_SETREFATTR;
+ break;
+
+ case REF_SEQUENCEFLD:
+ sName = ((SwGetRefField*)GetCurField())->GetSetRefName();
+ nFlag = REFFLDFLAG;
+ break;
+ }
+
+ if (aTypeLB.GetEntryPos(sName) == LISTBOX_ENTRY_NOTFOUND) // Referenz zu gelschter Marke
+ {
+ USHORT nPos = aTypeLB.InsertEntry(sName);
+ aTypeLB.SetEntryData(nPos, (void*)nFlag);
+ }
+
+ aTypeLB.SelectEntry(sName);
+ SetTypeSel(aTypeLB.GetSelectEntryPos());
+ }
+ else
+ {
+ SetTypeSel(0);
+ aTypeLB.SelectEntryPos(0);
+ }
+ }
+
+ if (nOld != GetTypeSel())
+ {
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ // Auswahl-Listbox fuellen
+ UpdateSubType();
+
+ BOOL bName = FALSE;
+ nFldDlgFmtSel = 0;
+
+ if ((!IsFldEdit() || aSelectionLB.GetEntryCount()) && nOld != LISTBOX_ENTRY_NOTFOUND)
+ {
+ aNameED.SetText(aEmptyStr);
+ aValueED.SetText(aEmptyStr);
+ }
+
+ switch (nTypeId)
+ {
+ case TYP_GETREFFLD:
+ if (REFFLDFLAG & (USHORT)(ULONG)aTypeLB.GetEntryData(nOld))
+ // dann bleibt die alte bestehen
+ nFldDlgFmtSel = aFormatLB.GetSelectEntryPos();
+ bName = TRUE;
+ break;
+
+ case TYP_SETREFFLD:
+ bName = TRUE;
+ break;
+
+ case REFFLDFLAG_BOOKMARK:
+ bName = TRUE;
+ // kein break!!!
+ default:
+ if( REFFLDFLAG & nTypeId )
+ {
+ USHORT nOldId = (USHORT)(ULONG)aTypeLB.GetEntryData(nOld);
+ if( nOldId & REFFLDFLAG || nOldId == TYP_GETREFFLD )
+ // dann bleibt die alte bestehen
+ nFldDlgFmtSel = aFormatLB.GetSelectEntryPos();
+ }
+ break;
+ }
+
+ aNameED.Enable(bName);
+ aNameFT.Enable(bName);
+
+ // Format-Listbox fuellen
+ USHORT nSize = FillFormatLB(nTypeId);
+ BOOL bFormat = nSize != 0;
+ aFormatLB.Enable(bFormat);
+ aFormatFT.Enable(bFormat);
+
+ SubTypeHdl();
+ ModifyHdl();
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldRefPage, SubTypeHdl, ListBox *, pBox )
+{
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ switch(nTypeId)
+ {
+ case TYP_GETREFFLD:
+ if (!IsFldEdit() || aSelectionLB.GetSelectEntryCount())
+ {
+ aNameED.SetText(aSelectionLB.GetSelectEntry());
+ ModifyHdl(&aNameED);
+ }
+ break;
+
+ case TYP_SETREFFLD:
+ aValueED.SetText(::GetActiveView()->GetWrtShell().GetSelTxt());
+ break;
+
+ default:
+ if (!IsFldEdit() || aSelectionLB.GetSelectEntryCount())
+ aNameED.SetText(aSelectionLB.GetSelectEntry());
+ break;
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Typen in SelectionLB erneuern
+ --------------------------------------------------------------------*/
+
+void SwFldRefPage::UpdateSubType()
+{
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+ SwGetRefField* pRefFld = (SwGetRefField*)GetCurField();
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ String sOldSel;
+
+ USHORT nSelectionSel = aSelectionLB.GetSelectEntryPos();
+ if (nSelectionSel != LISTBOX_ENTRY_NOTFOUND)
+ sOldSel = aSelectionLB.GetEntry(nSelectionSel);
+
+ aSelectionLB.SetUpdateMode(FALSE);
+ aSelectionLB.Clear();
+
+ if (IsFldEdit() && !sOldSel.Len())
+ sOldSel = String::CreateFromInt32( pRefFld->GetSeqNo() + 1 );
+
+ if( REFFLDFLAG & nTypeId )
+ {
+ if (nTypeId == REFFLDFLAG_BOOKMARK) // TextMarken!
+ {
+ aSelectionLB.SetStyle(aSelectionLB.GetStyle()|WB_SORT);
+ // alle Textmarken besorgen
+ USHORT nCnt = pSh->GetBookmarkCnt(TRUE);
+ for( USHORT n = 0; n < nCnt; ++n )
+ {
+ const SwBookmark& rBkmk = pSh->GetBookmark( n, TRUE );
+ aSelectionLB.InsertEntry( rBkmk.GetName() );
+ }
+ if (IsFldEdit())
+ sOldSel = pRefFld->GetSetRefName();
+ }
+ else if (nTypeId == REFFLDFLAG_FOOTNOTE)
+ {
+ aSelectionLB.SetStyle(aSelectionLB.GetStyle() & ~WB_SORT);
+ SwSeqFldList aArr;
+ USHORT nCnt = pSh->GetSeqFtnList( aArr );
+ USHORT nFnd = 0;
+
+ for( USHORT n = 0; n < nCnt; ++n )
+ {
+ aSelectionLB.InsertEntry( aArr[ n ]->sDlgEntry );
+ if (IsFldEdit() && pRefFld->GetSeqNo() == aArr[ n ]->nSeqNo)
+ sOldSel = aArr[n]->sDlgEntry;
+ }
+ }
+ else if (nTypeId == REFFLDFLAG_ENDNOTE)
+ {
+ aSelectionLB.SetStyle(aSelectionLB.GetStyle() & ~WB_SORT);
+ SwSeqFldList aArr;
+ USHORT nCnt = pSh->GetSeqFtnList( aArr, TRUE );
+ USHORT nFnd = 0;
+
+ for( USHORT n = 0; n < nCnt; ++n )
+ {
+ aSelectionLB.InsertEntry( aArr[ n ]->sDlgEntry );
+ if (IsFldEdit() && pRefFld->GetSeqNo() == aArr[ n ]->nSeqNo)
+ sOldSel = aArr[n]->sDlgEntry;
+ }
+ }
+ else
+ {
+ aSelectionLB.SetStyle(aSelectionLB.GetStyle()|WB_SORT);
+ // zum Seq-FeldTyp die Felder besorgen:
+
+ SwSetExpFieldType* pType = (SwSetExpFieldType*)pSh->GetFldType(
+ nTypeId & ~REFFLDFLAG, RES_SETEXPFLD );
+ if( pType )
+ {
+ SwSeqFldList aArr;
+ sOldSel.Erase();
+
+ USHORT nCnt = pType->GetSeqFldList( aArr );
+ for( USHORT n = 0; n < nCnt; ++n )
+ {
+ aSelectionLB.InsertEntry( aArr[ n ]->sDlgEntry );
+ if (IsFldEdit() && !sOldSel.Len() &&
+ aArr[ n ]->nSeqNo == pRefFld->GetSeqNo())
+ sOldSel = aArr[ n ]->sDlgEntry;
+ }
+
+ if (IsFldEdit() && !sOldSel.Len())
+ sOldSel = String::CreateFromInt32( pRefFld->GetSeqNo() + 1);
+ }
+ }
+ }
+ else
+ {
+ SvStringsDtor& rLst = GetFldMgr().GetSubTypes(nTypeId);
+ for (USHORT i = 0; i < rLst.Count(); ++i)
+ aSelectionLB.InsertEntry(*rLst[i]);
+
+ if (IsFldEdit())
+ sOldSel = pRefFld->GetSetRefName();
+ }
+
+ aSelectionLB.SetUpdateMode(TRUE);
+
+ // Enable oder Disable
+ BOOL bEnable = aSelectionLB.GetEntryCount() != 0;
+ aSelectionLB.Enable( bEnable );
+ aSelectionFT.Enable( bEnable );
+
+ if ( bEnable )
+ {
+ aSelectionLB.SelectEntry(sOldSel);
+ if (!aSelectionLB.GetSelectEntryCount() && !IsFldEdit())
+ aSelectionLB.SelectEntryPos(0);
+ }
+
+ if (IsFldEdit() && !aSelectionLB.GetSelectEntryCount()) // Falls die Referenz schon geloescht wurde...
+ aNameED.SetText(sOldSel);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldRefPage::FillFormatLB(USHORT nTypeId)
+{
+ String sOldSel;
+
+ USHORT nFormatSel = aFormatLB.GetSelectEntryPos();
+ if (nFormatSel != LISTBOX_ENTRY_NOTFOUND)
+ sOldSel = aFormatLB.GetEntry(nFormatSel);
+
+ // Format-Listbox fuellen
+ aFormatLB.Clear();
+
+ // Referenz hat weniger als die Beschriftung
+ USHORT nSize;
+ switch (nTypeId)
+ {
+ case TYP_GETREFFLD:
+ case REFFLDFLAG_BOOKMARK:
+ case REFFLDFLAG_FOOTNOTE:
+ case REFFLDFLAG_ENDNOTE:
+ nSize = FMT_REF_PAGE_PGDSC - FMT_REF_BEGIN + 1;
+ break;
+
+ default:
+ nSize = GetFldMgr().GetFormatCount( (REFFLDFLAG & nTypeId)
+ ? TYP_GETREFFLD : nTypeId,
+ FALSE, IsFldDlgHtmlMode() );
+ break;
+ }
+
+ if (REFFLDFLAG & nTypeId)
+ nTypeId = TYP_GETREFFLD;
+
+ for (USHORT i = 0; i < nSize; i++)
+ {
+ USHORT nPos = aFormatLB.InsertEntry(GetFldMgr().GetFormatStr( nTypeId, i ));
+ aFormatLB.SetEntryData( nPos, (void*)GetFldMgr().GetFormatId( nTypeId, i ));
+ }
+
+ if (nSize)
+ {
+ if (!IsFldEdit())
+ aFormatLB.SelectEntry(sOldSel);
+ else
+ aFormatLB.SelectEntry(SW_RESSTR(FMT_REF_BEGIN + (USHORT)GetCurField()->GetFormat()));
+
+ if (!aFormatLB.GetSelectEntryCount())
+ {
+ aFormatLB.SelectEntryPos(nFldDlgFmtSel);
+ if (!aFormatLB.GetSelectEntryCount())
+ aFormatLB.SelectEntryPos(0);
+ }
+ }
+
+ return nSize;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Modify
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldRefPage, ModifyHdl, Edit *, EMPTYARG )
+{
+ String aName(aNameED.GetText());
+ const USHORT nLen = aName.Len();
+
+ BOOL bEnable = TRUE;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ if ((nTypeId == TYP_SETREFFLD && !GetFldMgr().CanInsertRefMark(aName)) ||
+ (nLen == 0 && (nTypeId == TYP_GETREFFLD || nTypeId == TYP_SETREFFLD ||
+ nTypeId == REFFLDFLAG_BOOKMARK)))
+ bEnable = FALSE;
+
+ EnableInsert(bEnable);
+
+ aSelectionLB.SelectEntry(aName);
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL SwFldRefPage::FillItemSet(SfxItemSet& )
+{
+ BOOL bPage = FALSE;
+ BOOL bModified = FALSE;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ USHORT nSubType = 0;
+ ULONG nFormat;
+
+ nFormat = aFormatLB.GetSelectEntryPos();
+
+ if(nFormat == LISTBOX_ENTRY_NOTFOUND)
+ nFormat = 0;
+ else
+ nFormat = (ULONG)aFormatLB.GetEntryData((USHORT)nFormat);
+
+ String aVal(aValueED.GetText());
+ String aName(aNameED.GetText());
+
+ switch(nTypeId)
+ {
+ case TYP_GETREFFLD:
+ // aName = aSelectionLB.GetSelectEntry();
+ nSubType = REF_SETREFATTR;
+ break;
+
+ case TYP_SETREFFLD:
+ {
+ SwFieldType* pType = GetFldMgr().GetFldType(RES_SETEXPFLD, aName);
+
+ if(!pType) // Nur einfuegen, wenn es den Namen noch nicht gibt
+ {
+ aSelectionLB.InsertEntry(aName);
+ aSelectionLB.Enable();
+ aSelectionFT.Enable();
+ }
+ break;
+ }
+ }
+
+ SwGetRefField* pRefFld = (SwGetRefField*)GetCurField();
+
+ if (REFFLDFLAG & nTypeId)
+ {
+ SwView *pView = ::GetActiveView();
+ ASSERT(pView, View fehlt);
+ SwWrtShell &rSh = pView->GetWrtShell();
+
+ if (nTypeId == REFFLDFLAG_BOOKMARK) // TextMarken!
+ {
+ aName = aNameED.GetText();
+ nTypeId = TYP_GETREFFLD;
+ nSubType = REF_BOOKMARK;
+ }
+ else if (REFFLDFLAG_FOOTNOTE == nTypeId) // Fussnoten
+ {
+ SwSeqFldList aArr;
+ _SeqFldLstElem aElem( aSelectionLB.GetSelectEntry(), 0 );
+
+ USHORT nPos;
+
+ nTypeId = TYP_GETREFFLD;
+ nSubType = REF_FOOTNOTE;
+ aName.Erase();
+
+ if (rSh.GetSeqFtnList(aArr) && aArr.SeekEntry(aElem, &nPos))
+ {
+ aVal = String::CreateFromInt32( aArr[nPos]->nSeqNo );
+
+ if (IsFldEdit() && COMPARE_EQUAL != aVal.CompareTo(pRefFld->GetSeqNo()))
+ bModified = TRUE; // Kann bei Feldern passieren, deren Referenz geloescht wurde
+ }
+ else if (IsFldEdit())
+ aVal = String::CreateFromInt32( pRefFld->GetSeqNo() );
+ }
+ else if (REFFLDFLAG_ENDNOTE == nTypeId) // Endnoten
+ {
+ SwSeqFldList aArr;
+ _SeqFldLstElem aElem( aSelectionLB.GetSelectEntry(), 0 );
+
+ USHORT nPos;
+
+ nTypeId = TYP_GETREFFLD;
+ nSubType = REF_ENDNOTE;
+ aName.Erase();
+
+ if (rSh.GetSeqFtnList(aArr, TRUE) && aArr.SeekEntry(aElem, &nPos))
+ {
+ aVal = String::CreateFromInt32( aArr[nPos]->nSeqNo );
+
+ if (IsFldEdit() && COMPARE_EQUAL != aVal.CompareTo(pRefFld->GetSeqNo()))
+ bModified = TRUE; // Kann bei Feldern passieren, deren Referenz geloescht wurde
+ }
+ else if (IsFldEdit())
+ aVal = String::CreateFromInt32( pRefFld->GetSeqNo() );
+ }
+ else // SeqenceFelder
+ {
+ // zum Seq-FeldTyp die Felder besorgen:
+ SwSetExpFieldType* pType = (SwSetExpFieldType*)rSh.GetFldType(
+ nTypeId & ~REFFLDFLAG, RES_SETEXPFLD );
+ if( pType )
+ {
+ SwSeqFldList aArr;
+ _SeqFldLstElem aElem( aSelectionLB.GetSelectEntry(), 0 );
+
+ USHORT nPos;
+
+ nTypeId = TYP_GETREFFLD;
+ nSubType = REF_SEQUENCEFLD;
+ aName = pType->GetName();
+
+ if (pType->GetSeqFldList(aArr) && aArr.SeekEntry(aElem, &nPos))
+ {
+ aVal = String::CreateFromInt32( aArr[nPos]->nSeqNo );
+
+ if (IsFldEdit() && COMPARE_EQUAL != aVal.CompareTo(pRefFld->GetSeqNo()))
+ bModified = TRUE; // Kann bei Feldern passieren, deren Referenz geloescht wurde
+ }
+ else if (IsFldEdit())
+ aVal = String::CreateFromInt32( pRefFld->GetSeqNo() );
+ }
+ }
+ }
+
+ if (IsFldEdit() && nTypeId == TYP_GETREFFLD)
+ {
+ aVal.Insert('|', 0);
+ aVal.Insert(String::CreateFromInt32(nSubType), 0);
+ }
+
+ if (!IsFldEdit() || bModified ||
+ aNameED.GetSavedValue() != aNameED.GetText() ||
+ aValueED.GetSavedValue() != aValueED.GetText() ||
+ aTypeLB.GetSavedValue() != aTypeLB.GetSelectEntryPos() ||
+ aSelectionLB.GetSavedValue() != aSelectionLB.GetSelectEntryPos() ||
+ aFormatLB.GetSavedValue() != aFormatLB.GetSelectEntryPos())
+ {
+ InsertFld( nTypeId, nSubType, aName, aVal, nFormat );
+ }
+
+ ModifyHdl(); // Insert ggf enablen/disablen
+
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxTabPage* SwFldRefPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return ( new SwFldRefPage( pParent, rAttrSet ) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldRefPage::GetGroup()
+{
+ return GRP_REF;
+}
+
+/* -----------------12.01.99 10:09-------------------
+ *
+ * --------------------------------------------------*/
+void SwFldRefPage::FillUserData()
+{
+ String sData( String::CreateFromAscii(
+ RTL_CONSTASCII_STRINGPARAM( USER_DATA_VERSION )));
+ sData += ';';
+ USHORT nTypeSel = aTypeLB.GetSelectEntryPos();
+ if( LISTBOX_ENTRY_NOTFOUND == nTypeSel )
+ nTypeSel = USHRT_MAX;
+ else
+ nTypeSel = (ULONG)aTypeLB.GetEntryData( nTypeSel );
+ sData += String::CreateFromInt32( nTypeSel );
+ SetUserData(sData);
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.32 2000/09/18 16:05:29 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.31 2000/08/31 10:07:13 os
+ #78315# CreateFromInt32
+
+ Revision 1.30 2000/07/20 08:10:52 jp
+ Unicode-Change-Error: call createfromint32
+
+ Revision 1.29 2000/06/30 08:52:53 os
+ #76541# string assertions removed
+
+ Revision 1.28 2000/06/19 14:06:07 os
+ #72953# call SubTypeHdl more often
+
+ Revision 1.27 2000/05/23 18:36:48 jp
+ Bugfixes for Unicode
+
+ Revision 1.26 2000/04/18 15:17:32 os
+ UNICODE
+
+ Revision 1.25 1999/09/28 11:10:35 os
+ #68076# call modify handler if a name is selected
+
+ Revision 1.24 1999/04/06 09:27:54 JP
+ Task #64320#: bei Referenz auf Nummernkreis auch die Nummer als Format anbieten
+
+
+ Rev 1.23 06 Apr 1999 11:27:54 JP
+ Task #64320#: bei Referenz auf Nummernkreis auch die Nummer als Format anbieten
+
+ Rev 1.22 25 Feb 1999 17:24:52 JP
+ Bug #62438#: UserData nur auswerten, wenn kein Refresh ist
+
+ Rev 1.21 21 Jan 1999 09:46:22 OS
+ #59900# Fussnoten im Dialog korrekt sortieren; keine prot. Member
+
+ Rev 1.20 20 Jan 1999 14:25:40 MIB
+ Keine leeren Refs auf Textmarken
+
+ Rev 1.19 12 Jan 1999 11:42:54 OS
+ #60579# ausgewaehlten Typ in den UserData speichern
+
+ Rev 1.18 10 Aug 1998 16:41:12 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.17 23 Jun 1998 14:43:10 OM
+ Referenzen und Textmarken mit beliebigem Namen einfuegen
+
+ Rev 1.16 22 Jun 1998 17:58:02 OM
+ Vorbereitung fuer eigenstaendige Referenzfelder
+
+ Rev 1.15 18 May 1998 15:21:34 OM
+ #50222 Korrekte Formate fuer Endnoten
+
+ Rev 1.14 27 Mar 1998 16:56:42 OM
+ Nur bei Aenderung Dok modifizieren
+
+ Rev 1.13 23 Feb 1998 07:26:36 OS
+ GetBookmark/ Cnt mit Bookmark-Flag
+
+ Rev 1.12 16 Feb 1998 10:10:22 OM
+ Fuer Solaris nicht direkt von void* auf ushort casten
+
+ Rev 1.11 30 Jan 1998 15:25:36 OM
+ Endnoten
+
+ Rev 1.10 27 Jan 1998 22:43:52 JP
+ GetNumDepend durch GetDepends ersetzt
+
+ Rev 1.9 09 Jan 1998 16:56:52 OM
+ Bei Dok-Wechsel updaten
+
+ Rev 1.8 08 Jan 1998 14:58:26 OM
+ Traveling
+
+ Rev 1.7 08 Jan 1998 10:19:04 OM
+ Referenzen editieren
+
+ Rev 1.6 07 Jan 1998 17:17:42 OM
+ Referenzen editieren
+
+ Rev 1.5 19 Dec 1997 18:24:26 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.4 12 Dec 1997 16:10:34 OM
+ AutoUpdate bei FocusWechsel u.a.
+
+ Rev 1.3 11 Dec 1997 16:58:50 OM
+ Feldumstellung
+
+ Rev 1.2 08 Dec 1997 12:32:22 MA
+ vorb. Endnoten
+
+ Rev 1.1 24 Nov 1997 14:40:24 OM
+ Referenz-TP
+
+ Rev 1.0 04 Nov 1997 10:07:20 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/fldui/fldref.hxx b/sw/source/ui/fldui/fldref.hxx
new file mode 100644
index 000000000000..9c50d0d29293
--- /dev/null
+++ b/sw/source/ui/fldui/fldref.hxx
@@ -0,0 +1,130 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldref.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWFLDREF_HXX
+#define _SWFLDREF_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#include "fldpage.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwFldRefPage : public SwFldPage
+{
+ FixedText aTypeFT;
+ ListBox aTypeLB;
+ FixedText aSelectionFT;
+ ListBox aSelectionLB;
+ FixedText aFormatFT;
+ ListBox aFormatLB;
+ FixedText aNameFT;
+ Edit aNameED;
+ FixedText aValueFT;
+ Edit aValueED;
+ String sBookmarkTxt;
+ String sFootnoteTxt;
+ String sEndnoteTxt;
+
+ DECL_LINK( TypeHdl, ListBox* pLB = 0 );
+ DECL_LINK( SubTypeHdl, ListBox* pLB = 0 );
+ DECL_LINK( ModifyHdl, Edit *pEd = 0 );
+
+ void UpdateSubType();
+ USHORT FillFormatLB(USHORT nTypeId);
+
+protected:
+ virtual USHORT GetGroup();
+
+public:
+ SwFldRefPage(Window* pParent, const SfxItemSet& rSet);
+
+ ~SwFldRefPage();
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ virtual void FillUserData();
+};
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/fldref.src b/sw/source/ui/fldui/fldref.src
new file mode 100644
index 000000000000..2763f4b209a2
--- /dev/null
+++ b/sw/source/ui/fldui/fldref.src
@@ -0,0 +1,352 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldref.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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 "globals.hrc"
+#include "fldtdlg.hrc"
+#include "helpid.h"
+TabPage TP_FLD_REF
+{
+ HelpID = HID_FLD_REF ;
+ SVLook = TRUE ;
+ Hide = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Text = "Referenzen" ;
+ Text [ ENGLISH ] = "References" ;
+ FixedText FT_REFTYPE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Feldtyp" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "~Tipo di campo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo de ~campo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Felttype" ;
+ Text [ french ] = "~Type de champ" ;
+ Text [ swedish ] = "~Flttyp" ;
+ Text [ dutch ] = "~Veldtype" ;
+ Text [ spanish ] = "~Tipo de campo" ;
+ Text [ english_us ] = "~Type" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ֶ(~T)";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Typ pola";
+ Text[ japanese ] = "̨ނ̎(~T)";
+ Text[ chinese_traditional ] = "(~T)";
+ Text[ arabic ] = " ";
+ Text[ greek ] = "~ ";
+ Text[ korean ] = "(~T)";
+ Text[ turkish ] = "~Alan tipi";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_REFTYPE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ // JP 05.11.96: darf nicht sortiert sein!
+ // Sort = FALSE;
+ AutoHScroll = TRUE ;
+ };
+ FixedText FT_REFSELECTION
+ {
+ Pos = MAP_APPFONT ( 88 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Auswahl" ;
+ Text [ ENGLISH ] = "Selection" ;
+ Text [ norwegian ] = "Selection" ;
+ Text [ italian ] = "~Selezione" ;
+ Text [ portuguese_brazilian ] = "Seleo" ;
+ Text [ portuguese ] = "~Seleco" ;
+ Text [ finnish ] = "Valinta" ;
+ Text [ danish ] = "Udvalg" ;
+ Text [ french ] = "~Slection" ;
+ Text [ swedish ] = "~Urval" ;
+ Text [ dutch ] = "~Selectie" ;
+ Text [ spanish ] = "Se~leccin" ;
+ Text [ english_us ] = "S~election" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ѡ(~E)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Wybr";
+ Text[ japanese ] = "I(~E)";
+ Text[ chinese_traditional ] = "(~E)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "~";
+ Text[ korean ] = "(~E)";
+ Text[ turkish ] = "S~eim";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_REFSELECTION
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ Sort = TRUE ;
+ };
+ FixedText FT_REFFORMAT
+ {
+ Pos = MAP_APPFONT ( 170 , 3 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ TEXT = "F~ormat" ;
+ TEXT [ English ] = "Format" ;
+ Left = TRUE ;
+ Text [ english_us ] = "F~ormat" ;
+ Text [ portuguese_brazilian ] = "F~ormat" ;
+ Text [ swedish ] = "F~ormat" ;
+ Text [ danish ] = "Format" ;
+ Text [ italian ] = "F~ormato" ;
+ Text [ spanish ] = "F~ormato" ;
+ Text [ french ] = "F~ormat" ;
+ Text [ dutch ] = "F~ormaat" ;
+ Text [ portuguese ] = "F~ormato" ;
+ Text[ chinese_simplified ] = "ʽ(~O)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "(~O)";
+ Text[ chinese_traditional ] = "榡(~O)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "~";
+ Text[ korean ] = "(~O)";
+ Text[ turkish ] = "F~ormat";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_REFFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 16 ) ;
+ Size = MAP_APPFONT ( 84 , 56 ) ;
+ TabStop = TRUE ;
+ DropDown = FALSE ;
+ // Sort = TRUE;
+ };
+ FixedText FT_REFNAME
+ {
+ Pos = MAP_APPFONT ( 170 , 78 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Text = "Na~me" ;
+ TEXT [ English ] = "Na~me" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Na~me" ;
+ Text [ portuguese_brazilian ] = "Na~me" ;
+ Text [ swedish ] = "Na~mn" ;
+ Text [ danish ] = "Navn" ;
+ Text [ italian ] = "No~me" ;
+ Text [ spanish ] = "No~mbre" ;
+ Text [ french ] = "~Nom" ;
+ Text [ dutch ] = "Naa~m" ;
+ Text [ portuguese ] = "No~me" ;
+ Text[ chinese_simplified ] = "(~M)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "O(~M)";
+ Text[ chinese_traditional ] = "W(~M)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "̸(~M)";
+ Text[ turkish ] = "~Ad";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_REFNAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 90 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText FT_REFVALUE
+ {
+ Pos = MAP_APPFONT ( 170 , 105 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Text = "~Wert" ;
+ Text [ ENGLISH ] = "Value" ;
+ Text [ norwegian ] = "Verdi" ;
+ Text [ italian ] = "~Valore" ;
+ Text [ portuguese_brazilian ] = "Valor" ;
+ Text [ portuguese ] = "Valor" ;
+ Text [ finnish ] = "Arvo" ;
+ Text [ danish ] = "Vrdi" ;
+ Text [ french ] = "~Valeur" ;
+ Text [ swedish ] = "~Vrde" ;
+ Text [ dutch ] = "~Waarde" ;
+ Text [ spanish ] = "~Valor" ;
+ Text [ english_us ] = "~Value" ;
+ Disable = TRUE ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ֵ(~V)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Warto";
+ Text[ japanese ] = "l(~V)";
+ Text[ chinese_traditional ] = "ƭ(~V)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "(~V)";
+ Text[ turkish ] = "~Deer";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_REFVALUE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 117 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ TabStop = TRUE ;
+ Disable = TRUE ;
+ Left = TRUE ;
+ };
+ String STR_REFBOOKMARK
+ {
+ TEXT = "Textmarken" ;
+ TEXT [ English ] = "Bookmarks" ;
+ Text [ dutch ] = "Tekstmarkeringen" ;
+ Text [ english_us ] = "Bookmarks" ;
+ Text [ italian ] = "Segnalibri di testo" ;
+ Text [ spanish ] = "Marcas de texto" ;
+ Text [ french ] = "Repres de texte" ;
+ Text [ swedish ] = "Bokmrken" ;
+ Text [ danish ] = "Tekstmarkeringer" ;
+ Text [ portuguese ] = "Marcadores de texto" ;
+ Text [ portuguese_brazilian ] = "Textmarken" ;
+ Text[ chinese_simplified ] = "ǩ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Zakadki";
+ Text[ japanese ] = "÷ϰ";
+ Text[ chinese_traditional ] = "";
+ Text[ arabic ] = " ";
+ Text[ greek ] = "";
+ Text[ korean ] = "å ";
+ Text[ turkish ] = "Metin iareti";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_REFFOOTNOTE
+ {
+ Text = "Funoten" ;
+ Text [ English ] = "Footnotes" ;
+ Text [ norwegian ] = "Fotnoter" ;
+ Text [ italian ] = "Note a pi pagina" ;
+ Text [ portuguese_brazilian ] = "Notas de rodap" ;
+ Text [ portuguese ] = "Notas de rodap" ;
+ Text [ finnish ] = "Alaviitteet" ;
+ Text [ danish ] = "Fodnoter" ;
+ Text [ french ] = "Notes de bas de page" ;
+ Text [ swedish ] = "Fotnoter" ;
+ Text [ dutch ] = "Voetnoten" ;
+ Text [ spanish ] = "Notas al pie" ;
+ Text [ english_us ] = "Footnotes" ;
+ Text[ chinese_simplified ] = "ע";
+ Text[ russian ] = "";
+ Text[ polish ] = "Przypisy dolne";
+ Text[ japanese ] = "r";
+ Text[ chinese_traditional ] = "}";
+ Text[ arabic ] = " ";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Dipnotlar";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_REFENDNOTE
+ {
+ Text = "Endnoten" ;
+ Text [ ENGLISH ] = "endnotes" ;
+ Text [ english_us ] = "Endnotes" ;
+ Text [ portuguese_brazilian ] = "Endnoten" ;
+ Text [ swedish ] = "Slutnoter" ;
+ Text [ danish ] = "Slutnote" ;
+ Text [ italian ] = "Note di chiusura" ;
+ Text [ spanish ] = "Notas finales" ;
+ Text [ french ] = "Notes de fin" ;
+ Text [ dutch ] = "Eindnoten" ;
+ Text [ portuguese ] = "Notas finais" ;
+ Text[ chinese_simplified ] = "βע";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Przypisy kocowe";
+ Text[ japanese ] = "r";
+ Text[ chinese_traditional ] = "`";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Son notlar";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "References" ;
+ Text [ portuguese_brazilian ] = "Referenzen" ;
+ Text [ swedish ] = "Referenser" ;
+ Text [ danish ] = "Referencer" ;
+ Text [ italian ] = "Riferimenti" ;
+ Text [ spanish ] = "Referencias" ;
+ Text [ french ] = "Rfrences" ;
+ Text [ dutch ] = "Verwijzingen" ;
+ Text [ portuguese ] = "Referncias" ;
+ Text[ chinese_simplified ] = "˵";
+ Text[ russian ] = "";
+ Text[ polish ] = "Odwoania";
+ Text[ japanese ] = "Q";
+ Text[ chinese_traditional ] = "ѷӤ";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Referans";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/fldtdlg.cxx b/sw/source/ui/fldui/fldtdlg.cxx
new file mode 100644
index 000000000000..1fbf87548f46
--- /dev/null
+++ b/sw/source/ui/fldui/fldtdlg.cxx
@@ -0,0 +1,567 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldtdlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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 _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _FLDWRAP_HXX
+#include <fldwrap.hxx>
+#endif
+#ifndef _FLDDB_HXX
+#include <flddb.hxx>
+#endif
+#ifndef _FLDDINF_HXX
+#include <flddinf.hxx>
+#endif
+#ifndef _FLDVAR_HXX
+#include <fldvar.hxx>
+#endif
+#ifndef _FLDDOK_HXX
+#include <flddok.hxx>
+#endif
+#ifndef _FLDFUNC_HXX
+#include <fldfunc.hxx>
+#endif
+#ifndef _FLDREF_HXX
+#include <fldref.hxx>
+#endif
+#ifndef _WRTSH_HXX //autogen
+#include <wrtsh.hxx>
+#endif
+#ifndef _SWVIEW_HXX //autogen
+#include <view.hxx>
+#endif
+#ifndef _FLDTDLG_HXX
+#include <fldtdlg.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _FLDTDLG_HRC
+#include <fldtdlg.hrc>
+#endif
+
+
+SFX_IMPL_CHILDWINDOW(SwFldDlgWrapper, FN_INSERT_FIELD)
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwChildWinWrapper::SwChildWinWrapper(Window *pParentWindow, USHORT nId) :
+ SfxChildWindow(pParentWindow, nId),
+ pDocSh(0)
+{
+ // Flackern der Buttons vermeiden:
+ aUpdateTimer.SetTimeout(200);
+ aUpdateTimer.SetTimeoutHdl(LINK(this, SwChildWinWrapper, UpdateHdl));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwChildWinWrapper, UpdateHdl, void*, EMPTYARG )
+{
+ GetWindow()->Activate(); // Dialog aktualisieren
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Nach Dok-Wechsel Dialog neu initialisieren
+ --------------------------------------------------------------------*/
+
+BOOL SwChildWinWrapper::ReInitDlg(SwDocShell *pDocSh)
+{
+ BOOL bRet = FALSE;
+
+ if (pDocSh != GetOldDocShell())
+ {
+ aUpdateTimer.Stop();
+ bRet = TRUE; // Sofortiges Update
+ }
+ else
+ aUpdateTimer.Start();
+
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldDlgWrapper::SwFldDlgWrapper( Window* pParent, USHORT nId,
+ SfxBindings* pB,
+ SfxChildWinInfo* pInfo) :
+ SwChildWinWrapper( pParent, nId )
+
+{
+ pWindow = new SwFldDlg( pB, this, pParent );
+ SwFldDlg *pWin = (SwFldDlg*)pWindow;
+ pWin->Start();
+
+ ((SwFldDlg*)pWindow)->Initialize(pInfo);
+ eChildAlignment = SFX_ALIGN_NOALIGNMENT;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxChildWinInfo SwFldDlgWrapper::GetInfo() const
+{
+ SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
+ // ((SfxFloatingWindow*)GetWindow())->FillInfo( aInfo );
+ return aInfo;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Nach Dok-Wechsel Dialog neu initialisieren
+ --------------------------------------------------------------------*/
+
+BOOL SwFldDlgWrapper::ReInitDlg(SwDocShell *pDocSh)
+{
+ BOOL bRet;
+
+ if ((bRet = SwChildWinWrapper::ReInitDlg(pDocSh)) == TRUE) // Sofort aktualisieren, Dok-Wechsel
+ ((SwFldDlg*)GetWindow())->ReInitDlg();
+
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldDlgWrapper::ShowPage(USHORT nPage)
+{
+ ((SwFldDlg*)GetWindow())->ShowPage(nPage ? nPage : TP_FLD_REF);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Der Traeger des Dialoges
+ --------------------------------------------------------------------*/
+
+
+SwFldDlg::SwFldDlg(SfxBindings* pB, SwChildWinWrapper* pCW, Window *pParent) :
+ SfxTabDialog(pParent, SW_RES(DLG_FLD_INSERT)),
+ pChildWin(pCW)
+{
+ SetStyle(GetStyle()|WB_STDMODELESS);
+ bHtmlMode = (::GetHtmlMode((SwDocShell*)SfxObjectShell::Current()) & HTMLMODE_ON) != 0;
+
+ RemoveResetButton();
+
+ GetOKButton().SetText(String(SW_RES(STR_FLD_INSERT)));
+ GetOKButton().SetHelpId(HID_FIELD_INSERT);
+ GetOKButton().SetHelpText(aEmptyStr); // Damit generierter Hilfetext verwendet wird
+
+ GetCancelButton().SetText(String(SW_RES(STR_FLD_CLOSE)));
+ GetCancelButton().SetHelpId(HID_FIELD_CLOSE);
+ GetCancelButton().SetHelpText(aEmptyStr); // Damit generierter Hilfetext verwendet wird
+
+ FreeResource();
+
+ GetOKButton().SetClickHdl(LINK(this, SwFldDlg, OKHdl));
+
+ AddTabPage(TP_FLD_DOK, SwFldDokPage::Create, 0);
+ AddTabPage(TP_FLD_VAR, SwFldVarPage::Create, 0);
+ AddTabPage(TP_FLD_DOKINF, SwFldDokInfPage::Create, 0);
+
+ if (!bHtmlMode)
+ {
+ AddTabPage(TP_FLD_REF, SwFldRefPage::Create, 0);
+ AddTabPage(TP_FLD_FUNC, SwFldFuncPage::Create, 0);
+ AddTabPage(TP_FLD_DB, SwFldDBPage::Create, 0);
+ }
+ else
+ {
+ RemoveTabPage(TP_FLD_REF);
+ RemoveTabPage(TP_FLD_FUNC);
+ RemoveTabPage(TP_FLD_DB);
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwFldDlg::~SwFldDlg()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL SwFldDlg::Close()
+{
+ SfxViewFrame::Current()->GetDispatcher()->
+ Execute(FN_INSERT_FIELD, SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD);
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldDlg::Initialize(SfxChildWinInfo *pInfo)
+{
+ Point aPos;
+ Size aSize;
+
+ if ( pInfo->aSize.Width() != 0 && pInfo->aSize.Height() != 0 )
+ {
+ aPos = pInfo->aPos;
+ if ( GetStyle() & WB_SIZEABLE )
+ SetSizePixel( pInfo->aSize );
+
+ // Initiale Gr"o\se aus pInfo merken
+ aSize = GetSizePixel();
+
+ // Soll das FloatingWindow eingezoomt werden ?
+ if ( pInfo->nFlags & SFX_CHILDWIN_ZOOMIN )
+ RollUp();
+ }
+ else
+ {
+ // Initiale Gr"o\se aus Resource oder ctor merken
+ aSize = GetSizePixel();
+
+ Size aParentSize = GetParent()->GetOutputSizePixel();
+ aPos.X() += ( aParentSize.Width() - aSize.Width() ) / 2;
+ aPos.Y() += ( aParentSize.Height() - aSize.Height() ) / 2;
+ }
+
+ Point aPoint;
+ Rectangle aRect = GetDesktopRectPixel();
+ aPoint.X() = aRect.Right() - aSize.Width();
+ aPoint.Y() = aRect.Bottom() - aSize.Height();
+
+ aPoint = OutputToScreenPixel( aPoint );
+
+ if ( aPos.X() > aPoint.X() )
+ aPos.X() = aPoint.X() ;
+ if ( aPos.Y() > aPoint.Y() )
+ aPos.Y() = aPoint.Y();
+
+ if ( aPos.X() < 0 ) aPos.X() = 0;
+ if ( aPos.Y() < 0 ) aPos.Y() = 0;
+
+ SetPosPixel( aPos );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
+{
+/* switch( nId )
+ {
+ case TP_CHAR_DB:
+// ((SvxCharExtPage&)rPage).DisableControls(DISABLE_CASEMAP);
+ break;
+ }*/
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxItemSet* SwFldDlg::CreateInputItemSet( USHORT nId )
+{
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Einfuegen von neuen Feldern anstossen
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDlg, OKHdl, Button *, pBtn )
+{
+ if (GetOKButton().IsEnabled())
+ {
+ SfxTabPage* pPage = GetTabPage(GetCurPageId());
+ pPage->FillItemSet(*(SfxItemSet*)0);
+
+ GetOKButton().GrabFocus(); // Wegen InputField-Dlg
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Nach Dok-Wechsel Dialog neu initialisieren
+ --------------------------------------------------------------------*/
+
+void SwFldDlg::ReInitDlg()
+{
+ SwDocShell* pDocSh = (SwDocShell*)SfxObjectShell::Current();
+ BOOL bNewMode = (::GetHtmlMode(pDocSh) & HTMLMODE_ON) != 0;
+
+ if (bNewMode != bHtmlMode)
+ {
+ SfxViewFrame::Current()->GetDispatcher()->
+ Execute(FN_INSERT_FIELD, SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD);
+ Close();
+ }
+
+ const SwWrtShell& rSh = ::GetActiveView()->GetWrtShell();
+ GetOKButton().Enable( !rSh.IsReadOnlyAvailable() ||
+ !rSh.HasReadonlySel() );
+
+ ReInitTabPage(TP_FLD_DOK);
+ ReInitTabPage(TP_FLD_VAR);
+ ReInitTabPage(TP_FLD_DOKINF);
+
+ if (!bHtmlMode)
+ {
+ ReInitTabPage(TP_FLD_REF);
+ ReInitTabPage(TP_FLD_FUNC);
+ ReInitTabPage(TP_FLD_DB);
+ }
+
+ pChildWin->SetOldDocShell(pDocSh);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Nach Dok-Wechsel TabPage neu initialisieren
+ --------------------------------------------------------------------*/
+
+void SwFldDlg::ReInitTabPage(USHORT nPageId)
+{
+ SwFldPage* pPage = (SwFldPage* )GetTabPage(nPageId);
+
+ if (pPage)
+ pPage->EditNewField(); // TabPage neu initialisieren
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Nach Aktivierung einige TabPages neu initialisieren
+ --------------------------------------------------------------------*/
+
+void SwFldDlg::Activate()
+{
+ BOOL bHtmlMode = (::GetHtmlMode((SwDocShell*)SfxObjectShell::Current()) & HTMLMODE_ON) != 0;
+
+ const SwWrtShell& rSh = ::GetActiveView()->GetWrtShell();
+ GetOKButton().Enable( !rSh.IsReadOnlyAvailable() ||
+ !rSh.HasReadonlySel() );
+
+ ReInitTabPage(TP_FLD_VAR);
+
+ if (!bHtmlMode)
+ ReInitTabPage(TP_FLD_REF);
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldDlg::EnableInsert(BOOL bEnable)
+{
+ if( bEnable )
+ {
+ const SwWrtShell& rSh = ::GetActiveView()->GetWrtShell();
+ if( rSh.IsReadOnlyAvailable() && rSh.HasReadonlySel() )
+ bEnable = FALSE;
+ }
+ GetOKButton().Enable(bEnable);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldDlg::InsertHdl()
+{
+ GetOKButton().Click();
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.26 2000/09/18 16:05:29 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.25 2000/09/07 15:59:24 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.24 2000/02/11 14:45:56 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.23 1999/01/20 13:16:52 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+
+ Rev 1.22 20 Jan 1999 14:16:52 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.21 22 Oct 1998 12:20:42 OM
+ #58157# Querverweis einfuegen
+
+ Rev 1.20 21 Oct 1998 16:16:04 OM
+ #58157# Querverweise einfuegen
+
+ Rev 1.19 09 Jul 1998 09:52:58 JP
+ EmptyStr benutzen
+
+ Rev 1.18 31 Mar 1998 13:31:38 OM
+ Korrekt abgleichen
+
+ Rev 1.17 27 Mar 1998 14:14:16 OM
+ ChildWindows im Modified-Hdl updaten
+
+ Rev 1.16 18 Mar 1998 10:33:56 OM
+ #48197# Focus restaurieren nach InputDlg
+
+ Rev 1.15 10 Mar 1998 17:27:12 OM
+ Korrekte Windowbits setzen
+
+ Rev 1.14 03 Mar 1998 13:31:02 OM
+ Im Html-Mode nicht alle TabPages anzeigen
+
+ Rev 1.13 09 Jan 1998 16:57:18 OM
+ Bei Dok-Wechsel updaten
+
+ Rev 1.12 06 Jan 1998 18:13:36 OM
+ Felbefehl-Dlg
+
+ Rev 1.11 19 Dec 1997 18:25:00 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.10 16 Dec 1997 17:02:46 OM
+ Feldbefehle bearbeiten
+
+ Rev 1.9 12 Dec 1997 16:11:12 OM
+ AutoUpdate bei FocusWechsel u.a.
+
+ Rev 1.8 12 Dec 1997 10:49:38 OM
+ ExchangeSupport implementiert
+
+ Rev 1.7 09 Dec 1997 17:16:46 OM
+ Kein alter Feldbefehl-Dialog mehr
+
+ Rev 1.6 21 Nov 1997 17:19:42 OM
+ Feldbefehl-Umstellung: DocInfo
+
+ Rev 1.5 18 Nov 1997 10:33:10 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.4 11 Nov 1997 10:03:40 OM
+ Neuer Feldbefehl-Dialog
+
+ Rev 1.3 04 Nov 1997 10:05:42 OM
+ Neuer Felddialog
+
+ Rev 1.2 30 Oct 1997 16:29:42 OM
+ Feldbefehl-Umstellung
+
+ Rev 1.1 30 Oct 1997 14:30:48 OM
+ Feldbefehl-Umstellung
+
+ Rev 1.0 28 Oct 1997 15:05:38 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
diff --git a/sw/source/ui/fldui/fldtdlg.hrc b/sw/source/ui/fldui/fldtdlg.hrc
new file mode 100644
index 000000000000..524ed5cc3a68
--- /dev/null
+++ b/sw/source/ui/fldui/fldtdlg.hrc
@@ -0,0 +1,189 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldtdlg.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _FLDTDLG_HRC
+#define _FLDTDLG_HRC
+
+// #include -----------------------------------------------------------------
+
+// #define ------------------------------------------------------------------
+
+#define RC_FLDTDLG_BEGIN 0
+
+// Datenbankfeld-TabPage:
+#define RC_TP_DB_START (RC_FLDTDLG_BEGIN)
+#define FT_DBTYPE (RC_TP_DB_START + 1)
+#define LB_DBTYPE (RC_TP_DB_START + 2)
+#define GB_DBFORMAT (RC_TP_DB_START + 3)
+#define FT_DBSELECTION (RC_TP_DB_START + 4)
+#define TLB_DBLIST (RC_TP_DB_START + 5)
+#define FT_DBCONDITION (RC_TP_DB_START + 6)
+#define FT_DBSETNUMBER (RC_TP_DB_START + 7)
+#define ED_DBCONDITION (RC_TP_DB_START + 8)
+#define ED_DBSETNUMBER (RC_TP_DB_START + 9)
+#define LB_DBFORMAT (RC_TP_DB_START + 10)
+#define LB_DBNUMFORMAT (RC_TP_DB_START + 11)
+#define RB_DBFORMAT (RC_TP_DB_START + 12)
+#define RB_DBOWNFORMAT (RC_TP_DB_START + 13)
+#define RC_TP_DB_END (RC_TP_DB_START + 14)
+
+// Dokumentinfo-TabPage:
+#define RC_TP_DOCINF_START (RC_TP_DB_END)
+#define FT_DOKINFTYPE (RC_TP_DOCINF_START + 1)
+#define TLB_DOKINFTYPE (RC_TP_DOCINF_START + 2)
+#define FT_DOKINFSELECTION (RC_TP_DOCINF_START + 3)
+#define LB_DOKINFSELECTION (RC_TP_DOCINF_START + 4)
+#define FT_DOKINFFORMAT (RC_TP_DOCINF_START + 5)
+#define LB_DOKINFFORMAT (RC_TP_DOCINF_START + 6)
+#define CB_DOKINFFIXEDCONTENT (RC_TP_DOCINF_START + 7)
+#define BMP_DOKINFROOT_OPENED (RC_TP_DOCINF_START + 8)
+#define BMP_DOKINFROOT_CLOSED (RC_TP_DOCINF_START + 9)
+#define STR_DOKINF_INFO (RC_TP_DOCINF_START + 10)
+#define RC_TP_DOCINF_END (RC_TP_DOCINF_START + 11)
+
+// Variablen-TabPage:
+#define RC_TP_VAR_START (RC_TP_DOCINF_END)
+#define FT_VARTYPE (RC_TP_VAR_START + 1)
+#define LB_VARTYPE (RC_TP_VAR_START + 2)
+#define FT_VARSELECTION (RC_TP_VAR_START + 3)
+#define LB_VARSELECTION (RC_TP_VAR_START + 4)
+#define FT_VARNAME (RC_TP_VAR_START + 5)
+#define ED_VARNAME (RC_TP_VAR_START + 6)
+#define FT_VARVALUE (RC_TP_VAR_START + 7)
+#define ED_VARVALUE (RC_TP_VAR_START + 8)
+#define FT_VARFORMAT (RC_TP_VAR_START + 9)
+#define LB_VARNUMFORMAT (RC_TP_VAR_START + 10)
+#define LB_VARFORMAT (RC_TP_VAR_START + 11)
+#define FT_VARCHAPTERHEADER (RC_TP_VAR_START + 12)
+#define FT_VARCHAPTERLEVEL (RC_TP_VAR_START + 13)
+#define LB_VARCHAPTERLEVEL (RC_TP_VAR_START + 14)
+#define CB_VARINVISIBLE (RC_TP_VAR_START + 15)
+#define FT_VARSEPARATOR (RC_TP_VAR_START + 16)
+#define ED_VARSEPARATOR (RC_TP_VAR_START + 17)
+#define TBX_VARNEWDEL (RC_TP_VAR_START + 18)
+#define BT_VARAPPLY (RC_TP_VAR_START + 19)
+#define BT_VARDELETE (RC_TP_VAR_START + 20)
+#define RC_TP_VAR_END (RC_TP_VAR_START + 21)
+
+// Dokument-TabPage:
+#define RC_TP_DOC_START (RC_TP_VAR_END)
+#define FT_DOKTYPE (RC_TP_DOC_START + 1)
+#define LB_DOKTYPE (RC_TP_DOC_START + 2)
+#define FT_DOKSELECTION (RC_TP_DOC_START + 3)
+#define LB_DOKSELECTION (RC_TP_DOC_START + 4)
+#define LB_DOKNUMFORMAT (RC_TP_DOC_START + 5)
+#define LB_DOKFORMAT (RC_TP_DOC_START + 6)
+#define FT_DOKFORMAT (RC_TP_DOC_START + 7)
+#define FT_DOKVALUE (RC_TP_DOC_START + 8)
+#define ED_DOKVALUE (RC_TP_DOC_START + 9)
+#define ED_DOKLEVEL (RC_TP_DOC_START + 10)
+#define ED_DOKDATEOFF (RC_TP_DOC_START + 11)
+#define CB_DOKFIXEDCONTENT (RC_TP_DOC_START + 12)
+#define STR_DOKDATEOFF (RC_TP_DOC_START + 13)
+#define STR_DOKTIMEOFF (RC_TP_DOC_START + 14)
+#define BMP_DOKROOT_OPENED (RC_TP_DOC_START + 15)
+#define BMP_DOKROOT_CLOSED (RC_TP_DOC_START + 16)
+#define RC_TP_DOC_END (RC_TP_DOC_START + 17)
+
+// Funktion-TabPage:
+#define RC_TP_FUNC_START (RC_TP_DOC_END)
+#define FT_FUNCTYPE (RC_TP_FUNC_START + 1)
+#define LB_FUNCTYPE (RC_TP_FUNC_START + 2)
+#define LB_FUNCSELECTION (RC_TP_FUNC_START + 3)
+#define FT_FUNCSELECTION (RC_TP_FUNC_START + 4)
+#define FT_FUNCFORMAT (RC_TP_FUNC_START + 5)
+#define LB_FUNCFORMAT (RC_TP_FUNC_START + 6)
+#define FT_FUNCNAME (RC_TP_FUNC_START + 7)
+#define ED_FUNCNAME (RC_TP_FUNC_START + 8)
+#define FT_FUNCVALUE (RC_TP_FUNC_START + 9)
+#define ED_FUNCVALUE (RC_TP_FUNC_START + 10)
+#define FT_FUNCCOND1 (RC_TP_FUNC_START + 11)
+#define ED_FUNCCOND1 (RC_TP_FUNC_START + 12)
+#define FT_FUNCCOND2 (RC_TP_FUNC_START + 13)
+#define ED_FUNCCOND2 (RC_TP_FUNC_START + 14)
+#define BT_FUNCMACRO (RC_TP_FUNC_START + 15)
+#define RC_TP_FUNC_END (RC_TP_FUNC_START + 16)
+
+// Referenz-TabPage:
+#define RC_TP_REF_START (RC_TP_FUNC_END)
+#define FT_REFTYPE (RC_TP_REF_START + 1)
+#define LB_REFTYPE (RC_TP_REF_START + 2)
+#define FT_REFSELECTION (RC_TP_REF_START + 3)
+#define LB_REFSELECTION (RC_TP_REF_START + 4)
+#define LB_REFFORMAT (RC_TP_REF_START + 5)
+#define FT_REFFORMAT (RC_TP_REF_START + 6)
+#define FT_REFNAME (RC_TP_REF_START + 7)
+#define ED_REFNAME (RC_TP_REF_START + 8)
+#define FT_REFVALUE (RC_TP_REF_START + 9)
+#define ED_REFVALUE (RC_TP_REF_START + 10)
+#define STR_REFBOOKMARK (RC_TP_REF_START + 11)
+#define STR_REFFOOTNOTE (RC_TP_REF_START + 12)
+#define STR_REFENDNOTE (RC_TP_REF_START + 13)
+#define RC_TP_REF_END (RC_TP_REF_START + 14)
+
+#define RC_TP_END (RC_TP_REF_END)
+
+// Strings ------------------------------------------------------------------
+
+#define STR_FLD_INSERT (RC_TP_END + 1)
+#define STR_FLD_CLOSE (RC_TP_END + 2)
+
+#endif
diff --git a/sw/source/ui/fldui/fldtdlg.src b/sw/source/ui/fldui/fldtdlg.src
new file mode 100644
index 000000000000..11858862a80a
--- /dev/null
+++ b/sw/source/ui/fldui/fldtdlg.src
@@ -0,0 +1,306 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldtdlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * 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 "globals.hrc"
+#include "fldui.hrc"
+#include "fldtdlg.hrc"
+#include "helpid.h"
+TabDialog DLG_FLD_INSERT
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Feldbefehle" ;
+ Text [ ENGLISH ] = "Fields" ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_FLD_DOK ;
+ Text = "Dokument" ;
+ Text [ ENGLISH ] = "Document" ;
+ PageResID = TP_FLD_DOK ;
+ Text [ english_us ] = "Document" ;
+ Text [ portuguese_brazilian ] = "Dokument" ;
+ Text [ swedish ] = "Dokument" ;
+ Text [ danish ] = "Dokument" ;
+ Text [ italian ] = "Documento" ;
+ Text [ spanish ] = "Documento" ;
+ Text [ french ] = "Document" ;
+ Text [ dutch ] = "Document" ;
+ Text [ portuguese ] = "Documento" ;
+ Text[ chinese_simplified ] = "ĵ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Dokument";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Belge";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_FLD_REF ;
+ Text = "Referenzen" ;
+ Text [ ENGLISH ] = "References" ;
+ PageResID = TP_FLD_REF ;
+ Text [ english_us ] = "References" ;
+ Text [ portuguese_brazilian ] = "Referenzen" ;
+ Text [ swedish ] = "Referenser" ;
+ Text [ danish ] = "Referencer" ;
+ Text [ italian ] = "Riferimenti" ;
+ Text [ spanish ] = "Referencias" ;
+ Text [ french ] = "Rfrences" ;
+ Text [ dutch ] = "Verwijzingen" ;
+ Text [ portuguese ] = "Referncias" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Odwoania";
+ Text[ japanese ] = "Q";
+ Text[ chinese_traditional ] = "ѷ";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Referanslar";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_FLD_FUNC ;
+ Text = "Funktionen" ;
+ Text [ ENGLISH ] = "Functions" ;
+ PageResID = TP_FLD_FUNC ;
+ Text [ english_us ] = "Functions" ;
+ Text [ portuguese_brazilian ] = "Funktionen" ;
+ Text [ swedish ] = "Funktioner" ;
+ Text [ danish ] = "Funktioner" ;
+ Text [ italian ] = "Funzioni" ;
+ Text [ spanish ] = "Funciones" ;
+ Text [ french ] = "Fonctions" ;
+ Text [ dutch ] = "Functies" ;
+ Text [ portuguese ] = "Funes" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Funkcje";
+ Text[ japanese ] = "@\\";
+ Text[ chinese_traditional ] = "\\";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "levler";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_FLD_DOKINF ;
+ Text = "Dokumentinfo" ;
+ Text [ ENGLISH ] = "Document information" ;
+ PageResID = TP_FLD_DOKINF ;
+ Text [ english_us ] = "DocInformation" ;
+ Text [ portuguese_brazilian ] = "Dokumentinfo" ;
+ Text [ swedish ] = "Dokumentinfo" ;
+ Text [ danish ] = "Dokumentinfo" ;
+ Text [ italian ] = "Info documento" ;
+ Text [ spanish ] = "Informacin del documento" ;
+ Text [ french ] = "Info document" ;
+ Text [ dutch ] = "Documentinfo" ;
+ Text [ portuguese ] = "Info. sobre documento" ;
+ Text[ chinese_simplified ] = "ĵϢ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Informacje o dokumencie";
+ Text[ japanese ] = "޷ ̫Ұ";
+ Text[ chinese_traditional ] = "T";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Belge bilgileri";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_FLD_VAR ;
+ Text = "Variablen" ;
+ Text [ ENGLISH ] = "Variables" ;
+ PageResID = TP_FLD_VAR ;
+ Text [ english_us ] = "Variables" ;
+ Text [ portuguese_brazilian ] = "Variablen" ;
+ Text [ swedish ] = "Variabler" ;
+ Text [ danish ] = "Variabler" ;
+ Text [ italian ] = "Variabili" ;
+ Text [ spanish ] = "Variables" ;
+ Text [ french ] = "Variables" ;
+ Text [ dutch ] = "Variabelen" ;
+ Text [ portuguese ] = "Variveis" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Zmienne";
+ Text[ japanese ] = "ϐ";
+ Text[ chinese_traditional ] = "ܶq";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Deikenler";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_FLD_DB ;
+ Text = "Datenbank" ;
+ Text [ ENGLISH ] = "Database" ;
+ PageResID = TP_FLD_DB ;
+ Text [ english_us ] = "Database" ;
+ Text [ portuguese_brazilian ] = "Datenbank" ;
+ Text [ swedish ] = "Databas" ;
+ Text [ danish ] = "Database" ;
+ Text [ italian ] = "Database" ;
+ Text [ spanish ] = "Base de datos" ;
+ Text [ french ] = "Base de donnes" ;
+ Text [ dutch ] = "Database" ;
+ Text [ portuguese ] = "Base de dados" ;
+ Text[ chinese_simplified ] = "ݿ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Baza danych";
+ Text[ japanese ] = "ްް";
+ Text[ chinese_traditional ] = "Ʈw";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ͺ̽";
+ Text[ turkish ] = "Veritaban";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ String STR_FLD_INSERT
+ {
+ Text = "~Einfgen" ;
+ Text [ ENGLISH ] = "~Insert" ;
+ Text [ norwegian ] = "~Insert" ;
+ Text [ italian ] = "~Inserisci" ;
+ Text [ portuguese_brazilian ] = "~Inserir" ;
+ Text [ portuguese ] = "~Inserir" ;
+ Text [ finnish ] = "~Lis" ;
+ Text [ danish ] = "~Indst" ;
+ Text [ french ] = "~Insrer" ;
+ Text [ swedish ] = "~Infoga" ;
+ Text [ dutch ] = "~Invoegen" ;
+ Text [ spanish ] = "~Insertar" ;
+ Text [ english_us ] = "~Insert" ;
+ Text[ chinese_simplified ] = "(~I)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "}(~I)";
+ Text[ chinese_traditional ] = "J(~I)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "(~I)";
+ Text[ turkish ] = "~Ekle";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_FLD_CLOSE
+ {
+ Text = "~Schlieen" ;
+ Text [ ENGLISH ] = "C~lose" ;
+ Text [ english_us ] = "~Close" ;
+ Text [ italian ] = "~Chiudi" ;
+ Text [ spanish ] = "~Cerrar" ;
+ Text [ french ] = "~Fermer" ;
+ Text [ dutch ] = "~Sluiten" ;
+ Text [ swedish ] = "~Stng" ;
+ Text [ danish ] = "Luk" ;
+ Text [ portuguese_brazilian ] = "~Schlieen" ;
+ Text [ portuguese ] = "~Sair" ;
+ Text[ chinese_simplified ] = "ر(~C)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Zamknij";
+ Text[ japanese ] = "‚(~C)";
+ Text[ chinese_traditional ] = "(~C)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ݱ(~C)";
+ Text[ turkish ] = "~k";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "Fields" ;
+ Text [ portuguese_brazilian ] = "Feldbefehle" ;
+ Text [ swedish ] = "Fltkommandon" ;
+ Text [ danish ] = "Felter" ;
+ Text [ italian ] = "Comandi di campo" ;
+ Text [ spanish ] = "Comandos de campo" ;
+ Text [ french ] = "Instructions de champ" ;
+ Text [ dutch ] = "Veldopdracht" ;
+ Text [ portuguese ] = "Campos" ;
+ Text[ chinese_simplified ] = "ֶָ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Pola";
+ Text[ japanese ] = "̨";
+ Text[ chinese_traditional ] = "O";
+ Text[ arabic ] = "";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ʵ";
+ Text[ turkish ] = "Alan eleri";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/fldui.src b/sw/source/ui/fldui/fldui.src
new file mode 100644
index 000000000000..c91f5cee5473
--- /dev/null
+++ b/sw/source/ui/fldui/fldui.src
@@ -0,0 +1,3383 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldui.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * 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 _FLDUI_SRC
+#include "fldui.hrc"
+#include "helpid.h"
+
+/*--------------------------------------------------------------------
+ Beschreibung: Strings fuer die Types
+ --------------------------------------------------------------------*/
+String STR_FLD_EDIT_DLG
+{
+ Text = "Feldbefehl bearbeiten" ;
+ Text [ ENGLISH ] = "Edit Field" ;
+ Text [ norwegian ] = "Edit Field" ;
+ Text [ italian ] = "Modifica comando di campo" ;
+ Text [ portuguese_brazilian ] = "Editar Campo" ;
+ Text [ portuguese ] = "Editar campos" ;
+ Text [ finnish ] = "Muokkaa kentt" ;
+ Text [ danish ] = "Rediger felt" ;
+ Text [ french ] = "dition d'une instruction de champ" ;
+ Text [ swedish ] = "Redigera fltkommando" ;
+ Text [ dutch ] = "Veldopdracht bewerken" ;
+ Text [ spanish ] = "Editar campos" ;
+ Text [ english_us ] = "Edit Fields" ;
+ Text[ chinese_simplified ] = "༭ֶָ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Edytuj pole";
+ Text[ japanese ] = "̨ނ̕ҏW";
+ Text[ chinese_traditional ] = "sO";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = " ";
+ Text[ turkish ] = "Alan esi dzenle";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Strings fuer die Types
+ --------------------------------------------------------------------*/
+ //
+ // Bereich Dokument
+ //
+String STR_DATEFLD
+{
+ TEXT = "Datum" ;
+ TEXT [ English ] = "Date" ;
+ TEXT [ norwegian ] = "Date" ;
+ TEXT [ italian ] = "Data" ;
+ TEXT [ portuguese_brazilian ] = "Data" ;
+ TEXT [ portuguese ] = "Data" ;
+ TEXT [ finnish ] = "Pivys" ;
+ TEXT [ danish ] = "Dato" ;
+ TEXT [ french ] = "Date" ;
+ TEXT [ swedish ] = "Datum" ;
+ TEXT [ dutch ] = "Datum" ;
+ TEXT [ spanish ] = "Fecha" ;
+ TEXT [ english_us ] = "Date" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Data";
+ TEXT[ japanese ] = "t";
+ TEXT[ chinese_traditional ] = "";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "Tarih";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_TIMEFLD
+{
+ TEXT = "Uhrzeit" ;
+ TEXT [ English ] = "Time" ;
+ TEXT [ norwegian ] = "Time" ;
+ TEXT [ italian ] = "Orario" ;
+ TEXT [ portuguese_brazilian ] = "Hora" ;
+ TEXT [ portuguese ] = "Hora" ;
+ TEXT [ finnish ] = "Aika" ;
+ TEXT [ danish ] = "Klokkeslt" ;
+ TEXT [ french ] = "Heure" ;
+ TEXT [ swedish ] = "Klockslag" ;
+ TEXT [ dutch ] = "Tijd" ;
+ TEXT [ spanish ] = "Hora" ;
+ TEXT [ english_us ] = "Time" ;
+ TEXT[ chinese_simplified ] = "ʱ";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Godzina";
+ TEXT[ japanese ] = "";
+ TEXT[ chinese_traditional ] = "ɶ";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "ð";
+ TEXT[ turkish ] = "Saat";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_FILENAMEFLD
+{
+ TEXT = "Dateiname" ;
+ TEXT [ English ] = "Filename" ;
+ TEXT [ norwegian ] = "Filename" ;
+ TEXT [ italian ] = "Nome file" ;
+ TEXT [ portuguese_brazilian ] = "Nome do Arquivo" ;
+ TEXT [ portuguese ] = "Nome do ficheiro" ;
+ TEXT [ finnish ] = "Tiedostonimi" ;
+ TEXT [ danish ] = "Filnavn" ;
+ TEXT [ french ] = "Nom de fichier" ;
+ TEXT [ swedish ] = "Filnamn" ;
+ TEXT [ dutch ] = "Bestandsnaam" ;
+ TEXT [ spanish ] = "Nombre del archivo" ;
+ TEXT [ english_us ] = "File name" ;
+ TEXT[ chinese_simplified ] = "ļ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Nazwa pliku";
+ TEXT[ japanese ] = "̧ٖ";
+ TEXT[ chinese_traditional ] = "ɮצW";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ̸";
+ TEXT[ turkish ] = "Dosya ad";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DBNAMEFLD
+{
+ TEXT = "Datenbankname" ;
+ TEXT [ English ] = "Database name" ;
+ TEXT [ norwegian ] = "Database name" ;
+ TEXT [ italian ] = "Nome database" ;
+ TEXT [ portuguese_brazilian ] = "Nome da base de dados" ;
+ TEXT [ portuguese ] = "Nome da base de dados" ;
+ TEXT [ finnish ] = "Tietokannan nimi" ;
+ TEXT [ danish ] = "Databasenavn" ;
+ TEXT [ french ] = "Nom de la base de donnes" ;
+ TEXT [ swedish ] = "Databasnamn" ;
+ TEXT [ dutch ] = "Naam database" ;
+ TEXT [ spanish ] = "Nombre de base de datos" ;
+ TEXT [ english_us ] = "Database Name" ;
+ TEXT[ chinese_simplified ] = "ݿ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Nazwa bazy danych";
+ TEXT[ japanese ] = "ްް";
+ TEXT[ chinese_traditional ] = "ƮwW";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = "ͺ̽ ̸";
+ TEXT[ turkish ] = "Veritaban ad";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_CHAPTERFLD
+{
+ TEXT = "Kapitel" ;
+ TEXT [ English ] = "Chapter" ;
+ TEXT [ norwegian ] = "Chapter" ;
+ TEXT [ italian ] = "Capitolo" ;
+ TEXT [ portuguese_brazilian ] = "Captulo" ;
+ TEXT [ portuguese ] = "Captulo" ;
+ TEXT [ finnish ] = "Luku" ;
+ TEXT [ danish ] = "Kapitel" ;
+ TEXT [ french ] = "Chapitre" ;
+ TEXT [ swedish ] = "Kapitel" ;
+ TEXT [ dutch ] = "Hoofdstuk" ;
+ TEXT [ spanish ] = "Captulo" ;
+ TEXT [ english_us ] = "Chapter" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Rozdzia";
+ TEXT[ japanese ] = "";
+ TEXT[ language_user1 ] = " ";
+ TEXT[ chinese_traditional ] = "";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "Blm";
+};
+String STR_PAGENUMBERFLD
+{
+ TEXT = "Seitennummer" ;
+ TEXT [ English ] = "Page number" ;
+ TEXT [ norwegian ] = "Sidenummer" ;
+ TEXT [ italian ] = "Numero pagina" ;
+ TEXT [ portuguese_brazilian ] = "Nmero de pgina" ;
+ TEXT [ portuguese ] = "Nmero de pgina" ;
+ TEXT [ finnish ] = "Sivunumero" ;
+ TEXT [ danish ] = "Sidetal" ;
+ TEXT [ french ] = "Numro de page" ;
+ TEXT [ swedish ] = "Sidnummer" ;
+ TEXT [ dutch ] = "Paginanummer" ;
+ TEXT [ spanish ] = "Nmero de pgina" ;
+ TEXT [ english_us ] = "Page numbers" ;
+ TEXT[ chinese_simplified ] = "ҳ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Numer strony";
+ TEXT[ japanese ] = "߰ޔԍ";
+ TEXT[ chinese_traditional ] = "X";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ȣ";
+ TEXT[ turkish ] = "Sayfa numaras";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DOCSTATFLD
+{
+ TEXT = "Statistik" ;
+ TEXT [ English ] = "Statistics" ;
+ TEXT [ norwegian ] = "Statistics" ;
+ TEXT [ italian ] = "Statistiche" ;
+ TEXT [ portuguese_brazilian ] = "Estatstica" ;
+ TEXT [ portuguese ] = "Estatstica" ;
+ TEXT [ finnish ] = "Tilasto" ;
+ TEXT [ danish ] = "Statistik" ;
+ TEXT [ french ] = "Statistique" ;
+ TEXT [ swedish ] = "Statistik" ;
+ TEXT [ dutch ] = "Statistiek" ;
+ TEXT [ spanish ] = "Estadstica" ;
+ TEXT [ english_us ] = "Statistics" ;
+ TEXT[ chinese_simplified ] = "ͳ";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Statystyka";
+ TEXT[ japanese ] = "v";
+ TEXT[ chinese_traditional ] = "έp";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "statistik";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_AUTHORFLD
+{
+ TEXT = "Benutzer" ;
+ TEXT [ English ] = "User" ;
+ Text [ portuguese ] = "Autor" ;
+ Text [ english_us ] = "Author" ;
+ Text [ portuguese_brazilian ] = "Autor" ;
+ Text [ swedish ] = "Anvndare" ;
+ Text [ danish ] = "Bruger" ;
+ Text [ italian ] = "Autore" ;
+ Text [ spanish ] = "Usuario" ;
+ Text [ french ] = "Utilisateur" ;
+ Text [ dutch ] = "Gebruiker" ;
+ Text[ chinese_simplified ] = "ʹ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Uytkownik";
+ Text[ japanese ] = "հް";
+ Text[ chinese_traditional ] = "ϥΪ";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ۼ";
+ Text[ turkish ] = "Yazan";
+ Text[ language_user1 ] = " ";
+};
+String STR_TEMPLNAMEFLD
+{
+ TEXT = "Dokumentvorlage" ;
+ TEXT [ English ] = "Template" ;
+ TEXT [ norwegian ] = "Mal" ;
+ TEXT [ italian ] = "Modello" ;
+ TEXT [ portuguese_brazilian ] = "Modelo" ;
+ TEXT [ portuguese ] = "Modelo de documento" ;
+ TEXT [ finnish ] = "Mallipohja" ;
+ TEXT [ danish ] = "Dokumentskabelon" ;
+ TEXT [ french ] = "Modle de document" ;
+ TEXT [ swedish ] = "Dokumentmall" ;
+ TEXT [ dutch ] = "Sjabloon" ;
+ TEXT [ spanish ] = "Plantilla" ;
+ TEXT [ english_us ] = "Templates" ;
+ TEXT[ chinese_simplified ] = "ĵʽ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Szablon dokumentu";
+ TEXT[ japanese ] = "޷Ăڰ";
+ TEXT[ chinese_traditional ] = "˦";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " øƮ";
+ TEXT[ turkish ] = "Belge ablonu";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_EXTUSERFLD
+{
+ TEXT = "Absender" ;
+ TEXT [ English ] = "Sender" ;
+ TEXT [ norwegian ] = "Sender" ;
+ TEXT [ italian ] = "Mittente" ;
+ TEXT [ portuguese_brazilian ] = "Remetente" ;
+ TEXT [ portuguese ] = "Remetente" ;
+ TEXT [ finnish ] = "Lhettj" ;
+ TEXT [ danish ] = "Afsender" ;
+ TEXT [ french ] = "Expditeur" ;
+ TEXT [ swedish ] = "Avsndare" ;
+ TEXT [ dutch ] = "Afzender" ;
+ TEXT [ spanish ] = "Remitente" ;
+ TEXT [ english_us ] = "Sender" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Nadawca";
+ TEXT[ japanese ] = "ol";
+ TEXT[ chinese_traditional ] = "H";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = " ";
+ TEXT[ turkish ] = "Gnderen";
+ TEXT[ language_user1 ] = " ";
+};
+ //
+ // Bereich Funktionen
+ //
+String STR_SETFLD
+{
+ TEXT = "Variable setzen" ;
+ TEXT [ English ] = "Set variable" ;
+ TEXT [ norwegian ] = "Set variable" ;
+ TEXT [ italian ] = "Imposta variabile" ;
+ TEXT [ portuguese_brazilian ] = "Definir varivel" ;
+ TEXT [ portuguese ] = "Definir varivel" ;
+ TEXT [ finnish ] = "Mrit muuttuja" ;
+ TEXT [ danish ] = "Definer variabel" ;
+ TEXT [ french ] = "Dfinir une variable" ;
+ TEXT [ swedish ] = "Stt variabel" ;
+ TEXT [ dutch ] = "Variabele definiren" ;
+ TEXT [ spanish ] = "Establecer variable" ;
+ TEXT [ english_us ] = "Set variable" ;
+ TEXT[ chinese_simplified ] = "趨";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Osad zmienn";
+ TEXT[ japanese ] = "ϐ̐ݒ";
+ TEXT[ chinese_traditional ] = "]wܶq";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ";
+ TEXT[ turkish ] = "Deiken tanmla";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_GETFLD
+{
+ TEXT = "Variable anzeigen" ;
+ TEXT [ English ] = "Show variable" ;
+ TEXT [ norwegian ] = "Show variable" ;
+ TEXT [ italian ] = "Mostra variabile" ;
+ TEXT [ portuguese_brazilian ] = "Mostrar varivel" ;
+ TEXT [ portuguese ] = "Mostrar varivel" ;
+ TEXT [ finnish ] = "Nyt muuttuja" ;
+ TEXT [ danish ] = "Vis variabel" ;
+ TEXT [ french ] = "Afficher variables" ;
+ TEXT [ swedish ] = "Visa variabel" ;
+ TEXT [ dutch ] = "Variabele weergeven" ;
+ TEXT [ spanish ] = "Mostrar variable" ;
+ TEXT [ english_us ] = "Show variable" ;
+ TEXT[ chinese_simplified ] = "ʾ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Poka zmienn";
+ TEXT[ japanese ] = "ϐ̕\\";
+ TEXT[ chinese_traditional ] = "ܶq";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ̱";
+ TEXT[ turkish ] = "Deiken grntle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_FORMELFLD
+{
+ TEXT = "Formel einfgen" ;
+ TEXT [ English ] = "Insert equation" ;
+ TEXT [ norwegian ] = "Insert equation" ;
+ TEXT [ italian ] = "Inserisci formula" ;
+ TEXT [ portuguese_brazilian ] = "Inserir equao" ;
+ TEXT [ portuguese ] = "Inserir frmula" ;
+ TEXT [ finnish ] = "Lis kaava" ;
+ TEXT [ danish ] = "Indst formel" ;
+ TEXT [ french ] = "Insrer une formule" ;
+ TEXT [ swedish ] = "Infoga formel" ;
+ TEXT [ dutch ] = "Formule invoegen" ;
+ TEXT [ spanish ] = "Insertar frmula" ;
+ TEXT [ english_us ] = "Insert Formula" ;
+ TEXT[ chinese_simplified ] = "빫ʽ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Wstaw formu";
+ TEXT[ japanese ] = "̑}";
+ TEXT[ chinese_traditional ] = "J";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ";
+ TEXT[ turkish ] = "Forml ekle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_INPUTFLD
+{
+ TEXT = "Eingabefeld" ;
+ TEXT [ English ] = "Input field" ;
+ TEXT [ norwegian ] = "Input field" ;
+ TEXT [ italian ] = "Campo di digitazione" ;
+ TEXT [ portuguese_brazilian ] = "Campo de entrada" ;
+ TEXT [ portuguese ] = "Campo de entrada" ;
+ TEXT [ finnish ] = "Syttkentt" ;
+ TEXT [ danish ] = "Inputfelt" ;
+ TEXT [ french ] = "Champ de saisie" ;
+ TEXT [ swedish ] = "Inmatningsflt" ;
+ TEXT [ dutch ] = "Invoerveld" ;
+ TEXT [ spanish ] = "Campo de entrada" ;
+ TEXT [ english_us ] = "Input field" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Pole wprowadzania";
+ TEXT[ japanese ] = "̨";
+ TEXT[ chinese_traditional ] = "";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = "ʵ Է";
+ TEXT[ turkish ] = "Giri alan";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_SETINPUTFLD
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Eingabefeld (Variable) : Eingabefeld (Varibale) */
+ /* ### ACHTUNG: Neuer Text in Resource? Eingabefeld (Variable) : Eingabefeld (Varibale) */
+ /* ### ACHTUNG: Neuer Text in Resource? Eingabefeld (Variable) : Eingabefeld (Varibale) */
+ /* ### ACHTUNG: Neuer Text in Resource? Eingabefeld (Variable) : Eingabefeld (Varibale) */
+ /* ### ACHTUNG: Neuer Text in Resource? Eingabefeld (Variable) : Eingabefeld (Varibale) */
+ TEXT = "Eingabefeld (Variable)" ;
+ TEXT [ English ] = "Input field (Variable)" ;
+ Text [ english_us ] = "Input field (variable)" ;
+ Text [ italian ] = "Campo di digitazione (variabile)" ;
+ Text [ spanish ] = "Campo de entrada (variable)" ;
+ Text [ french ] = "Champ de saisie (pour variables)" ;
+ Text [ dutch ] = "Invoerveld (variabele)" ;
+ Text [ swedish ] = "Inmatningsflt (variabel)" ;
+ Text [ danish ] = "Inputfelt (variabel)" ;
+ Text [ portuguese ] = "Campo de entrada (varivel)" ;
+ Text [ portuguese_brazilian ] = "Eingabefeld (Varibale)" ;
+ Text[ chinese_simplified ] = "ֶ()";
+ Text[ russian ] = " ()";
+ Text[ polish ] = "Pole wprowadzania (Zmienna)";
+ Text[ japanese ] = "̨ (ϐ)";
+ Text[ chinese_traditional ] = "J(ܼ)";
+ Text[ arabic ] = " ()";
+ Text[ greek ] = " ()";
+ Text[ korean ] = "ʵ ()";
+ Text[ turkish ] = "Giri alan (deiken)";
+ Text[ language_user1 ] = " ";
+};
+String STR_USRINPUTFLD
+{
+ TEXT = "Eingabefeld (Benutzer)" ;
+ TEXT [ English ] = "Input field (User)" ;
+ Text [ dutch ] = "Invoerveld (gebruiker)" ;
+ Text [ english_us ] = "Input field (user)" ;
+ Text [ italian ] = "Campo di digitazione (utente)" ;
+ Text [ spanish ] = "Campo de entrada (Usuario)" ;
+ Text [ french ] = "Champ de saisie (utilisateur)" ;
+ Text [ swedish ] = "Inmatningsflt (anvndare)" ;
+ Text [ danish ] = "Inputfelt (bruger)" ;
+ Text [ portuguese ] = "Campo de entrada (utilizador)" ;
+ Text [ portuguese_brazilian ] = "Eingabefeld (Benutzer)" ;
+ Text[ chinese_simplified ] = "(ʹ)";
+ Text[ russian ] = " ()";
+ Text[ polish ] = "Pole wprowadzania (Uytkownik)";
+ Text[ japanese ] = "̨ (հް)";
+ Text[ chinese_traditional ] = "J(ϥΪ)";
+ Text[ arabic ] = " ()";
+ Text[ greek ] = " ()";
+ Text[ korean ] = "ʵ Է ()";
+ Text[ turkish ] = "Giri alan (Kullanc)";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONDTXTFLD
+{
+ TEXT = "Bedingter Text" ;
+ TEXT [ English ] = "Conditional text" ;
+ TEXT [ norwegian ] = "Conditional text" ;
+ TEXT [ italian ] = "Testo condizionale" ;
+ TEXT [ portuguese_brazilian ] = "Texto condicional" ;
+ TEXT [ portuguese ] = "Texto condicional" ;
+ TEXT [ finnish ] = "Ehdollinen teksti" ;
+ TEXT [ danish ] = "Betinget tekst" ;
+ TEXT [ french ] = "Texte conditionnel" ;
+ TEXT [ swedish ] = "Villkorlig text" ;
+ TEXT [ dutch ] = "Conditionele tekst" ;
+ TEXT [ spanish ] = "Texto condicionado" ;
+ TEXT [ english_us ] = "Conditional text" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Tekst warunkowy";
+ TEXT[ japanese ] = "t";
+ TEXT[ chinese_traditional ] = "󪺤r";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ؽƮ";
+ TEXT[ turkish ] = "Koullu metin";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DDEFLD
+{
+ TEXT = "DDE-Feld" ;
+ TEXT [ English ] = "DDE link" ;
+ TEXT [ norwegian ] = "DDE link" ;
+ TEXT [ italian ] = "Campo DDE" ;
+ TEXT [ portuguese_brazilian ] = "Ligao do DDE" ;
+ TEXT [ portuguese ] = "Campo DDE" ;
+ TEXT [ finnish ] = "DDE-linkki" ;
+ TEXT [ danish ] = "DDE-felt" ;
+ TEXT [ french ] = "Champ DDE" ;
+ TEXT [ swedish ] = "DDE-flt" ;
+ TEXT [ dutch ] = "DDE-koppeling" ;
+ TEXT [ spanish ] = "Campo DDE" ;
+ TEXT [ english_us ] = "DDE field" ;
+ TEXT[ chinese_simplified ] = "DDE-";
+ TEXT[ russian ] = " DDE";
+ TEXT[ polish ] = "Pole DDE";
+ TEXT[ japanese ] = "DDĘ";
+ TEXT[ chinese_traditional ] = "DDE-ϰ";
+ TEXT[ arabic ] = " DDE";
+ TEXT[ greek ] = " DDE";
+ TEXT[ korean ] = "DDE ʵ";
+ TEXT[ turkish ] = "DDE alan";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_MACROFLD
+{
+ TEXT = "Makro ausfhren" ;
+ TEXT [ English ] = "Execute macro" ;
+ TEXT [ norwegian ] = "Execute macro" ;
+ TEXT [ italian ] = "Esegui macro" ;
+ TEXT [ portuguese_brazilian ] = "Executar macro" ;
+ TEXT [ portuguese ] = "Executar macro" ;
+ TEXT [ finnish ] = "Suorita makro" ;
+ TEXT [ danish ] = "Udfr makro" ;
+ TEXT [ french ] = "Excuter la macro" ;
+ TEXT [ swedish ] = "Utfr makro" ;
+ TEXT [ dutch ] = "Macro uitvoeren" ;
+ TEXT [ spanish ] = "Ejecutar macro" ;
+ TEXT [ english_us ] = "Execute macro" ;
+ TEXT[ chinese_simplified ] = "ִк";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Wykonaj makro";
+ TEXT[ japanese ] = "ϸۂ̎s";
+ TEXT[ chinese_traditional ] = "楨";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = "ũ ";
+ TEXT[ turkish ] = "Makroyu altr";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_SEQFLD
+{
+ TEXT = "Nummernkreis" ;
+ TEXT [ English ] = "Sequence" ;
+ TEXT [ norwegian ] = "Sequence" ;
+ TEXT [ italian ] = "Sequenza" ;
+ TEXT [ portuguese_brazilian ] = "Sequncia" ;
+ TEXT [ portuguese ] = "Sequncia" ;
+ TEXT [ finnish ] = "Sarjanumero" ;
+ TEXT [ danish ] = "Sekvensnummererering" ;
+ TEXT [ french ] = "Squence" ;
+ TEXT [ swedish ] = "Nummersekvens" ;
+ TEXT [ dutch ] = "Nummerreeks" ;
+ TEXT [ spanish ] = "Secuencia" ;
+ TEXT [ english_us ] = "Number range" ;
+ TEXT[ chinese_simplified ] = "˳";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Sekwencja";
+ TEXT[ japanese ] = "A";
+ TEXT[ chinese_traditional ] = "s";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ";
+ TEXT[ turkish ] = "Numara aral";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_SETREFPAGEFLD
+{
+ TEXT = "Seitenvariable setzen" ;
+ TEXT [ English ] = "Set pagevariable" ;
+ Text [ english_us ] = "Set page variable" ;
+ Text [ italian ] = "Imposta variabile di pagina" ;
+ Text [ spanish ] = "Determinar variable de pgina" ;
+ Text [ french ] = "Variable de la page" ;
+ Text [ dutch ] = "Paginavariabele definiren" ;
+ Text [ swedish ] = "Stt sidvariabler" ;
+ Text [ danish ] = "Definer sidevariabel" ;
+ Text [ portuguese ] = "Definir varivel de pgina" ;
+ Text [ portuguese_brazilian ] = "Seitenvariable setzen" ;
+ Text[ chinese_simplified ] = "趨ҳ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Osad zmienn strony";
+ Text[ japanese ] = "߰ޕϐ̐ݒ";
+ Text[ chinese_traditional ] = "]wܼ";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = " ";
+ Text[ turkish ] = "Sayfa deikeni tanmla";
+ Text[ language_user1 ] = " ";
+};
+String STR_GETREFPAGEFLD
+{
+ TEXT = "Seitenvariable anzeigen" ;
+ TEXT [ English ] = "Show pagevariable" ;
+ Text [ dutch ] = "Paginavariabele weergeven" ;
+ Text [ english_us ] = "Show page variable" ;
+ Text [ italian ] = "Mostra variabile di pagina" ;
+ Text [ spanish ] = "Mostrar variable de pgina" ;
+ Text [ french ] = "Afficher variable de page" ;
+ Text [ swedish ] = "Visa sidvariabler" ;
+ Text [ danish ] = "Vis sidevariabel" ;
+ Text [ portuguese ] = "Mostrar varivel de pgina" ;
+ Text [ portuguese_brazilian ] = "Seitenvariable anzeigen" ;
+ Text[ chinese_simplified ] = "ʾҳ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Poka zmienn strony";
+ Text[ japanese ] = "߰ޕϐ̕\\";
+ Text[ chinese_traditional ] = "ܭܼ";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = " ̱";
+ Text[ turkish ] = "Sayfa deikenini grntle";
+ Text[ language_user1 ] = " ";
+};
+String STR_INTERNETFLD
+{
+ TEXT = "URL laden" ;
+ TEXT [ English ] = "Load URL" ;
+ Text [ english_us ] = "Load URL" ;
+ Text [ italian ] = "Carica URL" ;
+ Text [ spanish ] = "Cargar URL" ;
+ Text [ french ] = "Charger l'URL" ;
+ Text [ dutch ] = "URL laden" ;
+ Text [ swedish ] = "Ladda URL" ;
+ Text [ danish ] = "Indls URL" ;
+ Text [ portuguese ] = "Carregar URL" ;
+ Text [ portuguese_brazilian ] = "URL laden" ;
+ Text[ chinese_simplified ] = "װ URL";
+ Text[ russian ] = " URL";
+ Text[ polish ] = "aduj URL";
+ Text[ japanese ] = "URL̓ǂݍ";
+ Text[ chinese_traditional ] = "˸ URL";
+ Text[ arabic ] = " URL";
+ Text[ greek ] = " URL";
+ Text[ korean ] = "URL ε";
+ Text[ turkish ] = "URL'yi ykle";
+ Text[ language_user1 ] = " ";
+};
+String STR_JUMPEDITFLD
+{
+ TEXT = "Plat~zhalter" ;
+ TEXT [ English ] = "Pla~ce marker" ;
+ Text [ english_us ] = "Placeholder" ;
+ Text [ italian ] = "Segnaposto" ;
+ Text [ spanish ] = "~Comodn" ;
+ Text [ french ] = "~Substituant" ;
+ Text [ dutch ] = "~Plaatsaanwijzer" ;
+ Text [ swedish ] = "Plat~shllare" ;
+ Text [ danish ] = "Pladsholdere" ;
+ Text [ portuguese ] = "Marcador de ~posio" ;
+ Text [ portuguese_brazilian ] = "Plat~zhalter" ;
+ Text[ chinese_simplified ] = "ͨ";
+ Text[ russian ] = "-";
+ Text[ polish ] = "Znak wypeniacz";
+ Text[ japanese ] = "ܲ޶";
+ Text[ chinese_traditional ] = "qt";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "üƲ";
+ Text[ turkish ] = "Genel arama karakteri";
+ Text[ language_user1 ] = " ";
+};
+ //
+ // Bereich Referenzen
+ //
+String STR_SETREFFLD
+{
+ TEXT = "Referenz setzen" ;
+ TEXT [ English ] = "Set reference" ;
+ TEXT [ norwegian ] = "Set reference" ;
+ TEXT [ italian ] = "Imposta riferimento" ;
+ TEXT [ portuguese_brazilian ] = "Definir referncia" ;
+ TEXT [ portuguese ] = "Definir referncia" ;
+ TEXT [ finnish ] = "Mrit viittaus" ;
+ TEXT [ danish ] = "Definer reference" ;
+ TEXT [ french ] = "Dfinir une rfrence" ;
+ TEXT [ swedish ] = "Stt referens" ;
+ TEXT [ dutch ] = "Verwijzing definiren" ;
+ TEXT [ spanish ] = "Establecer referencia" ;
+ TEXT [ english_us ] = "Set Reference" ;
+ TEXT[ chinese_simplified ] = "趨";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Okrel odwoanie";
+ TEXT[ japanese ] = "QƐݒ";
+ TEXT[ chinese_traditional ] = "]wѷ";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ";
+ TEXT[ turkish ] = "Referans tanmla";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_GETREFFLD
+{
+ TEXT = "Referenz einfgen" ;
+ TEXT [ English ] = "Insert reference" ;
+ TEXT [ norwegian ] = "Insert reference" ;
+ TEXT [ italian ] = "Inserisci riferimento" ;
+ TEXT [ portuguese_brazilian ] = "Inserir referncia" ;
+ TEXT [ portuguese ] = "Inserir referncia" ;
+ TEXT [ finnish ] = "Lis viittaus" ;
+ TEXT [ danish ] = "Indst reference" ;
+ TEXT [ french ] = "Insrer une rfrence" ;
+ TEXT [ swedish ] = "Infoga referens" ;
+ TEXT [ dutch ] = "Verwijzing invoegen" ;
+ TEXT [ spanish ] = "Insertar referencia" ;
+ TEXT [ english_us ] = "Insert Reference" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Wstaw odwoanie";
+ TEXT[ japanese ] = "QƂ̑}";
+ TEXT[ chinese_traditional ] = "Jѷ";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ";
+ TEXT[ turkish ] = "Referans ekle";
+ TEXT[ language_user1 ] = " ";
+};
+ //
+ // Bereich Datenbank
+ //
+String STR_DBFLD
+{
+ TEXT = "Serienbrieffeld" ;
+ TEXT [ English ] = "Print merge field" ;
+ TEXT [ norwegian ] = "Print merge field" ;
+ TEXT [ italian ] = "Campo stampa in serie" ;
+ TEXT [ portuguese_brazilian ] = "Imprimir campo intercalado" ;
+ TEXT [ portuguese ] = "Campo para cartas em srie" ;
+ TEXT [ finnish ] = "Yhdistelykentt" ;
+ TEXT [ danish ] = "Brevfletningsfelt" ;
+ TEXT [ french ] = "Champ de mailing" ;
+ TEXT [ swedish ] = "Flt fr kopplad utskrift" ;
+ TEXT [ dutch ] = "Standaardbriefveld" ;
+ TEXT [ spanish ] = "Campo de carta en serie" ;
+ TEXT [ english_us ] = "Form letter field" ;
+ TEXT[ chinese_simplified ] = "ʼϲֶ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Pole koresp. seryj.";
+ TEXT[ japanese ] = "̨݈";
+ TEXT[ chinese_traditional ] = "X֦CL";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ʵ ";
+ TEXT[ turkish ] = "Standart mektup";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DBNEXTSETFLD
+{
+ TEXT = "Nchster Datensatz" ;
+ TEXT [ English ] = "Next Set" ;
+ TEXT [ norwegian ] = "Next Set" ;
+ TEXT [ italian ] = "Record dati successivo" ;
+ TEXT [ portuguese_brazilian ] = "Definir prximo" ;
+ TEXT [ portuguese ] = "Registo seguinte" ;
+ TEXT [ finnish ] = "Seuraava joukko" ;
+ TEXT [ danish ] = "Nste datapost" ;
+ TEXT [ french ] = "Enregistrement suivant" ;
+ TEXT [ swedish ] = "Nsta datapost" ;
+ TEXT [ dutch ] = "Volgende record" ;
+ TEXT [ spanish ] = "Registro siguiente" ;
+ TEXT [ english_us ] = "Next record" ;
+ TEXT[ chinese_simplified ] = "һĿ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Nastpny rekord";
+ TEXT[ japanese ] = "ں";
+ TEXT[ chinese_traditional ] = "U@Ӹƶ";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ڵ";
+ TEXT[ turkish ] = "Sonraki veri kmesi";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DBNUMSETFLD
+{
+ TEXT = "Beliebiger Datensatz" ;
+ TEXT [ English ] = "Random Set" ;
+ TEXT [ norwegian ] = "Random Set" ;
+ TEXT [ italian ] = "Qualsiasi record di dati" ;
+ TEXT [ portuguese_brazilian ] = "Definir aleatoriamente" ;
+ TEXT [ portuguese ] = "Registo aleatrio" ;
+ TEXT [ finnish ] = "Satunnainen joukko" ;
+ TEXT [ danish ] = "Vilkrlig datapost" ;
+ TEXT [ french ] = "Enregistrement alatoire" ;
+ TEXT [ swedish ] = "Slumpvis datapost" ;
+ TEXT [ dutch ] = "Willekeurige record" ;
+ TEXT [ spanish ] = "Cualquier registro" ;
+ TEXT [ english_us ] = "Any record" ;
+ TEXT[ chinese_simplified ] = "κһĿ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Dowolny rekord";
+ TEXT[ japanese ] = "Cӂں";
+ TEXT[ chinese_traditional ] = "@Ӹƶ";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ڵ";
+ TEXT[ turkish ] = "Herhangi bir veri kmesi";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DBSETNUMBERFLD
+{
+ TEXT = "Datensatznummer" ;
+ TEXT [ English ] = "Setnumber" ;
+ TEXT [ norwegian ] = "Setnumber" ;
+ TEXT [ italian ] = "Numero record dati" ;
+ TEXT [ portuguese_brazilian ] = "Definir nmero" ;
+ TEXT [ portuguese ] = "Nmero do registo" ;
+ TEXT [ finnish ] = "Joukon numero" ;
+ TEXT [ danish ] = "Datapostnummer" ;
+ TEXT [ french ] = "Numro d'enregistrement" ;
+ TEXT [ swedish ] = "Datapostnummer" ;
+ TEXT [ dutch ] = "Record-nummer" ;
+ TEXT [ spanish ] = "Nmero de registro" ;
+ TEXT [ english_us ] = "Record number" ;
+ TEXT[ chinese_simplified ] = "Ŀ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Numer rekordu";
+ TEXT[ japanese ] = "ںޔԍ";
+ TEXT[ chinese_traditional ] = "ƶظX";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = "ڵ ȣ";
+ TEXT[ turkish ] = "Veri kmesi numaras";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_PREVPAGEFLD
+{
+ TEXT = "Vorherige Seite" ;
+ TEXT [ English ] = "Prev Page" ;
+ TEXT [ norwegian ] = "Prev Page" ;
+ TEXT [ italian ] = "Pagina precedente" ;
+ TEXT [ portuguese_brazilian ] = "Examinar Pgina" ;
+ TEXT [ portuguese ] = "Pgina anterior" ;
+ TEXT [ finnish ] = "Edellinen sivu" ;
+ TEXT [ danish ] = "Forrige side" ;
+ TEXT [ french ] = "Page prcdente" ;
+ TEXT [ swedish ] = "Fregende sida" ;
+ TEXT [ dutch ] = "Vorige pagina" ;
+ TEXT [ spanish ] = "Pgina anterior" ;
+ TEXT [ english_us ] = "Previous page" ;
+ TEXT[ chinese_simplified ] = "һҳ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Poprzednia strona";
+ TEXT[ japanese ] = "O߰";
+ TEXT[ chinese_traditional ] = "W@";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ";
+ TEXT[ turkish ] = "nceki sayfa";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_NEXTPAGEFLD
+{
+ TEXT = "Nchste Seite" ;
+ TEXT [ English ] = "Next Page" ;
+ TEXT [ norwegian ] = "Neste side" ;
+ TEXT [ italian ] = "Pagina successiva" ;
+ TEXT [ portuguese_brazilian ] = "Prxima Pgina" ;
+ TEXT [ portuguese ] = "Pgina seguinte" ;
+ TEXT [ finnish ] = "Seuraava sivu" ;
+ TEXT [ danish ] = "Nste side" ;
+ TEXT [ french ] = "Page suivante" ;
+ TEXT [ swedish ] = "Nsta sida" ;
+ TEXT [ dutch ] = "Volgende pagina" ;
+ TEXT [ spanish ] = "Pgina siguiente" ;
+ TEXT [ english_us ] = "Next page" ;
+ TEXT[ chinese_simplified ] = "һҳ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Nastpna strona";
+ TEXT[ japanese ] = "߰";
+ TEXT[ chinese_traditional ] = "U@";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ";
+ TEXT[ turkish ] = "Sonraki sayfa";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_HIDDENTXTFLD
+{
+ TEXT = "Versteckter Text" ;
+ TEXT [ English ] = "Hidden Text" ;
+ TEXT [ norwegian ] = "Hidden Text" ;
+ TEXT [ italian ] = "Testo nascosto" ;
+ TEXT [ portuguese_brazilian ] = "Texto oculto" ;
+ TEXT [ portuguese ] = "Texto oculto" ;
+ TEXT [ finnish ] = "Piiloteksti" ;
+ TEXT [ danish ] = "Skjult tekst" ;
+ TEXT [ french ] = "Texte masqu" ;
+ TEXT [ swedish ] = "Dold text" ;
+ TEXT [ dutch ] = "Verborgen tekst" ;
+ TEXT [ spanish ] = "Texto oculto" ;
+ TEXT [ english_us ] = "Hidden text" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Ukryty tekst";
+ TEXT[ japanese ] = "B÷";
+ TEXT[ chinese_traditional ] = "Jr";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ؽƮ";
+ TEXT[ turkish ] = "Gizli";
+ TEXT[ language_user1 ] = " ";
+};
+ //
+ // Bereich Benutzerfelder
+ //
+String STR_USERFLD
+{
+ TEXT = "Benutzerfeld" ;
+ TEXT [ English ] = "User field" ;
+ TEXT [ norwegian ] = "User field" ;
+ TEXT [ italian ] = "Campo utente" ;
+ TEXT [ portuguese_brazilian ] = "Campo do usurio" ;
+ TEXT [ portuguese ] = "Campo do utilizador" ;
+ TEXT [ finnish ] = "Kyttjn kentt" ;
+ TEXT [ danish ] = "Brugerdefineret felt" ;
+ TEXT [ french ] = "Champ d'utilisateur" ;
+ TEXT [ swedish ] = "Anvndarflt" ;
+ TEXT [ dutch ] = "Gebruikersveld" ;
+ TEXT [ spanish ] = "Campo del usuario" ;
+ TEXT [ english_us ] = "User Field" ;
+ TEXT[ chinese_simplified ] = "ʹֶ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Pole uytkownika";
+ TEXT[ japanese ] = "հް̨";
+ TEXT[ chinese_traditional ] = "ϥΪ";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ʵ";
+ TEXT[ turkish ] = "Kullanc alan";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_POSTITFLD
+{
+ TEXT = "Notiz" ;
+ TEXT [ English ] = "Note" ;
+ TEXT [ norwegian ] = "Merknad" ;
+ TEXT [ italian ] = "Nota" ;
+ TEXT [ portuguese_brazilian ] = "Observao" ;
+ TEXT [ portuguese ] = "Anotao" ;
+ TEXT [ finnish ] = "Huomautus" ;
+ TEXT [ danish ] = "Note" ;
+ TEXT [ french ] = "Note" ;
+ TEXT [ swedish ] = "Anteckning" ;
+ TEXT [ dutch ] = "Aantekening" ;
+ TEXT [ spanish ] = "Nota" ;
+ TEXT [ english_us ] = "Note" ;
+ TEXT[ chinese_simplified ] = "ע";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Notatka";
+ TEXT[ japanese ] = "";
+ TEXT[ chinese_traditional ] = "ƪ`";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "޸";
+ TEXT[ turkish ] = "Not";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_SCRIPTFLD
+{
+ TEXT = "Script" ;
+ TEXT [ English ] = "Script" ;
+ Text [ dutch ] = "Script" ;
+ Text [ english_us ] = "Script" ;
+ Text [ italian ] = "Script" ;
+ Text [ spanish ] = "Script" ;
+ Text [ french ] = "Script" ;
+ Text [ swedish ] = "Skript" ;
+ Text [ danish ] = "Script" ;
+ Text [ portuguese ] = "Script" ;
+ Text [ portuguese_brazilian ] = "Script" ;
+ Text[ chinese_simplified ] = "ű";
+ Text[ russian ] = "";
+ Text[ polish ] = "Script";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "ROZ";
+ Text[ arabic ] = "Script";
+ Text[ greek ] = "Script";
+ Text[ korean ] = "ũƮ";
+ Text[ turkish ] = "Script";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTHORITY
+{
+ TEXT = "Eintrag Literaturverzeichnis" ;
+ TEXT [ English ] = "Authority entry" ;
+ TEXT[ english_us ] = "Bibliography entry";
+ TEXT[ portuguese ] = "Entrada bibliogrfica";
+ TEXT[ russian ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ dutch ] = "Item voor literatuurlijst";
+ TEXT[ french ] = "Entre de bibliographie";
+ TEXT[ spanish ] = "Entrada bibliografa";
+ TEXT[ italian ] = "Voce bibliografia";
+ TEXT[ danish ] = "Element litteraturliste";
+ TEXT[ swedish ] = "Post litteraturfrteckning";
+ TEXT[ polish ] = "Wpis bibliograficzny";
+ TEXT[ portuguese_brazilian ] = "Authority entry";
+ TEXT[ japanese ] = "Ql";
+ TEXT[ korean ] = " ׸";
+ TEXT[ chinese_simplified ] = "Ŀ¼Ŀ";
+ TEXT[ chinese_traditional ] = " ѦҤmؿ";
+ TEXT[ arabic ] = " ";
+ TEXT[ turkish ] = "Kaynaka girii";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_HIDDENPARAFLD
+{
+ TEXT = "Versteckter Absatz" ;
+ TEXT [ English ] = "Hidden paragraph" ;
+ TEXT [ norwegian ] = "Hidden paragraph" ;
+ TEXT [ italian ] = "Paragrafo vuoto" ;
+ TEXT [ portuguese_brazilian ] = "Pargrafo vazio" ;
+ TEXT [ portuguese ] = "Pargrafo oculto" ;
+ TEXT [ finnish ] = "Tyhj kappale" ;
+ TEXT [ danish ] = "Skjult afsnit" ;
+ TEXT [ french ] = "Paragraphe masqu" ;
+ TEXT [ swedish ] = "Dolt stycke" ;
+ TEXT [ dutch ] = "Verborgen alinea" ;
+ TEXT [ spanish ] = "Prrafo oculto" ;
+ TEXT [ english_us ] = "Hidden Paragraph" ;
+ TEXT[ chinese_simplified ] = "Ķ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Ukryty akapit";
+ TEXT[ japanese ] = "Bi";
+ TEXT[ chinese_traditional ] = "Jq";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ܶ";
+ TEXT[ turkish ] = "Gizli paragraf";
+ TEXT[ language_user1 ] = " ";
+};
+ //
+ // Bereich DokumentInfo
+ //
+String STR_DOCINFOFLD
+{
+ TEXT = "Dokumentinfo" ;
+ TEXT [ English ] = "Document info" ;
+ TEXT [ norwegian ] = "Document info" ;
+ TEXT [ italian ] = "Info documento" ;
+ TEXT [ portuguese_brazilian ] = "Informaes sobre o documento" ;
+ TEXT [ portuguese ] = "Info. sobre documento" ;
+ TEXT [ finnish ] = "Asiakirjan tiedot" ;
+ TEXT [ danish ] = "Dokumentinfo" ;
+ TEXT [ french ] = "Info document" ;
+ TEXT [ swedish ] = "Dokumentinformation" ;
+ TEXT [ dutch ] = "Documentinfo" ;
+ TEXT [ spanish ] = "Informacin del documento" ;
+ TEXT [ english_us ] = "DocInformation" ;
+ TEXT[ chinese_simplified ] = "ĵϢ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Informacje o dokumencie";
+ TEXT[ japanese ] = "޷IJ̫Ұ";
+ TEXT[ chinese_traditional ] = "T";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ";
+ TEXT[ turkish ] = "Belge bilgileri";
+ TEXT[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: SubCmd-Strings
+ --------------------------------------------------------------------*/
+String FLD_DATE_STD
+{
+ TEXT = "Datum" ;
+ TEXT [ English ] = "Date" ;
+ TEXT[ english_us ] = "Date";
+ TEXT[ portuguese ] = "Data";
+ TEXT[ russian ] = "";
+ TEXT[ dutch ] = "Datum";
+ TEXT[ french ] = "Date";
+ TEXT[ spanish ] = "Fecha";
+ TEXT[ italian ] = "Data";
+ TEXT[ danish ] = "Dato";
+ TEXT[ swedish ] = "Datum";
+ TEXT[ polish ] = "Data";
+ TEXT[ portuguese_brazilian ] = "Data (var.)";
+ TEXT[ japanese ] = "t";
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ chinese_traditional ] = "";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "Tarih";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_DATE_FIX
+{
+ TEXT = "Datum (fix)" ;
+ TEXT [ English ] = "Date (fix)" ;
+ TEXT [ norwegian ] = "Date (fix)" ;
+ TEXT [ italian ] = "Data (fissa)" ;
+ TEXT [ portuguese_brazilian ] = "Data (fix)" ;
+ TEXT [ portuguese ] = "Data (fixa)" ;
+ TEXT [ finnish ] = "Piv (vakio)" ;
+ TEXT [ danish ] = "Dato (fast)" ;
+ TEXT [ french ] = "Date (fixe)" ;
+ TEXT [ swedish ] = "Datum (fast)" ;
+ TEXT [ dutch ] = "Datum (vast)" ;
+ TEXT [ spanish ] = "Fecha (fija)" ;
+ TEXT [ english_us ] = "Date (fixed)" ;
+ TEXT[ chinese_simplified ] = "(̶)";
+ TEXT[ russian ] = " (.)";
+ TEXT[ polish ] = "Data (staa)";
+ TEXT[ japanese ] = "t(Œ)";
+ TEXT[ chinese_traditional ] = "(Tw)";
+ TEXT[ arabic ] = " ()";
+ TEXT[ greek ] = " ()";
+ TEXT[ korean ] = " ()";
+ TEXT[ turkish ] = "Tarih (sabit)";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_TIME_STD
+{
+ TEXT = "Uhrzeit" ;
+ TEXT [ English ] = "Time" ;
+ TEXT[ english_us ] = "Time";
+ TEXT[ portuguese ] = "Hora";
+ TEXT[ russian ] = "";
+ TEXT[ dutch ] = "Tijd";
+ TEXT[ french ] = "Heure";
+ TEXT[ spanish ] = "Hora";
+ TEXT[ italian ] = "Orario";
+ TEXT[ danish ] = "Klokkeslt";
+ TEXT[ swedish ] = "Klockslag";
+ TEXT[ polish ] = "Godzina";
+ TEXT[ portuguese_brazilian ] = "Hora (var.)";
+ TEXT[ japanese ] = "";
+ TEXT[ chinese_simplified ] = "ʱ";
+ TEXT[ chinese_traditional ] = "ɶ";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "ð";
+ TEXT[ turkish ] = "Saat";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_TIME_FIX
+{
+ TEXT = "Uhrzeit (fix)" ;
+ TEXT [ English ] = "Time (fix)" ;
+ TEXT [ norwegian ] = "Time (fix)" ;
+ TEXT [ italian ] = "Orario (fisso)" ;
+ TEXT [ portuguese_brazilian ] = "Hora (fix)" ;
+ TEXT [ portuguese ] = "Hora (fixa)" ;
+ TEXT [ finnish ] = "Aika (vakio)" ;
+ TEXT [ danish ] = "Klokkeslt (fast)" ;
+ TEXT [ french ] = "Heure (fixe)" ;
+ TEXT [ swedish ] = "Klockslag (fast)" ;
+ TEXT [ dutch ] = "Tijd (vast)" ;
+ TEXT [ spanish ] = "Hora (fija)" ;
+ TEXT [ english_us ] = "Time (fixed)" ;
+ TEXT[ chinese_simplified ] = "ʱ(̶)";
+ TEXT[ russian ] = " (.)";
+ TEXT[ polish ] = "Godzina (staa)";
+ TEXT[ japanese ] = "(Œ)";
+ TEXT[ chinese_traditional ] = "ɶ(Tw)";
+ TEXT[ arabic ] = " ()";
+ TEXT[ greek ] = " ()";
+ TEXT[ korean ] = "ð ()";
+ TEXT[ turkish ] = "Saat (sabit)";
+ TEXT[ language_user1 ] = " ";
+};
+ //
+ // SubCmd Statistik
+ //
+String FLD_STAT_TABLE
+{
+ TEXT = "Tabellen" ;
+ TEXT [ English ] = "Tables" ;
+ TEXT [ norwegian ] = "Tables" ;
+ TEXT [ italian ] = "Tabella" ;
+ TEXT [ portuguese_brazilian ] = "Tabelas" ;
+ TEXT [ portuguese ] = "Tabelas" ;
+ TEXT [ finnish ] = "Taulukot" ;
+ TEXT [ danish ] = "Tabeller" ;
+ TEXT [ french ] = "Tableaux" ;
+ TEXT [ swedish ] = "Tabeller" ;
+ TEXT [ dutch ] = "Tabellen" ;
+ TEXT [ spanish ] = "Tablas" ;
+ TEXT [ english_us ] = "Tables" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Tabele";
+ TEXT[ japanese ] = "\\";
+ TEXT[ chinese_traditional ] = "";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "ǥ";
+ TEXT[ turkish ] = "Tablo";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_STAT_CHAR
+{
+ TEXT = "Zeichen" ;
+ TEXT [ English ] = "Characters" ;
+ TEXT [ norwegian ] = "Characters" ;
+ TEXT [ italian ] = "Carattere" ;
+ TEXT [ portuguese_brazilian ] = "Caracteres" ;
+ TEXT [ portuguese ] = "Caracteres" ;
+ TEXT [ finnish ] = "Merkit" ;
+ TEXT [ danish ] = "Tegn" ;
+ TEXT [ french ] = "Caractres" ;
+ TEXT [ swedish ] = "Tecken" ;
+ TEXT [ dutch ] = "Teken" ;
+ TEXT [ spanish ] = "Caracteres" ;
+ TEXT [ english_us ] = "Characters" ;
+ TEXT[ chinese_simplified ] = "ַ";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Znaki";
+ TEXT[ japanese ] = "";
+ TEXT[ language_user1 ] = " ";
+ TEXT[ chinese_traditional ] = "r";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "Karakter";
+};
+String FLD_STAT_WORD
+{
+ TEXT = "Wrter" ;
+ TEXT [ English ] = "Words" ;
+ TEXT [ norwegian ] = "Words" ;
+ TEXT [ italian ] = "Parole" ;
+ TEXT [ portuguese_brazilian ] = "Palavras" ;
+ TEXT [ portuguese ] = "Palavras" ;
+ TEXT [ finnish ] = "Sanat" ;
+ TEXT [ danish ] = "Ord" ;
+ TEXT [ french ] = "Mots" ;
+ TEXT [ swedish ] = "Ord" ;
+ TEXT [ dutch ] = "Woorden" ;
+ TEXT [ spanish ] = "Palabras" ;
+ TEXT [ english_us ] = "Words" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Sowa";
+ TEXT[ japanese ] = "t";
+ TEXT[ chinese_traditional ] = "r";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "ܾ";
+ TEXT[ turkish ] = "Szck";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_STAT_PARA
+{
+ TEXT = "Abstze" ;
+ TEXT [ English ] = "Paragraphs" ;
+ TEXT [ norwegian ] = "Paragraphs" ;
+ TEXT [ italian ] = "Paragrafi" ;
+ TEXT [ portuguese_brazilian ] = "Pargrafos" ;
+ TEXT [ portuguese ] = "Pargrafos" ;
+ TEXT [ finnish ] = "Kappaleet" ;
+ TEXT [ danish ] = "Afsnit" ;
+ TEXT [ french ] = "Paragraphes" ;
+ TEXT [ swedish ] = "Stycken" ;
+ TEXT [ dutch ] = "Alinea's" ;
+ TEXT [ spanish ] = "Prrafos" ;
+ TEXT [ english_us ] = "Paragraphs" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Akapity";
+ TEXT[ japanese ] = "i";
+ TEXT[ chinese_traditional ] = "q";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "ܶ";
+ TEXT[ turkish ] = "Paragraf";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_STAT_GRF
+{
+ TEXT = "Grafiken" ;
+ TEXT [ English ] = "Graphics" ;
+ TEXT [ norwegian ] = "Grafikker" ;
+ TEXT [ italian ] = "Immagini" ;
+ TEXT [ portuguese_brazilian ] = "Grficos" ;
+ TEXT [ portuguese ] = "Imagens" ;
+ TEXT [ finnish ] = "Kuvat" ;
+ TEXT [ danish ] = "Grafik" ;
+ TEXT [ french ] = "Images" ;
+ TEXT [ swedish ] = "Grafiker" ;
+ TEXT [ dutch ] = "Afbeeldingen" ;
+ TEXT [ spanish ] = "Imgenes" ;
+ TEXT [ english_us ] = "Graphics" ;
+ TEXT[ chinese_simplified ] = "ͼ";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Grafiki";
+ TEXT[ japanese ] = "̨";
+ TEXT[ chinese_traditional ] = "Ϥ";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "׷";
+ TEXT[ turkish ] = "Grafik";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_STAT_OBJ
+{
+ TEXT = "Objekte" ;
+ TEXT [ English ] = "Objects" ;
+ TEXT [ norwegian ] = "Objects" ;
+ TEXT [ italian ] = "Oggetti" ;
+ TEXT [ portuguese_brazilian ] = "Objetos" ;
+ TEXT [ portuguese ] = "Objectos" ;
+ TEXT [ finnish ] = "Objektit" ;
+ TEXT [ danish ] = "Objekter" ;
+ TEXT [ french ] = "Objets" ;
+ TEXT [ swedish ] = "Objekt" ;
+ TEXT [ dutch ] = "Objecten" ;
+ TEXT [ spanish ] = "Objetos" ;
+ TEXT [ english_us ] = "Objects" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Obiekty";
+ TEXT[ japanese ] = "޼ު";
+ TEXT[ chinese_traditional ] = "";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "ü";
+ TEXT[ turkish ] = "Nesne";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_STAT_PAGE
+{
+ TEXT = "Seiten" ;
+ TEXT [ English ] = "Pages" ;
+ TEXT [ norwegian ] = "Pages" ;
+ TEXT [ italian ] = "Pagine" ;
+ TEXT [ portuguese_brazilian ] = "Pginas" ;
+ TEXT [ portuguese ] = "Pginas" ;
+ TEXT [ finnish ] = "Sivumr" ;
+ TEXT [ danish ] = "Sider" ;
+ TEXT [ french ] = "Pages" ;
+ TEXT [ swedish ] = "Sidor" ;
+ TEXT [ dutch ] = "Pagina's" ;
+ TEXT [ spanish ] = "Pginas" ;
+ TEXT [ english_us ] = "Pages" ;
+ TEXT[ chinese_simplified ] = "ҳ";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Strony";
+ TEXT[ japanese ] = "߰";
+ TEXT[ chinese_traditional ] = "";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "Sayfa";
+ TEXT[ language_user1 ] = " ";
+};
+ // SubCmd DDETypen
+ //
+String FMT_DDE_HOT
+{
+ TEXT = "DDE automatisch" ;
+ TEXT [ English ] = "DDE automatic" ;
+ TEXT [ norwegian ] = "DDE automatic" ;
+ TEXT [ italian ] = "DDE automatico" ;
+ TEXT [ portuguese_brazilian ] = "DDE autom tico" ;
+ TEXT [ portuguese ] = "DDE automtico" ;
+ TEXT [ finnish ] = "DDE automaattinen" ;
+ TEXT [ danish ] = "DDE automatisk" ;
+ TEXT [ french ] = "DDE automatique" ;
+ TEXT [ swedish ] = "DDE-automatisk" ;
+ TEXT [ dutch ] = "DDE automatisch" ;
+ TEXT [ spanish ] = "DDE automtico" ;
+ TEXT [ english_us ] = "DDE automatic" ;
+ TEXT[ chinese_simplified ] = "DDE Զ";
+ TEXT[ russian ] = "DDE ";
+ TEXT[ polish ] = "DDE automatycznie";
+ TEXT[ japanese ] = "DDE ";
+ TEXT[ chinese_traditional ] = "DDE ۰";
+ TEXT[ arabic ] = "DDE ";
+ TEXT[ greek ] = "DDE ";
+ TEXT[ korean ] = "DDE ڵ";
+ TEXT[ turkish ] = "Otomatik DDE";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_DDE_NORMAL
+{
+ TEXT = "DDE manuell" ;
+ TEXT [ English ] = "DDE manual" ;
+ TEXT [ norwegian ] = "DDE hndbok" ;
+ TEXT [ italian ] = "DDE manuale" ;
+ TEXT [ portuguese_brazilian ] = "DDE manual" ;
+ TEXT [ portuguese ] = "DDE manual" ;
+ TEXT [ finnish ] = "DDE manuaalinen" ;
+ TEXT [ danish ] = "DDE manuel" ;
+ TEXT [ french ] = "DDE manuel" ;
+ TEXT [ swedish ] = "DDE manuell" ;
+ TEXT [ dutch ] = "DDE-handmatig" ;
+ TEXT [ spanish ] = "DDE manual" ;
+ TEXT [ english_us ] = "DDE manual" ;
+ TEXT[ chinese_simplified ] = "DDE ֹ";
+ TEXT[ russian ] = "DDE ";
+ TEXT[ polish ] = "DDE rcznie";
+ TEXT[ japanese ] = "DDE 蓮";
+ TEXT[ chinese_traditional ] = "DDE Hu";
+ TEXT[ arabic ] = "DDE ";
+ TEXT[ greek ] = "DDE ";
+ TEXT[ korean ] = "DDE ";
+ TEXT[ turkish ] = "Manel DDE";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_INPUT_TEXT
+{
+ TEXT = "[Text]" ;
+};
+/*--------------------------------------------------------------------
+ Beschreibung: SubType Extuser
+ --------------------------------------------------------------------*/
+String FLD_EU_FIRMA
+{
+ TEXT = "Firma" ;
+ TEXT [ English ] = "Company" ;
+ TEXT [ norwegian ] = "Company" ;
+ TEXT [ italian ] = "Azienda" ;
+ TEXT [ portuguese_brazilian ] = "Compania" ;
+ TEXT [ portuguese ] = "Empresa" ;
+ TEXT [ finnish ] = "Yritys" ;
+ TEXT [ danish ] = "Firma" ;
+ TEXT [ french ] = "Socit" ;
+ TEXT [ swedish ] = "Fretag" ;
+ TEXT [ dutch ] = "Bedrijf" ;
+ TEXT [ spanish ] = "Empresa" ;
+ TEXT [ english_us ] = "Company" ;
+ TEXT[ chinese_simplified ] = "˾";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Firma";
+ TEXT[ japanese ] = "";
+ TEXT[ chinese_traditional ] = "q";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "ȸ";
+ TEXT[ turkish ] = "irket";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_VORNAME
+{
+ TEXT = "Vorname" ;
+ TEXT [ English ] = "First Name" ;
+ TEXT [ norwegian ] = "First Name" ;
+ TEXT [ italian ] = "Nome" ;
+ TEXT [ portuguese_brazilian ] = "Primeiro nome" ;
+ TEXT [ portuguese ] = "Nome prprio" ;
+ TEXT [ finnish ] = "Etunimi" ;
+ TEXT [ danish ] = "Fornavn" ;
+ TEXT [ french ] = "Prnom" ;
+ TEXT [ swedish ] = "Frnamn" ;
+ TEXT [ dutch ] = "Voornaam" ;
+ TEXT [ spanish ] = "Nombre" ;
+ TEXT [ english_us ] = "First Name" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Imi";
+ TEXT[ japanese ] = "";
+ TEXT[ chinese_traditional ] = "Wr";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "Ad";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_NAME
+{
+ TEXT = "Nachname" ;
+ TEXT [ English ] = "Last Name" ;
+ TEXT [ english_us ] = "Last Name" ;
+ Text [ portuguese ] = "Apelido" ;
+ Text [ portuguese_brazilian ] = "Nomear" ;
+ Text [ swedish ] = "Efternamn" ;
+ Text [ danish ] = "Efternavn" ;
+ Text [ italian ] = "Cognome" ;
+ Text [ spanish ] = "Apellidos" ;
+ Text [ french ] = "Nom" ;
+ Text [ dutch ] = "Achternaam" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Nazwisko";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "m";
+ Text[ arabic ] = " ";
+ Text[ greek ] = "";
+ Text[ korean ] = "̸";
+ Text[ turkish ] = "Soyad";
+ Text[ language_user1 ] = " ";
+};
+String FLD_EU_ABK
+{
+ TEXT = "Krzel" ;
+ TEXT [ English ] = "Short Cut" ;
+ TEXT [ norwegian ] = "Short Cut" ;
+ TEXT [ italian ] = "Iniziali" ;
+ TEXT [ portuguese_brazilian ] = "Atalho" ;
+ TEXT [ portuguese ] = "Iniciais" ;
+ TEXT [ finnish ] = "Pikatoiminto" ;
+ TEXT [ danish ] = "Initialer" ;
+ TEXT [ french ] = "Initiales" ;
+ TEXT [ swedish ] = "Initialer" ;
+ TEXT [ dutch ] = "Initialen" ;
+ TEXT [ spanish ] = "Iniciales" ;
+ TEXT [ english_us ] = "Initials" ;
+ TEXT[ chinese_simplified ] = "д";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Inicjay";
+ TEXT[ japanese ] = "Ƽ";
+ TEXT[ chinese_traditional ] = "Yg";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "Ӹ";
+ TEXT[ turkish ] = "Baharfler";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_STRASSE
+{
+ TEXT = "Strae" ;
+ TEXT [ English ] = "Street" ;
+ TEXT [ norwegian ] = "Street" ;
+ TEXT [ italian ] = "Via" ;
+ TEXT [ portuguese_brazilian ] = "Rua" ;
+ TEXT [ portuguese ] = "Rua" ;
+ TEXT [ finnish ] = "Lhiosoite" ;
+ TEXT [ danish ] = "Gade" ;
+ TEXT [ french ] = "Rue" ;
+ TEXT [ swedish ] = "Gata" ;
+ TEXT [ dutch ] = "Straat" ;
+ TEXT [ spanish ] = "Calle" ;
+ TEXT [ english_us ] = "Street" ;
+ TEXT[ chinese_simplified ] = "ֵ";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Ulica";
+ TEXT[ japanese ] = "s";
+ TEXT[ chinese_traditional ] = "D";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "ּҹ";
+ TEXT[ turkish ] = "Sokak";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_LAND
+{
+ TEXT = "Land" ;
+ TEXT [ English ] = "Country" ;
+ TEXT [ norwegian ] = "Country" ;
+ TEXT [ italian ] = "Paese" ;
+ TEXT [ portuguese_brazilian ] = "Pas" ;
+ TEXT [ portuguese ] = "Pas" ;
+ TEXT [ finnish ] = "Valtio" ;
+ TEXT [ danish ] = "Land" ;
+ TEXT [ french ] = "Pays" ;
+ TEXT [ swedish ] = "Land" ;
+ TEXT [ dutch ] = "Land" ;
+ TEXT [ spanish ] = "Pas" ;
+ TEXT [ english_us ] = "Country" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Kraj";
+ TEXT[ japanese ] = "";
+ TEXT[ chinese_traditional ] = "a";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "lke";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_PLZ
+{
+ TEXT = "PLZ" ;
+ TEXT [ English ] = "ZIP Code" ;
+ TEXT [ norwegian ] = "ZIP Code" ;
+ TEXT [ italian ] = "C.A.P." ;
+ TEXT [ portuguese_brazilian ] = "CEP" ;
+ TEXT [ portuguese ] = "CP" ;
+ TEXT [ finnish ] = "Postinro" ;
+ TEXT [ danish ] = "Postnr." ;
+ TEXT [ french ] = "Code postal" ;
+ TEXT [ swedish ] = "Postnummer" ;
+ TEXT [ dutch ] = "Postcode" ;
+ TEXT [ spanish ] = "CP" ;
+ TEXT [ english_us ] = "Zip code" ;
+ TEXT[ chinese_simplified ] = "ʱ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Kod pocztowy";
+ TEXT[ japanese ] = "X֔ԍ";
+ TEXT[ chinese_traditional ] = "lϸ";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = "..";
+ TEXT[ korean ] = "ȣ";
+ TEXT[ turkish ] = "P.Kodu";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_ORT
+{
+ TEXT = "Ort" ;
+ TEXT [ English ] = "City" ;
+ TEXT [ norwegian ] = "City" ;
+ TEXT [ italian ] = "Localit" ;
+ TEXT [ portuguese_brazilian ] = "Cidade" ;
+ TEXT [ portuguese ] = "Cidade" ;
+ TEXT [ finnish ] = "Kaupunki" ;
+ TEXT [ danish ] = "By" ;
+ TEXT [ french ] = "Ville" ;
+ TEXT [ swedish ] = "Stad" ;
+ TEXT [ dutch ] = "Plaats" ;
+ TEXT [ spanish ] = "Ciudad" ;
+ TEXT [ english_us ] = "City" ;
+ TEXT[ chinese_simplified ] = "λ";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Miejscowo";
+ TEXT[ japanese ] = "BAs{";
+ TEXT[ chinese_traditional ] = "m";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "ehir";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_TITEL
+{
+ TEXT = "Titel" ;
+ TEXT [ English ] = "Titel" ;
+ TEXT [ norwegian ] = "Tittel" ;
+ TEXT [ italian ] = "Titolo" ;
+ TEXT [ portuguese_brazilian ] = "Ttilo" ;
+ TEXT [ portuguese ] = "Ttulo" ;
+ TEXT [ finnish ] = "Otsikko" ;
+ TEXT [ danish ] = "Titel" ;
+ TEXT [ french ] = "Titre" ;
+ TEXT [ swedish ] = "Rubrik" ;
+ TEXT [ dutch ] = "Titel" ;
+ TEXT [ spanish ] = "Ttulo" ;
+ TEXT [ english_us ] = "Title" ;
+ TEXT[ chinese_simplified ] = "ͷ";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Tytu";
+ TEXT[ japanese ] = "";
+ TEXT[ chinese_traditional ] = "Y";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "Unvan";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_POS
+{
+ TEXT = "Position" ;
+ TEXT [ English ] = "Position" ;
+ TEXT [ norwegian ] = "Posisjon" ;
+ TEXT [ italian ] = "Posizione" ;
+ TEXT [ portuguese_brazilian ] = "Posio" ;
+ TEXT [ portuguese ] = "Posio" ;
+ TEXT [ finnish ] = "Sijainti" ;
+ TEXT [ danish ] = "Stilling" ;
+ TEXT [ french ] = "Position" ;
+ TEXT [ swedish ] = "Position" ;
+ TEXT [ dutch ] = "Positie" ;
+ TEXT [ spanish ] = "Posicin" ;
+ TEXT [ english_us ] = "Position" ;
+ TEXT[ chinese_simplified ] = "λ";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Pozycja";
+ TEXT[ japanese ] = "ʒu";
+ TEXT[ chinese_traditional ] = "m";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "Pozisyon";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_TELPRIV
+{
+ TEXT = "Tel. (Privat)" ;
+ TEXT [ English ] = "Phone (private)" ;
+ TEXT [ norwegian ] = "Phone (private)" ;
+ TEXT [ italian ] = "Telefono (priv.)" ;
+ TEXT [ portuguese_brazilian ] = "Fone (privado)" ;
+ TEXT [ portuguese ] = "Tel. (part.)" ;
+ TEXT [ finnish ] = "Puhelin (kotiin)" ;
+ TEXT [ danish ] = "Tlf. (privat)" ;
+ TEXT [ french ] = "Tl. (domicile)" ;
+ TEXT [ swedish ] = "Tfn. (privat)" ;
+ TEXT [ dutch ] = "Tel. (priv)" ;
+ TEXT [ spanish ] = "Tel. (Priv.)" ;
+ TEXT [ english_us ] = "Tel. (Home)" ;
+ TEXT[ chinese_simplified ] = "绰(˽)";
+ TEXT[ russian ] = ". ()";
+ TEXT[ polish ] = "Tel. (prywatny)";
+ TEXT[ japanese ] = "Tel.()";
+ TEXT[ chinese_traditional ] = "q(pH)";
+ TEXT[ arabic ] = " ()";
+ TEXT[ greek ] = ". ()";
+ TEXT[ korean ] = "ȭȣ ()";
+ TEXT[ turkish ] = "Tlf. (Ev)";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_TELFIRMA
+{
+ TEXT = "Tel. (Geschft)" ;
+ TEXT [ English ] = "Phone (Company)" ;
+ TEXT [ norwegian ] = "Phone (Company)" ;
+ TEXT [ italian ] = "Telefono (uff.)" ;
+ TEXT [ portuguese_brazilian ] = "Fone (Compania)" ;
+ TEXT [ portuguese ] = "Tel. (empr.)" ;
+ TEXT [ finnish ] = "Puhelin (tyhn)" ;
+ TEXT [ danish ] = "Tlf. (arbejde)" ;
+ TEXT [ french ] = "Tl. (bureau)" ;
+ TEXT [ swedish ] = "Tfn. (fretag)" ;
+ TEXT [ dutch ] = "Tel. (Bedrijf)" ;
+ TEXT [ spanish ] = "Tel. (Emp.)" ;
+ TEXT [ english_us ] = "Tel. (Work)" ;
+ TEXT[ chinese_simplified ] = "绰(칫)";
+ TEXT[ russian ] = ". ()";
+ TEXT[ polish ] = "Tel. (firmowy)";
+ TEXT[ japanese ] = "Tel.(Ζ)";
+ TEXT[ chinese_traditional ] = "q(줽)";
+ TEXT[ arabic ] = " ()";
+ TEXT[ greek ] = ". ()";
+ TEXT[ korean ] = "ȭȣ. ()";
+ TEXT[ turkish ] = "Tlf. ()";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_FAX
+{
+ TEXT = "FAX" ;
+};
+String FLD_EU_EMAIL
+{
+ TEXT = "E-Mail" ;
+ TEXT [ English ] = "E-mail" ;
+ Text [ portuguese ] = "E-mail" ;
+ Text [ english_us ] = "E-mail" ;
+ Text [ portuguese_brazilian ] = "E-Mail" ;
+ Text [ swedish ] = "E-post" ;
+ Text [ danish ] = "E-mail" ;
+ Text [ italian ] = "eMail" ;
+ Text [ spanish ] = "E-mail" ;
+ Text [ french ] = "E-Mail" ;
+ Text [ dutch ] = "E-mail" ;
+ Text[ chinese_simplified ] = "ʼ";
+ Text[ russian ] = " . ";
+ Text[ polish ] = "e-mail";
+ Text[ japanese ] = "E-mail";
+ Text[ chinese_traditional ] = "qll";
+ Text[ arabic ] = " ";
+ Text[ greek ] = "E-mail";
+ Text[ korean ] = "ڿ";
+ Text[ turkish ] = "E-posta";
+ Text[ language_user1 ] = " ";
+};
+String FLD_EU_STATE
+{
+ Text = "Staat" ;
+ Text [ English ] = "State" ;
+ Text [ english_us ] = "State" ;
+ Text [ italian ] = "Stato" ;
+ Text [ spanish ] = "Estado" ;
+ Text [ french ] = "Rgion" ;
+ Text [ dutch ] = "Staat" ;
+ Text [ danish ] = "Stat" ;
+ Text [ portuguese_brazilian ] = "Staat" ;
+ Text [ portuguese ] = "Estado" ;
+ Text [ swedish ] = "Stat" ;
+ Text[ chinese_simplified ] = "ʡ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Pastwo";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "٥";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "l";
+ Text[ language_user1 ] = " ";
+};
+String FLD_PAGEREF_OFF
+{
+ TEXT = "aus" ;
+ TEXT [ English ] = "off" ;
+ Text [ english_us ] = "off" ;
+ Text [ italian ] = "off" ;
+ Text [ spanish ] = "de" ;
+ Text [ french ] = "dsactiv" ;
+ Text [ dutch ] = "uit" ;
+ Text [ swedish ] = "av" ;
+ Text [ danish ] = "deaktiveret" ;
+ Text [ portuguese ] = "desligado" ;
+ Text [ portuguese_brazilian ] = "aus" ;
+ Text[ chinese_simplified ] = "ʧ";
+ Text[ russian ] = ".";
+ Text[ polish ] = "wycz";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "kapal";
+ Text[ language_user1 ] = " ";
+};
+String FLD_PAGEREF_ON
+{
+ TEXT = "an" ;
+ TEXT [ English ] = "on" ;
+ Text [ english_us ] = "on" ;
+ Text [ italian ] = "on" ;
+ Text [ spanish ] = "en" ;
+ Text [ french ] = "activ" ;
+ Text [ dutch ] = "aan" ;
+ Text [ swedish ] = "p" ;
+ Text [ danish ] = "aktiveret" ;
+ Text [ portuguese ] = "ligado" ;
+ Text [ portuguese_brazilian ] = "an" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = ".";
+ Text[ polish ] = "wcz";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "۵";
+ Text[ turkish ] = "Ak";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Pfadname
+ --------------------------------------------------------------------*/
+ // Formate FileName
+String FMT_FF_NAME
+{
+ TEXT = "Dateiname" ;
+ TEXT [ English ] = "Filename" ;
+ TEXT [ norwegian ] = "Filename" ;
+ TEXT [ italian ] = "Nome file" ;
+ TEXT [ portuguese_brazilian ] = "Nome do Arquivo" ;
+ TEXT [ portuguese ] = "Nome do ficheiro" ;
+ TEXT [ finnish ] = "Tiedostonimi" ;
+ TEXT [ danish ] = "Filnavn" ;
+ TEXT [ french ] = "Nom de fichier" ;
+ TEXT [ swedish ] = "Filnamn" ;
+ TEXT [ dutch ] = "Naam bestand" ;
+ TEXT [ spanish ] = "Nombre del archivo" ;
+ TEXT [ english_us ] = "File name" ;
+ TEXT[ chinese_simplified ] = "ļ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Nazwa pliku";
+ TEXT[ japanese ] = "̧ٖ";
+ TEXT[ chinese_traditional ] = "ɮצW";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ̸";
+ TEXT[ turkish ] = "Dosya ad";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_FF_NAME_NOEXT
+{
+ TEXT = "Dateiname ohne Erweiterung" ;
+ TEXT [ English ] = "Filename without extension" ;
+ Text [ portuguese ] = "Nome do ficheiro sem extenso" ;
+ Text [ english_us ] = "File name without extension" ;
+ Text [ portuguese_brazilian ] = "Dateiname ohne Erweiterung" ;
+ Text [ swedish ] = "Filnamn utan tillgg" ;
+ Text [ danish ] = "Filnavn uden filtypenavn" ;
+ Text [ italian ] = "File senza estensione" ;
+ Text [ spanish ] = "Nombre del archivo sin extensin" ;
+ Text [ french ] = "Nom de fichier sans extension" ;
+ Text [ dutch ] = "Bestandsnaam zonder extensie" ;
+ Text[ chinese_simplified ] = "չļ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Nazwa pliku bez rozszerzenia";
+ Text[ japanese ] = "gqȂ̧ٖ";
+ Text[ chinese_traditional ] = "tɦWɮצW";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "Ȯ ̸";
+ Text[ turkish ] = "Uzantsz dosya ad";
+ Text[ language_user1 ] = " ";
+};
+String FMT_FF_PATHNAME
+{
+ TEXT = "Pfad/Dateiname" ;
+ TEXT [ English ] = "Path/Filename" ;
+ TEXT [ norwegian ] = "Path/Filename" ;
+ TEXT [ italian ] = "Percorso/Nome file" ;
+ TEXT [ portuguese_brazilian ] = "Caminho/Nome do arquivo" ;
+ TEXT [ portuguese ] = "Atalho/Nome do ficheiro" ;
+ TEXT [ finnish ] = "Polku/Tiedostonimi" ;
+ TEXT [ danish ] = "Sti/Filnavn" ;
+ TEXT [ french ] = "Chemin/Nom de fichier" ;
+ TEXT [ swedish ] = "Skvg/Filnamn" ;
+ TEXT [ dutch ] = "Pad/Bestandsnaam" ;
+ TEXT [ spanish ] = "Ruta de acceso/Nombre de archivo" ;
+ TEXT [ english_us ] = "Path/File name" ;
+ TEXT[ chinese_simplified ] = "·/ļ";
+ TEXT[ russian ] = "/ ";
+ TEXT[ polish ] = "cieka/Nazwa pliku";
+ TEXT[ japanese ] = "߽/̧ٖ";
+ TEXT[ chinese_traditional ] = "|MɮצW";
+ TEXT[ arabic ] = "/ ";
+ TEXT[ greek ] = "/ ";
+ TEXT[ korean ] = "/ ̸";
+ TEXT[ turkish ] = "Veri yolu/Dosya ad";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_FF_PATH
+{
+ TEXT = "Pfad" ;
+ TEXT [ English ] = "Path" ;
+ TEXT [ norwegian ] = "Bane" ;
+ TEXT [ italian ] = "Percorso" ;
+ TEXT [ portuguese_brazilian ] = "Caminho" ;
+ TEXT [ portuguese ] = "Atalho" ;
+ TEXT [ finnish ] = "Polku" ;
+ TEXT [ danish ] = "Sti" ;
+ TEXT [ french ] = "Chemin" ;
+ TEXT [ swedish ] = "Skvg" ;
+ TEXT [ dutch ] = "Pad" ;
+ TEXT [ spanish ] = "Ruta" ;
+ TEXT [ english_us ] = "Path" ;
+ TEXT[ chinese_simplified ] = "·";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "cieka";
+ TEXT[ japanese ] = "߽";
+ TEXT[ chinese_traditional ] = "|";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "Veri yolu";
+};
+String FMT_FF_UI_NAME
+{
+ TEXT = "Vorlage" ;
+ TEXT [ English ] = "Template" ;
+ Text [ portuguese ] = "Estilo" ;
+ Text [ english_us ] = "Style" ;
+ Text [ portuguese_brazilian ] = "Vorlage" ;
+ Text [ swedish ] = "Mall" ;
+ Text [ danish ] = "Skabelon" ;
+ Text [ italian ] = "Modello" ;
+ Text [ spanish ] = "Plantilla" ;
+ Text [ french ] = "Style" ;
+ Text [ dutch ] = "Sjabloon" ;
+ Text[ chinese_simplified ] = "ʽ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Szablon";
+ Text[ japanese ] = "ڰ";
+ Text[ chinese_traditional ] = "˦";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "øƮ";
+ Text[ turkish ] = "ablon";
+ Text[ language_user1 ] = " ";
+};
+String FMT_FF_UI_RANGE
+{
+ TEXT = "Bereich" ;
+ TEXT [ English ] = "Group" ;
+ Text [ portuguese ] = "rea" ;
+ Text [ english_us ] = "Area" ;
+ Text [ portuguese_brazilian ] = "Bereich" ;
+ Text [ swedish ] = "Omrde" ;
+ Text [ danish ] = "Omrde" ;
+ Text [ italian ] = "Sezione" ;
+ Text [ spanish ] = "Area" ;
+ Text [ french ] = "Plage" ;
+ Text [ dutch ] = "Bereik" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Obszar";
+ Text[ japanese ] = "͈";
+ Text[ chinese_traditional ] = "ϰ";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Aralk";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Format Kapitel
+ --------------------------------------------------------------------*/
+String FMT_CHAPTER_NAME
+{
+ TEXT = "Kapitelname" ;
+ TEXT [ English ] = "Chapter name" ;
+ TEXT [ norwegian ] = "Chapter name" ;
+ TEXT [ italian ] = "Nome capitolo" ;
+ TEXT [ portuguese_brazilian ] = "Nome do captulo" ;
+ TEXT [ portuguese ] = "Nome do captulo" ;
+ TEXT [ finnish ] = "Luvun nimi" ;
+ TEXT [ danish ] = "Kapitelnavn" ;
+ TEXT [ french ] = "Nom de chapitre" ;
+ TEXT [ swedish ] = "Kapitelnamn" ;
+ TEXT [ dutch ] = "Naam hoofdstuk" ;
+ TEXT [ spanish ] = "Nombre del captulo" ;
+ TEXT [ english_us ] = "Chapter name" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Nazwa rozdziau";
+ TEXT[ japanese ] = "̖͂";
+ TEXT[ language_user1 ] = " ";
+ TEXT[ chinese_traditional ] = "W";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ̸";
+ TEXT[ turkish ] = "Blm ad";
+};
+String FMT_CHAPTER_NO
+{
+ TEXT = "Kapitelnummer" ;
+ TEXT [ English ] = "Chapter number" ;
+ Text [ portuguese ] = "Nmero do captulo" ;
+ Text [ english_us ] = "Chapter number" ;
+ Text [ portuguese_brazilian ] = "Nmero do captulo" ;
+ Text [ swedish ] = "Kapitelnummer" ;
+ Text [ danish ] = "Kapitelnummer" ;
+ Text [ italian ] = "Numero capitolo" ;
+ Text [ spanish ] = "Nmero del captulo" ;
+ Text [ french ] = "Numro de chapitre" ;
+ Text [ dutch ] = "Nummer hoofdstuk" ;
+ Text[ chinese_simplified ] = "±";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Numer rozdziau";
+ Text[ japanese ] = "͔ԍ";
+ Text[ chinese_traditional ] = "s";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = " ȣ";
+ Text[ turkish ] = "Blm numaras";
+ Text[ language_user1 ] = " ";
+};
+String FMT_CHAPTER_NO_NOSEPARATOR
+{
+ TEXT = "Kapitelnummer ohne Trennzeichen" ;
+ TEXT [ English ] = "Chapter number without separator" ;
+ Text [ portuguese ] = "Nmero de captulo sem separador" ;
+ Text [ english_us ] = "Chapter number without separator" ;
+ Text [ portuguese_brazilian ] = "Kapitelnummer ohne Trennzeichen" ;
+ Text [ swedish ] = "Kapitelnummer utan skiljetecken" ;
+ Text [ danish ] = "Kapitelnummer uden skilletegn" ;
+ Text [ italian ] = "Numero di capitolo senza separatore" ;
+ Text [ spanish ] = "Nmero de captulo sin separador" ;
+ Text [ french ] = "Numro de chapitre sans sparateur" ;
+ Text [ dutch ] = "Hoofdstuknummer zonder scheidingstekens" ;
+ Text[ chinese_simplified ] = "±Ųַ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Numer rozdziau bez separatora";
+ Text[ japanese ] = "ʲ݂Ȃ͔̏ԍ";
+ Text[ chinese_traditional ] = "sasr";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = " ȣ";
+ Text[ turkish ] = "Ayrma iareti iermeyen blm numaras";
+ Text[ language_user1 ] = " ";
+};
+String FMT_CHAPTER_NAMENO
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Kapitelnummer und Name : Nummer und Name */
+ TEXT = "Kapitelnummer und Name" ;
+ TEXT [ English ] = "Chapter number and name" ;
+ Text [ portuguese ] = "Nmero e nome do captulo" ;
+ Text [ english_us ] = "Chapter number and name" ;
+ Text [ portuguese_brazilian ] = "Nmero e nome" ;
+ Text [ swedish ] = "Kapitelnummer och namn" ;
+ Text [ danish ] = "Kapitelnummer og navn" ;
+ Text [ italian ] = "Numero di capitolo e nome" ;
+ Text [ spanish ] = "Nmero y nombre" ;
+ Text [ french ] = "Numro et nom de chapitre" ;
+ Text [ dutch ] = "Hoofdstuknummer en naam" ;
+ Text[ chinese_simplified ] = "±ź";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Numer i nazwa rozdziau";
+ Text[ japanese ] = "͂̔ԍƖ";
+ Text[ chinese_traditional ] = "sMW";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = " ȣ ̸";
+ Text[ turkish ] = "Blm numaras ve ad";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Formate
+ --------------------------------------------------------------------*/
+String FMT_NUM_ABC
+{
+ TEXT = "A B C" ;
+};
+String FMT_NUM_SABC
+{
+ TEXT = "a b c" ;
+};
+String FMT_NUM_ABC_N
+{
+ TEXT = "A .. AA .. AAA" ;
+};
+String FMT_NUM_SABC_N
+{
+ TEXT = "a .. aa .. aaa" ;
+};
+String FMT_NUM_ROMAN
+{
+ TEXT = "Rmisch (I II III)" ;
+ TEXT [ English ] = "Roman (I II III)" ;
+ TEXT [ norwegian ] = "Roman (I II III)" ;
+ TEXT [ italian ] = "Romani (I II III)" ;
+ TEXT [ portuguese_brazilian ] = "Romano (I II III)" ;
+ TEXT [ portuguese ] = "Romano (I II III)" ;
+ TEXT [ finnish ] = "Roomalainen (I II III)" ;
+ TEXT [ danish ] = "Romertal (I II III)" ;
+ TEXT [ french ] = "Romain (I II III)" ;
+ TEXT [ swedish ] = "Romerska siffror (I II III)" ;
+ TEXT [ dutch ] = "Romeins (I II III)" ;
+ TEXT [ spanish ] = "Romanos (I II III)" ;
+ TEXT [ english_us ] = "Roman (I II III)" ;
+ TEXT[ chinese_simplified ] = "(I II III)";
+ TEXT[ russian ] = " (I II III)";
+ TEXT[ polish ] = "Rzymskie (I II III)";
+ TEXT[ japanese ] = "۰ϐ (I II III)";
+ TEXT[ chinese_traditional ] = "ùƦr(I II III)";
+ TEXT[ arabic ] = " (III II I)";
+ TEXT[ greek ] = " (I II III)";
+ TEXT[ korean ] = "θ (I II III)";
+ TEXT[ turkish ] = "Roma (I II III)";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_NUM_SROMAN
+{
+ TEXT = "Rmisch (i ii iii)" ;
+ TEXT [ English ] = "Roman (i ii iii)" ;
+ TEXT [ norwegian ] = "Roman (i ii iii)" ;
+ TEXT [ italian ] = "Romani (i ii iii)" ;
+ TEXT [ portuguese_brazilian ] = "Romano (i ii iii)" ;
+ TEXT [ portuguese ] = "Romano (i ii iii)" ;
+ TEXT [ finnish ] = "Roomalainen (i ii iii)" ;
+ TEXT [ danish ] = "Romertal (i ii iii)" ;
+ TEXT [ french ] = "Romain (i ii iii)" ;
+ TEXT [ swedish ] = "Romerska siffror (i ii iii)" ;
+ TEXT [ dutch ] = "Romeins (i ii iii)" ;
+ TEXT [ spanish ] = "Romanos (i ii iii)" ;
+ TEXT [ english_us ] = "Roman (i ii iii)" ;
+ TEXT[ chinese_simplified ] = "(i ii iii)";
+ TEXT[ russian ] = " (i ii iii)";
+ TEXT[ polish ] = "Rzymskie (i ii iii)";
+ TEXT[ japanese ] = "۰ϐ (i ii iii)";
+ TEXT[ chinese_traditional ] = "ùƦr(i ii iii)";
+ TEXT[ arabic ] = " (iii ii i)";
+ TEXT[ greek ] = " (i ii iii)";
+ TEXT[ korean ] = "θ (i ii iii)";
+ TEXT[ turkish ] = "Roma (i ii iii)";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_NUM_ARABIC
+{
+ TEXT = "Arabisch (1 2 3)" ;
+ TEXT [ English ] = "Arabic (1 2 3)" ;
+ TEXT [ norwegian ] = "Arabic (1 2 3)" ;
+ TEXT [ italian ] = "Arabi (1 2 3)" ;
+ TEXT [ portuguese_brazilian ] = "Arbico (1 2 3)" ;
+ TEXT [ portuguese ] = "Arbe (1 2 3)" ;
+ TEXT [ finnish ] = "Arabialainen (1 2 3)" ;
+ TEXT [ danish ] = "Arabisk (1 2 3)" ;
+ TEXT [ french ] = "Arabe (1 2 3)" ;
+ TEXT [ swedish ] = "Arabiska siffror (1 2 3)" ;
+ TEXT [ dutch ] = "Arabisch (1 2 3)" ;
+ TEXT [ spanish ] = "rabes (1 2 3)" ;
+ TEXT [ english_us ] = "Arabic (1 2 3)" ;
+ TEXT[ chinese_simplified ] = "(1 2 3)";
+ TEXT[ russian ] = " (1 2 3)";
+ TEXT[ polish ] = "Arabskie (1 2 3)";
+ TEXT[ japanese ] = "ޱ(1 2 3)";
+ TEXT[ chinese_traditional ] = "ԧBƦr(1 2 3)";
+ TEXT[ arabic ] = " (1 2 3)";
+ TEXT[ greek ] = " (1 2 3)";
+ TEXT[ korean ] = "ƶ (1 2 3)";
+ TEXT[ turkish ] = "Arap (1 2 3)";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_NUM_PAGEDESC
+{
+ TEXT = "Wie Seitenvorlage" ;
+ TEXT [ English ] = "As Page Style" ;
+ TEXT [ norwegian ] = "As Page Style" ;
+ TEXT [ italian ] = "Come modello di pagina" ;
+ TEXT [ portuguese_brazilian ] = "Como Estilo de Pgina" ;
+ TEXT [ portuguese ] = "Como estilo de pgina" ;
+ TEXT [ finnish ] = "Sivutyylin" ;
+ TEXT [ danish ] = "Som sidetypografi" ;
+ TEXT [ french ] = "D'aprs le style de page" ;
+ TEXT [ swedish ] = "Som sidformatmallen" ;
+ TEXT [ dutch ] = "Zoals pagina-opmaakprofiel" ;
+ TEXT [ spanish ] = "Como estilo de pgina" ;
+ TEXT [ english_us ] = "As Page Style" ;
+ TEXT[ chinese_simplified ] = "ҳʽͬ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Jako styl strony";
+ TEXT[ japanese ] = "߰޽ق̐ݒKp";
+ TEXT[ chinese_traditional ] = "M˦ۦP";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ó";
+ TEXT[ turkish ] = "Sayfa biimi gibi";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_NUM_PAGESPECIAL
+{
+ TEXT = "Text" ;
+ TEXT [ English ] = "Text" ;
+ Text [ english_us ] = "Text" ;
+ Text [ italian ] = "Testo" ;
+ Text [ spanish ] = "Texto" ;
+ Text [ french ] = "Texte" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ swedish ] = "Text" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ portuguese ] = "Texto" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷";
+ Text[ chinese_traditional ] = "r";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ؽƮ";
+ Text[ turkish ] = "Metin";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Author
+ --------------------------------------------------------------------*/
+String FMT_AUTHOR_NAME
+{
+ TEXT = "Name" ;
+ TEXT [ English ] = "Name" ;
+ TEXT [ norwegian ] = "Navn" ;
+ TEXT [ italian ] = "Nome" ;
+ TEXT [ portuguese_brazilian ] = "Nomear" ;
+ TEXT [ portuguese ] = "Nome" ;
+ TEXT [ finnish ] = "Nimi" ;
+ TEXT [ danish ] = "Navn" ;
+ TEXT [ french ] = "Nom" ;
+ TEXT [ swedish ] = "Namn" ;
+ TEXT [ dutch ] = "Naam" ;
+ TEXT [ spanish ] = "Nombre" ;
+ TEXT [ english_us ] = "Name" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Nazwa";
+ TEXT[ japanese ] = "O";
+ TEXT[ chinese_traditional ] = "mW";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "̸";
+ TEXT[ turkish ] = "Ad";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_AUTHOR_SCUT
+{
+ TEXT = "Krzel" ;
+ TEXT [ English ] = "Short name" ;
+ TEXT [ norwegian ] = "Short name" ;
+ TEXT [ italian ] = "Iniziali" ;
+ TEXT [ portuguese_brazilian ] = "Abreviao" ;
+ TEXT [ portuguese ] = "Iniciais" ;
+ TEXT [ finnish ] = "Lyhyt nimi" ;
+ TEXT [ danish ] = "Initialer" ;
+ TEXT [ french ] = "Abrviation" ;
+ TEXT [ swedish ] = "Inititaler" ;
+ TEXT [ dutch ] = "Initialen" ;
+ TEXT [ spanish ] = "Iniciales" ;
+ TEXT [ english_us ] = "Initials" ;
+ TEXT[ chinese_simplified ] = "д";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Inicjay";
+ TEXT[ japanese ] = "Ƽ";
+ TEXT[ chinese_traditional ] = "Yg";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "Ӹ";
+ TEXT[ turkish ] = "Baharfler";
+ TEXT[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Varibale setzen
+ --------------------------------------------------------------------*/
+String FMT_SETVAR_SYS
+{
+ TEXT = "System" ;
+ TEXT [ English ] = "System" ;
+ Text [ portuguese ] = "Sistema" ;
+ Text [ english_us ] = "System" ;
+ Text [ portuguese_brazilian ] = "System" ;
+ Text [ swedish ] = "System" ;
+ Text [ danish ] = "System" ;
+ Text [ italian ] = "Sistema" ;
+ Text [ spanish ] = "Sistema" ;
+ Text [ french ] = "Systme" ;
+ Text [ dutch ] = "Systeem" ;
+ Text[ chinese_simplified ] = "ϵͳ";
+ Text[ russian ] = "";
+ Text[ polish ] = "System";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "t";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ý";
+ Text[ turkish ] = "Sistem";
+ Text[ language_user1 ] = " ";
+};
+String FMT_SETVAR_TEXT
+{
+ Text = "Text" ;
+ Text [ English ] = "Text" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ english_us ] = "Text" ;
+ Text [ italian ] = "Testo" ;
+ Text [ spanish ] = "Texto" ;
+ Text [ french ] = "Texte" ;
+ Text [ swedish ] = "Text" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ portuguese ] = "Texto" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷";
+ Text[ chinese_traditional ] = "r";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ؽƮ";
+ Text[ turkish ] = "Metin";
+ Text[ language_user1 ] = " ";
+};
+String FMT_GETVAR_NAME
+{
+ TEXT = "Name" ;
+ TEXT [ English ] = "Name" ;
+ Text [ portuguese ] = "Nome" ;
+ Text [ english_us ] = "Name" ;
+ Text [ portuguese_brazilian ] = "Name" ;
+ Text [ swedish ] = "Namn" ;
+ Text [ danish ] = "Navn" ;
+ Text [ italian ] = "Nome" ;
+ Text [ spanish ] = "Nombre" ;
+ Text [ french ] = "Nom" ;
+ Text [ dutch ] = "Naam" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "O";
+ Text[ chinese_traditional ] = "W";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "̸";
+ Text[ turkish ] = "Ad";
+ Text[ language_user1 ] = " ";
+};
+String FMT_GETVAR_TEXT
+{
+ Text = "Text" ;
+ Text [ English ] = "Text" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ english_us ] = "Text" ;
+ Text [ italian ] = "Testo" ;
+ Text [ spanish ] = "Texto" ;
+ Text [ french ] = "Texte" ;
+ Text [ swedish ] = "Text" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ portuguese ] = "Texto" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷";
+ Text[ chinese_traditional ] = "r";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ؽƮ";
+ Text[ turkish ] = "Metin";
+ Text[ language_user1 ] = " ";
+};
+String FMT_USERVAR_CMD
+{
+ TEXT = "Formel" ;
+ TEXT [ English ] = "Formula" ;
+ Text [ portuguese ] = "Frmula" ;
+ Text [ english_us ] = "Formula" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text [ swedish ] = "Formel" ;
+ Text [ danish ] = "Formel" ;
+ Text [ italian ] = "Formula" ;
+ Text [ spanish ] = "Frmula" ;
+ Text [ french ] = "Formule" ;
+ Text [ dutch ] = "Formule" ;
+ Text[ chinese_simplified ] = "ʽ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Formua";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Forml";
+ Text[ language_user1 ] = " ";
+};
+String FMT_USERVAR_TEXT
+{
+ Text = "Text" ;
+ Text [ English ] = "Text" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ english_us ] = "Text" ;
+ Text [ italian ] = "Testo" ;
+ Text [ spanish ] = "Texto" ;
+ Text [ french ] = "Texte" ;
+ Text [ swedish ] = "Text" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ portuguese ] = "Texto" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text[ chinese_simplified ] = "ı";
+ Text[ russian ] = "";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷";
+ Text[ chinese_traditional ] = "r";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ؽƮ";
+ Text[ turkish ] = "Metin";
+ Text[ language_user1 ] = " ";
+};
+String FMT_DBFLD_DB
+{
+ TEXT = "Datenbank" ;
+ TEXT [ English ] = "Database" ;
+ Text [ portuguese ] = "Base de dados" ;
+ Text [ english_us ] = "Database" ;
+ Text [ portuguese_brazilian ] = "Datenbank" ;
+ Text [ swedish ] = "Databas" ;
+ Text [ danish ] = "Database" ;
+ Text [ italian ] = "Database" ;
+ Text [ spanish ] = "Base de datos" ;
+ Text [ french ] = "Base de donnes" ;
+ Text [ dutch ] = "Database" ;
+ Text[ chinese_simplified ] = "ݿ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Baza danych";
+ Text[ japanese ] = "ްް";
+ Text[ chinese_traditional ] = "Ʈw";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ͺ̽";
+ Text[ turkish ] = "Veritaban";
+ Text[ language_user1 ] = " ";
+};
+String FMT_DBFLD_SYS
+{
+ TEXT = "System" ;
+ TEXT [ English ] = "System" ;
+ Text [ portuguese ] = "Sistema" ;
+ Text [ english_us ] = "System" ;
+ Text [ portuguese_brazilian ] = "System" ;
+ Text [ swedish ] = "System" ;
+ Text [ danish ] = "System" ;
+ Text [ italian ] = "Sistema" ;
+ Text [ spanish ] = "Sistema" ;
+ Text [ french ] = "Systme" ;
+ Text [ dutch ] = "Systeem" ;
+ Text[ chinese_simplified ] = "ϵͳ";
+ Text[ russian ] = "";
+ Text[ polish ] = "System";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "t";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ý";
+ Text[ turkish ] = "Sistem";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Ablagefelder
+ --------------------------------------------------------------------*/
+String FMT_REG_AUTHOR
+{
+ TEXT = "Autor" ;
+ TEXT [ English ] = "Author" ;
+ TEXT [ norwegian ] = "Forfatter" ;
+ TEXT [ italian ] = "Autore" ;
+ TEXT [ portuguese_brazilian ] = "Autor" ;
+ TEXT [ portuguese ] = "Autor" ;
+ TEXT [ finnish ] = "Tekij" ;
+ TEXT [ danish ] = "Forfatter" ;
+ TEXT [ french ] = "Auteur" ;
+ TEXT [ swedish ] = "Frfattare" ;
+ TEXT [ dutch ] = "Auteur" ;
+ TEXT [ spanish ] = "Autor" ;
+ TEXT [ english_us ] = "Author" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Autor";
+ TEXT[ japanese ] = "쐬";
+ TEXT[ chinese_traditional ] = "@";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "ۼ";
+ TEXT[ turkish ] = "Yazan";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_REG_TIME
+{
+ TEXT = "Uhrzeit" ;
+ TEXT [ English ] = "Time" ;
+ TEXT [ norwegian ] = "Time" ;
+ TEXT [ italian ] = "Orario" ;
+ TEXT [ portuguese_brazilian ] = "Hora" ;
+ TEXT [ portuguese ] = "Hora" ;
+ TEXT [ finnish ] = "Aika" ;
+ TEXT [ danish ] = "Klokkeslt" ;
+ TEXT [ french ] = "Heure" ;
+ TEXT [ swedish ] = "Klockslag" ;
+ TEXT [ dutch ] = "Uur" ;
+ TEXT [ spanish ] = "Hora" ;
+ TEXT [ english_us ] = "Time" ;
+ TEXT[ chinese_simplified ] = "ʱ";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Godzina";
+ TEXT[ japanese ] = "";
+ TEXT[ chinese_traditional ] = "ɶ";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "ð";
+ TEXT[ turkish ] = "Saat";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_REG_DATE
+{
+ TEXT = "Datum" ;
+ TEXT [ English ] = "Date" ;
+ TEXT [ norwegian ] = "Date" ;
+ TEXT [ italian ] = "Data" ;
+ TEXT [ portuguese_brazilian ] = "Data" ;
+ TEXT [ portuguese ] = "Data" ;
+ TEXT [ finnish ] = "Pivys" ;
+ TEXT [ danish ] = "Dato" ;
+ TEXT [ french ] = "Date" ;
+ TEXT [ swedish ] = "Datum" ;
+ TEXT [ dutch ] = "Datum" ;
+ TEXT [ spanish ] = "Fecha" ;
+ TEXT [ english_us ] = "Date" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Data";
+ TEXT[ japanese ] = "t";
+ TEXT[ chinese_traditional ] = "";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "Tarih";
+ TEXT[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Formate Referenzen
+ --------------------------------------------------------------------*/
+String FMT_REF_TEXT
+{
+ TEXT = "Referenztext" ;
+ TEXT [ English ] = "Reference" ;
+ TEXT [ norwegian ] = "Reference" ;
+ TEXT [ italian ] = "Testo di riferimento" ;
+ TEXT [ portuguese_brazilian ] = "Referncia" ;
+ TEXT [ portuguese ] = "Referncia" ;
+ TEXT [ finnish ] = "Viittaus" ;
+ TEXT [ danish ] = "Referencetekst" ;
+ TEXT [ french ] = "Texte de rfrence" ;
+ TEXT [ swedish ] = "Referenstext" ;
+ TEXT [ dutch ] = "Verwijzingstekst" ;
+ TEXT [ spanish ] = "Texto de referencia" ;
+ TEXT [ english_us ] = "Reference" ;
+ TEXT[ chinese_simplified ] = "˵";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Tekst odwoa";
+ TEXT[ japanese ] = "Qƕ";
+ TEXT[ chinese_traditional ] = "ѷӤ";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "Referans metni";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_REF_PAGE
+{
+ TEXT = "Seite" ;
+ TEXT [ English ] = "Page" ;
+ TEXT [ norwegian ] = "Page" ;
+ TEXT [ italian ] = "Pagina" ;
+ TEXT [ portuguese_brazilian ] = "Pgina" ;
+ TEXT [ portuguese ] = "Pgina" ;
+ TEXT [ finnish ] = "Sivu" ;
+ TEXT [ danish ] = "Side" ;
+ TEXT [ french ] = "Page" ;
+ TEXT [ swedish ] = "Sida" ;
+ TEXT [ dutch ] = "Pagina" ;
+ TEXT [ spanish ] = "Pgina" ;
+ TEXT [ english_us ] = "Page" ;
+ TEXT[ chinese_simplified ] = "ҳ";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Strona";
+ TEXT[ japanese ] = "߰";
+ TEXT[ chinese_traditional ] = "";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "Sayfa";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_REF_CHAPTER
+{
+ TEXT = "Kapitel" ;
+ TEXT [ English ] = "Chapter" ;
+ TEXT [ norwegian ] = "Chapter" ;
+ TEXT [ italian ] = "Capitolo" ;
+ TEXT [ portuguese_brazilian ] = "Captulo" ;
+ TEXT [ portuguese ] = "Captulo" ;
+ TEXT [ finnish ] = "Luku" ;
+ TEXT [ danish ] = "Kapitel" ;
+ TEXT [ french ] = "Chapitre" ;
+ TEXT [ swedish ] = "Kapitel" ;
+ TEXT [ dutch ] = "Hoofdstuk" ;
+ TEXT [ spanish ] = "Captulo" ;
+ TEXT [ english_us ] = "Chapter" ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Rozdzia";
+ TEXT[ japanese ] = "";
+ TEXT[ language_user1 ] = " ";
+ TEXT[ chinese_traditional ] = "";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "Blm";
+};
+String FMT_REF_UPDOWN
+{
+ TEXT = "Oberhalb/Unterhalb" ;
+ TEXT [ English ] = "Above/Below" ;
+ Text [ dutch ] = "Boven/beneden" ;
+ Text [ english_us ] = "Above/Below" ;
+ Text [ italian ] = "Al di sopra/al di sotto" ;
+ Text [ spanish ] = "Encima/Debajo" ;
+ Text [ french ] = "Supra/infra" ;
+ Text [ swedish ] = "ver/under" ;
+ Text [ danish ] = "Over/under" ;
+ Text [ portuguese ] = "Acima/Abaixo" ;
+ Text [ portuguese_brazilian ] = "Oberhalb/Unterhalb" ;
+ Text[ chinese_simplified ] = "֮/֮";
+ Text[ russian ] = "/";
+ Text[ polish ] = "Powyej/Poniej";
+ Text[ japanese ] = "/";
+ Text[ chinese_traditional ] = "W/U";
+ Text[ arabic ] = "/";
+ Text[ greek ] = " / ";
+ Text[ korean ] = "/Ʒ";
+ Text[ turkish ] = "stte/Altta";
+ Text[ language_user1 ] = " ";
+};
+String FMT_REF_PAGE_PGDSC
+{
+ TEXT = "Wie Seitenvorlage" ;
+ TEXT [ English ] = "As Page Style" ;
+ TEXT [ norwegian ] = "As Page Style" ;
+ TEXT [ italian ] = "Come modello di pagina" ;
+ TEXT [ portuguese_brazilian ] = "Como Estilo de Pgina" ;
+ TEXT [ portuguese ] = "Como estilo de pgina" ;
+ TEXT [ finnish ] = "Sivutyylin" ;
+ TEXT [ danish ] = "Som sidetypografi" ;
+ TEXT [ french ] = "D'aprs le style de page" ;
+ TEXT [ swedish ] = "Som sidformatmallen" ;
+ TEXT [ dutch ] = "Volgens pagina-opmaakprofiel" ;
+ TEXT [ spanish ] = "Como estilo de pgina" ;
+ TEXT [ english_us ] = "As Page Style" ;
+ TEXT[ chinese_simplified ] = "ҳʽͬ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Jako styl strony";
+ TEXT[ japanese ] = "߰޽ق̐ݒKp";
+ TEXT[ chinese_traditional ] = "M˦ۦP";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = " ó";
+ TEXT[ turkish ] = "Sayfa biimi gibi";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_REF_ONLYNUMBER
+{
+ TEXT = "Kategorie und Nummer" ;
+ TEXT [ English ] = "Only Category and Numbering" ;
+ Text [ dutch ] = "Categorie en nummer" ;
+ Text [ english_us ] = "Category and Number" ;
+ Text [ italian ] = "Numero e categoria" ;
+ Text [ spanish ] = "Categora y nmero" ;
+ Text [ french ] = "Catgorie et numro" ;
+ Text [ swedish ] = "Kategori och nummer" ;
+ Text [ danish ] = "Kategori og nummer" ;
+ Text [ portuguese ] = "Categoria e nmero" ;
+ Text [ portuguese_brazilian ] = "Kategorie und Nummer" ;
+ Text[ chinese_simplified ] = "ͱ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Kategoria i numer";
+ Text[ japanese ] = "ڂƔԍ";
+ Text[ chinese_traditional ] = "Ms";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = " ȣ";
+ Text[ turkish ] = "Kategori ve numara";
+ Text[ language_user1 ] = " ";
+};
+String FMT_REF_ONLYCAPTION
+{
+ TEXT = "Beschriftungstext" ;
+ TEXT [ English ] = "Only Caption" ;
+ Text [ dutch ] = "Bijschrifttekst" ;
+ Text [ english_us ] = "Caption Text" ;
+ Text [ italian ] = "Dicitura" ;
+ Text [ spanish ] = "Texto de etiqueta" ;
+ Text [ french ] = "Texte de lgende" ;
+ Text [ swedish ] = "Bildtext" ;
+ Text [ danish ] = "Billedtekst" ;
+ Text [ portuguese ] = "Texto para etiqueta" ;
+ Text [ portuguese_brazilian ] = "Beschriftungstext" ;
+ Text[ chinese_simplified ] = "ǩ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Tekst etykiety";
+ Text[ japanese ] = "ق÷";
+ Text[ chinese_traditional ] = "Ҥ";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ĸ ؽƮ";
+ Text[ turkish ] = "Altyaz metni";
+ Text[ language_user1 ] = " ";
+};
+String FMT_REF_ONLYSEQNO
+{
+ TEXT = "Nummer" ;
+ TEXT [ English ] = "Only Numbering" ;
+ TEXT[ english_us ] = "Numbering";
+ TEXT[ portuguese ] = "Nmero";
+ TEXT[ russian ] = "";
+ TEXT[ dutch ] = "Nummer";
+ TEXT[ french ] = "Numro";
+ TEXT[ spanish ] = "Nmero";
+ TEXT[ italian ] = "Numero";
+ TEXT[ danish ] = "Nummer";
+ TEXT[ swedish ] = "Nummer";
+ TEXT[ polish ] = "Numer";
+ TEXT[ portuguese_brazilian ] = "Only Numbering";
+ TEXT[ japanese ] = "ԍ";
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ chinese_traditional ] = "s";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "ȣ ű";
+ TEXT[ turkish ] = "Numara";
+ TEXT[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Platzhalter
+ --------------------------------------------------------------------*/
+String FMT_MARK_TEXT
+{
+ Text = "Text" ;
+ Text [ English ] = "Text" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ english_us ] = "Text" ;
+ Text [ italian ] = "Testo" ;
+ Text [ spanish ] = "Texto" ;
+ Text [ french ] = "Texte" ;
+ Text [ swedish ] = "Text" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ portuguese ] = "Texto" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷";
+ Text[ chinese_traditional ] = "r";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ؽƮ";
+ Text[ turkish ] = "Metin";
+ Text[ language_user1 ] = " ";
+};
+String FMT_MARK_TABLE
+{
+ Text = "Tabelle" ;
+ Text [ English ] = "Table" ;
+ Text [ norwegian ] = "Table" ;
+ Text [ italian ] = "Tabella" ;
+ Text [ portuguese_brazilian ] = "Tabela" ;
+ Text [ portuguese ] = "Tabela" ;
+ Text [ finnish ] = "Taulukko" ;
+ Text [ danish ] = "Tabel" ;
+ Text [ french ] = "Tableau" ;
+ Text [ swedish ] = "Tabell" ;
+ Text [ dutch ] = "Tabel" ;
+ Text [ spanish ] = "Tabla" ;
+ Text [ english_us ] = "Table" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Tabela";
+ Text[ japanese ] = "\\";
+ Text[ chinese_traditional ] = "";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ǥ";
+ Text[ turkish ] = "Tablo";
+ Text[ language_user1 ] = " ";
+};
+String FMT_MARK_FRAME
+{
+ Text = "Rahmen" ;
+ Text [ English ] = "Frame" ;
+ Text [ norwegian ] = "Ramme" ;
+ Text [ italian ] = "Cornice" ;
+ Text [ portuguese_brazilian ] = "Moldura" ;
+ Text [ portuguese ] = "Moldura" ;
+ Text [ finnish ] = "Kehys" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ french ] = "Cadre" ;
+ Text [ swedish ] = "Ram" ;
+ Text [ dutch ] = "Kader" ;
+ Text [ spanish ] = "Marco" ;
+ Text [ english_us ] = "Frame" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Ramka";
+ Text[ japanese ] = "g";
+ Text[ chinese_traditional ] = "r";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ؽƮ ";
+ Text[ turkish ] = "ereve";
+ Text[ language_user1 ] = " ";
+};
+String FMT_MARK_GRAFIC
+{
+ Text = "Grafik" ;
+ Text [ English ] = "Graphic" ;
+ Text [ norwegian ] = "Graphic" ;
+ Text [ italian ] = "Immagine" ;
+ Text [ portuguese_brazilian ] = "Grfico" ;
+ Text [ portuguese ] = "Imagem" ;
+ Text [ finnish ] = "Kuva" ;
+ Text [ danish ] = "Grafik" ;
+ Text [ french ] = "Image" ;
+ Text [ swedish ] = "Grafik" ;
+ Text [ dutch ] = "Afbeelding" ;
+ Text [ spanish ] = "Imagen" ;
+ Text [ english_us ] = "Graphics" ;
+ Text[ chinese_simplified ] = "ͼ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Grafika";
+ Text[ japanese ] = "̨";
+ Text[ chinese_traditional ] = "Ϥ";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "׷";
+ Text[ turkish ] = "Grafik";
+ Text[ language_user1 ] = " ";
+};
+String FMT_MARK_OLE
+{
+ Text = "Objekt" ;
+ Text [ English ] = "Object" ;
+ Text [ norwegian ] = "Object" ;
+ Text [ italian ] = "Oggetto" ;
+ Text [ portuguese_brazilian ] = "Objeto" ;
+ Text [ portuguese ] = "Objecto" ;
+ Text [ finnish ] = "Objekti" ;
+ Text [ danish ] = "Objekt" ;
+ Text [ french ] = "Objet" ;
+ Text [ swedish ] = "Objekt" ;
+ Text [ dutch ] = "Object" ;
+ Text [ spanish ] = "Objeto" ;
+ Text [ english_us ] = "Object" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Obiekt";
+ Text[ japanese ] = "޼ު";
+ Text[ chinese_traditional ] = "";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ü";
+ Text[ turkish ] = "Nesne";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Nur-Text
+ --------------------------------------------------------------------*/
+String FMT_TEXT
+{
+ TEXT = "Text" ;
+};
+/*--------------------------------------------------------------------
+ Beschreibung: globale String-Ressourcen
+ --------------------------------------------------------------------*/
+String STR_ALL
+{
+ Text = "Alle" ;
+ Text [ ENGLISH ] = "All" ;
+ Text [ norwegian ] = "All" ;
+ Text [ italian ] = "Tutto" ;
+ Text [ portuguese_brazilian ] = "Tudo" ;
+ Text [ portuguese ] = "Todos" ;
+ Text [ finnish ] = "Kaikki" ;
+ Text [ danish ] = "Alle" ;
+ Text [ french ] = "Tout" ;
+ Text [ swedish ] = "Alla" ;
+ Text [ dutch ] = "Alles" ;
+ Text [ spanish ] = "Todo" ;
+ Text [ english_us ] = "All" ;
+ Text[ chinese_simplified ] = "ȫ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Wszystkie";
+ Text[ japanese ] = "ׂ";
+ Text[ chinese_traditional ] = "";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ü";
+ Text[ turkish ] = "Tm";
+ Text[ language_user1 ] = " ";
+};
+String STR_INSERT
+{
+ Text = "Einfgen" ;
+ Text [ ENGLISH ] = "Insert" ;
+ Text [ norwegian ] = "Sett inn" ;
+ Text [ italian ] = "Inserisci" ;
+ Text [ portuguese_brazilian ] = "Inserir" ;
+ Text [ portuguese ] = "Inserir" ;
+ Text [ finnish ] = "Lis" ;
+ Text [ danish ] = "Indst" ;
+ Text [ french ] = "Insrer" ;
+ Text [ swedish ] = "Infoga" ;
+ Text [ dutch ] = "Invoegen" ;
+ Text [ spanish ] = "Insertar" ;
+ Text [ english_us ] = "Insert" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "}";
+ Text[ chinese_traditional ] = "J";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Ekle";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: AustauschStrings fuer Edit/NameFT
+ --------------------------------------------------------------------*/
+String STR_COND
+{
+ TEXT = "Bedin~gung" ;
+ TEXT [ English ] = "Conditio~n" ;
+ TEXT [ norwegian ] = "Vilkr" ;
+ TEXT [ italian ] = "Condizione" ;
+ TEXT [ portuguese_brazilian ] = "condio" ;
+ TEXT [ portuguese ] = "~Condio" ;
+ TEXT [ finnish ] = "Ehto" ;
+ TEXT [ danish ] = "Betingelse" ;
+ TEXT [ french ] = "~Condition" ;
+ TEXT [ swedish ] = "Villkor" ;
+ TEXT [ dutch ] = "~Voorwaarde" ;
+ TEXT [ spanish ] = "~Condicin" ;
+ TEXT [ english_us ] = "~Condition" ;
+ TEXT[ chinese_simplified ] = "(~C)";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Warunek";
+ TEXT[ japanese ] = "(~C)";
+ TEXT[ chinese_traditional ] = "(~C)";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "(~C)";
+ TEXT[ turkish ] = "Koul";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_TEXT
+{
+ TEXT = "Dann, Sonst" ;
+ TEXT [ English ] = "Then,Else" ;
+ TEXT [ norwegian ] = "Then,Else" ;
+ TEXT [ italian ] = "Poi, altrimenti" ;
+ TEXT [ portuguese_brazilian ] = "Entao,Seno" ;
+ TEXT [ portuguese ] = "Ento, Seno" ;
+ TEXT [ finnish ] = "Sitten,Muuten" ;
+ TEXT [ danish ] = "S, Ellers" ;
+ TEXT [ french ] = "Alors, sinon" ;
+ TEXT [ swedish ] = "Sedan, annars" ;
+ TEXT [ dutch ] = "Dan, Anders" ;
+ TEXT [ spanish ] = "Entonces, si no" ;
+ TEXT [ english_us ] = "Then, Else" ;
+ TEXT[ chinese_simplified ] = "ôͣ";
+ TEXT[ russian ] = ", ";
+ TEXT[ polish ] = "Nastpnie, Poza tym";
+ TEXT[ japanese ] = "𖞂AȂ";
+ TEXT[ chinese_traditional ] = "NA_h";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = ", ";
+ TEXT[ korean ] = ", Ÿ";
+ TEXT[ turkish ] = "O halde, Yoksa";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DDE_CMD
+{
+ TEXT = "DDE Anweisung" ;
+ TEXT [ English ] = "DDE instruction" ;
+ TEXT [ norwegian ] = "DDE instruction" ;
+ TEXT [ italian ] = "Istruzione DDE" ;
+ TEXT [ portuguese_brazilian ] = "Instrues do DDE" ;
+ TEXT [ portuguese ] = "Instrues DDE" ;
+ TEXT [ finnish ] = "DDE-ksky" ;
+ TEXT [ danish ] = "DDE-stning" ;
+ TEXT [ french ] = "Instruction DDE" ;
+ TEXT [ swedish ] = "DDE-instruktion" ;
+ TEXT [ dutch ] = "DDE-instructie" ;
+ TEXT [ spanish ] = "Instruccin DDE" ;
+ TEXT [ english_us ] = "DDE Statement" ;
+ TEXT[ chinese_simplified ] = "DDE ָ";
+ TEXT[ russian ] = " DDE";
+ TEXT[ polish ] = "Instrukcja DDE";
+ TEXT[ japanese ] = "DDEw";
+ TEXT[ chinese_traditional ] = "DDE O";
+ TEXT[ arabic ] = " DDE";
+ TEXT[ greek ] = " DDE";
+ TEXT[ korean ] = "DDE ";
+ TEXT[ turkish ] = "DDE deyimi";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_INSTEXT
+{
+ TEXT = "Text einf~gen" ;
+ TEXT [ English ] = "Inser~t text" ;
+ TEXT [ norwegian ] = "Insert text" ;
+ TEXT [ italian ] = "Inserisci testo" ;
+ TEXT [ portuguese_brazilian ] = "Inserir texto" ;
+ TEXT [ portuguese ] = "Inserir ~texto" ;
+ TEXT [ finnish ] = "Lis teksti" ;
+ TEXT [ danish ] = "Indst tekst" ;
+ TEXT [ french ] = "Insrer un ~texte" ;
+ TEXT [ swedish ] = "Infoga ~text" ;
+ TEXT [ dutch ] = "~Tekst invoegen" ;
+ TEXT [ spanish ] = "I~nsertar texto" ;
+ TEXT [ english_us ] = "Insert t~ext" ;
+ TEXT[ chinese_simplified ] = "(~E)";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Wstaw tekst";
+ TEXT[ japanese ] = "}÷";
+ TEXT[ chinese_traditional ] = "Jr(~E)";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = "ؽƮ (~E)";
+ TEXT[ turkish ] = "Metin ekle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_MACNAME
+{
+ TEXT = "~Makroname" ;
+ TEXT [ English ] = "~Macro name" ;
+ TEXT [ norwegian ] = "Macro name" ;
+ TEXT [ italian ] = "Nome ~macro" ;
+ TEXT [ portuguese_brazilian ] = "Nome da macro" ;
+ TEXT [ portuguese ] = "Nome da ~macro" ;
+ TEXT [ finnish ] = "Makron nimi" ;
+ TEXT [ danish ] = "Makronavn" ;
+ TEXT [ french ] = "~Nom de la macro" ;
+ TEXT [ swedish ] = "~Makronamn" ;
+ TEXT [ dutch ] = "~Naam macro" ;
+ TEXT [ spanish ] = "Nombre de la ~macro" ;
+ TEXT [ english_us ] = "~Macro name" ;
+ TEXT[ chinese_simplified ] = "(~M)";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Nazwa makra";
+ TEXT[ japanese ] = "ϸۖ(~M)";
+ TEXT[ chinese_traditional ] = "W(~M)";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = "ũ ̸(~M)";
+ TEXT[ turkish ] = "Makro ~ad";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_PROMPT
+{
+ TEXT = "H~inweis" ;
+ TEXT [ English ] = "Pr~ompt" ;
+ TEXT [ norwegian ] = "Prompt" ;
+ TEXT [ italian ] = "Nota" ;
+ TEXT [ portuguese_brazilian ] = "Aviso" ;
+ TEXT [ portuguese ] = "~Anotao" ;
+ TEXT [ finnish ] = "Kehote" ;
+ TEXT [ danish ] = "Henvisning" ;
+ TEXT [ french ] = "~Annotation" ;
+ TEXT [ swedish ] = "Hnv~isning" ;
+ TEXT [ dutch ] = "~Aanwijzing" ;
+ TEXT [ spanish ] = "I~ndicacin" ;
+ TEXT [ english_us ] = "~Reference" ;
+ TEXT[ chinese_simplified ] = "ʾ(~R)";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Wskazwka";
+ TEXT[ japanese ] = "Q(~R)";
+ TEXT[ chinese_traditional ] = "(~R)";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "~";
+ TEXT[ korean ] = "(~R)";
+ TEXT[ turkish ] = "Bilgi";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_SETNO
+{
+ TEXT = "Satznummer" ;
+ TEXT [ English ] = "Setnumber" ;
+ TEXT [ norwegian ] = "Setnumber" ;
+ TEXT [ italian ] = "Numero di record" ;
+ TEXT [ portuguese_brazilian ] = "Definir nmero" ;
+ TEXT [ portuguese ] = "Nmero de registo" ;
+ TEXT [ finnish ] = "Joukon numero" ;
+ TEXT [ danish ] = "Datapostnummer" ;
+ TEXT [ french ] = "Numro de l'enregistrement" ;
+ TEXT [ swedish ] = "Datapostnummer" ;
+ TEXT [ dutch ] = "Recordnummer" ;
+ TEXT [ spanish ] = "Nmero de registro" ;
+ TEXT [ english_us ] = "Record number" ;
+ TEXT[ chinese_simplified ] = "Ŀ";
+ TEXT[ russian ] = " ";
+ TEXT[ polish ] = "Numer rekordu";
+ TEXT[ japanese ] = "ںޔԍ";
+ TEXT[ chinese_traditional ] = "ظX";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = "ڵ ȣ";
+ TEXT[ turkish ] = "Veri kayd numaras";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_OFFSET
+{
+ TEXT = "Ko~rrektur" ;
+ TEXT [ English ] = "Offs~et" ;
+ TEXT [ norwegian ] = "Offset" ;
+ TEXT [ italian ] = "Correzione" ;
+ TEXT [ portuguese_brazilian ] = "Deslocar" ;
+ TEXT [ portuguese ] = "~Correco" ;
+ TEXT [ finnish ] = "Siirroa" ;
+ TEXT [ danish ] = "Korrektion" ;
+ TEXT [ french ] = "D~calage" ;
+ TEXT [ swedish ] = "Ko~rrigering" ;
+ TEXT [ dutch ] = "~Correctie" ;
+ TEXT [ spanish ] = "C~orreccin" ;
+ TEXT [ english_us ] = "O~ffset" ;
+ TEXT[ chinese_simplified ] = "޸(~F)";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Korekta";
+ TEXT[ japanese ] = "C(~F)";
+ TEXT[ chinese_traditional ] = "ק(~F)";
+ TEXT[ arabic ] = "";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "(~F)";
+ TEXT[ turkish ] = "Dzeltme";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_VALUE
+{
+ Text = "~Wert" ;
+ Text [ ENGLISH ] = "Value" ;
+ Text [ norwegian ] = "Verdi" ;
+ Text [ italian ] = "Valore" ;
+ Text [ portuguese_brazilian ] = "Valor" ;
+ Text [ portuguese ] = "~Valor" ;
+ Text [ finnish ] = "Arvo" ;
+ Text [ danish ] = "Vrdi" ;
+ Text [ french ] = "~Valeur" ;
+ Text [ swedish ] = "~Vrde" ;
+ Text [ dutch ] = "~Waarde" ;
+ Text [ spanish ] = "~Valor" ;
+ Text [ english_us ] = "Value" ;
+ Text[ chinese_simplified ] = "ֵ";
+ Text[ russian ] = "";
+ Text[ polish ] = ", Warto ";
+ Text[ japanese ] = "l";
+ Text[ chinese_traditional ] = "ƭ";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "De~er";
+ Text[ language_user1 ] = " ";
+};
+String STR_FORMULA
+{
+ TEXT = "Formel" ;
+ TEXT [ English ] = "Formula" ;
+ Text [ portuguese ] = "Frmula" ;
+ Text [ english_us ] = "Formula" ;
+ Text [ portuguese_brazilian ] = "Frmula do Texto" ;
+ Text [ swedish ] = "Formel" ;
+ Text [ danish ] = "Formel" ;
+ Text [ italian ] = "Formula" ;
+ Text [ spanish ] = "Frmula" ;
+ Text [ french ] = "Formule " ;
+ Text [ dutch ] = "Formule" ;
+ Text[ chinese_simplified ] = "ʽ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Formua";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Forml";
+ Text[ language_user1 ] = " ";
+};
+String STR_LEVEL
+{
+ TEXT = "Ebene" ;
+ TEXT [ English ] = "Level" ;
+ TEXT [ norwegian ] = "Level" ;
+ TEXT [ italian ] = "Livello " ;
+ TEXT [ portuguese_brazilian ] = "Nvel" ;
+ TEXT [ portuguese ] = "Nvel " ;
+ TEXT [ finnish ] = "Taso" ;
+ TEXT [ danish ] = "Niveau" ;
+ TEXT [ french ] = "Niveau" ;
+ TEXT [ swedish ] = "Niv " ;
+ TEXT [ dutch ] = "Niveau" ;
+ TEXT [ spanish ] = "Nivel " ;
+ TEXT [ english_us ] = "Layer " ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Poziom ";
+ TEXT[ japanese ] = "";
+ TEXT[ chinese_traditional ] = "";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = "";
+ TEXT[ korean ] = "";
+ TEXT[ turkish ] = "Dzey";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_URLPROMPT
+{
+ TEXT = "~URL" ;
+ TEXT [ English ] = "~URL" ;
+ Text [ english_us ] = "~URL" ;
+ Text [ italian ] = "~URL" ;
+ Text [ spanish ] = "~URL" ;
+ Text [ french ] = "~URL" ;
+ Text [ dutch ] = "~URL" ;
+ Text [ swedish ] = "~URL" ;
+ Text [ danish ] = "URL" ;
+ Text [ portuguese ] = "~URL" ;
+ Text [ portuguese_brazilian ] = "~URL" ;
+ Text[ chinese_simplified ] = "~URL";
+ Text[ russian ] = "~URL";
+ Text[ polish ] = "URL";
+ Text[ japanese ] = "URL(~U)";
+ Text[ chinese_traditional ] = "~URL";
+ Text[ arabic ] = "URL~";
+ Text[ greek ] = "URL";
+ Text[ korean ] = "~URL";
+ Text[ turkish ] = "~URL";
+ Text[ language_user1 ] = " ";
+};
+String STR_ALL_DATABASE
+{
+ TEXT = "<Alle>" ;
+ TEXT [ English ] = "<All>" ;
+ Text [ dutch ] = "<Alle>" ;
+ Text [ english_us ] = "<All>" ;
+ Text [ italian ] = "<Tutti>" ;
+ Text [ spanish ] = "<Todos>" ;
+ Text [ french ] = "<Toutes>" ;
+ Text [ swedish ] = "<Alla>" ;
+ Text [ danish ] = "<Alle>" ;
+ Text [ portuguese ] = "<Todos>" ;
+ Text [ portuguese_brazilian ] = "<Alle>" ;
+ Text[ chinese_simplified ] = "<ȫ>";
+ Text[ russian ] = "<>";
+ Text[ polish ] = "<Wszystkie>";
+ Text[ japanese ] = "<ׂ>";
+ Text[ chinese_traditional ] = "<>";
+ Text[ arabic ] = "<>";
+ Text[ greek ] = "<>";
+ Text[ korean ] = "<ü>";
+ Text[ turkish ] = "<Tm>";
+ Text[ language_user1 ] = " ";
+};
+ImageButton BTN_FLDEDT_PREV
+{
+ Pos = MAP_APPFONT ( 263 , 115 ) ;
+ Size = MAP_APPFONT ( 24 , 14 ) ;
+ TabStop = TRUE ;
+ SYMBOL = IMAGEBUTTON_PREV ;
+ Helpid = HID_DLG_FLDEDT_PREV ;
+};
+ImageButton BTN_FLDEDT_NEXT
+{
+ Pos = MAP_APPFONT ( 294 , 115 ) ;
+ Size = MAP_APPFONT ( 24 , 14 ) ;
+ TabStop = TRUE ;
+ SYMBOL = IMAGEBUTTON_NEXT ;
+ Helpid = HID_DLG_FLDEDT_NEXT ;
+};
+PushButton PB_FLDEDT_ADDRESS
+{
+ TEXT = "Bearbeiten" ;
+ TEXT [ English ] = "Edit" ;
+ Pos = MAP_APPFONT ( 294 , 100 ) ;
+ Size = MAP_APPFONT ( 24 , 14 ) ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ Text [ english_us ] = "Edit" ;
+ Text [ portuguese_brazilian ] = "Bearbeiten" ;
+ Text [ swedish ] = "Redigera" ;
+ Text [ danish ] = "Rediger" ;
+ Text [ italian ] = "Modifica" ;
+ Text [ spanish ] = "Editar" ;
+ Text [ french ] = "Modifier" ;
+ Text [ dutch ] = "Bewerken" ;
+ Text [ portuguese ] = "Editar" ;
+ Helpid = HID_DLG_FLDEDT_ADDRESS ;
+ Text[ chinese_simplified ] = "༭";
+ Text[ russian ] = "";
+ Text[ polish ] = "Edycja";
+ Text[ japanese ] = "ҏW";
+ Text[ chinese_traditional ] = "s";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Dzenle";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx
new file mode 100644
index 000000000000..2b5f7b964a1f
--- /dev/null
+++ b/sw/source/ui/fldui/fldvar.cxx
@@ -0,0 +1,1562 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldvar.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * 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 _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+
+#ifndef _LINKMGR_HXX //autogen
+#include <so3/linkmgr.hxx>
+#endif
+
+#ifndef _USRFLD_HXX
+#include <usrfld.hxx>
+#endif
+#ifndef _DOCUFLD_HXX
+#include <docufld.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _EXPFLD_HXX
+#include <expfld.hxx>
+#endif
+#ifndef _DDEFLD_HXX
+#include <ddefld.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _DOCARY_HXX
+#include <docary.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _FLDVAR_HXX
+#include <fldvar.hxx>
+#endif
+
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _FLDTDLG_HRC
+#include <fldtdlg.hrc>
+#endif
+
+#define USER_DATA_VERSION_1 "1"
+#define USER_DATA_VERSION USER_DATA_VERSION_1
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldVarPage::SwFldVarPage(Window* pParent, const SfxItemSet& rCoreSet ) :
+ SwFldPage ( pParent, SW_RES( TP_FLD_VAR ), rCoreSet ),
+ aTypeFT (this, SW_RES(FT_VARTYPE)),
+ aTypeLB (this, SW_RES(LB_VARTYPE)),
+ aSelectionFT (this, SW_RES(FT_VARSELECTION)),
+ aSelectionLB (this, SW_RES(LB_VARSELECTION)),
+ aNameFT (this, SW_RES(FT_VARNAME)),
+ aNameED (this, SW_RES(ED_VARNAME)),
+ aValueFT (this, SW_RES(FT_VARVALUE)),
+ aValueED (this, SW_RES(ED_VARVALUE)),
+ aFormatFT (this, SW_RES(FT_VARFORMAT)),
+ aNumFormatLB (this, SW_RES(LB_VARNUMFORMAT)),
+ aFormatLB (this, SW_RES(LB_VARFORMAT)),
+ aChapterHeaderFT(this, SW_RES(FT_VARCHAPTERHEADER)),
+ aChapterLevelFT (this, SW_RES(FT_VARCHAPTERLEVEL)),
+ aChapterLevelLB (this, SW_RES(LB_VARCHAPTERLEVEL)),
+ aInvisibleCB (this, SW_RES(CB_VARINVISIBLE)),
+ aSeparatorFT (this, SW_RES(FT_VARSEPARATOR)),
+ aSeparatorED (this, SW_RES(ED_VARSEPARATOR)),
+ aNewDelTBX (this, SW_RES(TBX_VARNEWDEL)),
+ bInit (TRUE)
+{
+ FreeResource();
+
+ aNewDelTBX.SetSizePixel( aNewDelTBX.CalcWindowSizePixel() );
+
+ long nDelta = ( aValueED.GetSizePixel().Height() -
+ aNewDelTBX.GetSizePixel().Height() ) / 2;
+ Point aNewPnt = aNewDelTBX.GetPosPixel();
+ aNewPnt.Y() += nDelta;
+ aNewDelTBX.SetPosPixel( aNewPnt );
+
+ sOldValueFT = aValueFT.GetText();
+ sOldNameFT = aNameFT.GetText();
+
+ for (USHORT i = 1; i <= MAXLEVEL; i++)
+ aChapterLevelLB.InsertEntry(String::CreateFromInt32(i));
+
+ aChapterLevelLB.SelectEntryPos(0);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+__EXPORT SwFldVarPage::~SwFldVarPage()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void __EXPORT SwFldVarPage::Reset(const SfxItemSet& rSet)
+{
+ SavePos(&aTypeLB);
+
+ Init(); // Allgemeine initialisierung
+
+ aTypeLB.SetUpdateMode(FALSE);
+ aTypeLB.Clear();
+
+ USHORT nPos, nTypeId;
+
+ if (!IsFldEdit())
+ {
+ // TypeListBox initialisieren
+ const SwFldGroupRgn& rRg = GetFldMgr().GetGroupRange(IsFldDlgHtmlMode(), GetGroup());
+
+ for (short i = rRg.nStart; i < rRg.nEnd; ++i)
+ {
+ nTypeId = GetFldMgr().GetTypeId(i);
+
+#ifndef DDE_AVAILABLE
+ if (nTypeId != TYP_DDEFLD)
+#endif
+ { // Nur unter WIN, WNT und OS/2 DDE-Fields
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(i));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ }
+ }
+ }
+ else
+ {
+ nTypeId = GetCurField()->GetTypeId();
+ if (nTypeId == TYP_SETINPFLD)
+ nTypeId = TYP_INPUTFLD;
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(GetFldMgr().GetPos(nTypeId)));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ }
+
+ // alte Pos selektieren
+ RestorePos(&aTypeLB);
+
+ aTypeLB.SetDoubleClickHdl (LINK(this, SwFldVarPage, InsertHdl));
+ aTypeLB.SetSelectHdl (LINK(this, SwFldVarPage, TypeHdl));
+ aSelectionLB.SetSelectHdl (LINK(this, SwFldVarPage, SubTypeHdl));
+ aSelectionLB.SetDoubleClickHdl (LINK(this, SwFldVarPage, InsertHdl));
+ aFormatLB.SetDoubleClickHdl (LINK(this, SwFldVarPage, InsertHdl));
+ aNumFormatLB.SetDoubleClickHdl (LINK(this, SwFldVarPage, InsertHdl));
+ aNameED.SetModifyHdl (LINK(this, SwFldVarPage, ModifyHdl));
+ aValueED.SetModifyHdl (LINK(this, SwFldVarPage, ModifyHdl));
+ aNewDelTBX.SetClickHdl (LINK(this, SwFldVarPage, TBClickHdl));
+ aChapterLevelLB.SetSelectHdl (LINK(this, SwFldVarPage, ChapterHdl));
+ aSeparatorED.SetModifyHdl (LINK(this, SwFldVarPage, SeparatorHdl));
+
+ if( !IsRefresh() )
+ {
+ String sUserData = GetUserData();
+ if(!IsRefresh() && sUserData.GetToken(0, ';').EqualsIgnoreCaseAscii(USER_DATA_VERSION_1))
+ {
+ String sVal = sUserData.GetToken(1, ';');
+ USHORT nVal = sVal.ToInt32();
+ if(nVal != USHRT_MAX)
+ {
+ for(USHORT i = 0; i < aTypeLB.GetEntryCount(); i++)
+ if(nVal == (USHORT)(ULONG)aTypeLB.GetEntryData(i))
+ {
+ aTypeLB.SelectEntryPos(i);
+ break;
+ }
+ }
+ }
+ }
+ TypeHdl(0);
+
+ aTypeLB.SetUpdateMode(TRUE);
+
+ if (IsFldEdit())
+ {
+ aSelectionLB.SaveValue();
+ aFormatLB.SaveValue();
+ nOldFormat = aNumFormatLB.GetFormat();
+ aNameED.SaveValue();
+ aValueED.SaveValue();
+ aInvisibleCB.SaveValue();
+ aChapterLevelLB.SaveValue();
+ aSeparatorED.SaveValue();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldVarPage, TypeHdl, ListBox *, pBox )
+{
+ // Alte ListBoxPos sichern
+ const USHORT nOld = GetTypeSel();
+
+ // Aktuelle ListBoxPos
+ SetTypeSel(aTypeLB.GetSelectEntryPos());
+
+ if(GetTypeSel() == LISTBOX_ENTRY_NOTFOUND)
+ {
+ SetTypeSel(0);
+ aTypeLB.SelectEntryPos(0);
+ }
+
+ if (nOld != GetTypeSel() || nOld == LISTBOX_ENTRY_NOTFOUND)
+ {
+ bInit = TRUE;
+ if (nOld != LISTBOX_ENTRY_NOTFOUND)
+ {
+ aNameED.SetText(aEmptyStr);
+ aValueED.SetText(aEmptyStr);
+ }
+
+ aValueED.EnableDrop(FALSE);
+ UpdateSubType(); // Auswahl-Listboxen initialisieren
+ }
+
+ bInit = FALSE;
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldVarPage, SubTypeHdl, ListBox *, pBox )
+{
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+ USHORT nSelPos = aSelectionLB.GetSelectEntryPos();
+
+ if (nSelPos != LISTBOX_ENTRY_NOTFOUND)
+ nSelPos = (USHORT)(ULONG)aSelectionLB.GetEntryData(nSelPos);
+
+ if (IsFldEdit() && (!pBox || bInit))
+ {
+ if (nTypeId != TYP_FORMELFLD)
+ aNameED.SetText(GetFldMgr().GetCurFldPar1());
+
+ aValueED.SetText(GetFldMgr().GetCurFldPar2());
+ }
+
+ if (aNameFT.GetText() != sOldNameFT)
+ aNameFT.SetText(sOldNameFT);
+ if (aValueFT.GetText() != sOldValueFT)
+ aValueFT.SetText(sOldValueFT);
+
+ aNumFormatLB.SetUpdateMode(FALSE);
+ aFormatLB.SetUpdateMode(FALSE);
+ FillFormatLB(nTypeId);
+
+ USHORT nSize = aFormatLB.GetEntryCount();
+
+ BOOL bValue = FALSE, bName = FALSE, bNumFmt = FALSE,
+ bInvisible = FALSE, bSeparator = FALSE, bChapterLevel = FALSE;
+ BOOL bFormat = nSize != 0;
+
+ switch (nTypeId)
+ {
+ case TYP_USERFLD:
+ {
+ // Benutzertyp aendern oder anlegen
+ SwUserFieldType* pType = (SwUserFieldType*)
+ GetFldMgr().GetFldType(RES_USERFLD, nSelPos);
+
+ if (pType)
+ {
+ if (!IsFldEdit())
+ {
+ if (pBox || (bInit && !IsRefresh())) // Nur bei Interaktion mit Maus
+ {
+ aNameED.SetText(pType->GetName());
+
+ if (pType->GetType() == UF_STRING)
+ {
+ aValueED.SetText(pType->GetContent());
+ aNumFormatLB.SelectEntryPos(0);
+ }
+ else
+ aValueED.SetText(pType->GetContent());
+// aValueED.SetText(pType->GetContent(aNumFormatLB.GetFormat()));
+ }
+ }
+ else
+ aValueED.SetText(pType->GetContent());
+ }
+ else
+ {
+ if (pBox) // Nur bei Interaktion mit Maus
+ {
+ aNameED.SetText(aEmptyStr);
+ aValueED.SetText(aEmptyStr);
+ }
+ }
+ bValue = bName = bNumFmt = bInvisible = TRUE;
+
+ aValueED.EnableDrop(TRUE);
+ break;
+ }
+
+ case TYP_SETFLD:
+ bValue = TRUE;
+
+ bNumFmt = bInvisible = TRUE;
+
+ if (!IsFldDlgHtmlMode())
+ bName = TRUE;
+ else
+ {
+ aNumFormatLB.Clear();
+ USHORT nPos = aNumFormatLB.InsertEntry(SW_RESSTR(FMT_SETVAR_TEXT), 0);
+ aNumFormatLB.SetEntryData(nPos, (void *)ULONG_MAX);
+ aNumFormatLB.SelectEntryPos(0);
+ }
+ // gibt es ein entprechendes SetField
+ if (IsFldEdit() || pBox) // Nur bei Interaktion mit Maus
+ {
+ if (nSelPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ String sName(aSelectionLB.GetSelectEntry());
+ aNameED.SetText(sName);
+
+ if (!IsFldDlgHtmlMode())
+ {
+ SwSetExpFieldType* pSetTyp = (SwSetExpFieldType*)
+ ::GetActiveView()->GetWrtShell().
+ GetFldType(RES_SETEXPFLD, sName);
+
+ if (pSetTyp && pSetTyp->GetType() == GSE_STRING)
+ aNumFormatLB.SelectEntryPos(0); // Textuell
+ }
+ }
+ }
+ if (IsFldEdit())
+ {
+ // GetFormula fuehrt bei Datumsformaten zu Problemen,
+ // da nur der numerische Wert ohne Formatierung returned wird.
+ // Muss aber verwendet werden, da sonst bei GetPar2 nur der vom
+ // Kalkulator errechnete Wert angezeigt werden wuerde
+ // (statt test2 = test + 1)
+ aValueED.SetText(((SwSetExpField*)GetCurField())->GetFormula());
+ }
+ aValueED.EnableDrop(TRUE);
+ break;
+
+ case TYP_FORMELFLD:
+ {
+ bValue = TRUE;
+ bNumFmt = TRUE;
+ aValueFT.SetText(SW_RESSTR(STR_FORMULA));
+ aValueED.EnableDrop(TRUE);
+ }
+ break;
+
+ case TYP_GETFLD:
+ {
+ if (!IsFldEdit())
+ {
+ aNameED.SetText(aEmptyStr);
+ aValueED.SetText(aEmptyStr);
+ }
+
+ if (nSelPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ String sName(aSelectionLB.GetSelectEntry());
+ if (!IsFldEdit())
+ aNameED.SetText(sName);
+
+ // gibt es ein entprechendes SetField
+ SwSetExpFieldType* pSetTyp = (SwSetExpFieldType*)
+ ::GetActiveView()->GetWrtShell().
+ GetFldType(RES_SETEXPFLD, sName);
+
+ if(pSetTyp)
+ {
+ if (pSetTyp->GetType() & GSE_STRING) // Textuell?
+ bFormat = TRUE;
+ else // Numerisch
+ bNumFmt = TRUE;
+ }
+ }
+ else
+ bFormat = FALSE;
+
+ EnableInsert(bFormat|bNumFmt);
+ }
+ break;
+
+ case TYP_INPUTFLD:
+ aValueFT.SetText(SW_RESSTR(STR_PROMPT));
+
+ if (nSelPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ bValue = bNumFmt = TRUE;
+
+ String sName;
+
+ sName = aSelectionLB.GetSelectEntry();
+ aNameED.SetText( sName );
+
+ // User- oder SetField ?
+ USHORT nInpType = 0;
+ nInpType = GetFldMgr().GetFldType(RES_USERFLD, sName) ? 0 : TYP_SETINPFLD;
+
+ if (nInpType) // SETEXPFLD
+ {
+ // gibt es ein entprechendes SetField
+ SwSetExpFieldType* pSetTyp = (SwSetExpFieldType*)
+ GetFldMgr().GetFldType(RES_SETEXPFLD, sName);
+
+ if(pSetTyp)
+ {
+ if (pSetTyp->GetType() == GSE_STRING) // Textuell?
+ {
+ aNumFormatLB.Clear();
+
+ USHORT nPos = aNumFormatLB.InsertEntry(SW_RESSTR(FMT_USERVAR_TEXT), 0);
+ aNumFormatLB.SetEntryData(nPos, (void *)ULONG_MAX);
+ aNumFormatLB.SelectEntryPos(0);
+ }
+ }
+ if (IsFldEdit() && (!pBox || bInit))
+ aValueED.SetText(((SwSetExpField*)GetCurField())->GetPromptText());
+ }
+ else // USERFLD
+ bFormat = bNumFmt = FALSE;
+ }
+ break;
+
+ case TYP_DDEFLD:
+ aValueFT.SetText(SW_RESSTR(STR_DDE_CMD));
+
+ if (IsFldEdit() || pBox) // Nur bei Interaktion mit Maus
+ {
+ if (nSelPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ SwDDEFieldType* pType =
+ (SwDDEFieldType*) GetFldMgr().GetFldType(RES_DDEFLD, nSelPos);
+
+ if(pType)
+ {
+ aNameED.SetText(pType->GetName());
+
+ //JP 28.08.95: DDE-Topics/-Items koennen Blanks in ihren
+ // Namen haben! Wird hier noch nicht beachtet
+ String sCmd( pType->GetCmd() );
+ USHORT nTmpPos = sCmd.SearchAndReplace( cTokenSeperator, ' ' );
+ sCmd.SearchAndReplace( cTokenSeperator, ' ', nTmpPos );
+
+ aValueED.SetText( sCmd );
+ aFormatLB.SelectEntryPos(pType->GetType());
+ }
+ }
+ }
+ bName = bValue = TRUE;
+ break;
+
+ case TYP_SEQFLD:
+ {
+ // aNumRB.Check(TRUE);
+ bName = bValue = bSeparator = bChapterLevel = TRUE;
+
+ SwFieldType* pFldTyp;
+ if( IsFldEdit() )
+ pFldTyp = GetCurField()->GetTyp();
+ else
+ {
+ String sFldTypeName( aSelectionLB.GetEntry( nSelPos ));
+ if( sFldTypeName.Len() )
+ pFldTyp = GetFldMgr().GetFldType( RES_SETEXPFLD,
+ sFldTypeName );
+ else
+ pFldTyp = 0;
+ }
+
+ if( IsFldEdit() )
+ aValueED.SetText( ((SwSetExpField*)GetCurField())->
+ GetFormula() );
+
+ if( IsFldEdit() || pBox ) // Nur bei Interaktion mit Maus
+ aNameED.SetText( aSelectionLB.GetSelectEntry() );
+
+ if( pFldTyp )
+ {
+ BYTE nLevel = ((SwSetExpFieldType*)pFldTyp)->GetOutlineLvl();
+ if( 0x7f == nLevel )
+ aChapterLevelLB.SelectEntryPos( 0 );
+ else
+ aChapterLevelLB.SelectEntryPos( nLevel + 1 );
+ sal_Unicode cDelim = ((SwSetExpFieldType*)pFldTyp)->GetDelimiter();
+ if(cDelim)
+ aSeparatorED.SetText( cDelim );
+ else
+ aSeparatorED.SetText( aEmptyStr );
+ ChapterHdl();
+ }
+ }
+ break;
+
+ case TYP_SETREFPAGEFLD:
+ {
+ bValue = FALSE;
+ aValueFT.SetText( SW_RESSTR( STR_OFFSET ));
+
+ if (IsFldEdit() || pBox) // Nur bei Interaktion mit Maus
+ aNameED.SetText(aEmptyStr);
+
+ if (nSelPos != 0 && nSelPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ bValue = TRUE; // SubType OFF - kennt keinen Offset
+ if (IsFldEdit())
+ aValueED.SetText(String::CreateFromInt32(((SwRefPageSetField*)GetCurField())->GetOffset()));
+ }
+ }
+ break;
+
+ case TYP_GETREFPAGEFLD:
+ aNameED.SetText(aEmptyStr);
+ aValueED.SetText(aEmptyStr);
+ break;
+ }
+
+ aNumFormatLB.Show(bNumFmt);
+ aFormatLB.Show(!bNumFmt);
+
+ if (IsFldEdit())
+ bName = FALSE;
+
+ aFormatLB.Enable(bFormat);
+ aFormatFT.Enable(bFormat|bNumFmt);
+ aNameFT.Enable(bName);
+ aNameED.Enable(bName);
+ aValueFT.Enable(bValue);
+ aValueED.Enable(bValue);
+
+ Size aSz(aFormatLB.GetSizePixel());
+
+ if (bChapterLevel)
+ aSz.Height() = aFormatLB.LogicToPixel(Size(1, 37), MAP_APPFONT).Height();
+ else
+ aSz.Height() = aFormatLB.LogicToPixel(Size(1, 71), MAP_APPFONT).Height();
+
+ aFormatLB.SetSizePixel(aSz);
+
+ aInvisibleCB.Show(!bSeparator);
+ aSeparatorFT.Show(bSeparator);
+ aSeparatorED.Show(bSeparator);
+ aChapterHeaderFT.Show(bChapterLevel);
+ aChapterLevelFT.Show(bChapterLevel);
+ aChapterLevelLB.Show(bChapterLevel);
+ aInvisibleCB.Enable(bInvisible);
+
+ ModifyHdl(); // Anwenden/Einfuegen/Loeschen Status update
+
+ aNumFormatLB.SetUpdateMode(TRUE);
+ aFormatLB.SetUpdateMode(TRUE);
+
+ if(aSelectionLB.IsCallAddSelection())
+ {
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ switch (nTypeId)
+ {
+ case TYP_FORMELFLD:
+ {
+ USHORT nSelPos = aSelectionLB.GetSelectEntryPos();
+
+ if (nSelPos != LISTBOX_ENTRY_NOTFOUND)
+ nSelPos = (USHORT)(ULONG)aSelectionLB.GetEntryData(nSelPos);
+
+ if (nSelPos != LISTBOX_ENTRY_NOTFOUND && pBox && !bInit)
+ {
+ aValueED.ReplaceSelected(aSelectionLB.GetSelectEntry());
+ ModifyHdl();
+ }
+ }
+ break;
+ }
+ aSelectionLB.ResetCallAddSelection();
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Typen in der SelectionBox erneuern
+ --------------------------------------------------------------------*/
+
+void SwFldVarPage::UpdateSubType()
+{
+ String sOldSel;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ SetSelectionSel(aSelectionLB.GetSelectEntryPos());
+ if(GetSelectionSel() != LISTBOX_ENTRY_NOTFOUND)
+ sOldSel = aSelectionLB.GetEntry(GetSelectionSel());
+
+ // Auswahl-Listbox fuellen
+ aSelectionLB.SetUpdateMode(FALSE);
+ aSelectionLB.Clear();
+
+ SvStringsDtor& rLst = GetFldMgr().GetSubTypes(nTypeId);
+ USHORT nCount = rLst.Count();
+ USHORT nPos;
+
+ for (USHORT i = 0; i < nCount; ++i)
+ {
+ if (nTypeId != TYP_INPUTFLD || i)
+ {
+ if (!IsFldEdit())
+ {
+ nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ }
+ else
+ {
+ BOOL bInsert = FALSE;
+
+ switch (nTypeId)
+ {
+ case TYP_INPUTFLD:
+ if (*rLst[i] == GetCurField()->GetPar1())
+ bInsert = TRUE;
+ break;
+
+ case TYP_FORMELFLD:
+ bInsert = TRUE;
+ break;
+
+ case TYP_GETFLD:
+ if (*rLst[i] == ((SwFormulaField*)GetCurField())->GetFormula())
+ bInsert = TRUE;
+ break;
+
+ case TYP_SETFLD:
+ case TYP_USERFLD:
+ if (*rLst[i] == GetCurField()->GetTyp()->GetName())
+ {
+ bInsert = TRUE;
+ if (GetCurField()->GetSubType() & SUB_INVISIBLE)
+ aInvisibleCB.Check();
+ }
+ break;
+
+ case TYP_SETREFPAGEFLD:
+ if ((((SwRefPageSetField*)GetCurField())->IsOn() && i) ||
+ (!((SwRefPageSetField*)GetCurField())->IsOn() && !i))
+ sOldSel = *rLst[i];
+
+ // Alle Eintrge zur Auswahl zulassen:
+ nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ break;
+
+ default:
+ if (*rLst[i] == GetCurField()->GetPar1())
+ bInsert = TRUE;
+ break;
+ }
+ if (bInsert)
+ {
+ nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ if (nTypeId != TYP_FORMELFLD)
+ break;
+ }
+ }
+ }
+ }
+
+ BOOL bEnable = aSelectionLB.GetEntryCount() != 0;
+ ListBox *pLB = 0;
+
+ if (bEnable)
+ {
+ aSelectionLB.SelectEntry(sOldSel);
+ if (!aSelectionLB.GetSelectEntryCount())
+ {
+ aSelectionLB.SelectEntryPos(0);
+ pLB = &aSelectionLB; // Alle Controls neu initialisieren
+ }
+ }
+
+ aSelectionLB.Enable( bEnable );
+ aSelectionFT.Enable( bEnable );
+
+ SubTypeHdl(pLB);
+ aSelectionLB.SetUpdateMode(TRUE);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldVarPage::FillFormatLB(USHORT nTypeId)
+{
+ String sOldSel, sOldNumSel;
+ ULONG nOldNumFormat = 0;
+
+ USHORT nFormatSel = aFormatLB.GetSelectEntryPos();
+ if (nFormatSel != LISTBOX_ENTRY_NOTFOUND)
+ sOldSel = aFormatLB.GetEntry(nFormatSel);
+
+ USHORT nNumFormatSel = aNumFormatLB.GetSelectEntryPos();
+ if (nNumFormatSel != LISTBOX_ENTRY_NOTFOUND)
+ {
+ sOldNumSel = aNumFormatLB.GetEntry(nNumFormatSel);
+ nOldNumFormat = aNumFormatLB.GetFormat();
+ }
+
+ // Format-Listbox fuellen
+ aFormatLB.Clear();
+ aNumFormatLB.Clear();
+ BOOL bSpecialFmt = FALSE;
+
+ if( TYP_GETREFPAGEFLD != nTypeId )
+ {
+ if (IsFldEdit())
+ {
+ bSpecialFmt = GetCurField()->GetFormat() == ULONG_MAX || !GetCurField()->GetFormat();
+
+ if (!bSpecialFmt)
+ {
+ aNumFormatLB.SetDefFormat(GetCurField()->GetFormat());
+ sOldNumSel = aEmptyStr;
+ }
+ else
+ if (nTypeId == TYP_GETFLD || nTypeId == TYP_FORMELFLD)
+ aNumFormatLB.SetFormatType(NUMBERFORMAT_NUMBER);
+ }
+ else
+ {
+ if (nOldNumFormat && nOldNumFormat != ULONG_MAX)
+ aNumFormatLB.SetDefFormat(nOldNumFormat);
+ else
+ aNumFormatLB.SetFormatType(NUMBERFORMAT_NUMBER);
+ }
+ }
+
+ switch (nTypeId)
+ {
+ case TYP_USERFLD:
+ {
+ if (!IsFldEdit() || bSpecialFmt)
+ {
+ USHORT nPos = aNumFormatLB.InsertEntry(SW_RESSTR(FMT_MARK_TEXT), 0);
+ aNumFormatLB.SetEntryData(nPos, (void *)ULONG_MAX);
+ nPos = aNumFormatLB.InsertEntry(SW_RESSTR(FMT_USERVAR_CMD), 1);
+ aNumFormatLB.SetEntryData(nPos, (void *)ULONG_MAX);
+ }
+ }
+ break;
+
+ case TYP_SETFLD:
+ {
+ if (!IsFldEdit() || bSpecialFmt)
+ {
+ USHORT nPos = aNumFormatLB.InsertEntry(SW_RESSTR(FMT_SETVAR_TEXT), 0);
+ aNumFormatLB.SetEntryData(nPos, (void *)ULONG_MAX);
+ }
+ }
+ break;
+
+ case TYP_FORMELFLD:
+ {
+ USHORT nPos = aNumFormatLB.InsertEntry(SW_RESSTR(FMT_GETVAR_NAME), 0);
+ aNumFormatLB.SetEntryData(nPos, (void *)ULONG_MAX);
+ }
+ break;
+
+ case TYP_GETFLD:
+ {
+ USHORT nPos = aNumFormatLB.InsertEntry(SW_RESSTR(FMT_GETVAR_NAME), 0);
+ aNumFormatLB.SetEntryData(nPos, (void *)ULONG_MAX);
+ }
+ break;
+ }
+
+ if (IsFldEdit() && bSpecialFmt)
+ {
+ if (nTypeId == TYP_USERFLD && (GetCurField()->GetSubType() & SUB_CMD))
+ aNumFormatLB.SelectEntryPos(1);
+ else
+ aNumFormatLB.SelectEntryPos(0);
+ }
+ else
+ {
+ if (!nOldNumFormat && (nNumFormatSel = aNumFormatLB.GetEntryPos(sOldNumSel)) != LISTBOX_ENTRY_NOTFOUND)
+ aNumFormatLB.SelectEntryPos(nNumFormatSel);
+ else if (nOldNumFormat && nOldNumFormat == ULONG_MAX)
+ aNumFormatLB.SelectEntry(sOldSel);
+ }
+
+ USHORT nSize = GetFldMgr().GetFormatCount(nTypeId, FALSE, IsFldDlgHtmlMode());
+
+ for (USHORT i = 0; i < nSize; i++)
+ {
+ USHORT nPos = aFormatLB.InsertEntry(GetFldMgr().GetFormatStr(nTypeId, i));
+ USHORT nFldId = GetFldMgr().GetFormatId( nTypeId, i );
+ aFormatLB.SetEntryData( nPos, (void*)nFldId );
+ if (IsFldEdit() && nFldId == GetCurField()->GetFormat())
+ aFormatLB.SelectEntryPos( nPos );
+ }
+
+ if (nSize && (!IsFldEdit() || !aFormatLB.GetSelectEntryCount()))
+ {
+ aFormatLB.SelectEntry(sOldSel);
+
+ if (!aFormatLB.GetSelectEntryCount())
+ {
+ aFormatLB.SelectEntry(SW_RESSTR(FMT_NUM_PAGEDESC));
+ if (!aFormatLB.GetSelectEntryCount())
+ {
+ aFormatLB.SelectEntry(SW_RESSTR(FMT_NUM_ARABIC));
+ if (!aFormatLB.GetSelectEntryCount())
+ aFormatLB.SelectEntryPos(0);
+ }
+ }
+ }
+
+ return nSize;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Modify
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldVarPage, ModifyHdl, Edit *, EMPTYARG )
+{
+ String sValue(aValueED.GetText());
+ BOOL bHasValue = sValue.Len() != 0;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+ BOOL bInsert = FALSE, bApply = FALSE, bDelete = FALSE;
+
+ String sName(aNameED.GetText());
+ const USHORT nOldLen = sName.Len();
+ Selection aSel(aNameED.GetSelection());
+
+ if( nTypeId == TYP_DDEFLD ||
+ nTypeId == TYP_USERFLD ||
+ nTypeId == TYP_SETFLD ||
+ nTypeId == TYP_SEQFLD)
+ {
+ sName.EraseAllChars(' ');
+ sName.EraseAllChars('-');
+ }
+ const USHORT nLen = sName.Len();
+
+ if (nOldLen != nLen)
+ {
+ aNameED.SetText(sName);
+ aNameED.SetSelection(aSel); // Cursorpos restaurieren
+ }
+
+ // Buttons ueberpruefen
+ switch (nTypeId)
+ {
+ case TYP_DDEFLD:
+ {
+ // Gibts schon einen entsprechenden Type
+ bInsert = bApply = sName.Len() > 0;
+
+ SwFieldType* pType = GetFldMgr().GetFldType(RES_DDEFLD, sName);
+
+ if (pType)
+ bDelete = !::GetActiveView()->GetWrtShell().IsUsed( *pType );
+ }
+ break;
+
+ case TYP_USERFLD:
+ {
+ // Gibts schon einen entsprechenden Type
+ SwFieldType* pType = GetFldMgr().GetFldType(RES_USERFLD, sName);
+
+ if (pType)
+ bDelete = !::GetActiveView()->GetWrtShell().IsUsed( *pType );
+
+ pType = GetFldMgr().GetFldType(RES_SETEXPFLD, sName);
+ if (!pType) // Kein Namenskonflikt mit Variablen
+ {
+ // Benutzerfelder duerfen auch ohne Inhalt eingefuegt werden!
+ // Bug #56845
+ bInsert = bApply = sName.Len() > 0;
+ }
+ }
+ break;
+
+ default:
+ {
+ bInsert = TRUE;
+
+ if (nTypeId == TYP_SETFLD || nTypeId == TYP_SEQFLD)
+ {
+ SwSetExpFieldType* pFldType = (SwSetExpFieldType*)
+ GetFldMgr().GetFldType(RES_SETEXPFLD, sName);
+
+ if (pFldType)
+ {
+
+ SwWrtShell &rSh = ::GetActiveView()->GetWrtShell();
+ const SwFldTypes* p = rSh.GetDoc()->GetFldTypes();
+ USHORT i;
+
+ for (i = 0; i < INIT_FLDTYPES; i++)
+ {
+ SwFieldType* pType = (*p)[ i ];
+ if (pType == pFldType)
+ break;
+ }
+
+ if (i >= INIT_FLDTYPES && !rSh.IsUsed(*pFldType))
+ bDelete = TRUE;
+
+ if (nTypeId == TYP_SEQFLD && !(pFldType->GetType() & GSE_SEQ))
+ bInsert = FALSE;
+
+ if (nTypeId == TYP_SETFLD && (pFldType->GetType() & GSE_SEQ))
+ bInsert = FALSE;
+ }
+ if (GetFldMgr().GetFldType(RES_USERFLD, sName))
+ bInsert = FALSE;
+ }
+
+ if (nLen == 0 && (nTypeId == TYP_SETFLD || (!IsFldEdit() && nTypeId == TYP_GETFLD)))
+ bInsert = FALSE;
+
+ if ((nTypeId == TYP_SETFLD || nTypeId == TYP_FORMELFLD) && !bHasValue)
+ bInsert = FALSE;
+ }
+ break;
+ }
+
+ aNewDelTBX.EnableItem(BT_VARAPPLY, bApply);
+ aNewDelTBX.EnableItem(BT_VARDELETE, bDelete);
+ EnableInsert(bInsert);
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldVarPage, TBClickHdl, ToolBox *, pBox )
+{
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ switch (pBox->GetCurItemId())
+ {
+ case BT_VARDELETE:
+ {
+ if( nTypeId == TYP_USERFLD )
+ GetFldMgr().RemoveFldType(RES_USERFLD, aSelectionLB.GetSelectEntry());
+ else
+ {
+ USHORT nWhich;
+
+ switch(nTypeId)
+ {
+ case TYP_SETFLD:
+ case TYP_SEQFLD:
+ nWhich = RES_SETEXPFLD;
+ break;
+ default:
+ nWhich = RES_DDEFLD;
+ break;
+ }
+
+ GetFldMgr().RemoveFldType(nWhich, aSelectionLB.GetSelectEntry());
+ }
+
+ UpdateSubType();
+ ::GetActiveView()->GetWrtShell().SetModified();
+ }
+ break;
+
+ case BT_VARAPPLY:
+ {
+ String sName(aNameED.GetText()), sValue(aValueED.GetText());
+ SwFieldType* pType = 0;
+ USHORT nId;
+ USHORT nNumFormatPos = aNumFormatLB.GetSelectEntryPos();
+
+ switch (nTypeId)
+ {
+ case TYP_USERFLD: nId = RES_USERFLD; break;
+ case TYP_DDEFLD: nId = RES_DDEFLD; break;
+ case TYP_SETFLD: nId = RES_SETEXPFLD;break;
+ }
+ pType = GetFldMgr().GetFldType(nId, sName);
+
+ ULONG nFormat = aFormatLB.GetSelectEntryPos();
+ if (nFormat != LISTBOX_ENTRY_NOTFOUND)
+ nFormat = (ULONG)aFormatLB.GetEntryData((USHORT)nFormat);
+
+ if (pType) // Aendern
+ {
+ SwWrtShell &rSh = ::GetActiveView()->GetWrtShell();
+ rSh.StartAllAction();
+
+ if (nTypeId == TYP_USERFLD)
+ {
+ if (nNumFormatPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ ULONG nFmt = nNumFormatPos == 0 ? 0 : aNumFormatLB.GetFormat();
+ if (nFmt)
+ { // Sprache auf Office-Sprache umstellen, da String im Office
+ // Format vom Kalkulator erwartet wird und so in den Dlg
+ // eingegeben werden sollte
+ SvNumberFormatter* pFormatter = rSh.GetNumberFormatter();
+ nFmt = SwValueField::GetSystemFormat(rSh.GetNumberFormatter(), nFmt);
+ }
+ ((SwUserFieldType*)pType)->SetContent(aValueED.GetText(), nFmt);
+ ((SwUserFieldType*)pType)->SetType(
+ nNumFormatPos == 0 ? GSE_STRING : GSE_EXPR );
+ }
+ }
+ else
+ {
+ if (nFormat != LISTBOX_ENTRY_NOTFOUND)
+ {
+ //JP 28.08.95: DDE-Topics/-Items koennen Blanks in ihren
+ // Namen haben! Wird hier noch nicht beachtet.
+ USHORT nTmpPos = sValue.SearchAndReplace( ' ', cTokenSeperator );
+ sValue.SearchAndReplace( ' ', cTokenSeperator, nTmpPos );
+ ((SwDDEFieldType*)pType)->SetCmd(sValue);
+ ((SwDDEFieldType*)pType)->SetType((USHORT)nFormat);
+ }
+ }
+ pType->UpdateFlds();
+
+ ::GetActiveView()->GetWrtShell().EndAllAction();
+ }
+ else // Neu
+ {
+ if(nTypeId == TYP_USERFLD)
+ {
+ SwUserFieldType aType( ::GetActiveView()->GetWrtShellPtr()->GetDoc(), sName );
+
+ if (nNumFormatPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ aType.SetType(nNumFormatPos == 0 ? GSE_STRING : GSE_EXPR);
+ aType.SetContent( sValue, nNumFormatPos == 0 ? 0 : aNumFormatLB.GetFormat() );
+ aSelectionLB.InsertEntry(sName);
+ aSelectionLB.SelectEntry(sName);
+ GetFldMgr().InsertFldType( aType ); // Userfld Neu
+ }
+ }
+ else
+ {
+ if (nFormat != LISTBOX_ENTRY_NOTFOUND)
+ {
+ //JP 28.08.95: DDE-Topics/-Items koennen Blanks in ihren
+ // Namen haben! Wird hier noch nicht beachtet.
+ USHORT nTmpPos = sValue.SearchAndReplace( ' ', cTokenSeperator );
+ sValue.SearchAndReplace( ' ', cTokenSeperator, nTmpPos );
+
+ SwDDEFieldType aType(sName, sValue, (USHORT)nFormat);
+ aSelectionLB.InsertEntry(sName);
+ aSelectionLB.SelectEntry(sName);
+ GetFldMgr().InsertFldType(aType); // DDE-Feld Neu
+ }
+ }
+ }
+ if (IsFldEdit())
+ GetFldMgr().GetCurFld(); // FieldManager Updaten
+
+ UpdateSubType();
+ }
+ break;
+ }
+
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldVarPage, ChapterHdl, ListBox *, pLB )
+{
+ BOOL bEnable = aChapterLevelLB.GetSelectEntryPos() != 0;
+
+ aSeparatorED.Enable(bEnable);
+ aSeparatorFT.Enable(bEnable);
+ SeparatorHdl();
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldVarPage, SeparatorHdl, Edit *, pED )
+{
+ BOOL bEnable = aSeparatorED.GetText().Len() != 0 ||
+ aChapterLevelLB.GetSelectEntryPos() == 0;
+ EnableInsert(bEnable);
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL __EXPORT SwFldVarPage::FillItemSet(SfxItemSet& rSet)
+{
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ String aVal(aValueED.GetText());
+ String aName(aNameED.GetText());
+
+ USHORT nSubType = aSelectionLB.GetSelectEntryPos();
+ if(nSubType == LISTBOX_ENTRY_NOTFOUND)
+ nSubType = 0;
+ else
+ nSubType = (USHORT)(ULONG)aSelectionLB.GetEntryData(nSubType);
+
+ ULONG nFormat;
+
+ if (!aNumFormatLB.IsVisible())
+ {
+ nFormat = aFormatLB.GetSelectEntryPos();
+
+ if(nFormat == LISTBOX_ENTRY_NOTFOUND)
+ nFormat = 0;
+ else
+ nFormat = (ULONG)aFormatLB.GetEntryData((USHORT)nFormat);
+ }
+ else
+ {
+ nFormat = aNumFormatLB.GetFormat();
+
+ if (nFormat && nFormat != ULONG_MAX)
+ {
+ // Sprache auf Office-Sprache umstellen, da String im Office-
+ // Format vom Kalkulator erwartet wird und so in den Dlg
+ // eingegeben werden sollte
+ SwWrtShell &rSh = ::GetActiveView()->GetWrtShell();
+ SvNumberFormatter* pFormatter = rSh.GetNumberFormatter();
+
+ nFormat = SwValueField::GetSystemFormat(rSh.GetNumberFormatter(), nFormat);
+ }
+ }
+ sal_Unicode cSeparator = ' ';
+ switch (nTypeId)
+ {
+ case TYP_USERFLD:
+ {
+ nSubType = (nFormat == ULONG_MAX) ? GSE_STRING : GSE_EXPR;
+
+ if (nFormat == ULONG_MAX && aNumFormatLB.GetSelectEntry() == SW_RESSTR(FMT_USERVAR_CMD))
+ nSubType |= SUB_CMD;
+
+ if (aInvisibleCB.IsChecked())
+ nSubType |= SUB_INVISIBLE;
+ break;
+ }
+ case TYP_FORMELFLD:
+ {
+ nSubType = GSE_FORMULA;
+ if (aNumFormatLB.IsVisible() && nFormat == ULONG_MAX)
+ nSubType |= SUB_CMD;
+ break;
+ }
+ case TYP_GETFLD:
+ {
+ nSubType &= 0xff00;
+ if (aNumFormatLB.IsVisible() && nFormat == ULONG_MAX)
+ nSubType |= SUB_CMD;
+ break;
+ }
+ case TYP_INPUTFLD:
+ {
+ SwFieldType* pType = GetFldMgr().GetFldType(RES_USERFLD, aName);
+ nSubType = (nSubType & 0xff00) | ((pType) ? INP_USR : INP_VAR);
+ break;
+ }
+
+ case TYP_SETFLD:
+ {
+ if (IsFldDlgHtmlMode())
+ {
+ nSubType = 0x0100;
+ nSubType = (nSubType & 0xff00) | GSE_STRING;
+ }
+ else
+ nSubType = (nSubType & 0xff00) | ((nFormat == ULONG_MAX) ? GSE_STRING : GSE_EXPR);
+
+ if (aInvisibleCB.IsChecked())
+ nSubType |= SUB_INVISIBLE;
+ break;
+ }
+ case TYP_SEQFLD:
+ {
+ // nSubType = GSE_SEQ; // GSE_SEQ wird im Fldmgr fest gesetzt, kann also entfallen
+ nSubType = aChapterLevelLB.GetSelectEntryPos();
+ if (nSubType == 0)
+ nSubType = 0x7f;
+ else
+ {
+ nSubType--;
+ String sSeparator(aSeparatorED.GetText().GetChar(0));
+ cSeparator = sSeparator.Len() ? sSeparator.GetChar(0) : ' ';
+ //nSubType |= (USHORT)(((BYTE)) << 8);
+ }
+ break;
+ }
+ case TYP_GETREFPAGEFLD:
+ if( SVX_NUM_CHAR_SPECIAL == nFormat )
+ aVal = aValueED.GetText();
+ break;
+ }
+
+ if (!IsFldEdit() ||
+ aNameED.GetSavedValue() != aNameED.GetText() ||
+ aValueED.GetSavedValue() != aValueED.GetText() ||
+ aSelectionLB.GetSavedValue() != aSelectionLB.GetSelectEntryPos() ||
+ aFormatLB.GetSavedValue() != aFormatLB.GetSelectEntryPos() ||
+ nOldFormat != aNumFormatLB.GetFormat() ||
+ aInvisibleCB.GetState() != aInvisibleCB.GetSavedValue() ||
+ aChapterLevelLB.GetSavedValue() != aChapterLevelLB.GetSelectEntryPos() ||
+ aSeparatorED.GetSavedValue() != aSeparatorED.GetText())
+ {
+ InsertFld( nTypeId, nSubType, aName, aVal, nFormat, cSeparator );
+ }
+
+ UpdateSubType();
+
+ return FALSE;
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxTabPage* __EXPORT SwFldVarPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return ( new SwFldVarPage( pParent, rAttrSet ) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldVarPage::GetGroup()
+{
+ return GRP_VAR;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SelectionListBox::SelectionListBox( SwFldVarPage* pDialog, const ResId& rResId ) :
+ ListBox (pDialog, rResId),
+ pDlg (pDialog),
+ bCallAddSelection(FALSE)
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+long SelectionListBox::PreNotify( NotifyEvent& rNEvt )
+{
+ long nHandled = ListBox::PreNotify( rNEvt );
+ //BOOL bAddSel = FALSE;
+ if ( rNEvt.GetType() == EVENT_KEYUP )
+ {
+ const KeyEvent* pKEvt = rNEvt.GetKeyEvent();
+ const KeyCode aKeyCode = pKEvt->GetKeyCode();
+ const USHORT nModifier = aKeyCode.GetModifier();
+ if( aKeyCode.GetCode() == KEY_SPACE && !nModifier)
+// bAddSel = TRUE;
+ bCallAddSelection = TRUE;
+ }
+ if ( rNEvt.GetType() == EVENT_MOUSEBUTTONDOWN )
+ {
+ const MouseEvent* pMEvt = rNEvt.GetMouseEvent();
+
+ if (pMEvt && (pMEvt->IsMod1() || pMEvt->IsMod2())) // Alt oder Ctrl
+ //bAddSel = TRUE;
+ bCallAddSelection = TRUE;
+ }
+
+// if (bAddSel)
+// pDlg->AddSelection(this);
+
+ return nHandled;
+}
+/* -----------------12.01.99 11:14-------------------
+ *
+ * --------------------------------------------------*/
+void SwFldVarPage::FillUserData()
+{
+ String sData(String::CreateFromAscii(USER_DATA_VERSION));
+ sData += ';';
+ USHORT nTypeSel = aTypeLB.GetSelectEntryPos();
+ if( LISTBOX_ENTRY_NOTFOUND == nTypeSel )
+ nTypeSel = USHRT_MAX;
+ else
+ nTypeSel = (ULONG)aTypeLB.GetEntryData( nTypeSel );
+ sData += String::CreateFromInt32( nTypeSel );
+ SetUserData(sData);
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.54 2000/09/18 16:05:30 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.53 2000/08/25 14:18:40 os
+ CreateFromInt32()
+
+ Revision 1.52 2000/07/20 18:00:34 jp
+ FillFormatLB: don't call SetDefFormat/SetFormatType if the field is a GetRefPageFld
+
+ Revision 1.51 2000/06/30 08:52:53 os
+ #76541# string assertions removed
+
+ Revision 1.50 2000/05/23 18:36:52 jp
+ Bugfixes for Unicode
+
+ Revision 1.49 2000/04/18 15:17:32 os
+ UNICODE
+
+ Revision 1.48 2000/02/11 14:46:46 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.47 1999/05/25 09:25:22 OS
+ #64715# Ctrl/Alt-Erkennung im PreNotify und Auswertung im SelectHdl
+
+
+ Rev 1.46 25 May 1999 11:25:22 OS
+ #64715# Ctrl/Alt-Erkennung im PreNotify und Auswertung im SelectHdl
+
+ Rev 1.45 20 Apr 1999 10:59:34 JP
+ Bug #65026#: SequenceFelder: Level/Sep-Controls im SubTypeHdl aktualisieren
+
+ Rev 1.44 25 Feb 1999 17:24:52 JP
+ Bug #62438#: UserData nur auswerten, wenn kein Refresh ist
+
+ Rev 1.43 08 Feb 1999 15:07:18 OS
+ #60579# UserData nur einmalig auslesen
+
+ Rev 1.42 21 Jan 1999 09:46:24 OS
+ #59900# Fussnoten im Dialog korrekt sortieren; keine prot. Member
+
+ Rev 1.41 12 Jan 1999 11:42:26 OS
+ #60579# ausgewaehlten Typ in den UserData speichern
+
+ Rev 1.40 11 Dec 1998 15:16:24 OM
+ #60051# Richtiges Format fuer Serienbrieffelder waehlen
+
+ Rev 1.39 17 Nov 1998 10:50:36 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.38 30 Oct 1998 15:33:02 OM
+ #58522# Richtigen Wert bei Formelfeld bearbeiten
+
+ Rev 1.37 29 Oct 1998 14:08:32 OM
+ #58544# Butzerfeld: richtigen Inhalt anzeigen
+
+ Rev 1.36 27 Oct 1998 14:01:16 OM
+ #57956# Formelfeld: richtigen Wert anzeigen
+
+ Rev 1.35 15 Oct 1998 15:58:32 OM
+ #57956# Richtige Formel bearbeiten
+
+ Rev 1.34 21 Sep 1998 16:05:42 OM
+ #56845# Leere Benutzerfelder zulassen
+
+ Rev 1.33 15 Sep 1998 16:02:04 OM
+ #55149# In Dialogen Zahlenformat der Applikation verwenden
+
+ Rev 1.32 10 Aug 1998 16:41:12 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.31 18 Jun 1998 15:50:46 OM
+ Ebenen fangen mit 1 an
+
+ Rev 1.30 18 Jun 1998 11:59:00 OM
+ Kapitelebenen fuer Nummernkreise
+
+ Rev 1.29 18 Jun 1998 11:21:10 OM
+ Kapitelebenen fuer Nummernkreise
+
+ Rev 1.28 03 Apr 1998 14:38:40 OM
+ #49178 Akualisierung verbessert
+
+ Rev 1.27 30 Mar 1998 11:00:38 OM
+ Edit: OK-Button auch bei FLD_GETVAR enablen
+
+ Rev 1.26 27 Mar 1998 17:15:04 OM
+ Nur bei Aenderung Dok modifizieren
+
+ Rev 1.25 27 Mar 1998 14:56:20 OM
+ #48908# Formel beim Bearbeiten anzeigen
+
+ Rev 1.24 12 Mar 1998 16:32:00 OM
+ Datenbanknamen in eckigen Klammern bei Drop
+
+ Rev 1.23 16 Feb 1998 10:10:24 OM
+ Fuer Solaris nicht direkt von void* auf ushort casten
+
+ Rev 1.22 11 Feb 1998 16:29:40 OM
+ Textdarstellung fuer Felder
+
+ Rev 1.21 11 Feb 1998 11:49:58 OM
+ Formel einfuegen
+
+ Rev 1.20 06 Feb 1998 14:50:56 OM
+ #47089# Seitenvariable anzeigen
+
+ Rev 1.19 02 Feb 1998 11:26:22 OM
+ #46839# Nummernkreise editieren: Als Value Formel anzeigen
+
+ Rev 1.18 13 Jan 1998 15:02:06 OM
+ Formula-Field wieder unterstuetzt
+
+ Rev 1.17 12 Jan 1998 17:10:24 OM
+ Formelfelder wieder erlauben
+
+ Rev 1.16 12 Jan 1998 14:16:04 OM
+ Keine Namenskonflikte zwischen verschiedenen Variablentypen
+
+ Rev 1.15 12 Jan 1998 12:43:34 OM
+ Eintraege der Edits beibehalten
+
+ Rev 1.14 09 Jan 1998 16:57:18 OM
+ Bei Dok-Wechsel updaten
+
+ Rev 1.13 08 Jan 1998 14:58:26 OM
+ Traveling
+
+ Rev 1.12 07 Jan 1998 17:18:18 OM
+ Referenzen editieren
+
+ Rev 1.11 19 Dec 1997 18:25:00 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.10 17 Dec 1997 17:58:46 OM
+ Datumsformate fuer SetExpFields
+
+ Rev 1.9 16 Dec 1997 17:02:58 OM
+ Feldbefehle bearbeiten
+
+ Rev 1.8 12 Dec 1997 16:11:12 OM
+ AutoUpdate bei FocusWechsel u.a.
+
+ Rev 1.7 11 Dec 1997 16:59:30 OM
+ Feldumstellung
+
+ Rev 1.6 28 Nov 1997 19:55:06 MA
+ includes
+
+ Rev 1.5 28 Nov 1997 15:37:02 OM
+ Variablen-TP
+
+ Rev 1.4 27 Nov 1997 13:18:02 OM
+ Variablen-TP
+
+ Rev 1.3 05 Nov 1997 15:35:42 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.2 03 Nov 1997 11:40:56 OM
+ Neuer Felddialog
+
+ Rev 1.1 31 Oct 1997 15:14:42 OM
+ Feldumstellung
+
+ Rev 1.0 30 Oct 1997 16:31:26 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/fldui/fldvar.hxx b/sw/source/ui/fldui/fldvar.hxx
new file mode 100644
index 000000000000..ef1f71b753e8
--- /dev/null
+++ b/sw/source/ui/fldui/fldvar.hxx
@@ -0,0 +1,172 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldvar.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWFLDVAR_HXX
+#define _SWFLDVAR_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_TOOLBOX_HXX //autogen
+#include <vcl/toolbox.hxx>
+#endif
+#ifndef _SV_EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#include "fldpage.hxx"
+#include "condedit.hxx"
+#include "numfmtlb.hxx"
+
+class SwFldVarPage;
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SelectionListBox : public ListBox
+{
+ SwFldVarPage* pDlg;
+ BOOL bCallAddSelection;
+
+ virtual long PreNotify( NotifyEvent& rNEvt );
+
+public:
+ SelectionListBox( SwFldVarPage* pDialog, const ResId& rResId );
+
+ // Selektieren per Ctrl oder Alt erkennen und mit SelectHdl auswerten
+ BOOL IsCallAddSelection() const {return bCallAddSelection;}
+ void ResetCallAddSelection() {bCallAddSelection = FALSE;}
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwFldVarPage : public SwFldPage
+{
+ friend class SelectionListBox;
+
+ FixedText aTypeFT;
+ ListBox aTypeLB;
+ FixedText aSelectionFT;
+ SelectionListBox aSelectionLB;
+ FixedText aNameFT;
+ Edit aNameED;
+ FixedText aValueFT;
+ ConditionEdit aValueED;
+ FixedText aFormatFT;
+ NumFormatListBox aNumFormatLB;
+ ListBox aFormatLB;
+ FixedText aChapterHeaderFT;
+ FixedText aChapterLevelFT;
+ ListBox aChapterLevelLB;
+ CheckBox aInvisibleCB;
+ FixedText aSeparatorFT;
+ Edit aSeparatorED;
+ ToolBox aNewDelTBX;
+
+ String sOldValueFT;
+ String sOldNameFT;
+
+ ULONG nOldFormat;
+ BOOL bInit;
+
+ DECL_LINK( TypeHdl, ListBox* pLB = 0 );
+ DECL_LINK( SubTypeHdl, ListBox* pLB = 0 );
+ DECL_LINK( ModifyHdl, Edit *pED = 0 );
+ DECL_LINK( TBClickHdl, ToolBox *pTB = 0);
+ DECL_LINK( ChapterHdl, ListBox *pLB = 0);
+ DECL_LINK( SeparatorHdl, Edit *pED = 0 );
+
+ void UpdateSubType();
+ USHORT FillFormatLB(USHORT nTypeId);
+
+protected:
+ virtual USHORT GetGroup();
+
+public:
+ SwFldVarPage(Window* pParent, const SfxItemSet& rSet);
+
+ ~SwFldVarPage();
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ virtual void FillUserData();
+};
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/fldvar.src b/sw/source/ui/fldui/fldvar.src
new file mode 100644
index 000000000000..5c38ec847145
--- /dev/null
+++ b/sw/source/ui/fldui/fldvar.src
@@ -0,0 +1,560 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldvar.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * 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 "globals.hrc"
+#include "fldtdlg.hrc"
+#include "helpid.h"
+#include "cmdid.h"
+TabPage TP_FLD_VAR
+{
+ HelpID = HID_FLD_VAR ;
+ SVLook = TRUE ;
+ Hide = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Text = "Variablen" ;
+ Text [ ENGLISH ] = "Variables" ;
+ FixedText FT_VARTYPE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Feldtyp" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "~Tipo di campo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo de ~campo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Felttype" ;
+ Text [ french ] = "~Type de champ" ;
+ Text [ swedish ] = "~Flttyp" ;
+ Text [ dutch ] = "~Veldtype" ;
+ Text [ spanish ] = "~Tipo de campo" ;
+ Text [ english_us ] = "~Type" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ֶ(~T)";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Typ pola";
+ Text[ japanese ] = "̨ނ̎(~T)";
+ Text[ chinese_traditional ] = "(~T)";
+ Text[ arabic ] = " ";
+ Text[ greek ] = "~ ";
+ Text[ korean ] = "(~T)";
+ Text[ turkish ] = "A~lan tipi";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_VARTYPE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 83 ) ;
+ TabStop = TRUE ;
+ Sort = FALSE ;
+ AutoHScroll = TRUE ;
+ };
+ FixedText FT_VARSELECTION
+ {
+ Pos = MAP_APPFONT ( 88 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 8 ) ;
+ Text = "~Auswahl" ;
+ Text [ ENGLISH ] = "S~election" ;
+ Left = TRUE ;
+ Text [ english_us ] = "S~election" ;
+ Text [ portuguese_brazilian ] = "~Auswahl" ;
+ Text [ swedish ] = "Urv~al" ;
+ Text [ danish ] = "Udvalg" ;
+ Text [ italian ] = "~Selezione" ;
+ Text [ spanish ] = "~Seleccin" ;
+ Text [ french ] = "~Slection" ;
+ Text [ dutch ] = "~Selectie" ;
+ Text [ portuguese ] = "~Seleco" ;
+ Text[ chinese_simplified ] = "ѡ(~E)";
+ Text[ russian ] = "";
+ Text[ polish ] = "~Wybr";
+ Text[ japanese ] = "I(~E)";
+ Text[ chinese_traditional ] = "(~E)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "~";
+ Text[ korean ] = "(~E)";
+ Text[ turkish ] = "~Seim";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_VARSELECTION
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 83 ) ;
+ TabStop = TRUE ;
+ Sort = TRUE ;
+ };
+ FixedText FT_VARFORMAT
+ {
+ Pos = MAP_APPFONT ( 170 , 3 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ TEXT = "F~ormat" ;
+ TEXT [ English ] = "Format" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Format" ;
+ Text [ portuguese_brazilian ] = "F~ormat" ;
+ Text [ swedish ] = "F~ormat" ;
+ Text [ danish ] = "Format" ;
+ Text [ italian ] = "F~ormato" ;
+ Text [ spanish ] = "F~ormato" ;
+ Text [ french ] = "F~ormat" ;
+ Text [ dutch ] = "~Formaat" ;
+ Text [ portuguese ] = "F~ormato" ;
+ Text[ chinese_simplified ] = "ʽ(~O)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "榡(~F)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "~";
+ Text[ korean ] = "";
+ Text[ turkish ] = "F~ormat";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_VARFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 16 ) ;
+ Size = MAP_APPFONT ( 84 , 71 ) ;
+ TabStop = TRUE ;
+ DropDown = FALSE ;
+ };
+ ListBox LB_VARNUMFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 16 ) ;
+ Size = MAP_APPFONT ( 84 , 71 ) ;
+ TabStop = TRUE ;
+ DropDown = FALSE ;
+ };
+ CheckBox CB_VARINVISIBLE
+ {
+ Pos = MAP_APPFONT ( 170 , 91 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ TEXT = "~Unsichtbar" ;
+ TEXT [ English ] = "Invisible" ;
+ TEXT [ norwegian ] = "Usynlig" ;
+ TEXT [ italian ] = "Nascosto" ;
+ TEXT [ portuguese_brazilian ] = "Invisvel" ;
+ TEXT [ portuguese ] = "~Invisvel" ;
+ TEXT [ finnish ] = "Nkymtn" ;
+ TEXT [ danish ] = "Usynlig" ;
+ TEXT [ french ] = "Invisible" ;
+ TEXT [ swedish ] = "Os~ynlig" ;
+ TEXT [ dutch ] = "~Onzichtbaar" ;
+ TEXT [ spanish ] = "Invisi~ble" ;
+ TEXT [ english_us ] = "Invisi~ble" ;
+ TabStop = TRUE ;
+ TEXT[ chinese_simplified ] = "";
+ TEXT[ russian ] = "";
+ TEXT[ polish ] = "Niewid~oczny";
+ TEXT[ japanese ] = "\\";
+ TEXT[ chinese_traditional ] = "J";
+ TEXT[ arabic ] = " ";
+ TEXT[ greek ] = " ";
+ TEXT[ korean ] = "Ⱥ(~B)";
+ TEXT[ turkish ] = "Grnmez";
+ TEXT[ language_user1 ] = " ";
+ };
+ FixedText FT_VARCHAPTERHEADER
+ {
+ Pos = MAP_APPFONT ( 170 , 62 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Hide = TRUE ;
+ TEXT = "Kapitelweise Nummerierung" ;
+ TEXT [ English ] = "Chapter numbering" ;
+ Text [ english_us ] = "Numbering by chapter" ;
+ Text [ portuguese_brazilian ] = "Kapitelweise Numerierung" ;
+ Text [ swedish ] = "Numrering kapitelvis" ;
+ Text [ danish ] = "Kapitelvis nummerering" ;
+ Text [ italian ] = "Numerazione a capitoli" ;
+ Text [ spanish ] = "Numeracin de captulos" ;
+ Text [ french ] = "Numrotation par chapitre" ;
+ Text [ dutch ] = "Hoofdstuksgewijs nummeren" ;
+ Text [ portuguese ] = "Numerao por captulos" ;
+ Text[ chinese_simplified ] = "±";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Numeracja wedug rozdziaw ";
+ Text[ japanese ] = "͂̔ԍt";
+ Text[ chinese_traditional ] = "s";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = " ȣű";
+ Text[ turkish ] = "Blme gre numaralama";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_VARCHAPTERLEVEL
+ {
+ Pos = MAP_APPFONT ( 175 , 76 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Hide = TRUE ;
+ TEXT = "E~bene" ;
+ TEXT [ English ] = "Level" ;
+ Text [ english_us ] = "~Level" ;
+ Text [ portuguese_brazilian ] = "E~bene" ;
+ Text [ swedish ] = "~Niv" ;
+ Text [ danish ] = "Niveau" ;
+ Text [ italian ] = "Li~vello" ;
+ Text [ spanish ] = "~Nivel" ;
+ Text [ french ] = "Ni~veau" ;
+ Text [ dutch ] = "N~iveau" ;
+ Text [ portuguese ] = "~Nvel" ;
+ Text[ chinese_simplified ] = "(~L)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Poziom";
+ Text[ japanese ] = "(~L)";
+ Text[ chinese_traditional ] = "(~L)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "(~L)";
+ Text[ turkish ] = "D~zey";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_VARCHAPTERLEVEL
+ {
+ Border = TRUE ;
+ Hide = TRUE ;
+ Pos = MAP_APPFONT ( 208 , 75 ) ;
+ Size = MAP_APPFONT ( 46 , 76 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ < "Keine" ; > ;
+ };
+ stringlist [ english ] =
+ {
+ < "Keine" ; > ;
+ };
+ stringlist [ english_us ] =
+ {
+ < "None" ; > ;
+ };
+ stringlist [ portuguese_brazilian ] =
+ {
+ < "Keine" ; > ;
+ };
+ stringlist [ swedish ] =
+ {
+ < "Inga" ; > ;
+ };
+ stringlist [ danish ] =
+ {
+ < "Ingen" ; > ;
+ };
+ stringlist [ italian ] =
+ {
+ < "Senza" ; > ;
+ };
+ stringlist [ spanish ] =
+ {
+ < "Ninguno" ; > ;
+ };
+ stringlist [ french ] =
+ {
+ < "Aucun(e)" ; > ;
+ };
+ stringlist [ dutch ] =
+ {
+ < "Geen" ; > ;
+ };
+ stringlist [ portuguese ] =
+ {
+ < "Nenhum" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Brak" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "Ȃ" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "L" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Yok" ; > ;
+ };
+ };
+ FixedText FT_VARSEPARATOR
+ {
+ Pos = MAP_APPFONT ( 175 , 91 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Hide = TRUE ;
+ TEXT = "~Trenner" ;
+ TEXT [ English ] = "Separator" ;
+ Text [ english_us ] = "~Separator" ;
+ Text [ portuguese_brazilian ] = "~Trenner" ;
+ Text [ swedish ] = "A~vdelare" ;
+ Text [ danish ] = "Separator" ;
+ Text [ italian ] = "~Separatore" ;
+ Text [ spanish ] = "~Separador" ;
+ Text [ french ] = "~Sparateur" ;
+ Text [ dutch ] = "~Scheidingsteken" ;
+ Text [ portuguese ] = "~Separador" ;
+ Text[ chinese_simplified ] = "ָ(~S)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Separator";
+ Text[ japanese ] = "؂L(~S)";
+ Text[ chinese_traditional ] = "s(~S)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "(~S)";
+ Text[ turkish ] = "A~yrma iareti";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_VARSEPARATOR
+ {
+ Pos = MAP_APPFONT ( 208 , 90 ) ;
+ Size = MAP_APPFONT ( 46 , 12 ) ;
+ Border = TRUE ;
+ Hide = TRUE ;
+ MaxTextLength = 1 ;
+ TEXT = "." ;
+ };
+ FixedText FT_VARNAME
+ {
+ Pos = MAP_APPFONT ( 6 , 105 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "Na~me" ;
+ TEXT [ English ] = "Na~me" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Na~me" ;
+ Text [ portuguese_brazilian ] = "Na~me" ;
+ Text [ swedish ] = "Na~mn" ;
+ Text [ danish ] = "Navn" ;
+ Text [ italian ] = "No~me" ;
+ Text [ spanish ] = "~Nombre" ;
+ Text [ french ] = "~Nom" ;
+ Text [ dutch ] = "Na~am" ;
+ Text [ portuguese ] = "No~me" ;
+ Text[ chinese_simplified ] = "(~M)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "O(~M)";
+ Text[ chinese_traditional ] = "W(~M)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "̸(~M)";
+ Text[ turkish ] = "~Ad";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_VARNAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 117 ) ;
+ Size = MAP_APPFONT ( 76 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText FT_VARVALUE
+ {
+ Pos = MAP_APPFONT ( 88 , 105 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Wert" ;
+ Text [ ENGLISH ] = "Value" ;
+ Text [ norwegian ] = "Verdi" ;
+ Text [ italian ] = "~Valore" ;
+ Text [ portuguese_brazilian ] = "Valor" ;
+ Text [ portuguese ] = "~Valor" ;
+ Text [ finnish ] = "Arvo" ;
+ Text [ danish ] = "Vrdi" ;
+ Text [ french ] = "~Valeur" ;
+ Text [ swedish ] = "~Vrde" ;
+ Text [ dutch ] = "~Waarde" ;
+ Text [ spanish ] = "~Valor" ;
+ Text [ english_us ] = "~Value" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ֵ(~V)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Warto";
+ Text[ japanese ] = "l(~V)";
+ Text[ chinese_traditional ] = "ƭ(~V)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "(~V)";
+ Text[ turkish ] = "De~er";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_VARVALUE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 117 ) ;
+ Size = MAP_APPFONT ( 76 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ ToolBox TBX_VARNEWDEL
+ {
+ Pos = MAP_APPFONT ( 167 , 117 ) ;
+ SVLook = TRUE ;
+ Border = FALSE ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = BT_VARAPPLY ;
+ HelpID = HID_FLDVAR_APPLY ;
+ ItemBitmap = Bitmap { File = "sc20558.bmp" ; };
+ Text = "bernehmen" ;
+ Text [ English ] = "Apply" ;
+ Text [ norwegian ] = "Benytt" ;
+ Text [ italian ] = "Applica" ;
+ Text [ portuguese_brazilian ] = "Aplicar" ;
+ Text [ portuguese ] = "Aplicar" ;
+ Text [ finnish ] = "Kyt" ;
+ Text [ danish ] = "Anvend" ;
+ Text [ french ] = "Appliquer" ;
+ Text [ swedish ] = "verta" ;
+ Text [ dutch ] = "Overnemen" ;
+ Text [ spanish ] = "Aplicar" ;
+ Text [ english_us ] = "Apply" ;
+ Text[ chinese_simplified ] = "Ӧ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Zastosuj";
+ Text[ japanese ] = "Kp";
+ Text[ chinese_traditional ] = "ϥ";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Kullan";
+ Text[ language_user1 ] = " ";
+ };
+ ToolBoxItem
+ {
+ Identifier = BT_VARDELETE ;
+ HelpID = HID_FLDVAR_DELETE ;
+ ItemBitmap = Bitmap { File = "sc20557.bmp" ; };
+ Text = "Lschen" ;
+ Text [ ENGLISH ] = "Delete" ;
+ Text [ norwegian ] = "Slett" ;
+ Text [ italian ] = "Elimina" ;
+ Text [ portuguese_brazilian ] = "Apagar" ;
+ Text [ portuguese ] = "Eliminar" ;
+ Text [ finnish ] = "Poista" ;
+ Text [ danish ] = "Slet" ;
+ Text [ french ] = "Supprimer" ;
+ Text [ swedish ] = "Radera" ;
+ Text [ dutch ] = "Wissen" ;
+ Text [ spanish ] = "Eliminar" ;
+ Text [ english_us ] = "Delete" ;
+ Text[ chinese_simplified ] = "ɾ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Usu";
+ Text[ japanese ] = "폜";
+ Text[ chinese_traditional ] = "R";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Sil";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ Text [ english_us ] = "Variables" ;
+ Text [ portuguese_brazilian ] = "Variablen" ;
+ Text [ swedish ] = "Variabler" ;
+ Text [ danish ] = "Variabler" ;
+ Text [ italian ] = "Variabili" ;
+ Text [ spanish ] = "Variables" ;
+ Text [ french ] = "Variables" ;
+ Text [ dutch ] = "Variabelen" ;
+ Text [ portuguese ] = "Variveis" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Zmienne";
+ Text[ japanese ] = "ϐ";
+ Text[ chinese_traditional ] = "ܶq";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Deikenler";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/inpdlg.cxx b/sw/source/ui/fldui/inpdlg.cxx
new file mode 100644
index 000000000000..22767712b20d
--- /dev/null
+++ b/sw/source/ui/fldui/inpdlg.cxx
@@ -0,0 +1,320 @@
+/*************************************************************************
+ *
+ * $RCSfile: inpdlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * 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
+
+#define _INPDLG_CXX
+
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _EXPFLD_HXX
+#include <expfld.hxx>
+#endif
+#ifndef _USRFLD_HXX
+#include <usrfld.hxx>
+#endif
+#ifndef _INPDLG_HXX
+#include <inpdlg.hxx>
+#endif
+#ifndef _FLDMGR_HXX
+#include <fldmgr.hxx>
+#endif
+
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _INPDLG_HRC
+#include <inpdlg.hrc>
+#endif
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Feldeinfuegen bearbeiten
+ --------------------------------------------------------------------*/
+
+SwFldInputDlg::SwFldInputDlg( Window *pParent, SwWrtShell &rS,
+ SwField* pField, BOOL bNextButton ) :
+
+ SvxStandardDialog(pParent, SW_RES(DLG_FLD_INPUT)),
+
+ rSh( rS ),
+ aLabelED (this, SW_RES(ED_LABEL )),
+ aEditED (this, SW_RES(ED_EDIT )),
+ aEditGB (this, SW_RES(GB_EDIT )),
+ aOKBT (this, SW_RES(BT_OK )),
+ aCancelBT (this, SW_RES(BT_CANCEL )),
+ aNextBT (this, SW_RES(PB_NEXT )),
+ aHelpBT (this, SW_RES(PB_HELP )),
+ pInpFld(0),
+ pSetFld(0),
+ pUsrType(0)
+{
+ // Font fuers Edit umschalten
+ Font aFont(aEditED.GetFont());
+ aFont.SetWeight(WEIGHT_LIGHT);
+ aEditED.SetFont(aFont);
+
+ if( bNextButton )
+ {
+ aNextBT.Show();
+ aNextBT.SetClickHdl(LINK(this, SwFldInputDlg, NextHdl));
+ }
+ else
+ {
+ long nDiff = aCancelBT.GetPosPixel().Y() - aOKBT.GetPosPixel().Y();
+ Point aPos = aHelpBT.GetPosPixel();
+ aPos.Y() -= nDiff;
+ aHelpBT.SetPosPixel(aPos);
+ }
+
+ // Auswertung hier
+ String aStr;
+ if( RES_INPUTFLD == pField->GetTyp()->Which() )
+ { // Es ist eine Eingabefeld
+ //
+ pInpFld = (SwInputField*)pField;
+ aLabelED.SetText( pInpFld->GetPar2() );
+ USHORT nSubType = pInpFld->GetSubType();
+
+ switch(nSubType & 0xff)
+ {
+ case INP_TXT:
+ aStr = pInpFld->GetPar1();
+ break;
+
+ case INP_USR:
+ // Benutzerfeld
+ if( 0 != ( pUsrType = (SwUserFieldType*)rSh.GetFldType(
+ RES_USERFLD, pInpFld->GetPar1() ) ) )
+ aStr = pUsrType->GetContent();
+ break;
+ }
+ }
+ else
+ {
+ // es ist eine SetExpression
+ pSetFld = (SwSetExpField*)pField;
+ String sFormula(pSetFld->GetFormula());
+ //values are formatted - formulas are not
+ International aInt(pSetFld->GetLanguage());
+ if(aInt.IsNumeric(sFormula))
+ aStr = pSetFld->Expand();
+ else
+ aStr = sFormula;
+ aLabelED.SetText( pSetFld->GetPromptText() );
+ }
+
+ // JP 31.3.00: Inputfields in readonly regions must be allowed to
+ // input any content. - 74639
+ BOOL bEnable = !rSh.IsCrsrReadonly();
+ /*!rSh.IsReadOnlyAvailable() || !rSh.HasReadonlySel()*/;
+ aOKBT.Enable( bEnable );
+ aEditED.SetReadOnly( !bEnable );
+
+ if( aStr.Len() )
+ aEditED.SetText( aStr.ConvertLineEnd() );
+ aEditED.GrabFocus();
+ FreeResource();
+}
+
+SwFldInputDlg::~SwFldInputDlg()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Schliessen
+ --------------------------------------------------------------------*/
+
+void SwFldInputDlg::Apply()
+{
+ String aTmp( aEditED.GetText() );
+ aTmp.EraseAllChars( '\r' );
+
+ rSh.StartAllAction();
+ BOOL bModified = FALSE;
+ if(pInpFld)
+ {
+ if(pUsrType)
+ {
+ if( aTmp != pUsrType->GetContent() )
+ {
+ pUsrType->SetContent(aTmp);
+ pUsrType->UpdateFlds();
+ bModified = TRUE;
+ }
+ }
+ else if( aTmp != pInpFld->GetPar1() )
+ {
+ pInpFld->SetPar1(aTmp);
+ rSh.SwEditShell::UpdateFlds(*pInpFld);
+ bModified = TRUE;
+ }
+ }
+ else if( aTmp != pSetFld->GetPar2() )
+ {
+ pSetFld->SetPar2(aTmp);
+ rSh.SwEditShell::UpdateFlds(*pSetFld);
+ bModified = TRUE;
+ }
+
+ if( bModified )
+ rSh.SetUndoNoResetModified();
+
+ rSh.EndAllAction();
+}
+
+
+IMPL_LINK(SwFldInputDlg, NextHdl, PushButton*, EMPTYARG)
+{
+ EndDialog(RET_OK);
+ return 0;
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.48 2000/09/18 16:05:30 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.47 2000/08/21 09:11:38 os
+ Set expression input fields: show formula or Expand() depending on the formula content
+
+ Revision 1.46 2000/03/31 08:00:44 jp
+ Bug #74639#: allow changes on InputFields in readonly regions
+
+ Revision 1.45 2000/02/11 14:46:53 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.44 1999/01/20 15:56:58 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+
+ Rev 1.43 20 Jan 1999 16:56:58 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.42 17 Dec 1997 17:58:46 OM
+ Datumsformate fuer SetExpFields
+
+ Rev 1.41 03 Nov 1997 13:18:10 MA
+ precomp entfernt
+
+ Rev 1.40 02 Oct 1997 15:21:44 OM
+ Feldumstellung
+
+ Rev 1.39 23 Jul 1997 20:25:54 HJS
+ includes
+
+ Rev 1.38 11 Nov 1996 09:56:08 MA
+ ResMgr
+
+ Rev 1.37 24 Oct 1996 13:36:22 JP
+ String Umstellung: [] -> GetChar()
+
+ Rev 1.36 30 Aug 1996 12:43:16 OS
+ InputFldDlg mit Next-Button
+
+ Rev 1.35 28 Aug 1996 12:10:58 OS
+ includes
+
+ Rev 1.34 01 Aug 1996 10:59:16 AMA
+ New: Eingabe-Felder mit Zeilenumbruechen
+
+ Rev 1.33 04 Jun 1996 18:41:52 JP
+ bei GetFldType wurden die Parameter getauscht
+
+ Rev 1.32 02 Apr 1996 14:32:34 OS
+ *_cxx - define hinter hdrstop
+
+ Rev 1.31 24 Nov 1995 16:57:42 OM
+ PCH->PRECOMPILED
+
+ Rev 1.30 08 Nov 1995 13:45:34 OM
+ Change->Set
+
+ Rev 1.29 30 Aug 1995 13:53:30 MA
+ fix: sexport'iert
+
+ Rev 1.28 21 Aug 1995 09:24:36 MA
+ chg: swstddlg -> svxstandarddialog, Optimierungen
+
+ Rev 1.27 18 Jan 1995 18:54:20 ER
+ fld.hxx -> *fld*.hxx
+
+ Rev 1.26 25 Oct 1994 17:57:02 ER
+ add: PCH
+
+ Rev 1.25 17 Oct 1994 16:24:58 PK
+ ausgeboxtes wieder reingeboxt
+
+*************************************************************************/
+
diff --git a/sw/source/ui/fldui/inpdlg.hrc b/sw/source/ui/fldui/inpdlg.hrc
new file mode 100644
index 000000000000..a5741d19a994
--- /dev/null
+++ b/sw/source/ui/fldui/inpdlg.hrc
@@ -0,0 +1,68 @@
+/*************************************************************************
+ *
+ * $RCSfile: inpdlg.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * 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 FT_LABEL 1
+#define ED_EDIT 3
+#define GB_EDIT 4
+#define BT_OK 5
+#define BT_CANCEL 6
+#define ED_LABEL 7
+#define PB_NEXT 8
+#define PB_HELP 9
diff --git a/sw/source/ui/fldui/inpdlg.src b/sw/source/ui/fldui/inpdlg.src
new file mode 100644
index 000000000000..b2bb8f68b67c
--- /dev/null
+++ b/sw/source/ui/fldui/inpdlg.src
@@ -0,0 +1,228 @@
+/*************************************************************************
+ *
+ * $RCSfile: inpdlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * 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 "fldui.hrc"
+#include "inpdlg.hrc"
+#include "helpid.h"
+ModalDialog DLG_FLD_INPUT
+{
+ HelpID = HID_FLD_INPUT ;
+ OutputSize = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 194 , 119 ) ;
+ Text = "Eingabefeld" ;
+ Text [ english ] = "Input Field" ;
+ Text [ english_us ] = "Input Field" ;
+ Moveable = TRUE ;
+ /* FixedText FT_LABEL
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 115 , 8 ) ;
+ Text = "Eingabe" ;
+ Text [ English ] = "Input" ;
+ Text [ norwegian ] = "Input" ;
+ Text [ italian ] = "Inserisci" ;
+ Text [ portuguese_brazilian ] = "Insero" ;
+ Text [ portuguese ] = "Insero" ;
+ Text [ finnish ] = "Sytt" ;
+ Text [ danish ] = "Input" ;
+ Text [ french ] = "Entre" ;
+ Text [ swedish ] = "Inmatning" ;
+ Text [ dutch ] = "Invoer" ;
+ Text [ spanish ] = "Entrada" ;
+ Text [ english_us ] = "Input" ;
+ Left = TRUE ;
+ };*/
+ Edit ED_LABEL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 115 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Text = "Eingabe" ;
+ Text [ English ] = "Input" ;
+ Text [ norwegian ] = "Input" ;
+ Text [ italian ] = "Introduci" ;
+ Text [ portuguese_brazilian ] = "Insero" ;
+ Text [ portuguese ] = "Entrada" ;
+ Text [ finnish ] = "Sytt" ;
+ Text [ danish ] = "Input" ;
+ Text [ french ] = "Saisie" ;
+ Text [ swedish ] = "Inmatning" ;
+ Text [ dutch ] = "Invoer" ;
+ Text [ spanish ] = "Entrada" ;
+ Text [ english_us ] = "Input" ;
+ Readonly = TRUE ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Wejcie";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "J";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "Է";
+ Text[ turkish ] = "Giri";
+ Text[ language_user1 ] = " ";
+ };
+ MultiLineEdit ED_EDIT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 32 ) ;
+ Size = MAP_APPFONT ( 115 , 72 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ GroupBox GB_EDIT
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 127 , 108 ) ;
+ Text = "Bearbeiten" ;
+ Text [ English ] = "Edit" ;
+ Text [ norwegian ] = "Rediger" ;
+ Text [ italian ] = "Modifica" ;
+ Text [ portuguese_brazilian ] = "Editar" ;
+ Text [ portuguese ] = "Editar" ;
+ Text [ finnish ] = "Muokkaa" ;
+ Text [ danish ] = "Rediger" ;
+ Text [ french ] = "Modifier" ;
+ Text [ swedish ] = "Redigera" ;
+ Text [ dutch ] = "Be~werken" ;
+ Text [ spanish ] = "Editar" ;
+ Text [ english_us ] = "Edit" ;
+ Text[ chinese_simplified ] = "༭";
+ Text[ russian ] = "";
+ Text[ polish ] = "Edycja";
+ Text[ japanese ] = "ҏW";
+ Text[ chinese_traditional ] = "s";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Dzenle";
+ Text[ language_user1 ] = " ";
+ };
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 139 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 15 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 139 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 15 ) ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_NEXT
+ {
+ Pos = MAP_APPFONT ( 139 , 40 ) ;
+ Size = MAP_APPFONT ( 50 , 15 ) ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ Text = "~Weiter" ;
+ Text [ English ] = "~Next" ;
+ Text [ dutch ] = "~Volgende" ;
+ Text [ english_us ] = "~Next" ;
+ Text [ italian ] = "~Avanti" ;
+ Text [ spanish ] = "~Siguiente" ;
+ Text [ french ] = "~Suivant" ;
+ Text [ swedish ] = "~Nsta" ;
+ Text [ danish ] = "Nste" ;
+ Text [ portuguese ] = "~Seguinte" ;
+ Text [ portuguese_brazilian ] = "~Weiter" ;
+ Text[ chinese_simplified ] = "(~N)";
+ Text[ russian ] = "";
+ Text[ polish ] = "~Dalej";
+ Text[ japanese ] = "(~N)";
+ Text[ chinese_traditional ] = "~(~N)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "(~N)";
+ Text[ turkish ] = "~leri";
+ Text[ language_user1 ] = " ";
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 139 , 60 ) ;
+ Size = MAP_APPFONT ( 50 , 15 ) ;
+ TabStop = TRUE ;
+ };
+ Text [ portuguese_brazilian ] = "Eingabefeld" ;
+ Text [ swedish ] = "Inmatningsflt" ;
+ Text [ danish ] = "Inputfelt" ;
+ Text [ italian ] = "Campo di digitazione" ;
+ Text [ spanish ] = "Campo de entrada" ;
+ Text [ french ] = "Champ de saisie" ;
+ Text [ dutch ] = "Invoerveld" ;
+ Text [ portuguese ] = "Campo de entrada" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Pole wprowadzania";
+ Text[ japanese ] = "̨";
+ Text[ chinese_traditional ] = "J";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ʵ Է";
+ Text[ turkish ] = "Giri alan";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/javaedit.cxx b/sw/source/ui/fldui/javaedit.cxx
new file mode 100644
index 000000000000..e87b93c1005b
--- /dev/null
+++ b/sw/source/ui/fldui/javaedit.cxx
@@ -0,0 +1,417 @@
+/*************************************************************************
+ *
+ * $RCSfile: javaedit.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * 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 ---------------------------------------------------------------
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#define _JAVAEDIT_CXX
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _FLDMGR_HXX
+#include <fldmgr.hxx>
+#endif
+#ifndef _DOCUFLD_HXX
+#include <docufld.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _JAVAEDIT_HXX
+#include <javaedit.hxx>
+#endif
+
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _JAVAEDIT_HRC
+#include <javaedit.hrc>
+#endif
+
+// static ----------------------------------------------------------------
+
+// class SwJavaEditDialog ------------------------------------------------
+
+
+
+SwJavaEditDialog::SwJavaEditDialog(Window* pParent, SwWrtShell* pWrtSh) :
+
+ SvxStandardDialog(pParent, SW_RES(DLG_JAVAEDIT)),
+
+ aTypeFT ( this, SW_RES( FT_TYPE ) ),
+ aTypeED ( this, SW_RES( ED_TYPE ) ),
+ aUrlRB ( this, SW_RES( RB_URL ) ),
+ aUrlED ( this, SW_RES( ED_URL ) ),
+ aUrlPB ( this, SW_RES( PB_URL ) ),
+ aEditRB ( this, SW_RES( RB_EDIT ) ),
+ aEditED ( this, SW_RES( ED_EDIT ) ),
+ aPostItGB ( this, SW_RES( GB_POSTIT ) ),
+ aOKBtn ( this, SW_RES( BTN_POST_OK ) ),
+ aCancelBtn ( this, SW_RES( BTN_POST_CANCEL ) ),
+ aPrevBtn ( this, SW_RES( BTN_PREV ) ),
+ aNextBtn ( this, SW_RES( BTN_NEXT ) ),
+ aHelpBtn ( this, SW_RES( BTN_POST_HELP ) ),
+
+ pSh(pWrtSh),
+ bNew(TRUE)
+{
+ // Handler installieren
+ aPrevBtn.SetClickHdl( LINK( this, SwJavaEditDialog, PrevHdl ) );
+ aNextBtn.SetClickHdl( LINK( this, SwJavaEditDialog, NextHdl ) );
+ aOKBtn.SetClickHdl( LINK( this, SwJavaEditDialog, OKHdl ) );
+
+ Link aLk = LINK(this, SwJavaEditDialog, RadioButtonHdl);
+ aUrlRB.SetClickHdl(aLk);
+ aEditRB.SetClickHdl(aLk);
+ aUrlPB.SetClickHdl(LINK(this, SwJavaEditDialog, InsertFileHdl));
+
+ Font aFont( aEditED.GetFont() );
+ aFont.SetWeight( WEIGHT_LIGHT );
+ aEditED.SetFont( aFont );
+
+ pMgr = new SwFldMgr;
+ pFld = (SwScriptField*)pMgr->GetCurFld();
+
+ bNew = !(pFld && pFld->GetTyp()->Which() == RES_SCRIPTFLD);
+
+ CheckTravel();
+
+ if( !bNew )
+ SetText( SW_RES( STR_JAVA_EDIT ) );
+ else
+ // neu anlegen
+ SetText( SW_RES( STR_JAVA_INSERT ) );
+
+ FreeResource();
+
+ RadioButtonHdl(NULL);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+
+SwJavaEditDialog::~SwJavaEditDialog()
+{
+ delete pMgr;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+
+IMPL_LINK_INLINE_START( SwJavaEditDialog, PrevHdl, Button *, EMPTYARG )
+{
+ SetFld();
+ pMgr->GoPrev();
+ pFld = (SwScriptField*)pMgr->GetCurFld();
+ CheckTravel();
+ RadioButtonHdl(NULL);
+
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwJavaEditDialog, PrevHdl, Button *, EMPTYARG )
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+
+IMPL_LINK_INLINE_START( SwJavaEditDialog, NextHdl, Button *, EMPTYARG )
+{
+ SetFld();
+ pMgr->GoNext();
+ pFld = (SwScriptField*)pMgr->GetCurFld();
+ CheckTravel();
+ RadioButtonHdl(NULL);
+
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwJavaEditDialog, NextHdl, Button *, EMPTYARG )
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+
+IMPL_LINK( SwJavaEditDialog, OKHdl, Button *, EMPTYARG )
+{
+ SetFld();
+ EndDialog( RET_OK );
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+
+void SwJavaEditDialog::Apply()
+{
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+
+void SwJavaEditDialog::CheckTravel()
+{
+ BOOL bTravel = FALSE;
+ BOOL bNext, bPrev;
+
+ if(!bNew)
+ {
+ // Traveling nur bei mehr als einem Feld
+ pSh->StartAction();
+ pSh->CreateCrsr();
+
+ bNext = pMgr->GoNext();
+ if( bNext )
+ pMgr->GoPrev();
+
+ if( 0 != ( bPrev = pMgr->GoPrev() ) )
+ pMgr->GoNext();
+ bTravel |= bNext|bPrev;
+
+ pSh->DestroyCrsr();
+ pSh->EndAction();
+
+ if (pFld->IsCodeURL())
+ {
+ aUrlED.SetText(pFld->GetPar2());
+ aEditED.SetText(aEmptyStr);
+ aUrlRB.Check();
+ }
+ else
+ {
+ aEditED.SetText(pFld->GetPar2());
+ aUrlED.SetText(aEmptyStr);
+ aEditRB.Check();
+ }
+ aTypeED.SetText(pFld->GetPar1());
+ }
+
+ if ( !bTravel )
+ {
+ aPrevBtn.Hide();
+ aNextBtn.Hide();
+ }
+ else
+ {
+ aPrevBtn.Enable(bPrev);
+ aNextBtn.Enable(bNext);
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+
+void SwJavaEditDialog::SetFld()
+{
+ if( !aOKBtn.IsEnabled() )
+ return ;
+
+ String sText;
+ String sType( aTypeED.GetText() );
+ BOOL bIsUrl = aUrlRB.IsChecked();
+
+ if( bIsUrl )
+ {
+ sText = aUrlED.GetText();
+ if(sText.Len())
+ sText = URIHelper::SmartRelToAbs(sText);
+ }
+ else
+ sText = aEditED.GetText();
+
+ if( !sType.Len() )
+ sType = String::CreateFromAscii("JavaScript");
+
+ if( bNew )
+ pMgr->InsertFld(TYP_SCRIPTFLD, 0, sType, sText, bIsUrl);
+ else if( bIsUrl != pFld->GetFormat() ||
+ pFld->GetPar2() != sType || pFld->GetPar1() != sText )
+ {
+ pMgr->UpdateCurFld( bIsUrl, sType, sText );
+ pSh->SetUndoNoResetModified();
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwJavaEditDialog, RadioButtonHdl, RadioButton *, pBtn )
+{
+ BOOL bEnable = aUrlRB.IsChecked();
+ aUrlPB.Enable(bEnable);
+ aUrlED.Enable(bEnable);
+ aEditED.Enable(!bEnable);
+
+ if( !bNew )
+ {
+ bEnable = !pSh->IsReadOnlyAvailable() || !pSh->HasReadonlySel();
+ aOKBtn.Enable( bEnable );
+ aUrlED.SetReadOnly( !bEnable );
+ aEditED.SetReadOnly( !bEnable);
+ aTypeED.SetReadOnly( !bEnable);
+ if( aUrlPB.IsEnabled() && !bEnable )
+ aUrlPB.Enable( FALSE );
+ }
+ return 0;
+}
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+IMPL_LINK( SwJavaEditDialog, InsertFileHdl, PushButton *, pBtn )
+{
+ String sFileName;
+ if( GetFileFilterNameDlg( *pBtn, sFileName ))
+ aUrlED.SetText( sFileName );
+ return 0;
+}
+
+/*************************************************************************
+
+ Source Code Control System - Update
+
+ $Log: not supported by cvs2svn $
+ Revision 1.13 2000/09/18 16:05:31 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.12 2000/06/26 13:20:15 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.11 2000/04/18 15:17:32 os
+ UNICODE
+
+ Revision 1.10 2000/02/11 14:46:57 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.9 1999/01/20 15:56:58 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+
+ Rev 1.8 20 Jan 1999 16:56:58 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.7 19 Aug 1998 17:22:14 JP
+ Bug #55247#: fuers MoveNext-/-PrevFldType einen eigenen Pam verwenden
+
+ Rev 1.6 13 Feb 1998 14:16:02 JP
+ statt selbst den InserDocDialog zu rufen, die neue Funktion GetFileFilterNameDlg rufen
+
+ Rev 1.5 24 Nov 1997 18:23:28 MA
+ includes
+
+ Rev 1.4 03 Nov 1997 13:18:10 MA
+ precomp entfernt
+
+ Rev 1.3 23 Jul 1997 20:25:54 HJS
+ includes
+
+ Rev 1.2 29 May 1997 16:16:02 OM
+ URL in ScriptDialog eingeben
+
+ Rev 1.1 13 Feb 1997 17:36:02 OM
+ Segmentierung
+
+ Rev 1.0 13 Feb 1997 17:35:22 OM
+ Initial revision.
+
+*************************************************************************/
+
+
+
diff --git a/sw/source/ui/fldui/javaedit.hrc b/sw/source/ui/fldui/javaedit.hrc
new file mode 100644
index 000000000000..a58ce4b73211
--- /dev/null
+++ b/sw/source/ui/fldui/javaedit.hrc
@@ -0,0 +1,85 @@
+/*************************************************************************
+ *
+ * $RCSfile: javaedit.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SW_JAVAEDIT_HRC
+#define _SW_JAVAEDIT_HRC
+
+// defines ------------------------------------------------------------------
+
+#define FT_TYPE 10
+#define ED_TYPE 11
+#define RB_EDIT 12
+#define ED_EDIT 13
+#define GB_POSTIT 14
+#define BTN_PREV 15
+#define BTN_NEXT 16
+#define STR_JAVA_EDIT 17
+#define STR_JAVA_INSERT 18
+#define RB_URL 19
+#define ED_URL 20
+#define PB_URL 21
+
+#define BTN_POST_OK 30
+#define BTN_POST_CANCEL 31
+#define BTN_POST_HELP 32
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/javaedit.src b/sw/source/ui/fldui/javaedit.src
new file mode 100644
index 000000000000..f96e84993780
--- /dev/null
+++ b/sw/source/ui/fldui/javaedit.src
@@ -0,0 +1,319 @@
+/*************************************************************************
+ *
+ * $RCSfile: javaedit.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * 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 ---------------------------------------------------------------
+#include "javaedit.hrc"
+#include "fldui.hrc"
+#include "helpid.h"
+ // pragma ----------------------------------------------------------------
+
+ // RID_SVXDLG_POSTIT -----------------------------------------------------
+ModalDialog DLG_JAVAEDIT
+{
+ OutputSize = TRUE ;
+ SvLook = TRUE ;
+ Size = MAP_APPFONT ( 248 , 157 ) ;
+ Text = "Script bearbeiten" ;
+ Text [ ENGLISH ] = "Edit script" ;
+ Moveable = TRUE ;
+ FixedText FT_TYPE
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "Script-T~yp" ;
+ Text [ ENGLISH ] = "Script type" ;
+ Text [ english_us ] = "Script type" ;
+ Text [ portuguese_brazilian ] = "Script-Typ" ;
+ Text [ swedish ] = "Skriptt~yp" ;
+ Text [ danish ] = "Script-type" ;
+ Text [ italian ] = "Tipo di script" ;
+ Text [ spanish ] = "Tipo de script" ;
+ Text [ french ] = "T~ype de script" ;
+ Text [ dutch ] = "Scriptt~ype" ;
+ Text [ portuguese ] = "~Tipo de Script" ;
+ Text[ chinese_simplified ] = "ű";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Typ Scriptu";
+ Text[ japanese ] = "Ă̎";
+ Text[ chinese_traditional ] = "ROZ";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " Script";
+ Text[ korean ] = "ũƮ ";
+ Text[ turkish ] = "Script tipi";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_TYPE
+ {
+ Border = TRUE ;
+ Text = "JavaScript" ;
+ // Nicht uebersetzen!!!
+ Pos = MAP_APPFONT ( 57 , 14 ) ;
+ Size = MAP_APPFONT ( 100 , 12 ) ;
+ TabStop = TRUE ;
+ };
+ RadioButton RB_URL
+ {
+ Text = "~URL" ;
+ Text [ ENGLISH ] = "URL" ;
+ Pos = MAP_APPFONT ( 12 , 28 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ TabStop = TRUE ;
+ Text [ portuguese ] = "~URL" ;
+ Text [ english_us ] = "URL" ;
+ Text [ portuguese_brazilian ] = "URL" ;
+ Text [ swedish ] = "~URL" ;
+ Text [ danish ] = "URL" ;
+ Text [ italian ] = "URL" ;
+ Text [ spanish ] = "URL" ;
+ Text [ french ] = "~URL" ;
+ Text [ dutch ] = "~URL" ;
+ Text[ chinese_simplified ] = "URL";
+ Text[ russian ] = "URL";
+ Text[ polish ] = "URL";
+ Text[ japanese ] = "URL";
+ Text[ chinese_traditional ] = "URL";
+ Text[ arabic ] = "URL";
+ Text[ greek ] = "~URL";
+ Text[ korean ] = "URL";
+ Text[ turkish ] = "URL";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_URL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 57 , 27 ) ;
+ Size = MAP_APPFONT ( 100 , 12 ) ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_URL
+ {
+ Pos = MAP_APPFONT ( 163 , 26 ) ;
+ Size = MAP_APPFONT ( 14 , 14 ) ;
+ Text = "~..." ;
+ TabStop = TRUE ;
+ };
+ RadioButton RB_EDIT
+ {
+ Pos = MAP_APPFONT ( 12 , 40 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "~Text" ;
+ Text [ English ] = "~Text" ;
+ Text [ norwegian ] = "~Text" ;
+ Text [ italian ] = "~Testo" ;
+ Text [ portuguese_brazilian ] = "~Texto" ;
+ Text [ portuguese ] = "~Texto" ;
+ Text [ finnish ] = "~Teksti" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ french ] = "~Texte" ;
+ Text [ swedish ] = "~Text" ;
+ Text [ dutch ] = "~Tekst" ;
+ Text [ spanish ] = "~Texto" ;
+ Text [ english_us ] = "~Text" ;
+ TabStop = TRUE ;
+ Check = TRUE ;
+ Text[ chinese_simplified ] = "(~T)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷(~T)";
+ Text[ chinese_traditional ] = "r(~T)";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ؽƮ(~T)";
+ Text[ turkish ] = "~Metin";
+ Text[ language_user1 ] = " ";
+ };
+ MultiLineEdit ED_EDIT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 23 , 54 ) ;
+ Size = MAP_APPFONT ( 155 , 91 ) ;
+ Left = TRUE ;
+ VScroll = TRUE ;
+ HScroll = TRUE ;
+ IgnoreTab = TRUE ;
+ TabStop = TRUE ;
+ };
+ GroupBox GB_POSTIT
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 179 , 147 ) ;
+ Text = "Inhalt" ;
+ Text [ ENGLISH ] = "Contents" ;
+ Text [ norwegian ] = "Innhold " ;
+ Text [ italian ] = "Contenuto" ;
+ Text [ portuguese_brazilian ] = "Contedo" ;
+ Text [ portuguese ] = "Contedo" ;
+ Text [ finnish ] = "Sislt" ;
+ Text [ danish ] = "Indhold" ;
+ Text [ french ] = "Contenu" ;
+ Text [ swedish ] = "Innehll" ;
+ Text [ dutch ] = "Inhoud" ;
+ Text [ spanish ] = "Contenido" ;
+ Text [ english_us ] = "Contents" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Zawarto";
+ Text[ japanese ] = "e";
+ Text[ chinese_traditional ] = "e";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "erik";
+ Text[ language_user1 ] = " ";
+ };
+ OKButton BTN_POST_OK
+ {
+ Pos = MAP_APPFONT ( 191 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 15 ) ;
+ DefButton = TRUE ;
+ };
+ CancelButton BTN_POST_CANCEL
+ {
+ Pos = MAP_APPFONT ( 191 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 15 ) ;
+ };
+ HelpButton BTN_POST_HELP
+ {
+ Pos = MAP_APPFONT ( 191 , 40 ) ;
+ Size = MAP_APPFONT ( 50 , 15 ) ;
+ };
+ ImageButton BTN_PREV
+ {
+ Pos = MAP_APPFONT ( 191 , 60 ) ;
+ Size = MAP_APPFONT ( 24 , 14 ) ;
+ Symbol = IMAGEBUTTON_ARROW_LEFT ;
+ };
+ ImageButton BTN_NEXT
+ {
+ Pos = MAP_APPFONT ( 217 , 60 ) ;
+ Size = MAP_APPFONT ( 24 , 14 ) ;
+ Symbol = IMAGEBUTTON_ARROW_RIGHT ;
+ };
+ // lokale Strings
+ String STR_JAVA_EDIT
+ {
+ Text = "Script bearbeiten" ;
+ Text [ English ] = "Edit script" ;
+ Text [ portuguese ] = "Editar Script" ;
+ Text [ english_us ] = "Edit script" ;
+ Text [ portuguese_brazilian ] = "Script bearbeiten" ;
+ Text [ swedish ] = "Redigera skript" ;
+ Text [ danish ] = "Rediger script" ;
+ Text [ italian ] = "Modifica script" ;
+ Text [ spanish ] = "Editar script" ;
+ Text [ french ] = "diter le script" ;
+ Text [ dutch ] = "Script bewerken" ;
+ Text[ chinese_simplified ] = "༭ű";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Edytuj Script";
+ Text[ japanese ] = "Ă̕ҏW";
+ Text[ chinese_traditional ] = "sROZ";
+ Text[ arabic ] = " script";
+ Text[ greek ] = " Script";
+ Text[ korean ] = "ũƮ ";
+ Text[ turkish ] = "Script bearbeiten";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_JAVA_INSERT
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Script einfgen : Script einfgen */
+ Text = "Script einfgen" ;
+ Text [ English ] = "Insert script" ;
+ Text [ portuguese ] = "Inserir Script" ;
+ Text [ english_us ] = "Insert Script" ;
+ Text [ portuguese_brazilian ] = "Script einfgen" ;
+ Text [ swedish ] = "Infoga skript" ;
+ Text [ danish ] = "Indst script" ;
+ Text [ italian ] = "Inserisci script" ;
+ Text [ spanish ] = "Insertar script" ;
+ Text [ french ] = "Insrer un script" ;
+ Text [ dutch ] = "Script invoegen" ;
+ Text[ chinese_simplified ] = "ű";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Wstaw Script";
+ Text[ japanese ] = "Ă̑}";
+ Text[ chinese_traditional ] = "JROZ";
+ Text[ arabic ] = " Script";
+ Text[ greek ] = " Script";
+ Text[ korean ] = "ũƮ ";
+ Text[ turkish ] = "Script einfgen";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "Edit Script" ;
+ Text [ portuguese_brazilian ] = "Script bearbeiten" ;
+ Text [ swedish ] = "Redigera skript" ;
+ Text [ danish ] = "Rediger script" ;
+ Text [ italian ] = "Modifica script" ;
+ Text [ spanish ] = "Editar script" ;
+ Text [ french ] = "diter le script" ;
+ Text [ dutch ] = "Script bewerken" ;
+ Text [ portuguese ] = "Editar Script" ;
+ Text[ chinese_simplified ] = "༭ű";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Edytuj Script";
+ Text[ japanese ] = "Ă̕ҏW";
+ Text[ chinese_traditional ] = "sROZ";
+ Text[ arabic ] = " Script";
+ Text[ greek ] = " Script";
+ Text[ korean ] = "ũƮ ";
+ Text[ turkish ] = "Script'i dzenle";
+ Text[ language_user1 ] = " ";
+};
+ // ********************************************************************** EOF
diff --git a/sw/source/ui/fldui/makefile.mk b/sw/source/ui/fldui/makefile.mk
new file mode 100644
index 000000000000..36348687942e
--- /dev/null
+++ b/sw/source/ui/fldui/makefile.mk
@@ -0,0 +1,131 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+#
+# 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=fldui
+
+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 = \
+ changedb.cxx \
+ flddb.cxx \
+ flddinf.cxx \
+ flddok.cxx \
+ fldedt.cxx \
+ fldfunc.cxx \
+ fldmgr.cxx \
+ fldpage.cxx \
+ fldref.cxx \
+ fldtdlg.cxx \
+ fldvar.cxx \
+ javaedit.cxx \
+ inpdlg.cxx
+
+SRCFILES = \
+ changedb.src \
+ flddb.src \
+ flddinf.src \
+ flddok.src \
+ fldfunc.src \
+ fldref.src \
+ fldtdlg.src \
+ fldui.src \
+ fldvar.src \
+ javaedit.src \
+ inpdlg.src
+
+SLOFILES = \
+ $(SLO)$/changedb.obj \
+ $(SLO)$/flddb.obj \
+ $(SLO)$/flddinf.obj \
+ $(SLO)$/flddok.obj \
+ $(SLO)$/fldedt.obj \
+ $(SLO)$/fldfunc.obj \
+ $(SLO)$/fldmgr.obj \
+ $(SLO)$/fldpage.obj \
+ $(SLO)$/fldref.obj \
+ $(SLO)$/fldtdlg.obj \
+ $(SLO)$/fldvar.obj \
+ $(SLO)$/javaedit.obj \
+ $(SLO)$/inpdlg.obj
+
+EXCEPTIONSFILES = \
+ $(SLO)$/fldmgr.obj
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+