summaryrefslogtreecommitdiff
path: root/padmin
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2001-05-08 10:56:39 +0000
committerPhilipp Lohmann <pl@openoffice.org>2001-05-08 10:56:39 +0000
commita9f8d75e6c54b40845fc198019788ff6b568aaf5 (patch)
tree1b05b9ef170326a691b81031bd7415d70daeffd9 /padmin
parent571f15004533c1e7a5472e033139d5765862fb73 (diff)
Administration utility for Unix PS-Print Environment
Diffstat (limited to 'padmin')
-rw-r--r--padmin/prj/build.lst4
-rw-r--r--padmin/prj/d.lst3
-rw-r--r--padmin/source/adddlg.cxx1067
-rw-r--r--padmin/source/adddlg.hxx282
-rw-r--r--padmin/source/cmddlg.cxx526
-rw-r--r--padmin/source/cmddlg.hxx168
-rw-r--r--padmin/source/fontentry.cxx645
-rw-r--r--padmin/source/fontentry.hxx193
-rw-r--r--padmin/source/helper.cxx261
-rw-r--r--padmin/source/helper.hxx163
-rw-r--r--padmin/source/makefile.mk131
-rw-r--r--padmin/source/newppdlg.cxx288
-rw-r--r--padmin/source/newppdlg.hxx115
-rw-r--r--padmin/source/padialog.cxx698
-rw-r--r--padmin/source/padialog.hrc296
-rw-r--r--padmin/source/padialog.hxx158
-rw-r--r--padmin/source/padialog.src3334
-rw-r--r--padmin/source/pamain.cxx160
-rw-r--r--padmin/source/progress.cxx152
-rw-r--r--padmin/source/progress.hxx107
-rw-r--r--padmin/source/prtsetup.cxx757
-rw-r--r--padmin/source/prtsetup.hxx280
-rw-r--r--padmin/source/rtsetup.hrc144
-rw-r--r--padmin/source/rtsetup.src1419
24 files changed, 11351 insertions, 0 deletions
diff --git a/padmin/prj/build.lst b/padmin/prj/build.lst
new file mode 100644
index 000000000000..5a8df8d91c3d
--- /dev/null
+++ b/padmin/prj/build.lst
@@ -0,0 +1,4 @@
+pd padmin : psprint vcl NULL
+pd padmin usr1 - all pd_mkout NULL
+pd padmin\source nmake - u pd_source NULL
+pd padmin\script nmake - u pd_script NULL
diff --git a/padmin/prj/d.lst b/padmin/prj/d.lst
new file mode 100644
index 000000000000..e1d6abc90ee8
--- /dev/null
+++ b/padmin/prj/d.lst
@@ -0,0 +1,3 @@
+..\%__SRC%\bin\*.res %_DEST%\bin%_EXT%\*.res
+..\%__SRC%\bin\*.bin %_DEST%\bin%_EXT%\*.bin
+..\%__SRC%\lib\lib*.so %_DEST%\lib%_EXT%\lib*.so
diff --git a/padmin/source/adddlg.cxx b/padmin/source/adddlg.cxx
new file mode 100644
index 000000000000..342f8bfe73ab
--- /dev/null
+++ b/padmin/source/adddlg.cxx
@@ -0,0 +1,1067 @@
+/*************************************************************************
+ *
+ * $RCSfile: adddlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56:33 $
+ *
+ * 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 <unistd.h>
+
+#ifndef _SV_MSGBOX_HXX
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _PAD_ADDDLG_HXX_
+#include <adddlg.hxx>
+#endif
+#ifndef _PAD_NEWPPDLG_HXX_
+#include <newppdlg.hxx>
+#endif
+#ifndef _PAD_COMMANDDLG_HXX_
+#include <cmddlg.hxx>
+#endif
+#ifndef _PAD_PADIALOG_HRC_
+#include <padialog.hrc>
+#endif
+#ifndef _PSPRINT_STRHELPER_HXX_
+#include <psprint/strhelper.hxx>
+#endif
+#ifndef _SVT_FILEDLG_HXX
+#include <filedlg.hxx>
+#endif
+
+using namespace rtl;
+using namespace psp;
+using namespace padmin;
+
+APChooseDevicePage::APChooseDevicePage( Window* pParent ) :
+ APTabPage( pParent, PaResId( RID_ADDP_PAGE_CHOOSEDEV ) ),
+ m_aPrinterBtn( this, PaResId( RID_ADDP_CHDEV_BTN_PRINTER ) ),
+ m_aFaxBtn( this, PaResId( RID_ADDP_CHDEV_BTN_FAX ) ),
+ m_aPDFBtn( this, PaResId( RID_ADDP_CHDEV_BTN_PDF ) ),
+ m_aOldBtn( this, PaResId( RID_ADDP_CHDEV_BTN_OLD ) ),
+ m_aOverTxt( this, PaResId( RID_ADDP_CHDEV_TXT_OVER ) )
+{
+ FreeResource();
+ m_aPrinterBtn.Check( TRUE );
+ m_aFaxBtn.Check( FALSE );
+ m_aPDFBtn.Check( FALSE );
+ m_aOldBtn.Check( FALSE );
+}
+
+APChooseDevicePage::~APChooseDevicePage()
+{
+}
+
+bool APChooseDevicePage::check()
+{
+ return true;
+}
+
+void APChooseDevicePage::fill( PrinterInfo& rInfo )
+{
+ if( m_aPDFBtn.IsChecked() )
+ {
+ rInfo.m_aFeatures = OUString::createFromAscii( "pdf=" );
+ }
+ else if( m_aFaxBtn.IsChecked() )
+ {
+ rInfo.m_aFeatures = OUString::createFromAscii( "fax" );
+ }
+ else
+ rInfo.m_aFeatures = OUString();
+}
+
+//--------------------------------------------------------------------
+
+APChooseDriverPage::APChooseDriverPage( Window* pParent )
+ : APTabPage( pParent, PaResId( RID_ADDP_PAGE_CHOOSEDRIVER ) ),
+ m_aDriverTxt( this, PaResId( RID_ADDP_CHDRV_TXT_DRIVER ) ),
+ m_aDriverBox( this, PaResId( RID_ADDP_CHDRV_BOX_DRIVER ) ),
+ m_aAddBtn( this, PaResId( RID_ADDP_CHDRV_BTN_ADD ) ),
+ m_aRemBtn( this, PaResId( RID_ADDP_CHDRV_BTN_REMOVE ) ),
+ m_aRemStr( PaResId( RID_ADDP_CHDRV_STR_REMOVE ) )
+{
+ FreeResource();
+ m_aAddBtn.SetClickHdl( LINK( this, APChooseDriverPage, ClickBtnHdl ) );
+ m_aRemBtn.SetClickHdl( LINK( this, APChooseDriverPage, ClickBtnHdl ) );
+ m_aDriverBox.setDelPressedLink( LINK( this, APChooseDriverPage, DelPressedHdl ) );
+ updateDrivers();
+}
+
+APChooseDriverPage::~APChooseDriverPage()
+{
+ for( int i = 0; i < m_aDriverBox.GetEntryCount(); i++ )
+ delete (String*)m_aDriverBox.GetEntryData( i );
+}
+
+bool APChooseDriverPage::check()
+{
+ return m_aDriverBox.GetSelectEntryCount() > 0;
+}
+
+void APChooseDriverPage::fill( PrinterInfo& rInfo )
+{
+ USHORT nPos = m_aDriverBox.GetSelectEntryPos();
+ String* pDriver = (String*)m_aDriverBox.GetEntryData( nPos );
+ rInfo.m_aDriverName = *pDriver;
+ if( ! rInfo.m_aPrinterName.getLength() )
+ {
+ String aPrinter( AddPrinterDialog::uniquePrinterName( m_aDriverBox.GetEntry( nPos ) ) );
+ rInfo.m_aPrinterName = aPrinter;
+ }
+}
+
+void APChooseDriverPage::updateDrivers()
+{
+ rtl_TextEncoding aEncoding = gsl_getSystemTextEncoding();
+
+ for( int k = 0; k < m_aDriverBox.GetEntryCount(); k++ )
+ delete (String*)m_aDriverBox.GetEntryData( k );
+ m_aDriverBox.Clear();
+
+ String aPathList = ::psp::getPrinterPath();
+ int nTokens = aPathList.GetTokenCount( ':' );
+ for( int i = 0; i < nTokens; i++ )
+ {
+ String aPath( aPathList.GetToken( i, ':' ) );
+ if( aPath.GetChar( aPath.Len() ) != '/' )
+ aPath.AppendAscii( "/" );
+ aPath.Append( String( RTL_CONSTASCII_USTRINGPARAM( PSPRINT_PPDDIR ) ) );
+ if( access( ByteString( aPath, aEncoding ).GetBuffer(), F_OK ) )
+ return;
+
+ ::std::list< String > aFiles;
+ FindFiles( aPath, aFiles, String( RTL_CONSTASCII_USTRINGPARAM( "PS;PPD" ) ) );
+
+ for( ::std::list< String >::const_iterator it = aFiles.begin(); it != aFiles.end(); ++it )
+ {
+ String aPPD( *it );
+ aPPD.Erase( aPPD.SearchBackward( '.' ) );
+ String aDriver( ::psp::PPDParser::getPPDPrinterName( aPPD ) );
+ if( aDriver.Len() )
+ {
+ int nPos = m_aDriverBox.InsertEntry( aDriver );
+ m_aDriverBox.SetEntryData( nPos, new String( aPPD ) );
+ if( aPPD.EqualsAscii( "SGENPRT" ) )
+ m_aDriverBox.SelectEntryPos( nPos );
+ }
+ }
+ }
+ m_aRemBtn.Enable( m_aDriverBox.GetEntryCount() > 0 );
+}
+
+IMPL_LINK( APChooseDriverPage, DelPressedHdl, ListBox*, pListBox )
+{
+ if( pListBox == &m_aDriverBox )
+ ClickBtnHdl( &m_aRemBtn );
+
+ return 0;
+}
+
+IMPL_LINK( APChooseDriverPage, ClickBtnHdl, PushButton*, pButton )
+{
+ if( pButton == &m_aAddBtn )
+ {
+ PPDImportDialog aDlg( this );
+ if( aDlg.Execute() )
+ updateDrivers();
+ }
+ else if( pButton == &m_aRemBtn )
+ {
+ rtl_TextEncoding aEncoding = gsl_getSystemTextEncoding();
+ PrinterInfoManager& rPIManager( PrinterInfoManager::get() );
+
+ for( int i = 0; i < m_aDriverBox.GetSelectEntryCount(); i++ )
+ {
+ int nSelect = m_aDriverBox.GetSelectEntryPos(i);
+ String aDriver( m_aDriverBox.GetEntry( nSelect ) );
+ // never delete the default driver
+ if( aDriver.EqualsIgnoreCaseAscii( "SGENPRT" ) )
+ continue;
+ if( aDriver.Len() )
+ {
+ PrinterInfo aDefInfo( rPIManager.getPrinterInfo( rPIManager.getDefaultPrinter() ) );
+ OUString aPPD( *(String*)m_aDriverBox.GetEntryData( nSelect ) );
+ if( aDefInfo.m_aDriverName == aPPD )
+ {
+ String aText( PaResId( RID_ERR_REMOVEDEFAULTDRIVER ) );
+ aText.SearchAndReplace( String::CreateFromAscii( "%s" ), m_aDriverBox.GetSelectEntry( i ) );
+ ErrorBox aErrorBox( this, WB_OK | WB_DEF_OK, aText );
+ aErrorBox.SetText( m_aRemStr );
+ aErrorBox.Execute();
+ continue;
+ }
+
+ ::std::list< OUString > aPrinters;
+ ::std::list< OUString >::iterator it;
+ rPIManager.listPrinters( aPrinters );
+ for( it = aPrinters.begin(); it != aPrinters.end(); ++it )
+ {
+ PrinterInfo aInfo( rPIManager.getPrinterInfo( *it ) );
+ if( aInfo.m_aDriverName == aPPD )
+ break;
+ }
+
+ if( it != aPrinters.end() )
+ {
+ String aText( PaResId( RID_QUERY_DRIVERUSED ) );
+ aText.SearchAndReplace( String::CreateFromAscii( "%s" ), m_aDriverBox.GetSelectEntry( i ) );
+ QueryBox aBox( this, WB_YES_NO | WB_DEF_NO, aText );
+ aBox.SetText( m_aRemStr );
+ if( aBox.Execute() == RET_NO )
+ continue;
+ }
+ else
+ {
+ String aText( PaResId( RID_QUERY_REMOVEDRIVER ) );
+ aText.SearchAndReplace( String::CreateFromAscii( "%s" ), m_aDriverBox.GetSelectEntry( i ) );
+ QueryBox aBox( this, WB_YES_NO | WB_DEF_NO, aText );
+ aBox.SetText( m_aRemStr );
+ if( aBox.Execute() == RET_NO )
+ continue;
+ }
+
+ // remove the printers using this driver
+ for( it = aPrinters.begin(); it != aPrinters.end(); ++it )
+ {
+ PrinterInfo aInfo( rPIManager.getPrinterInfo( *it ) );
+ if( aInfo.m_aDriverName == aPPD )
+ rPIManager.removePrinter( *it );
+ }
+
+ ::std::list< String > aDirs;
+ String aPathList( ::psp::getPrinterPath() );
+ int nTokens = aPathList.GetTokenCount( ':' );
+ for( int n = 0; n < nTokens; n++ )
+ {
+ String aPath = aPathList.GetToken( n, ':' );
+ aPath.AppendAscii( "/"PSPRINT_PPDDIR );
+ aDirs.push_back( aPath );
+ }
+ ::std::list< String >::iterator dir;
+
+ for( dir = aDirs.begin(); dir != aDirs.end(); ++dir )
+ {
+ ::std::list< String > aFiles;
+ ::std::list< String >::iterator file;
+ FindFiles( *dir, aFiles, String( RTL_CONSTASCII_USTRINGPARAM( "PS;PPD" ) ) );
+ for( file = aFiles.begin(); file != aFiles.end(); ++file )
+ {
+ String aFile( *dir );
+ if( aFile.GetChar( aFile.Len() ) != '/' )
+ aFile.AppendAscii( "/" );
+ aFile.Append( *file );
+
+ int nPos = file->SearchBackward( '.' );
+ if( file->Copy( 0, nPos ) == String( aPPD ) )
+ {
+ ByteString aSysPath( aFile, aEncoding );
+ unlink( aSysPath.GetBuffer() );
+ }
+ }
+ }
+ }
+ }
+ updateDrivers();
+ }
+ return 0;
+}
+
+//--------------------------------------------------------------------
+
+APNamePage::APNamePage( Window* pParent, const String& rInitName, DeviceKind::type eKind )
+ : APTabPage( pParent, PaResId( RID_ADDP_PAGE_NAME ) ),
+ m_aNameTxt(
+ this,
+ PaResId(
+ eKind == DeviceKind::Printer ? RID_ADDP_NAME_TXT_NAME :
+ eKind == DeviceKind::Fax ? RID_ADDP_NAME_TXT_FAXNAME : RID_ADDP_NAME_TXT_PDFNAME
+ )
+ ),
+ m_aNameEdt(
+ this,
+ PaResId(
+ eKind == DeviceKind::Printer ? RID_ADDP_NAME_EDT_NAME :
+ eKind == DeviceKind::Fax ? RID_ADDP_NAME_EDT_FAXNAME : RID_ADDP_NAME_EDT_PDFNAME
+ )
+ ),
+ m_aDefaultBox( this, PaResId( RID_ADDP_NAME_BOX_DEFAULT ) ),
+ m_aFaxSwallowBox( this, PaResId( RID_ADDP_NAME_BOX_FAXSWALLOW ) )
+{
+ FreeResource();
+ if( eKind != DeviceKind::Printer )
+ m_aDefaultBox.Show( FALSE );
+ else
+ m_aNameEdt.SetText( rInitName );
+ if( eKind != DeviceKind::Fax )
+ m_aFaxSwallowBox.Show( FALSE );
+
+ m_aNameEdt.SetText( AddPrinterDialog::uniquePrinterName( m_aNameEdt.GetText() ) );
+ m_aDefaultBox.Check( FALSE );
+ m_aFaxSwallowBox.Check( FALSE );
+}
+
+APNamePage::~APNamePage()
+{
+}
+
+bool APNamePage::check()
+{
+ return m_aNameEdt.GetText().Len();
+}
+
+void APNamePage::fill( PrinterInfo& rInfo )
+{
+ rInfo.m_aPrinterName = m_aNameEdt.GetText();
+}
+
+//--------------------------------------------------------------------
+
+APCommandPage::APCommandPage( Window* pParent, DeviceKind::type eKind )
+ : APTabPage( pParent, PaResId( RID_ADDP_PAGE_COMMAND ) ),
+ m_aCommandTxt( this, PaResId( RID_ADDP_CMD_TXT_COMMAND ) ),
+ m_aCommandBox( this, PaResId( eKind == DeviceKind::Pdf ? RID_ADDP_CMD_BOX_PDFCOMMAND : RID_ADDP_CMD_BOX_COMMAND ) ),
+ m_aHelpBtn( this, PaResId( RID_ADDP_CMD_BTN_HELP ) ),
+ m_aHelpTxt( PaResId( eKind == DeviceKind::Fax ? RID_ADDP_CMD_STR_FAXHELP : RID_ADDP_CMD_STR_PDFHELP ) ),
+ m_aPdfDirTxt( this, PaResId( RID_ADDP_CMD_TXT_PDFDIR ) ),
+ m_aPdfDirEdt( this, PaResId( RID_ADDP_CMD_EDT_PDFDIR ) ),
+ m_aPdfDirBtn( this, PaResId( RID_ADDP_CMD_BTN_PDFDIR ) ),
+ m_eKind( eKind )
+{
+ FreeResource();
+ ::std::list< String > aCommands;
+ if( m_eKind == DeviceKind::Printer )
+ m_aHelpBtn.Show( FALSE );
+ if( m_eKind != DeviceKind::Pdf )
+ {
+ m_aPdfDirBtn.Show( FALSE );
+ m_aPdfDirEdt.Show( FALSE );
+ m_aPdfDirTxt.Show( FALSE );
+ }
+ switch( m_eKind )
+ {
+ case DeviceKind::Printer: CommandStore::getPrintCommands( aCommands );break;
+ case DeviceKind::Fax: CommandStore::getFaxCommands( aCommands );break;
+ case DeviceKind::Pdf: CommandStore::getPdfCommands( aCommands );break;
+ }
+ ::std::list< String >::iterator it;
+ for( it = aCommands.begin(); it != aCommands.end(); ++it )
+ m_aCommandBox.InsertEntry( *it );
+
+ m_aHelpBtn.SetClickHdl( LINK( this, APCommandPage, ClickBtnHdl ) );
+ m_aPdfDirBtn.SetClickHdl( LINK( this, APCommandPage, ClickBtnHdl ) );
+}
+
+APCommandPage::~APCommandPage()
+{
+ ::std::list< String > aCommands;
+ String aLastCommand( m_aCommandBox.GetText() );
+ for( int i = 0; i < m_aCommandBox.GetEntryCount(); i++ )
+ {
+ String aCommand( m_aCommandBox.GetEntry( i ) );
+ if( aCommand != aLastCommand )
+ aCommands.push_back( aCommand );
+ }
+ aCommands.push_back( aLastCommand );
+ switch( m_eKind )
+ {
+ case DeviceKind::Printer: CommandStore::setPrintCommands( aCommands );break;
+ case DeviceKind::Fax: CommandStore::setFaxCommands( aCommands );break;
+ case DeviceKind::Pdf: CommandStore::setPdfCommands( aCommands );break;
+ }
+}
+
+IMPL_LINK( APCommandPage, ClickBtnHdl, PushButton*, pButton )
+{
+ if( pButton == &m_aHelpBtn )
+ {
+ InfoBox aBox( this, m_aHelpTxt );
+ aBox.Execute();
+ }
+ else if( pButton == &m_aPdfDirBtn )
+ {
+ PathDialog aDialog( this );
+ aDialog.SetPath( m_aPdfDirEdt.GetText() );
+ if( aDialog.Execute() )
+ m_aPdfDirEdt.SetText( aDialog.GetPath() );
+ }
+ return 0;
+}
+
+bool APCommandPage::check()
+{
+ return true;
+}
+
+void APCommandPage::fill( PrinterInfo& rInfo )
+{
+ rInfo.m_aCommand = m_aCommandBox.GetText();
+}
+
+//--------------------------------------------------------------------
+
+APOldPrinterPage::APOldPrinterPage( Window* pParent )
+ : APTabPage( pParent, PaResId( RID_ADDP_PAGE_OLDPRINTERS ) ),
+ m_aOldPrinterTxt( this, PaResId( RID_ADDP_OLD_TXT_PRINTERS ) ),
+ m_aOldPrinterBox( this, PaResId( RID_ADDP_OLD_BOX_PRINTERS ) ),
+ m_aRemBtn( this, PaResId( RID_ADDP_OLD_BTN_REMOVE ) ),
+ m_aRestBtn( this, PaResId( RID_ADDP_OLD_BTN_RESTORE ) )
+{
+ FreeResource();
+
+ m_aRemBtn.SetClickHdl( LINK( this, APOldPrinterPage, ClickBtnHdl ) );
+ m_aRestBtn.SetClickHdl( LINK( this, APOldPrinterPage, ClickBtnHdl ) );
+ m_aOldPrinterBox.setDelPressedLink( LINK( this, APOldPrinterPage, DelPressedHdl ) );
+
+ static const char* pHome = getenv( "HOME" );
+ rtl_TextEncoding aEncoding = gsl_getSystemTextEncoding();
+ PrinterInfoManager& rManager( PrinterInfoManager::get() );
+ if( pHome )
+ {
+ String aFileName = String( ByteString( pHome ), aEncoding );
+ aFileName.AppendAscii( "/.Xpdefaults" );
+ Config aConfig( aFileName );
+
+ // read defaults
+ aConfig.SetGroup( "Xprinter,PostScript" );
+ ByteString aDefPageSize( aConfig.ReadKey( "PageSize" ) );
+ ByteString aDefOrientation( aConfig.ReadKey( "Orientation" ) );
+ ByteString aDefMarginLeft( aConfig.ReadKey( "MarginLeft" ) );
+ ByteString aDefMarginRight( aConfig.ReadKey( "MarginRight" ) );
+ ByteString aDefMarginTop( aConfig.ReadKey( "MarginTop" ) );
+ ByteString aDefMarginBottom( aConfig.ReadKey( "MarginBottom" ) );
+ ByteString aDefScale( aConfig.ReadKey( "Scale" ) );
+ ByteString aDefCopies( aConfig.ReadKey( "Copies" ) );
+ ByteString aDefDPI( aConfig.ReadKey( "DPI" ) );
+
+ aConfig.SetGroup( "devices" );
+ int nDevices = aConfig.GetKeyCount();
+ for( int nKey = 0; nKey < nDevices; nKey++ )
+ {
+ aConfig.SetGroup( "devices" );
+ ByteString aPrinter( aConfig.GetKeyName( nKey ) );
+ ByteString aValue( aConfig.ReadKey( aPrinter ) );
+ ByteString aPort( aValue.GetToken( 1, ',' ) );
+ ByteString aDriver( aValue.GetToken( 0, ' ' ) );
+ ByteString aPS( aValue.GetToken( 0, ',' ).GetToken( 1, ' ' ) );
+
+ if( aPS != "PostScript" )
+ continue;
+
+ const PPDParser* pParser = PPDParser::getParser( String( aDriver, aEncoding ) );
+ if( pParser == NULL )
+ {
+ String aText( PaResId( RID_TXT_DRIVERDOESNOTEXIST ) );
+ aText.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "%s1" ) ), String( aPrinter, aEncoding ) );
+ aText.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "%s2" ) ), String( aDriver, aEncoding ) );
+ InfoBox aBox( this, aText );
+ aBox.Execute();
+ continue;
+ }
+
+ // read the command
+ aConfig.SetGroup( "ports" );
+ ByteString aCommand( aConfig.ReadKey( aPort ) );
+ if( ! aCommand.Len() )
+ {
+ String aText( PaResId( RID_TXT_PRINTERWITHOUTCOMMAND ) );
+ aText.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "%s" ) ), String( aPrinter, aEncoding ) );
+ InfoBox aBox( this, aText );
+ aBox.Execute();
+ continue;
+ }
+
+
+ String aUPrinter( AddPrinterDialog::uniquePrinterName( String( aPrinter, aEncoding ) ) );
+
+ PrinterInfo aInfo;
+ aInfo.m_aDriverName = String( aDriver, aEncoding );
+ aInfo.m_pParser = pParser;
+ aInfo.m_aContext.setParser( pParser );
+ aInfo.m_aPrinterName = aUPrinter;
+ aInfo.m_aCommand = String( aCommand, aEncoding );
+
+ // read the printer settings
+ ByteString aGroup( aDriver );
+ aGroup += ",PostScript,";
+ aGroup += aPort;
+ aConfig.SetGroup( aGroup );
+
+ aValue = aConfig.ReadKey( "PageSize", aDefPageSize );
+ int nLeft, nRight, nTop, nBottom;
+ if( aValue.Len() &&
+ aInfo.m_pParser->getMargins( String( aValue, aEncoding ),
+ nLeft, nRight, nTop, nBottom ) )
+ {
+ const PPDKey* pKey = aInfo.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "PageSize" ) ) );
+ const PPDValue* pValue = pKey ? pKey->getValue( String( aValue, aEncoding ) ) : NULL;
+ if( pKey && pValue )
+ aInfo.m_aContext.setValue( pKey, pValue );
+ aValue = aConfig.ReadKey( "MarginLeft", aDefMarginLeft );
+ if( aValue.Len() )
+ aInfo.m_nLeftMarginAdjust = aValue.ToInt32() - ((double)nLeft * 35.27777778 );
+ aValue = aConfig.ReadKey( "MarginRight", aDefMarginRight );
+ if( aValue.Len() )
+ aInfo.m_nRightMarginAdjust = aValue.ToInt32() - ((double)nRight * 35.27777778 );
+ aValue = aConfig.ReadKey( "MarginTop", aDefMarginTop );
+ if( aValue.Len() )
+ aInfo.m_nTopMarginAdjust = aValue.ToInt32() - ((double)nTop * 35.27777778 );
+ aValue = aConfig.ReadKey( "MarginBottom", aDefMarginBottom );
+ if( aValue.Len() )
+ aInfo.m_nBottomMarginAdjust = aValue.ToInt32() - ((double)nBottom * 35.27777778 );
+ }
+
+ aValue = aConfig.ReadKey( "Scale", aDefScale );
+ if( aValue.Len() )
+ aInfo.m_nScale = 100.0 * StringToDouble( aValue );
+
+ aValue = aConfig.ReadKey( "Copies", aDefScale );
+ if( aValue.Len() )
+ aInfo.m_nCopies = aValue.ToInt32();
+
+ aValue = aConfig.ReadKey( "Comment" );
+ aInfo.m_aComment = String( aValue, aEncoding );
+
+ aValue = aConfig.ReadKey( "Level" );
+ if( aValue.Len() )
+ aInfo.m_nPSLevel = aValue.ToInt32();
+
+ aValue = aConfig.ReadKey( "Orientation", aDefOrientation );
+ if( aValue.Len() )
+ aInfo.m_eOrientation = aValue.CompareIgnoreCaseToAscii( "landscape" ) == COMPARE_EQUAL ? orientation::Landscape : orientation::Portrait;
+ int nGroupKeys = aConfig.GetKeyCount();
+ for( int nPPDKey = 0; nPPDKey < nGroupKeys; nPPDKey++ )
+ {
+ ByteString aPPDKey( aConfig.GetKeyName( nPPDKey ) );
+ // ignore page region
+ // there are some ppd keys in old Xpdefaults that
+ // should never have been writte because they are defaults
+ // PageRegion leads to problems in conjunction
+ // with a not matching PageSize
+ if( aPPDKey.CompareTo( "PPD_", 4 ) == COMPARE_EQUAL &&
+ aPPDKey != "PPD_PageRegion"
+ )
+ {
+ aValue = aConfig.ReadKey( nPPDKey );
+ aPPDKey.Erase( 0, 4 );
+ const PPDKey* pKey = aInfo.m_pParser->getKey( String( aPPDKey, RTL_TEXTENCODING_ISO_8859_1 ) );
+ const PPDValue* pValue = pKey ? ( aValue.Equals( "*nil" ) ? NULL : pKey->getValue( String( aValue, RTL_TEXTENCODING_ISO_8859_1 ) ) ) : NULL;
+ if( pKey )
+ aInfo.m_aContext.setValue( pKey, pValue, true );
+ }
+ }
+
+ m_aOldPrinters.push_back( aInfo );
+ int nPos = m_aOldPrinterBox.InsertEntry( aInfo.m_aPrinterName );
+ m_aOldPrinterBox.SetEntryData( nPos, & m_aOldPrinters.back() );
+ }
+ }
+}
+
+APOldPrinterPage::~APOldPrinterPage()
+{
+}
+
+IMPL_LINK( APOldPrinterPage, DelPressedHdl, ListBox*, pBox )
+{
+ if( pBox == &m_aOldPrinterBox )
+ ClickBtnHdl( &m_aRemBtn );
+ return 0;
+}
+
+IMPL_LINK( APOldPrinterPage, ClickBtnHdl, PushButton*, pButton )
+{
+ if( pButton == &m_aRemBtn )
+ {
+ while( m_aOldPrinterBox.GetSelectEntryCount() )
+ m_aOldPrinterBox.RemoveEntry( m_aOldPrinterBox.GetSelectEntryPos( 0 ) );
+ }
+ else if( pButton == &m_aRestBtn )
+ {
+ m_aOldPrinterBox.Clear();
+
+ for( ::std::list< PrinterInfo >::iterator it = m_aOldPrinters.begin(); it != m_aOldPrinters.end(); ++it )
+ {
+ int nPos = m_aOldPrinterBox.InsertEntry( it->m_aPrinterName );
+ m_aOldPrinterBox.SetEntryData( nPos, &(*it) );
+ }
+ }
+
+ return 0;
+}
+
+void APOldPrinterPage::addOldPrinters()
+{
+ PrinterInfoManager& rManager( PrinterInfoManager::get() );
+ for( int i = 0; i < m_aOldPrinterBox.GetEntryCount(); i++ )
+ {
+ PrinterInfo* pInfo = (PrinterInfo*)m_aOldPrinterBox.GetEntryData( i );
+ pInfo->m_aPrinterName = AddPrinterDialog::uniquePrinterName( pInfo->m_aPrinterName );
+ if( ! rManager.addPrinter( pInfo->m_aPrinterName, pInfo->m_aDriverName ) )
+ {
+ String aText( PaResId( RID_TXT_PRINTERADDFAILED ) );
+ aText.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "%s" ) ), pInfo->m_aPrinterName );
+ ErrorBox aBox( this, WB_OK | WB_DEF_OK, aText );
+ aBox.Execute();
+ continue;
+ }
+ rManager.changePrinterInfo( pInfo->m_aPrinterName, *pInfo );
+ }
+}
+
+bool APOldPrinterPage::check()
+{
+ return m_aOldPrinterBox.GetEntryCount() > 0;
+}
+
+void APOldPrinterPage::fill( PrinterInfo& rInfo )
+{
+}
+
+//--------------------------------------------------------------------
+
+APFaxDriverPage::APFaxDriverPage( Window* pParent )
+ : APTabPage( pParent, PaResId( RID_ADDP_PAGE_FAXDRIVER ) ),
+ m_aFaxTxt( this, PaResId( RID_ADDP_FAXDRV_TXT_DRIVER ) ),
+ m_aDefBtn( this, PaResId( RID_ADDP_FAXDRV_BTN_DEFAULT ) ),
+ m_aSelectBtn( this, PaResId( RID_ADDP_FAXDRV_BTN_SELECT ) )
+{
+ FreeResource();
+
+ m_aDefBtn.Check( TRUE );
+ m_aSelectBtn.Check( FALSE );
+ m_aSelectBtn.SetStyle( m_aSelectBtn.GetStyle() | WB_WORDBREAK );
+}
+
+APFaxDriverPage::~APFaxDriverPage()
+{
+}
+
+bool APFaxDriverPage::check()
+{
+ return true;
+}
+
+void APFaxDriverPage::fill( PrinterInfo& rInfo )
+{
+ if( isDefault() )
+ {
+ rInfo.m_aDriverName = OUString::createFromAscii( "SGENPRT" );
+ }
+}
+
+//--------------------------------------------------------------------
+
+APPdfDriverPage::APPdfDriverPage( Window* pParent )
+ : APTabPage( pParent, PaResId( RID_ADDP_PAGE_PDFDRIVER ) ),
+ m_aPdfTxt( this, PaResId( RID_ADDP_PDFDRV_TXT_DRIVER ) ),
+ m_aDefBtn( this, PaResId( RID_ADDP_PDFDRV_BTN_DEFAULT ) ),
+ m_aDistBtn( this, PaResId( RID_ADDP_PDFDRV_BTN_DIST ) ),
+ m_aSelectBtn( this, PaResId( RID_ADDP_PDFDRV_BTN_SELECT ) )
+{
+ FreeResource();
+
+ m_aDefBtn.Check( TRUE );
+ m_aDistBtn.Check( FALSE );
+ m_aSelectBtn.Check( FALSE );
+ m_aSelectBtn.SetStyle( m_aSelectBtn.GetStyle() | WB_WORDBREAK );
+}
+
+APPdfDriverPage::~APPdfDriverPage()
+{
+}
+
+bool APPdfDriverPage::check()
+{
+ return true;
+}
+
+void APPdfDriverPage::fill( PrinterInfo& rInfo )
+{
+ if( isDefault() )
+ rInfo.m_aDriverName = OUString::createFromAscii( "SGENPRT" );
+ else if( isDist() )
+ rInfo.m_aDriverName = OUString::createFromAscii( "ADISTILL" );
+}
+
+//--------------------------------------------------------------------
+
+AddPrinterDialog::AddPrinterDialog( Window* pParent )
+ : ModalDialog( pParent, PaResId( RID_ADD_PRINTER_DIALOG ) ),
+ m_aNextPB( this, PaResId( RID_ADDP_BTN_NEXT ) ),
+ m_aPrevPB( this, PaResId( RID_ADDP_BTN_PREV ) ),
+ m_aFinishPB( this, PaResId( RID_ADDP_BTN_FINISH ) ),
+ m_aCancelPB( this, PaResId( RID_ADDP_BTN_CANCEL ) ),
+ m_aLine( this, PaResId( RID_ADDP_LINE ) ),
+ m_pCurrentPage( NULL ),
+ m_pChooseDevicePage( NULL ),
+ m_pChooseDriverPage( NULL ),
+ m_pNamePage( NULL ),
+ m_pCommandPage( NULL ),
+ m_pOldPrinterPage( NULL ),
+ m_pFaxDriverPage( NULL ),
+ m_pFaxSelectDriverPage( NULL ),
+ m_pFaxNamePage( NULL ),
+ m_pFaxCommandPage( NULL ),
+ m_pPdfDriverPage( NULL ),
+ m_pPdfSelectDriverPage( NULL ),
+ m_pPdfNamePage( NULL ),
+ m_pPdfCommandPage( NULL )
+{
+ FreeResource();
+ m_pCurrentPage = m_pChooseDevicePage = new APChooseDevicePage( this );
+ m_pCurrentPage->Show( TRUE );
+ m_aFinishPB.Enable( FALSE );
+ m_aPrevPB.Enable( FALSE );
+
+ m_aNextPB.SetClickHdl( LINK( this, AddPrinterDialog, ClickBtnHdl ) );
+ m_aPrevPB.SetClickHdl( LINK( this, AddPrinterDialog, ClickBtnHdl ) );
+ m_aFinishPB.SetClickHdl( LINK( this, AddPrinterDialog, ClickBtnHdl ) );
+ m_aCancelPB.SetClickHdl( LINK( this, AddPrinterDialog, ClickBtnHdl ) );
+}
+
+AddPrinterDialog::~AddPrinterDialog()
+{
+ if( m_pChooseDevicePage )
+ delete m_pChooseDevicePage;
+ if( m_pChooseDriverPage )
+ delete m_pChooseDriverPage;
+ if( m_pNamePage )
+ delete m_pNamePage;
+ if( m_pCommandPage )
+ delete m_pCommandPage;
+ if( m_pOldPrinterPage )
+ delete m_pOldPrinterPage;
+ if( m_pFaxDriverPage )
+ delete m_pFaxDriverPage;
+ if( m_pFaxSelectDriverPage )
+ delete m_pFaxSelectDriverPage;
+ if( m_pFaxCommandPage )
+ delete m_pFaxCommandPage;
+ if( m_pPdfDriverPage )
+ delete m_pPdfDriverPage;
+ if( m_pPdfSelectDriverPage )
+ delete m_pPdfSelectDriverPage;
+ if( m_pPdfNamePage )
+ delete m_pPdfNamePage;
+ if( m_pPdfCommandPage )
+ delete m_pPdfCommandPage;
+}
+
+void AddPrinterDialog::advance()
+{
+ m_pCurrentPage->Show( FALSE );
+ if( m_pCurrentPage == m_pChooseDevicePage )
+ {
+ if( m_pChooseDevicePage->isPrinter() )
+ {
+ if( ! m_pCommandPage )
+ m_pCommandPage = new APCommandPage( this, DeviceKind::Printer );
+ m_pCurrentPage = m_pCommandPage;
+ m_aPrevPB.Enable( TRUE );
+ }
+ else if( m_pChooseDevicePage->isOld() )
+ {
+ if( ! m_pOldPrinterPage )
+ m_pOldPrinterPage = new APOldPrinterPage( this );
+ m_pCurrentPage = m_pOldPrinterPage;
+ m_aPrevPB.Enable( TRUE );
+ m_aFinishPB.Enable( TRUE );
+ m_aNextPB.Enable( FALSE );
+ }
+ else if( m_pChooseDevicePage->isFax() )
+ {
+ if( ! m_pFaxDriverPage )
+ m_pFaxDriverPage = new APFaxDriverPage( this );
+ m_pCurrentPage = m_pFaxDriverPage;
+ m_aPrevPB.Enable( TRUE );
+ }
+ else if( m_pChooseDevicePage->isPDF() )
+ {
+ if( ! m_pPdfDriverPage )
+ m_pPdfDriverPage = new APPdfDriverPage( this );
+ m_pCurrentPage = m_pPdfDriverPage;
+ m_aPrevPB.Enable( TRUE );
+ }
+ }
+ else if( m_pCurrentPage == m_pChooseDriverPage )
+ {
+ if( ! m_pNamePage )
+ m_pNamePage = new APNamePage( this, m_aPrinter.m_aPrinterName, DeviceKind::Printer );
+ m_pCurrentPage = m_pNamePage;
+ m_aFinishPB.Enable( TRUE );
+ m_aNextPB.Enable( FALSE );
+ }
+ else if( m_pCurrentPage == m_pCommandPage )
+ {
+ if( ! m_pChooseDriverPage )
+ m_pChooseDriverPage = new APChooseDriverPage( this );
+ m_pCurrentPage = m_pChooseDriverPage;
+ }
+ else if( m_pCurrentPage == m_pFaxDriverPage )
+ {
+ if( ! m_pFaxDriverPage->isDefault() )
+ {
+ if( ! m_pFaxSelectDriverPage )
+ m_pFaxSelectDriverPage = new APChooseDriverPage( this );
+ m_pCurrentPage = m_pFaxSelectDriverPage;
+ }
+ else
+ {
+ if( ! m_pFaxNamePage )
+ m_pFaxNamePage = new APNamePage( this, String(), DeviceKind::Fax );
+ m_pCurrentPage = m_pFaxNamePage;
+ }
+ }
+ else if( m_pCurrentPage == m_pFaxSelectDriverPage )
+ {
+ if( ! m_pFaxNamePage )
+ m_pFaxNamePage = new APNamePage( this, String(), DeviceKind::Fax );
+ m_pCurrentPage = m_pFaxNamePage;
+ }
+ else if( m_pCurrentPage == m_pFaxNamePage )
+ {
+ if( ! m_pFaxCommandPage )
+ m_pFaxCommandPage = new APCommandPage( this, DeviceKind::Fax );
+ m_pCurrentPage = m_pFaxCommandPage;
+ m_aNextPB.Enable( FALSE );
+ m_aFinishPB.Enable( TRUE );
+ }
+ else if( m_pCurrentPage == m_pPdfDriverPage )
+ {
+ if( ! m_pPdfDriverPage->isDefault() && ! m_pPdfDriverPage->isDist() )
+ {
+ if( ! m_pPdfSelectDriverPage )
+ m_pPdfSelectDriverPage = new APChooseDriverPage( this );
+ m_pCurrentPage = m_pPdfSelectDriverPage;
+ }
+ else
+ {
+ if( ! m_pPdfNamePage )
+ m_pPdfNamePage = new APNamePage( this, String(), DeviceKind::Pdf );
+ m_pCurrentPage = m_pPdfNamePage;
+ }
+ }
+ else if( m_pCurrentPage == m_pPdfSelectDriverPage )
+ {
+ if( ! m_pPdfNamePage )
+ m_pPdfNamePage = new APNamePage( this, String(), DeviceKind::Pdf );
+ m_pCurrentPage = m_pPdfNamePage;
+ }
+ else if( m_pCurrentPage == m_pPdfNamePage )
+ {
+ if( ! m_pPdfCommandPage )
+ m_pPdfCommandPage = new APCommandPage( this, DeviceKind::Pdf );
+ m_pCurrentPage = m_pPdfCommandPage;
+ m_aNextPB.Enable( FALSE );
+ m_aFinishPB.Enable( TRUE );
+ }
+
+ m_pCurrentPage->Show( TRUE );
+}
+
+void AddPrinterDialog::back()
+{
+ m_pCurrentPage->Show( FALSE );
+ if( m_pCurrentPage == m_pChooseDriverPage )
+ {
+ m_pCurrentPage = m_pCommandPage;
+ }
+ else if( m_pCurrentPage == m_pNamePage )
+ {
+ m_pCurrentPage = m_pChooseDriverPage;
+ m_aNextPB.Enable( TRUE );
+ }
+ else if( m_pCurrentPage == m_pCommandPage )
+ {
+ m_pCurrentPage = m_pChooseDevicePage;
+ m_aPrevPB.Enable( FALSE );
+ }
+ else if( m_pCurrentPage == m_pOldPrinterPage )
+ {
+ m_pCurrentPage = m_pChooseDevicePage;
+ m_aPrevPB.Enable( FALSE );
+ m_aNextPB.Enable( TRUE );
+ }
+ else if( m_pCurrentPage == m_pFaxDriverPage )
+ {
+ m_pCurrentPage = m_pChooseDevicePage;
+ m_aPrevPB.Enable( FALSE );
+ }
+ else if( m_pCurrentPage == m_pFaxSelectDriverPage )
+ {
+ m_pCurrentPage = m_pFaxDriverPage;
+ }
+ else if( m_pCurrentPage == m_pFaxNamePage )
+ {
+ m_pCurrentPage = m_pFaxDriverPage->isDefault() ? (APTabPage*)m_pFaxDriverPage : (APTabPage*)m_pFaxSelectDriverPage;
+ }
+ else if( m_pCurrentPage == m_pFaxCommandPage )
+ {
+ m_pCurrentPage = m_pFaxNamePage;
+ m_aNextPB.Enable( TRUE );
+ }
+ else if( m_pCurrentPage == m_pPdfDriverPage )
+ {
+ m_pCurrentPage = m_pChooseDevicePage;
+ m_aPrevPB.Enable( FALSE );
+ }
+ else if( m_pCurrentPage == m_pPdfSelectDriverPage )
+ {
+ m_pCurrentPage = m_pPdfDriverPage;
+ }
+ else if( m_pCurrentPage == m_pPdfNamePage )
+ {
+ m_pCurrentPage = m_pPdfDriverPage->isDefault() || m_pPdfDriverPage->isDist() ? (APTabPage*)m_pPdfDriverPage : (APTabPage*)m_pPdfSelectDriverPage;
+ }
+ else if( m_pCurrentPage == m_pPdfCommandPage )
+ {
+ m_pCurrentPage = m_pPdfNamePage;
+ m_aNextPB.Enable( TRUE );
+ }
+ m_pCurrentPage->Show( TRUE );
+}
+
+void AddPrinterDialog::addPrinter()
+{
+ PrinterInfoManager& rManager( PrinterInfoManager::get() );
+ if( ! m_pChooseDevicePage->isOld() )
+ {
+ m_aPrinter.m_aPrinterName = uniquePrinterName( m_aPrinter.m_aPrinterName );
+ if( rManager.addPrinter( m_aPrinter.m_aPrinterName, m_aPrinter.m_aDriverName ) )
+ {
+ PrinterInfo aInfo( rManager.getPrinterInfo( m_aPrinter.m_aPrinterName ) );
+ aInfo.m_aCommand = m_aPrinter.m_aCommand;
+ if( m_pChooseDevicePage->isPrinter() )
+ {
+ if( m_pNamePage->isDefault() )
+ rManager.setDefaultPrinter( m_aPrinter.m_aPrinterName );
+ }
+ else if( m_pChooseDevicePage->isFax() )
+ {
+ aInfo.m_aFeatures = OUString::createFromAscii( "fax=" );
+ if( m_pFaxNamePage->isFaxSwallow() )
+ aInfo.m_aFeatures += OUString::createFromAscii( "swallow" );
+ }
+ else if( m_pChooseDevicePage->isPDF() )
+ {
+ OUString aPdf( OUString::createFromAscii( "pdf=" ) );
+ aPdf += m_pPdfCommandPage->getPdfDir();
+ aInfo.m_aFeatures = aPdf;
+ }
+ rManager.changePrinterInfo( m_aPrinter.m_aPrinterName, aInfo );
+ }
+ }
+ else if( m_pOldPrinterPage )
+ m_pOldPrinterPage->addOldPrinters();
+}
+
+IMPL_LINK( AddPrinterDialog, ClickBtnHdl, PushButton*, pButton )
+{
+ if( pButton == &m_aNextPB )
+ {
+ if( m_pCurrentPage->check() )
+ {
+ m_pCurrentPage->fill( m_aPrinter );
+ advance();
+ }
+ }
+ else if( pButton == &m_aPrevPB )
+ {
+ if( m_pCurrentPage->check() )
+ m_pCurrentPage->fill( m_aPrinter );
+ back();
+ }
+ else if( pButton == &m_aFinishPB )
+ {
+ if( m_pCurrentPage->check() )
+ {
+ m_pCurrentPage->fill( m_aPrinter );
+ addPrinter();
+ PrinterInfoManager::get().writePrinterConfig();
+ EndDialog( 1 );
+ }
+ }
+ else if( pButton == &m_aCancelPB )
+ EndDialog( 0 );
+
+ return 0;
+}
+
+String AddPrinterDialog::uniquePrinterName( const String& rBase )
+{
+ String aResult( rBase );
+
+ PrinterInfoManager& rManager( PrinterInfoManager::get() );
+
+ int nVersion = 1;
+ bool bDoublet;
+ do
+ {
+ const PrinterInfo& rInfo( rManager.getPrinterInfo( aResult ) );
+ bDoublet = aResult == String( rInfo.m_aPrinterName );
+ if( bDoublet )
+ {
+ aResult = rBase;
+ aResult.AppendAscii( "_" );
+ aResult += String::CreateFromInt32( nVersion++ );
+ }
+ } while( bDoublet );
+
+ return aResult;
+}
+
diff --git a/padmin/source/adddlg.hxx b/padmin/source/adddlg.hxx
new file mode 100644
index 000000000000..df2cabd7ebc0
--- /dev/null
+++ b/padmin/source/adddlg.hxx
@@ -0,0 +1,282 @@
+/*************************************************************************
+ *
+ * $RCSfile: adddlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _PAD_ADDDLG_HXX_
+#define _PAD_ADDDLG_HXX_
+
+#ifndef _SV_DIALOG_HXX
+#include <vcl/dialog.hxx>
+#endif
+#ifndef _SV_TABPAGE_HXX
+#include <vcl/tabpage.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_FIXED_HXX
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_COMBOBOX_HXX
+#include <vcl/combobox.hxx>
+#endif
+#ifndef _PSP_PRINTERINFOMANAGER_HXX_
+#include <psprint/printerinfomanager.hxx>
+#endif
+#ifndef _PAD_HELPER_HXX_
+#include <helper.hxx>
+#endif
+
+namespace padmin
+{
+
+class AddPrinterDialog;
+
+namespace DeviceKind { enum type { Printer, Fax, Pdf }; }
+
+class APTabPage : public TabPage
+{
+public:
+ APTabPage( Window* pParent, const ResId& rResId )
+ : TabPage( pParent, rResId )
+ {}
+
+ // returns false if information is incomplete or invalid
+ virtual bool check() = 0;
+ virtual void fill( ::psp::PrinterInfo& rInfo ) = 0;
+};
+
+class APChooseDevicePage : public APTabPage
+{
+ RadioButton m_aPrinterBtn;
+ RadioButton m_aFaxBtn;
+ RadioButton m_aPDFBtn;
+ RadioButton m_aOldBtn;
+ FixedText m_aOverTxt;
+public:
+ APChooseDevicePage( Window* pParent );
+ ~APChooseDevicePage();
+
+ bool isPrinter() { return m_aPrinterBtn.IsChecked(); }
+ bool isFax() { return m_aFaxBtn.IsChecked(); }
+ bool isPDF() { return m_aPDFBtn.IsChecked(); }
+ bool isOld() { return m_aOldBtn.IsChecked(); }
+
+
+ virtual bool check();
+ virtual void fill( ::psp::PrinterInfo& rInfo );
+};
+
+class APChooseDriverPage : public APTabPage
+{
+ FixedText m_aDriverTxt;
+ DelListBox m_aDriverBox;
+ PushButton m_aAddBtn;
+ PushButton m_aRemBtn;
+
+ String m_aRemStr;
+
+ DECL_LINK( ClickBtnHdl, PushButton* );
+ DECL_LINK( DelPressedHdl, ListBox* );
+
+ void updateDrivers();
+public:
+ APChooseDriverPage( Window* pParent );
+ ~APChooseDriverPage();
+
+ virtual bool check();
+ virtual void fill( ::psp::PrinterInfo& rInfo );
+};
+
+class APNamePage : public APTabPage
+{
+ FixedText m_aNameTxt;
+ Edit m_aNameEdt;
+ CheckBox m_aDefaultBox;
+ CheckBox m_aFaxSwallowBox;
+public:
+ APNamePage( Window* pParent, const String& rInitName, DeviceKind::type eKind );
+ ~APNamePage();
+
+ bool isDefault() { return m_aDefaultBox.IsChecked(); }
+ bool isFaxSwallow() { return m_aFaxSwallowBox.IsChecked(); }
+
+ virtual bool check();
+ virtual void fill( ::psp::PrinterInfo& rInfo );
+};
+
+class APCommandPage : public APTabPage
+{
+ FixedText m_aCommandTxt;
+ ComboBox m_aCommandBox;
+ PushButton m_aHelpBtn;
+ String m_aHelpTxt;
+ FixedText m_aPdfDirTxt;
+ Edit m_aPdfDirEdt;
+ PushButton m_aPdfDirBtn;
+
+ DeviceKind::type m_eKind;
+
+ DECL_LINK( ClickBtnHdl, PushButton* );
+public:
+
+ APCommandPage( Window* pParent, DeviceKind::type eKind );
+ ~APCommandPage();
+
+ virtual bool check();
+ virtual void fill( ::psp::PrinterInfo& rInfo );
+
+ String getPdfDir() { return m_aPdfDirEdt.GetText(); }
+};
+
+class APOldPrinterPage : public APTabPage
+{
+ FixedText m_aOldPrinterTxt;
+ DelMultiListBox m_aOldPrinterBox;
+ PushButton m_aRemBtn;
+ PushButton m_aRestBtn;
+
+ ::std::list< ::psp::PrinterInfo > m_aOldPrinters;
+
+ DECL_LINK( ClickBtnHdl, PushButton* );
+ DECL_LINK( DelPressedHdl, ListBox* );
+public:
+ APOldPrinterPage( Window* pParent );
+ ~APOldPrinterPage();
+
+ virtual bool check();
+ virtual void fill( ::psp::PrinterInfo& rInfo );
+
+ void addOldPrinters();
+};
+
+class APFaxDriverPage : public APTabPage
+{
+ FixedText m_aFaxTxt;
+ RadioButton m_aDefBtn;
+ RadioButton m_aSelectBtn;
+public:
+ APFaxDriverPage( Window* pParent );
+ ~APFaxDriverPage();
+
+ virtual bool check();
+ virtual void fill( ::psp::PrinterInfo& rInfo );
+
+ bool isDefault() { return m_aDefBtn.IsChecked(); }
+};
+
+class APPdfDriverPage : public APTabPage
+{
+ FixedText m_aPdfTxt;
+ RadioButton m_aDefBtn;
+ RadioButton m_aDistBtn;
+ RadioButton m_aSelectBtn;
+public:
+ APPdfDriverPage( Window* pParent );
+ ~APPdfDriverPage();
+
+ virtual bool check();
+ virtual void fill( ::psp::PrinterInfo& rInfo );
+
+ bool isDefault() { return m_aDefBtn.IsChecked(); }
+ bool isDist() { return m_aDistBtn.IsChecked(); }
+};
+
+class AddPrinterDialog : public ModalDialog
+{
+ CancelButton m_aCancelPB;
+ PushButton m_aPrevPB;
+ PushButton m_aNextPB;
+ OKButton m_aFinishPB;
+ FixedLine m_aLine;
+
+ ::psp::PrinterInfo m_aPrinter;
+
+ APTabPage* m_pCurrentPage;
+
+ APChooseDevicePage* m_pChooseDevicePage;
+ APCommandPage* m_pCommandPage;
+ APChooseDriverPage* m_pChooseDriverPage;
+ APNamePage* m_pNamePage;
+ APOldPrinterPage* m_pOldPrinterPage;
+ APFaxDriverPage* m_pFaxDriverPage;
+ APChooseDriverPage* m_pFaxSelectDriverPage;
+ APNamePage* m_pFaxNamePage;
+ APCommandPage* m_pFaxCommandPage;
+ APPdfDriverPage* m_pPdfDriverPage;
+ APChooseDriverPage* m_pPdfSelectDriverPage;
+ APNamePage* m_pPdfNamePage;
+ APCommandPage* m_pPdfCommandPage;
+
+ DECL_LINK( ClickBtnHdl, PushButton* );
+
+ void advance();
+ void back();
+ void addPrinter();
+public:
+ AddPrinterDialog( Window* pParent );
+ ~AddPrinterDialog();
+
+ static String uniquePrinterName( const String& rString );
+};
+
+} // namespace
+
+#endif
diff --git a/padmin/source/cmddlg.cxx b/padmin/source/cmddlg.cxx
new file mode 100644
index 000000000000..e54266834d56
--- /dev/null
+++ b/padmin/source/cmddlg.cxx
@@ -0,0 +1,526 @@
+/*************************************************************************
+ *
+ * $RCSfile: cmddlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include <stdio.h>
+
+#ifndef _SV_MSGBOX_HXX
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _PAD_RTSETUP_HRC_
+#include <rtsetup.hrc>
+#endif
+#ifndef _PAD_COMMANDDLG_HXX_
+#include <cmddlg.hxx>
+#endif
+#ifndef _PAD_PADIALOG_HXX_
+#include <padialog.hxx>
+#endif
+#ifndef _PAD_HELPER_HXX_
+#include <helper.hxx>
+#endif
+#ifndef _SVT_FILEDLG_HXX
+#include <filedlg.hxx>
+#endif
+
+#ifndef _PAD_PRTSETUP_HXX_
+#include <prtsetup.hxx>
+#endif
+
+using namespace psp;
+using namespace rtl;
+using namespace padmin;
+
+#define PRINTER_PERSISTENCE_GROUP "KnownPrinterCommands"
+#define FAX_PERSISTENCE_GROUP "KnownFaxCommands"
+#define PDF_PERSISTENCE_GROUP "KnowPdfCommands"
+#define MAX_COMMANDS 50
+
+void CommandStore::getSystemPrintCommands( ::std::list< String >& rCommands )
+{
+ static ::std::list< OUString > aSysCommands;
+ static bool bOnce = false;
+ if( ! bOnce )
+ {
+ bOnce = true;
+ PrinterInfoManager::get().getSystemPrintCommands( aSysCommands );
+ }
+
+ ::std::list< OUString >::const_iterator it;
+ for( it = aSysCommands.begin(); it != aSysCommands.end(); ++it )
+ rCommands.push_back( *it );
+}
+
+void CommandStore::getSystemPdfCommands( ::std::list< String >& rCommands )
+{
+ static bool bOnce = false;
+ static ::std::list< String > aSysCommands;
+
+ if( ! bOnce )
+ {
+ bOnce = true;
+ char pBuffer[1024];
+ FILE* pPipe;
+ String aCommand;
+ rtl_TextEncoding aEncoding = gsl_getSystemTextEncoding();
+
+ pPipe = popen( "which gs", "r" );
+ if( pPipe )
+ {
+ fgets( pBuffer, sizeof( pBuffer ), pPipe );
+ int nLen = strlen( pBuffer );
+ if( nLen > 1 && strncmp( pBuffer, "no gs in", 8 ) )
+ {
+ pBuffer[ nLen-1 ] = 0;
+ aCommand = String( ByteString( pBuffer ), aEncoding );
+ aCommand.AppendAscii( " -q -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=\"(OUTFILE)\" -" );
+ aSysCommands.push_back( aCommand );
+ }
+ pclose( pPipe );
+ }
+
+ pPipe = popen( "which distill", "r" );
+ if( pPipe )
+ {
+ fgets( pBuffer, sizeof( pBuffer ), pPipe );
+ int nLen = strlen( pBuffer );
+ if( nLen > 1 && strncmp( pBuffer, "no distill in", 13 ) )
+ {
+ pBuffer[ nLen-1 ] = 0;
+ aCommand = String( ByteString( pBuffer ), aEncoding );
+ aCommand.AppendAscii( " (TMP) ; mv `echo (TMP) | sed s/\\.ps$/.pdf/` (OUTFILE)" );
+ aSysCommands.push_back( aCommand );
+ }
+ pclose( pPipe );
+ }
+ }
+ ::std::list< String >::const_iterator it;
+ for( it = aSysCommands.begin(); it != aSysCommands.end(); ++it )
+ rCommands.push_back( *it );
+}
+
+
+
+void CommandStore::getStoredCommands( const char* pGroup, ::std::list< String >& rCommands )
+{
+ Config& rConfig( getPadminRC() );
+ rConfig.SetGroup( pGroup );
+ int nKeys = rConfig.GetKeyCount();
+ ::std::list< String >::const_iterator it;
+ while( nKeys-- )
+ {
+ String aCommand( rConfig.ReadKey( ByteString::CreateFromInt32( nKeys ), RTL_TEXTENCODING_UTF8 ) );
+ for( it = rCommands.begin(); it != rCommands.end() && *it != aCommand; ++it )
+ ;
+ if( it == rCommands.end() )
+ rCommands.push_back( aCommand );
+ }
+}
+
+void CommandStore::setCommands(
+ const char* pGroup,
+ const ::std::list< String >& rCommands,
+ const ::std::list< String >& rSysCommands
+ )
+{
+ Config& rConfig( getPadminRC() );
+ rConfig.DeleteGroup( pGroup );
+ rConfig.SetGroup( pGroup );
+ ::std::list< String >::const_iterator it, loop;
+ ::std::list< String > aWriteList;
+
+ int nWritten = 0;
+ for( it = rCommands.begin(); it != rCommands.end(); ++it )
+ {
+ for( loop = rSysCommands.begin(); loop != rSysCommands.end() && *loop != *it; ++loop )
+ ;
+ if( loop == rSysCommands.end() )
+ {
+ aWriteList.push_back( *it );
+ nWritten++;
+ }
+ }
+ while( nWritten > MAX_COMMANDS )
+ {
+ aWriteList.pop_front();
+ nWritten--;
+ }
+ for( nWritten = 0, it = aWriteList.begin(); it != aWriteList.end(); ++it, ++nWritten )
+ rConfig.WriteKey( ByteString::CreateFromInt32( nWritten ), ByteString( *it, RTL_TEXTENCODING_UTF8 ) );
+}
+
+
+void CommandStore::getPrintCommands( ::std::list< String >& rCommands )
+{
+ rCommands.clear();
+ getSystemPrintCommands( rCommands );
+ getStoredCommands( PRINTER_PERSISTENCE_GROUP, rCommands );
+}
+
+void CommandStore::getPdfCommands( ::std::list< String >& rCommands )
+{
+ rCommands.clear();
+ getSystemPdfCommands( rCommands );
+ getStoredCommands( PDF_PERSISTENCE_GROUP, rCommands );
+}
+
+void CommandStore::getFaxCommands( ::std::list< String >& rCommands )
+{
+ rCommands.clear();
+ getStoredCommands( FAX_PERSISTENCE_GROUP, rCommands );
+}
+
+void CommandStore::setPrintCommands( const ::std::list< String >& rCommands )
+{
+ ::std::list< String > aSysCmds;
+ getSystemPrintCommands( aSysCmds );
+ setCommands( PRINTER_PERSISTENCE_GROUP, rCommands, aSysCmds );
+}
+
+void CommandStore::setPdfCommands( const ::std::list< String >& rCommands )
+{
+ ::std::list< String > aSysCmds;
+ getSystemPdfCommands( aSysCmds );
+ setCommands( PDF_PERSISTENCE_GROUP, rCommands, aSysCmds );
+}
+
+void CommandStore::setFaxCommands( const ::std::list< String >& rCommands )
+{
+ ::std::list< String > aSysCmds;
+ setCommands( FAX_PERSISTENCE_GROUP, rCommands, aSysCmds );
+}
+
+
+RTSCommandPage::RTSCommandPage( RTSDialog* pParent ) :
+ TabPage( &pParent->m_aTabControl, PaResId( RID_RTS_COMMANDPAGE ) ),
+ m_pParent( pParent ),
+ m_aCommandTitle( this, PaResId( RID_RTS_CMD_GROUP_INSTALL ) ),
+ m_aPrinterName( this, PaResId( RID_RTS_CMD_TXT_PRTNAME ) ),
+ m_aPrinterGroup( this, PaResId( RID_RTS_CMD_GROUP_DEFAULT ) ),
+ m_aCommandsCB( this, PaResId( RID_RTS_CMD_CB_COMMANDS ) ),
+ m_aConfigureText( this, PaResId( RID_RTS_CMD_TXT_CONFIGURE ) ),
+ m_aConfigureBox( this, PaResId( RID_RTS_CMD_LB_CONFIGURE ) ),
+ m_aHelpButton( this, PaResId( RID_RTS_CMD_BTN_HELP ) ),
+ m_aRemovePB( this, PaResId( RID_RTS_CMD_BTN_REMOVE ) ),
+ m_aConnectedTo( this, PaResId( RID_RTS_CMD_TXT_CONNECT ) ),
+ m_aFaxHelp( PaResId( RID_RTS_CMD_STR_FAXHELP ) ),
+ m_aPrinterHelp( PaResId( RID_RTS_CMD_STR_PRINTERHELP ) ),
+ m_aPdfHelp( PaResId( RID_RTS_CMD_STR_PDFHELP ) ),
+ m_aPdfDirectoryButton( this, PaResId( RID_RTS_CMD_BTN_PDFDIR ) ),
+ m_aPdfDirectoryEdit( this, PaResId( RID_RTS_CMD_EDT_PDFDIR ) ),
+ m_aPdfDirectoryText( this, PaResId( RID_RTS_CMD_TXT_PDFDIR ) ),
+ m_aFaxSwallowBox( this, PaResId( RID_RTS_CMD_BOX_SWALLOWFAXNO ) )
+{
+ m_nPrinterEntry = m_aConfigureBox.InsertEntry( String( PaResId( RID_RTS_CMD_STR_CONFIGURE_PRINTER ) ) );
+ m_nFaxEntry = m_aConfigureBox.InsertEntry( String( PaResId( RID_RTS_CMD_STR_CONFIGURE_FAX ) ) );
+ m_nPdfEntry = m_aConfigureBox.InsertEntry( String( PaResId( RID_RTS_CMD_STR_CONFIGURE_PDF ) ) );
+
+ FreeResource();
+
+ CommandStore::getPrintCommands( m_aPrinterCommands );
+ CommandStore::getFaxCommands( m_aFaxCommands );
+ CommandStore::getPdfCommands( m_aPdfCommands );
+
+ m_aPrinterName.SetText( m_pParent->m_aPrinter );
+
+ m_aCommandsCB.SetDoubleClickHdl( LINK( this, RTSCommandPage, DoubleClickHdl ) );
+ m_aCommandsCB.SetSelectHdl( LINK( this, RTSCommandPage, SelectHdl ) );
+ m_aCommandsCB.SetModifyHdl( LINK( this, RTSCommandPage, ModifyHdl ) );
+ m_aConfigureBox.SetSelectHdl( LINK( this, RTSCommandPage, SelectHdl ) );
+ m_aHelpButton.SetClickHdl( LINK( this, RTSCommandPage, ClickBtnHdl ) );
+ m_aRemovePB.SetClickHdl( LINK( this, RTSCommandPage, ClickBtnHdl ) );
+ m_aPdfDirectoryButton.SetClickHdl( LINK( this, RTSCommandPage, ClickBtnHdl ) );
+
+ m_aPdfDirectoryButton.Show( FALSE );
+ m_aPdfDirectoryEdit.Show( FALSE );
+ m_aPdfDirectoryText.Show( FALSE );
+ m_aFaxSwallowBox.Show( FALSE );
+ m_aCommandsCB.SetText( m_pParent->m_aJobData.m_aCommand );
+
+ m_bWasFax = false;
+ m_bWasPdf = false;
+ int nTokens = m_pParent->m_aJobData.m_aFeatures.getTokenCount( ',' );
+ m_aConfigureBox.SelectEntryPos( m_nPrinterEntry );
+ for( int i = 0; i < nTokens; i++ )
+ {
+ OUString aToken( m_pParent->m_aJobData.m_aFeatures.getToken( i, ',' ) );
+ if( ! aToken.compareToAscii( "fax", 3 ) )
+ {
+ m_bWasFax = true;
+ m_aFaxSwallowBox.Show( TRUE );
+ m_aFaxSwallowBox.Check( ! aToken.getToken( 1, '=' ).compareToAscii( "swallow", 7 ) ? TRUE : FALSE );
+ m_aConfigureBox.SelectEntryPos( m_nFaxEntry );
+ break;
+ }
+ if( ! m_pParent->m_aJobData.m_aFeatures.getToken( i, ',' ).compareToAscii( "pdf=", 4 ) )
+ {
+ m_bWasPdf = true;
+ m_aPdfDirectoryEdit.SetText( m_pParent->m_aJobData.m_aFeatures.getToken( i, ',' ).getToken( 1, '=' ) );
+ m_aPdfDirectoryEdit.Show( TRUE );
+ m_aPdfDirectoryButton.Show( TRUE );
+ m_aPdfDirectoryText.Show( TRUE );
+ m_aConfigureBox.SelectEntryPos( m_nPdfEntry );
+ break;
+ }
+ }
+
+ String aString( m_aConnectedTo.GetText() );
+ aString += String( m_pParent->m_aJobData.m_aCommand );
+ m_aConnectedTo.SetText( aString );
+
+ UpdateCommands();
+}
+
+RTSCommandPage::~RTSCommandPage()
+{
+}
+
+void RTSCommandPage::save()
+{
+ String aCommand;
+ bool bHaveFax = m_aConfigureBox.GetSelectEntryPos() == m_nFaxEntry ? true : false;
+ bool bHavePdf = m_aConfigureBox.GetSelectEntryPos() == m_nPdfEntry ? true : false;
+ ::std::list< String >::iterator it;
+
+ String aFeatures;
+ int nTokens = m_pParent->m_aJobData.m_aFeatures.getTokenCount( ',' );
+ String aOldPdfPath;
+ bool bOldFaxSwallow = false;
+ bool bFaxSwallow = m_aFaxSwallowBox.IsChecked() ? true : false;
+ for( int i = 0; i < nTokens; i++ )
+ {
+ OUString aToken( m_pParent->m_aJobData.m_aFeatures.getToken( i, ',' ) );
+ if( aToken.compareToAscii( "fax", 3 ) &&
+ aToken.compareToAscii( "pdf", 3 ) )
+ {
+ if( aToken.getLength() )
+ {
+ if( aFeatures.Len() )
+ aFeatures += ',';
+ aFeatures += String( aToken );
+ }
+ }
+ else if( ! aToken.compareToAscii( "pdf=", 4 ) )
+ aOldPdfPath = aToken.getToken( 1, '=' );
+ else if( ! aToken.compareToAscii( "fax=", 4 ) )
+ bOldFaxSwallow = aToken.getToken( 1, '=' ).compareToAscii( "swallow", 7 ) ? false : true;
+ }
+ ::std::list< String >* pList = &m_aPrinterCommands;
+ if( bHaveFax )
+ {
+ if( aFeatures.Len() )
+ aFeatures += ',';
+ aFeatures.AppendAscii( "fax=" );
+ if( bFaxSwallow )
+ aFeatures.AppendAscii( "swallow" );
+ pList = &m_aFaxCommands;
+ }
+ if( bHavePdf )
+ {
+ if( aFeatures.Len() )
+ aFeatures += ',';
+ aFeatures.AppendAscii( "pdf=" );
+ aFeatures.Append( m_aPdfDirectoryEdit.GetText() );
+ pList = &m_aPdfCommands;
+ }
+ aCommand = m_aCommandsCB.GetText();
+ for( it = pList->begin(); it != pList->end() && *it != aCommand; ++it )
+ ;
+ if( it == pList->end() )
+ pList->push_back( aCommand );
+
+ if( aCommand != String( m_pParent->m_aJobData.m_aCommand ) ||
+ ( m_bWasFax && ! bHaveFax ) ||
+ ( ! m_bWasFax && bHaveFax ) ||
+ ( m_bWasPdf && ! bHavePdf ) ||
+ ( ! m_bWasPdf && bHavePdf ) ||
+ ( bHavePdf && aOldPdfPath != m_aPdfDirectoryEdit.GetText() )||
+ ( bHaveFax && bFaxSwallow != bOldFaxSwallow )
+ )
+ {
+ m_pParent->m_aJobData.m_aCommand = aCommand;
+ m_pParent->m_aJobData.m_aFeatures = aFeatures;
+
+ PrinterInfoManager::get().changePrinterInfo( m_pParent->m_aPrinter, m_pParent->m_aJobData );
+ }
+ CommandStore::setPrintCommands( m_aPrinterCommands );
+ CommandStore::setFaxCommands( m_aFaxCommands );
+ CommandStore::setPdfCommands( m_aPdfCommands );
+}
+
+
+IMPL_LINK( RTSCommandPage, SelectHdl, Control*, pBox )
+{
+ if( pBox == &m_aConfigureBox )
+ {
+ BOOL bEnable = m_aConfigureBox.GetSelectEntryPos() == m_nPdfEntry ? TRUE : FALSE;
+ m_aPdfDirectoryButton.Show( bEnable );
+ m_aPdfDirectoryEdit.Show( bEnable );
+ m_aPdfDirectoryText.Show( bEnable );
+ bEnable = m_aConfigureBox.GetSelectEntryPos() == m_nFaxEntry ? TRUE : FALSE;
+ m_aFaxSwallowBox.Show( bEnable );
+ UpdateCommands();
+ }
+ else if( pBox == &m_aCommandsCB )
+ {
+ m_aRemovePB.Enable( TRUE );
+ }
+
+ return 0;
+}
+
+IMPL_LINK( RTSCommandPage, ClickBtnHdl, Button*, pButton )
+{
+ if( pButton == & m_aPdfDirectoryButton )
+ {
+ PathDialog aDialog( this );
+ aDialog.SetPath( m_aPdfDirectoryEdit.GetText() );
+ if( aDialog.Execute() )
+ m_aPdfDirectoryEdit.SetText( aDialog.GetPath() );
+ }
+ else if( pButton == &m_aRemovePB )
+ {
+ String aEntry( m_aCommandsCB.GetText() );
+ ::std::list< String >* pList;
+ if( m_aConfigureBox.GetSelectEntryPos() == m_nPrinterEntry )
+ pList = &m_aPrinterCommands;
+ else if( m_aConfigureBox.GetSelectEntryPos() == m_nFaxEntry )
+ pList = &m_aFaxCommands;
+ else
+ pList = &m_aPdfCommands;
+
+ pList->remove( aEntry );
+ m_aCommandsCB.RemoveEntry( aEntry );
+ }
+ else if( pButton == &m_aHelpButton )
+ {
+ String aHelpText;
+ if( m_aConfigureBox.GetSelectEntryPos() == m_nPrinterEntry )
+ aHelpText = m_aPrinterHelp;
+ else if( m_aConfigureBox.GetSelectEntryPos() == m_nFaxEntry )
+ aHelpText = m_aFaxHelp;
+ else if( m_aConfigureBox.GetSelectEntryPos() == m_nPdfEntry )
+ aHelpText = m_aPdfHelp;
+
+ InfoBox aBox( this, aHelpText );
+ aBox.Execute();
+ }
+ return 0;
+}
+
+IMPL_LINK( RTSCommandPage, DoubleClickHdl, ComboBox*, pComboBox )
+{
+ if( pComboBox == &m_aCommandsCB )
+ ConnectCommand();
+ return 0;
+}
+
+IMPL_LINK( RTSCommandPage, ModifyHdl, Edit*, pEdit )
+{
+ if( pEdit == &m_aCommandsCB )
+ m_aRemovePB.Enable( m_aCommandsCB.GetEntryPos( m_aCommandsCB.GetText() ) != LISTBOX_ENTRY_NOTFOUND );
+
+ return 0;
+}
+
+void RTSCommandPage::UpdateCommands()
+{
+ m_aCommandsCB.Clear();
+ ::std::list< String >::iterator it;
+ if( m_aConfigureBox.GetSelectEntryPos() == m_nPrinterEntry )
+ {
+ for( it = m_aPrinterCommands.begin(); it != m_aPrinterCommands.end(); ++it )
+ m_aCommandsCB.InsertEntry( *it );
+ if( ! m_bWasFax )
+ m_aCommandsCB.SetText( m_pParent->m_aJobData.m_aCommand );
+ else
+ m_aCommandsCB.SetText( String() );
+ }
+ else if( m_aConfigureBox.GetSelectEntryPos() == m_nFaxEntry )
+ {
+ for( it = m_aFaxCommands.begin(); it != m_aFaxCommands.end(); ++it )
+ m_aCommandsCB.InsertEntry( *it );
+ if( m_bWasFax )
+ m_aCommandsCB.SetText( m_pParent->m_aJobData.m_aCommand );
+ else
+ m_aCommandsCB.SetText( String() );
+ }
+ else if( m_aConfigureBox.GetSelectEntryPos() == m_nPdfEntry )
+ {
+ for( it = m_aPdfCommands.begin(); it != m_aPdfCommands.end(); ++it )
+ m_aCommandsCB.InsertEntry( *it );
+ if( m_bWasPdf )
+ m_aCommandsCB.SetText( m_pParent->m_aJobData.m_aCommand );
+ else
+ m_aCommandsCB.SetText( String() );
+ }
+}
+
+void RTSCommandPage::ConnectCommand()
+{
+ String aString( m_aConnectedTo.GetText().GetToken( 0, ':' ) );
+ aString.AppendAscii( ": " );
+ aString += m_aCommandsCB.GetText();
+
+ m_aConnectedTo.SetText( aString );
+}
diff --git a/padmin/source/cmddlg.hxx b/padmin/source/cmddlg.hxx
new file mode 100644
index 000000000000..9097470fe5af
--- /dev/null
+++ b/padmin/source/cmddlg.hxx
@@ -0,0 +1,168 @@
+/*************************************************************************
+ *
+ * $RCSfile: cmddlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _PAD_COMMANDDLG_HXX_
+#define _PAD_COMMANDDLG_HXX_
+
+#ifndef _SV_DIALOG_HXX
+#include <vcl/dialog.hxx>
+#endif
+#ifndef _SV_CONFIG_HXX
+#include <vcl/config.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_FIXED_HXX
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_GROUP_HXX
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_COMBOBOX_HXX
+#include <vcl/combobox.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_FIELD_HXX
+#include <vcl/field.hxx>
+#endif
+#ifndef _SV_TABPAGE_HXX
+#include <vcl/tabpage.hxx>
+#endif
+
+#include <list>
+
+namespace padmin {
+
+class RTSDialog;
+
+class CommandStore
+{
+ static void getStoredCommands( const char* pGroup, ::std::list< String >& rCommands );
+ static void getSystemPrintCommands( ::std::list< String >& rCommands );
+ static void getSystemPdfCommands( ::std::list< String >& rCommands );
+ static void setCommands( const char* pGroup, const ::std::list< String >& rCommands, const ::std::list< String >& rSysCommands );
+
+public:
+ static void getPrintCommands( ::std::list< String >& rCommands );
+ static void getFaxCommands( ::std::list< String >& rCommands );
+ static void getPdfCommands( ::std::list< String >& rCommands );
+
+ static void setPrintCommands( const ::std::list< String >& rCommands );
+ static void setFaxCommands( const ::std::list< String >& rCommands );
+ static void setPdfCommands( const ::std::list< String >& rCommands );
+};
+
+class RTSCommandPage : public TabPage
+{
+private:
+ RTSDialog* m_pParent;
+
+ ComboBox m_aCommandsCB;
+ GroupBox m_aCommandTitle;
+ FixedText m_aPrinterName;
+ FixedText m_aConnectedTo;
+ GroupBox m_aPrinterGroup;
+
+ FixedText m_aConfigureText;
+ ListBox m_aConfigureBox;
+ USHORT m_nPrinterEntry;
+ USHORT m_nFaxEntry;
+ USHORT m_nPdfEntry;
+ FixedText m_aPdfDirectoryText;
+ PushButton m_aPdfDirectoryButton;
+ Edit m_aPdfDirectoryEdit;
+ CheckBox m_aFaxSwallowBox;
+
+ PushButton m_aHelpButton;
+ PushButton m_aRemovePB;
+
+ ::std::list< String > m_aPrinterCommands;
+ ::std::list< String > m_aFaxCommands;
+ ::std::list< String > m_aPdfCommands;
+
+ String m_aFaxHelp;
+ String m_aPrinterHelp;
+ String m_aPdfHelp;
+
+ bool m_bWasFax;
+ bool m_bWasPdf;
+
+ DECL_LINK( DoubleClickHdl, ComboBox* );
+ DECL_LINK( ClickBtnHdl, Button* );
+ DECL_LINK( SelectHdl, Control* );
+ DECL_LINK( ModifyHdl, Edit* );
+
+ void ConnectCommand();
+ void UpdateCommands();
+
+public:
+ RTSCommandPage( RTSDialog* );
+ ~RTSCommandPage();
+
+ void save();
+};
+
+} // namespace
+
+#endif
diff --git a/padmin/source/fontentry.cxx b/padmin/source/fontentry.cxx
new file mode 100644
index 000000000000..1a2cd118f4c3
--- /dev/null
+++ b/padmin/source/fontentry.cxx
@@ -0,0 +1,645 @@
+/*************************************************************************
+ *
+ * $RCSfile: fontentry.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _SV_MSGBOX_HXX
+#include <vcl/msgbox.hxx>
+#endif
+
+#ifndef _PSPRINT_FONTMANAGER_HXX_
+#include <psprint/fontmanager.hxx>
+#endif
+
+#ifndef _PAD_PADIALOG_HRC_
+#include <padialog.hrc>
+#endif
+#ifndef _PAD_FONTENTRY_HXX_
+#include <fontentry.hxx>
+#endif
+#ifndef _SVT_FILEDLG_HXX
+#include <filedlg.hxx>
+#endif
+#ifndef _PAD_HELPER_HXX_
+#include <helper.hxx>
+#endif
+
+#if 0
+#include <convafm.hxx>
+#include <progress.hxx>
+#include <osl/file.hxx>
+#endif
+
+using namespace padmin;
+using namespace osl;
+using namespace rtl;
+using namespace psp;
+
+#if 0
+static void CreateAfmFile( const INetURLObject& rFontFile )
+{
+ rtl_TextEncoding aEncoding = gsl_getSystemTextEncoding();
+
+ INetURLObject aFontMap( rFontFile.GetPath(), INET_PROT_FILE, INetURLObject::ENCODE_ALL );
+ aFontMap.Append( String( RTL_CONSTASCII_USTRINGPARAM( "Fontmap" ) ) );
+ INetURLObject aAfmFile( rFontFile );
+ aAfmFile.setExtension( String::CreateFromAscii( "afm", 3 ) );
+
+
+ SvFileStream aMap( aFontMap.PathToFileName(), STREAM_WRITE | STREAM_TRUNC );
+ if( aMap.IsOpen() )
+ {
+ SvFileStream aRead( rFontFile.GetFull(), STREAM_READ );
+ ByteString aLine;
+ ByteString aFullName;
+ int nPos;
+ while( ! aRead.IsEof() &&
+ ( nPos = aLine.Search( "/FullName" ) ) == STRING_NOTFOUND )
+ aRead.ReadLine( aLine );
+ aRead.Close();
+ if( nPos != STRING_NOTFOUND )
+ {
+ aLine.Erase( 0, nPos );
+ aFullName = aLine.GetToken( 1, '(' ).GetToken( 0, ')' );
+
+ aLine = '/';
+ aLine += aFullName;
+ aLine += ' ';
+ aLine += '(';
+ aLine += ByteString( rFontFile.GetName(), aEncoding );
+ aLine += ')';
+ aLine += ';';
+
+ aMap.WriteLine( aLine );
+ }
+ aMap.Close();
+ pid_t nPID = fork();
+ if( ! nPID )
+ {
+ INetURLObject aTmp( rFontFile );
+ aTmp.CutName();
+ ByteString aEnv( "GS_LIB=" );
+ aEnv += ByteString( aTmp.PathToFileName(), aEncoding );
+ putenv( const_cast<char*>(aEnv.GetBuffer()) );
+
+ int nDescr = open( ByteString( aAfmFile.PathToFileName(), aEncoding ).GetBuffer(),
+ O_CREAT | O_TRUNC| O_WRONLY,
+ 00755 );
+#ifdef DEBUG
+ if( nDescr < 0 )
+ fprintf( stderr, "open( %s ) failed because of %d\n", ByteString( aAfmFile.GetFull(), aEncoding ).GetBuffer(), errno );
+#endif
+ if( dup2( nDescr, STDOUT_FILENO ) > 0 )
+ {
+ execlp( "gs",
+ "-q",
+ "-dNODISPLAY",
+ "--", "printafm.ps",
+ aFullName.GetBuffer(),
+ NULL );
+ }
+#ifdef DEBUG
+ else
+ fprintf( stderr, "dup2( %d, %d ) failed because of %d\n", nDescr, STDOUT_FILENO, errno );
+#endif
+ _exit( 0 );
+ }
+ if( nPID > 0 )
+ waitpid( nPID, NULL, 0 );
+ MetricConverter::ConvertAFM( aAfmFile );
+ }
+
+ struct stat aStat;
+ ByteString aSysFile( aAfmFile.PathToFileName(), aEncoding );
+ if( stat( aSysFile.GetBuffer(), &aStat ) || ! aStat.st_size )
+ unlink( aSysFile.GetBuffer() );
+#ifdef DEBUG
+ fprintf( stderr, " %s\n", ! access( aSysFile.GetBuffer(), F_OK ) ? "success" : "failed" );
+#endif
+ unlink( ByteString( aFontMap.PathToFileName(), aEncoding ).GetBuffer() );
+}
+
+#endif
+
+FontNameDlg::FontNameDlg( Window *pParent ) :
+ ModalDialog( pParent, PaResId( RID_FONTNAMEDIALOG ) ),
+ m_aFixedText( this, PaResId( RID_FNTNM_FIXED ) ),
+ m_aOKButton( this, PaResId( RID_FNTNM_BTN_OK ) ),
+ m_aFoundryBox( this, PaResId( RID_FNTNM_FOUNDRY ) ),
+ m_aFamilyEdit( this, PaResId( RID_FNTNM_FAMILY ) ),
+ m_aWeightBox( this, PaResId( RID_FNTNM_WEIGHT ) ),
+ m_aSlantBox( this, PaResId( RID_FNTNM_SLANT ) ),
+ m_aStyleWidthBox( this, PaResId( RID_FNTNM_STYLEWIDTH ) ),
+ m_aSpacingListBox( this, PaResId( RID_FNTNM_SPACING ) ),
+ m_aAddStyleBox( this, PaResId( RID_FNTNM_ADDSTYLE ) ),
+ m_aRegistryBox( this, PaResId( RID_FNTNM_REGISTRY ) ),
+ m_aEncodingBox( this, PaResId( RID_FNTNM_ENCODING ) ),
+ m_aTxtFoundry( this, PaResId( RID_FNTNM_TXT_FOUNDRY ) ),
+ m_aTxtFamily( this, PaResId( RID_FNTNM_TXT_FAMILY ) ),
+ m_aTxtWeight( this, PaResId( RID_FNTNM_TXT_WEIGHT ) ),
+ m_aTxtSlant( this, PaResId( RID_FNTNM_TXT_SLANT ) ),
+ m_aTxtStyleWidth( this, PaResId( RID_FNTNM_TXT_STYLEWIDTH ) ),
+ m_aTxtSpacing( this, PaResId( RID_FNTNM_TXT_SPACING ) ),
+ m_aTxtAddStyle( this, PaResId( RID_FNTNM_TXT_ADDSTYLE ) ),
+ m_aTxtRegistry( this, PaResId( RID_FNTNM_TXT_REGISTRY ) ),
+ m_aTxtEncoding( this, PaResId( RID_FNTNM_TXT_ENCODING ) ),
+ m_aRemoveButton( this, PaResId( RID_FNTNM_BTN_REMOVE ) ),
+ m_aModifyButton( this, PaResId( RID_FNTNM_BTN_MODIFY ) ),
+ m_aFontBox( this, PaResId( RID_FNTNM_LB_FONTS ) ),
+ m_aPropGroupBox( this, PaResId( RID_FNTNM_GRP_FONTPROP ) ),
+ m_rFontManager( PrintFontManager::get() ),
+ m_aFontsDirWriteFailed( PaResId( RID_FNTNM_STR_FONTSDIRWRITEFAILED ) )
+{
+ FreeResource();
+
+ m_aFontBox.EnableMultiSelection( TRUE );
+
+ ::std::list< fontID > aFonts;
+ m_rFontManager.getFontList( aFonts );
+ for( ::std::list< fontID >::iterator font_it = aFonts.begin(); font_it != aFonts.end(); ++font_it )
+ {
+ fonttype::type eType = m_rFontManager.getFontType( *font_it );
+ if( eType == fonttype::Type1 || eType == fonttype::TrueType )
+ {
+ m_aFonts[ *font_it ] = m_rFontManager.getFontXLFD( *font_it );
+ INetURLObject aFont( m_rFontManager.getFontFileSysPath( *font_it ), INET_PROT_FILE, INetURLObject::ENCODE_ALL );
+ String aEntry( aFont.GetName() );
+ aEntry += '=';
+ aEntry += String( m_rFontManager.getFontFamily( *font_it ) );
+ USHORT nEntry = m_aFontBox.InsertEntry( aEntry );
+ m_aFontBox.SetEntryData( nEntry, (void*)(*font_it) );
+ }
+ }
+
+ // iterate over fonts and fill comoboxes
+ ::std::hash_map< OUString, int, OUStringHash > aFoundries, aWeights, aWidths, aRegistries, aEncodings;
+ for( ::std::hash_map< fontID, String >::iterator it = m_aFonts.begin(); it != m_aFonts.end(); ++it )
+ {
+ aFoundries[ it->second.GetToken( 1, '-' ).ToLowerAscii() ] = 1;
+ aWeights[ it->second.GetToken( 3, '-' ).ToLowerAscii() ] = 1;
+ aWidths[ it->second.GetToken( 5, '-' ).ToLowerAscii() ] = 1;
+ aRegistries[ it->second.GetToken( 13, '-' ).ToLowerAscii() ] = 1;
+ aEncodings[ it->second.GetToken( 14, '-' ).ToLowerAscii() ] = 1;
+ }
+ ::std::hash_map< OUString, int, OUStringHash >::iterator m_it;
+ for( m_it = aFoundries.begin(); m_it != aFoundries.end(); ++m_it )
+ m_aFoundryBox.InsertEntry( m_it->first );
+ for( m_it = aWeights.begin(); m_it != aWeights.end(); ++m_it )
+ m_aWeightBox.InsertEntry( m_it->first );
+ for( m_it = aWidths.begin(); m_it != aWidths.end(); ++m_it )
+ m_aStyleWidthBox.InsertEntry( m_it->first );
+ for( m_it = aRegistries.begin(); m_it != aRegistries.end(); ++m_it )
+ m_aRegistryBox.InsertEntry( m_it->first );
+ for( m_it = aEncodings.begin(); m_it != aEncodings.end(); ++m_it )
+ m_aEncodingBox.InsertEntry( m_it->first );
+
+ m_aFontBox.SelectEntryPos( 0, TRUE );
+ SelectFont();
+
+ m_aOKButton.SetClickHdl( LINK( this, FontNameDlg, ClickBtnHdl ) );
+ m_aRemoveButton.SetClickHdl( LINK( this, FontNameDlg, ClickBtnHdl ) );
+ m_aModifyButton.SetClickHdl( LINK( this, FontNameDlg, ClickBtnHdl ) );
+ m_aFontBox.SetSelectHdl( LINK( this, FontNameDlg, SelectHdl ) );
+ m_aFontBox.setDelPressedLink( LINK( this, FontNameDlg, DelPressedHdl ) );
+}
+
+FontNameDlg::~FontNameDlg()
+{
+}
+
+void FontNameDlg::changeSelected()
+{
+ ::std::list< fontID > aFonts;
+ for( int i = 0; i < m_aFontBox.GetSelectEntryCount(); i++ )
+ aFonts.push_back( (fontID)m_aFontBox.GetEntryData( m_aFontBox.GetSelectEntryPos( i ) ) );
+ while( aFonts.begin() != aFonts.end() )
+ {
+ ChangeFontEntry( aFonts.front() );
+ aFonts.pop_front();
+ }
+}
+
+void FontNameDlg::ChangeFontEntry( fontID nFont )
+{
+ rtl_TextEncoding aEncoding = gsl_getSystemTextEncoding();
+
+ String aFontFoundry, aFontFamily, aFontWeight, aFontSlant,
+ aFontStyleWidth, aAddStyle, aFontSpacing, aFontRegistry, aFontEncoding,
+ aLine, aFileName;
+
+ m_aPropGroupBox.SetText( String( PaResId( RID_FNTNM_NOFONT_TXT ) ) );
+
+ aFontFoundry = m_aFoundryBox.GetText();
+ if( aFontFoundry.GetChar(0) == '*' )
+ aFontFoundry = m_aFonts[ nFont ].GetToken( 1, '-' );
+
+ aFontFamily = m_aFamilyEdit.GetText();
+ if( aFontFamily.GetChar(0) == '*' )
+ aFontFamily = m_aFonts[ nFont ].GetToken( 2, '-' );
+
+ aFontWeight = m_aWeightBox.GetText();
+ if( aFontWeight.GetChar(0) == '*' )
+ aFontWeight = m_aFonts[ nFont ].GetToken( 3, '-' );
+
+ aFontSlant = m_aSlantBox.GetText().GetToken( 0, ' ' );
+ if( aFontSlant.GetChar(0) == '*' )
+ aFontSlant = m_aFonts[ nFont ].GetToken( 4, '-' );
+
+ aFontStyleWidth = m_aStyleWidthBox.GetText();
+ if( aFontStyleWidth.GetChar(0) == '*' )
+ aFontStyleWidth = m_aFonts[ nFont ].GetToken( 5, '-' );
+
+ aAddStyle = m_aAddStyleBox.GetText();
+ if( aAddStyle.GetChar(0) == '*' )
+ aAddStyle = m_aFonts[ nFont ].GetToken( 6, '-' );
+
+ aFontSpacing = m_aSpacingListBox.GetSelectEntry().GetToken( 0, ' ' );
+ if( aFontSpacing.GetChar(0) == '*' )
+ aFontSpacing = m_aFonts[ nFont ].GetToken( 11, '-' );
+
+ aFontRegistry = m_aRegistryBox.GetText();
+ if( aFontRegistry.GetChar(0) == '*' )
+ aFontRegistry = m_aFonts[ nFont ].GetToken( 13, '-' );
+
+ aFontEncoding = m_aEncodingBox.GetText();
+ if( aFontEncoding.GetChar(0) == '*' )
+ aFontEncoding = m_aFonts[ nFont ].GetToken( 14, '-' );
+
+ // create new XLFD
+ String aXLFD( RTL_CONSTASCII_USTRINGPARAM( "-" ) );
+ aXLFD += aFontFoundry;
+ aXLFD += '-';
+ aFontFamily.SearchAndReplaceAll( '-', '_' );
+ aXLFD += aFontFamily;
+ aXLFD += '-';
+ aXLFD += aFontWeight;
+ aXLFD += '-';
+ aXLFD += aFontSlant;
+ aXLFD += '-';
+ aXLFD += aFontStyleWidth;
+ aXLFD += '-';
+ aXLFD += aAddStyle;
+ aXLFD.AppendAscii( "-0-0-0-0-" );
+ aXLFD += aFontSpacing;
+ aXLFD.AppendAscii( "-0-" );
+ aXLFD += aFontRegistry;
+ aXLFD += '-';
+ aXLFD += aFontEncoding;
+
+ if( m_rFontManager.changeFontProperties( nFont, aXLFD ) )
+ {
+ m_aFonts[ nFont ] = aXLFD;
+
+ // update ListBox
+ for( int i = 0; i < m_aFontBox.GetEntryCount(); i++ )
+ {
+ if( m_aFontBox.GetEntryData( i ) == (void*)nFont )
+ {
+ m_aFontBox.RemoveEntry( i );
+ INetURLObject aFont( m_rFontManager.getFontFileSysPath( nFont ), INET_PROT_FILE, INetURLObject::ENCODE_ALL );
+ String aEntry = aFont.GetName();
+ aEntry += '=';
+ aEntry += String( m_rFontManager.getFontFamily( nFont ) );
+ USHORT nEntry = m_aFontBox.InsertEntry( aEntry );
+ m_aFontBox.SetEntryData( nEntry, (void*)nFont );
+ }
+ }
+ }
+ else
+ {
+ INetURLObject aFont( m_rFontManager.getFontFileSysPath( nFont ), INET_PROT_FILE, INetURLObject::ENCODE_ALL );
+ String aString( m_aFontsDirWriteFailed );
+ aString.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "%s1" ) ),
+ aFont.GetName() );
+ aFont.SetName( String( RTL_CONSTASCII_USTRINGPARAM( "fonts.dir" ) ) );
+ aString.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "%s2" ) ),
+ aFont.PathToFileName() );
+ ErrorBox aBox( this, WB_OK | WB_DEF_OK, aString );
+ aBox.Execute();
+ }
+}
+
+String FontNameDlg::matchSelectionToken( int n )
+{
+ if( m_aFontBox.GetSelectEntryCount() < 1 )
+ return '*';
+
+ fontID nFont = (fontID)m_aFontBox.GetEntryData( m_aFontBox.GetSelectEntryPos( 0 ) );
+ if( ! nFont )
+ return '*';
+ String aMatch = m_aFonts[ nFont ].GetToken( n, '-' );
+ int i;
+ for( i = 1; i < m_aFontBox.GetSelectEntryCount(); i++ )
+ {
+ nFont = (fontID)m_aFontBox.GetEntryData( m_aFontBox.GetSelectEntryPos( i ) );
+ if( m_aFonts[ nFont ].GetToken( n, '-' ) != aMatch )
+ {
+ aMatch = '*';
+ break;
+ }
+ }
+ return aMatch;
+}
+
+void FontNameDlg::SelectFont()
+{
+ if( m_aFontBox.GetSelectEntryCount() < 1 )
+ return;
+
+ // initialize xfontnames
+
+ String aMatch;
+ int i;
+
+ m_aFoundryBox.SetText( matchSelectionToken( 1 ) );
+ m_aFamilyEdit.SetText( matchSelectionToken( 2 ) );
+ m_aWeightBox.SetText( matchSelectionToken( 3 ) );
+ m_aSlantBox.SetText( matchSelectionToken( 4 ) );
+ m_aStyleWidthBox.SetText( matchSelectionToken( 5 ) );
+ m_aAddStyleBox.SetText( matchSelectionToken( 6 ) );
+ aMatch = matchSelectionToken( 11 );
+ for( i = 0; i < m_aSpacingListBox.GetEntryCount(); i++ )
+ {
+ if( aMatch == m_aSpacingListBox.GetEntry( i ).GetToken( 0, ' ' ) )
+ {
+ m_aSpacingListBox.SelectEntryPos( i, TRUE );
+ break;
+ }
+ }
+ if( i >= m_aSpacingListBox.GetEntryCount() )
+ m_aSpacingListBox.SelectEntry( '*' );
+ m_aRegistryBox.SetText( matchSelectionToken( 13 ) );
+ m_aEncodingBox.SetText( matchSelectionToken( 14 ) );
+}
+
+IMPL_LINK( FontNameDlg, DelPressedHdl, ListBox*, pBox )
+{
+ if( pBox == &m_aFontBox && m_aRemoveButton.IsEnabled() )
+ {
+ ClickBtnHdl( &m_aRemoveButton );
+ }
+ return 0;
+}
+
+IMPL_LINK( FontNameDlg, ClickBtnHdl, Button*, pButton )
+{
+
+ int i;
+
+ if( pButton == &m_aOKButton )
+ {
+ EndDialog();
+ }
+ else if( pButton == &m_aRemoveButton && AreYouSure( this, RID_QUERY_REMOVEFONTFROMLIST ) )
+ {
+ ::std::list< fontID > aRemoveList;
+ for( i = 0; i < m_aFontBox.GetSelectEntryCount(); i++ )
+ {
+ fontID nFont = (fontID)m_aFontBox.GetEntryData( m_aFontBox.GetSelectEntryPos( i ) );
+ // if( m_rFontManager.removeFont( nFont ) )
+ aRemoveList.push_back( nFont );
+ }
+
+ while( aRemoveList.begin() != aRemoveList.end() )
+ {
+ fontID nFont = aRemoveList.front();
+ aRemoveList.pop_front();
+ for( i = 0; i < m_aFontBox.GetEntryCount(); i++ )
+ {
+ if( m_aFontBox.GetEntryData( i ) == (void*)nFont )
+ {
+ m_aFontBox.RemoveEntry( i );
+ break;
+ }
+ }
+ }
+ m_aFontBox.SelectEntryPos( 0, TRUE );
+ SelectFont();
+ }
+ else if( pButton == &m_aModifyButton )
+ {
+ changeSelected();
+ }
+ return 0;
+}
+
+IMPL_LINK( FontNameDlg, SelectHdl, ListBox*, pBox )
+{
+ if( pBox == &m_aFontBox )
+ {
+ SelectFont();
+ }
+ return 0;
+}
+
+//--------------------------------------------------
+
+FontImportDialog::FontImportDialog( Window* pParent ) :
+ ModalDialog( pParent, PaResId( RID_FONTIMPORT_DIALOG ) ),
+ m_aOKBtn( this, PaResId( RID_FIMP_BTN_OK ) ),
+ m_aCancelBtn( this, PaResId( RID_FIMP_BTN_CANCEL ) ),
+ m_aFromBox( this, PaResId( RID_FIMP_GRP_FROM ) ),
+ m_aFromDirEdt( this, PaResId( RID_FIMP_EDT_FROM ) ),
+ m_aFromBtn( this, PaResId( RID_FIMP_BTN_FROM ) ),
+ m_bOverwriteAll( false ),
+ m_bOverwriteNone( false ),
+ m_pProgress( NULL ),
+ m_aImportOperation( PaResId( RID_FIMP_STR_IMPORTOP ) ),
+ m_aOverwriteQueryText( PaResId( RID_FIMP_STR_QUERYOVERWRITE ) ),
+ m_aOverwriteAllText( PaResId( RID_FIMP_STR_OVERWRITEALL ) ),
+ m_aOverwriteNoneText( PaResId( RID_FIMP_STR_OVERWRITENONE ) ),
+ m_aNoAfmText( PaResId( RID_FIMP_STR_NOAFM ) ),
+ m_aAfmCopyFailedText( PaResId( RID_FIMP_STR_AFMCOPYFAILED ) ),
+ m_aFontCopyFailedText( PaResId( RID_FIMP_STR_FONTCOPYFAILED ) ),
+ m_aNoWritableFontsDirText( PaResId( RID_FIMP_STR_NOWRITEABLEFONTSDIR ) ),
+ m_aFontsImportedText( PaResId( RID_FIMP_STR_NUMBEROFFONTSIMPORTED ) ),
+ m_rFontManager( ::psp::PrintFontManager::get() )
+{
+ FreeResource();
+
+ m_aOKBtn.SetClickHdl( LINK( this, FontImportDialog, ClickBtnHdl ) );
+ m_aFromBtn.SetClickHdl( LINK( this, FontImportDialog, ClickBtnHdl ) );
+}
+
+FontImportDialog::~FontImportDialog()
+{
+}
+
+void FontImportDialog::importFontsFailed( ::psp::PrintFontManager::ImportFontCallback::FailCondition eReason )
+{
+ String aText;
+ switch( eReason )
+ {
+ case ::psp::PrintFontManager::ImportFontCallback::NoWritableDirectory:
+ aText = m_aNoWritableFontsDirText;
+ }
+ ErrorBox aBox( m_pProgress ? (Window*)m_pProgress : (Window*)this, WB_OK | WB_DEF_OK, aText );
+ aBox.Execute();
+}
+
+void FontImportDialog::progress( const ::rtl::OUString& rFile )
+{
+ m_pProgress->setValue( ++m_nFont );
+ m_pProgress->setFilename( rFile );
+}
+
+bool FontImportDialog::queryOverwriteFile( const ::rtl::OUString& rFile )
+{
+ bool bRet = false;
+
+ if( m_bOverwriteNone )
+ return false;
+ if( m_bOverwriteAll )
+ return true;
+
+ String aText( m_aOverwriteQueryText );
+ aText.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "%s" ) ), rFile );
+
+ QueryBox aQueryBox( m_pProgress ? (Window*)m_pProgress : (Window*)this, WB_YES_NO | WB_DEF_NO, aText );
+ aQueryBox.AddButton( m_aOverwriteAllText, 20, 0 );
+ aQueryBox.AddButton( m_aOverwriteNoneText, 21, 0 );
+
+ int nResult = aQueryBox.Execute();
+ switch( nResult )
+ {
+ case BUTTONID_YES: bRet = true; break;
+ case BUTTONID_NO: bRet = false; break;
+ case 20: bRet = m_bOverwriteAll = true; break;
+ case 21: bRet = false; m_bOverwriteNone = true; break;
+ }
+
+ return bRet;
+}
+
+void FontImportDialog::importFontFailed( const ::rtl::OUString& rFile, ::psp::PrintFontManager::ImportFontCallback::FailCondition eReason )
+{
+ String aText;
+ switch( eReason )
+ {
+ case ::psp::PrintFontManager::ImportFontCallback::NoAfmMetric:
+ aText = m_aNoAfmText;
+ break;
+ case ::psp::PrintFontManager::ImportFontCallback::AfmCopyFailed:
+ aText = m_aAfmCopyFailedText;
+ break;
+ case ::psp::PrintFontManager::ImportFontCallback::FontCopyFailed:
+ aText = m_aFontCopyFailedText;
+ break;
+ }
+ aText.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "%s" ) ), rFile );
+ ErrorBox aBox( m_pProgress ? (Window*)m_pProgress : (Window*)this, WB_OK | WB_DEF_OK, aText );
+ aBox.Execute();
+}
+
+bool FontImportDialog::isCanceled()
+{
+ return m_pProgress->isCanceled();
+}
+
+void FontImportDialog::copyFonts()
+{
+ ::std::list< String > aFiles;
+ String aDirectory( m_aFromDirEdt.GetText() );
+ FindFiles( aDirectory, aFiles, String( RTL_CONSTASCII_USTRINGPARAM( "PFA;PFB;TTF" ) ) );
+ ::std::list< OUString > aFontFiles;
+ while( aFiles.begin() != aFiles.end() )
+ {
+ String aFont( aDirectory );
+ aFont += '/';
+ aFont += aFiles.front();
+ aFiles.pop_front();
+ aFontFiles.push_back( aFont );
+ }
+ int nSuccess = 0;
+ if( aFontFiles.size() )
+ {
+ m_nFont = 0;
+ m_pProgress = new ProgressDialog( this );
+ m_pProgress->setRange( 0, aFontFiles.size() );
+ m_pProgress->startOperation( m_aImportOperation );
+ m_pProgress->Show( TRUE );
+ m_pProgress->setValue( 0 );
+ m_pProgress->Invalidate();
+ m_pProgress->Sync();
+ nSuccess = m_rFontManager.importFonts( aFontFiles, this );
+ m_pProgress->Show( FALSE );
+ delete m_pProgress;
+ m_pProgress = NULL;
+ }
+ String aText( m_aFontsImportedText );
+ aText.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "%d" ) ), String::CreateFromInt32( nSuccess ) );
+ InfoBox aBox( this, aText );
+ aBox.Execute();
+}
+
+IMPL_LINK( FontImportDialog, ClickBtnHdl, Button*, pButton )
+{
+ if( pButton == & m_aFromBtn )
+ {
+ PathDialog aDlg( this );
+ if( aDlg.Execute() )
+ m_aFromDirEdt.SetText( aDlg.GetPath() );
+ }
+ else if( pButton == & m_aOKBtn )
+ {
+ copyFonts();
+ EndDialog( 0 );
+ }
+ return 0;
+}
diff --git a/padmin/source/fontentry.hxx b/padmin/source/fontentry.hxx
new file mode 100644
index 000000000000..b3c8dd82b593
--- /dev/null
+++ b/padmin/source/fontentry.hxx
@@ -0,0 +1,193 @@
+/*************************************************************************
+ *
+ * $RCSfile: fontentry.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _PAD_FONTENTRY_HXX_
+#define _PAD_FONTENTRY_HXX_
+
+#ifndef _SV_DIALOG_HXX
+#include <vcl/dialog.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_COMBOBOX_HXX
+#include <vcl/combobox.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_GROUP_HXX
+#include <vcl/group.hxx>
+#endif
+#ifndef _URLOBJ_HXX
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _PSPRINT_FONTMANAGER_HXX_
+#include <psprint/fontmanager.hxx>
+#endif
+#ifndef _PAD_PRGRESS_HXX
+#include <progress.hxx>
+#endif
+#ifndef _PSPRINT_FONTMANAGER_HXX_
+#include <psprint/fontmanager.hxx>
+#endif
+#ifndef _PAD_HELPER_HXX_
+#include <helper.hxx>
+#endif
+
+namespace padmin {
+
+ class FontImportDialog :
+ public ModalDialog,
+ public ::psp::PrintFontManager::ImportFontCallback
+ {
+ OKButton m_aOKBtn;
+ CancelButton m_aCancelBtn;
+ GroupBox m_aFromBox;
+ Edit m_aFromDirEdt;
+ PushButton m_aFromBtn;
+ bool m_bOverwriteAll;
+ bool m_bOverwriteNone;
+ ProgressDialog* m_pProgress;
+ int m_nFont;
+
+ String m_aImportOperation;
+ String m_aOverwriteQueryText;
+ String m_aOverwriteAllText;
+ String m_aOverwriteNoneText;
+ String m_aNoAfmText;
+ String m_aAfmCopyFailedText;
+ String m_aFontCopyFailedText;
+ String m_aNoWritableFontsDirText;
+ String m_aFontsImportedText;
+
+ ::psp::PrintFontManager& m_rFontManager;
+
+ DECL_LINK( ClickBtnHdl, Button* );
+
+ // implement ImportFontCallback
+ virtual void importFontsFailed( ::psp::PrintFontManager::ImportFontCallback::FailCondition eReason );
+ virtual void progress( const ::rtl::OUString& rFile );
+ virtual bool queryOverwriteFile( const ::rtl::OUString& rFile );
+ virtual void importFontFailed( const ::rtl::OUString& rFile, ::psp::PrintFontManager::ImportFontCallback::FailCondition eReason );
+ virtual bool isCanceled();
+
+ void copyFonts();
+ public:
+ FontImportDialog( Window* );
+ ~FontImportDialog();
+ };
+
+ class FontNameDlg : public ModalDialog
+ {
+ private:
+ OKButton m_aOKButton;
+ PushButton m_aModifyButton;
+ PushButton m_aRemoveButton;
+
+ DelListBox m_aFontBox;
+
+ FixedText m_aFixedText;
+ FixedText m_aTxtFoundry;
+ ComboBox m_aFoundryBox;
+ FixedText m_aTxtFamily;
+ Edit m_aFamilyEdit;
+ FixedText m_aTxtWeight;
+ ComboBox m_aWeightBox;
+ FixedText m_aTxtSlant;
+ ComboBox m_aSlantBox;
+ FixedText m_aTxtStyleWidth;
+ ComboBox m_aStyleWidthBox;
+ FixedText m_aTxtAddStyle;
+ ComboBox m_aAddStyleBox;
+ FixedText m_aTxtSpacing;
+ ListBox m_aSpacingListBox;
+ FixedText m_aTxtRegistry;
+ ComboBox m_aRegistryBox;
+ FixedText m_aTxtEncoding;
+ ComboBox m_aEncodingBox;
+ GroupBox m_aPropGroupBox;
+
+ ::psp::PrintFontManager& m_rFontManager;
+
+ // maps fontID to XLFD
+ ::std::hash_map< ::psp::fontID, String >
+ m_aFonts;
+
+ // error messages
+ String m_aFontsDirWriteFailed;
+
+
+ void SelectFont();
+ void ChangeFontEntry( ::psp::fontID nFontID );
+ void changeSelected();
+ String matchSelectionToken( int );
+ public:
+ FontNameDlg( Window* );
+ ~FontNameDlg();
+
+ DECL_LINK( ClickBtnHdl, Button* );
+ DECL_LINK( SelectHdl, ListBox* );
+ DECL_LINK( DelPressedHdl, ListBox* );
+ };
+} // namespace
+
+#endif
diff --git a/padmin/source/helper.cxx b/padmin/source/helper.cxx
new file mode 100644
index 000000000000..24dc29f95d12
--- /dev/null
+++ b/padmin/source/helper.cxx
@@ -0,0 +1,261 @@
+/*************************************************************************
+ *
+ * $RCSfile: helper.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include <unistd.h>
+
+#ifndef _PAD_HELPER_HXX_
+#include <helper.hxx>
+#endif
+#ifndef _PAD_PADIALOG_HRC_
+#include <padialog.hrc>
+#endif
+
+#ifndef _OSL_FILE_HXX_
+#include <osl/file.hxx>
+#endif
+#ifndef _INTN_HXX
+#include <tools/intn.hxx>
+#endif
+#ifndef _URLOBJ_HXX
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _CONFIG_HXX
+#include <tools/config.hxx>
+#endif
+
+using namespace osl;
+using namespace rtl;
+using namespace padmin;
+
+#define MAX_PATH 1024
+
+/*
+ * PaResId
+ */
+
+ResId padmin::PaResId( ULONG nId )
+{
+ static ResMgr* pPaResMgr = NULL;
+ if( ! pPaResMgr )
+ {
+ LanguageType aType = LANGUAGE_SYSTEM;
+ pPaResMgr = ResMgr::SearchCreateResMgr( "spa" MAKE_NUMSTR(SUPD), aType );
+ International aInternational( aType, LANGUAGE_SYSTEM );
+ Application::SetAppInternational( aInternational );
+ }
+ return ResId( nId, pPaResMgr );
+}
+
+/*
+ * FindFiles
+ */
+
+void padmin::FindFiles( const String& rDirectory, ::std::list< String >& rResult, const String& rSuffixes )
+{
+ rResult.clear();
+
+ OUString aDirPath;
+ ::osl::FileBase::normalizePath( rDirectory, aDirPath );
+ Directory aDir( aDirPath );
+ aDir.open();
+ DirectoryItem aItem;
+ while( aDir.getNextItem( aItem ) == FileBase::E_None )
+ {
+ FileStatus aStatus( FileStatusMask_FileName |
+ FileStatusMask_FilePath |
+ FileStatusMask_NativePath |
+ FileStatusMask_Type
+ );
+ if( aItem.getFileStatus( aStatus ) == FileBase::E_None &&
+ ( aStatus.getFileType() == FileStatus::Regular ||
+ aStatus.getFileType() == FileStatus::Link ) )
+ {
+ String aFileName = aStatus.getFileName();
+ int nToken = rSuffixes.GetTokenCount( ';' );
+ while( nToken-- )
+ {
+ String aSuffix = rSuffixes.GetToken( nToken, ';' );
+ String aExtension = aFileName.Copy( aFileName.Len()-aSuffix.Len() );
+ if( aFileName.GetChar( aFileName.Len()-aSuffix.Len()-1 ) == '.' &&
+ aExtension.EqualsIgnoreCaseAscii( aSuffix ) )
+ {
+ rResult.push_back( aFileName );
+ break;
+ }
+ }
+ }
+ }
+ aDir.close();
+}
+
+/*
+ * DelMultiListBox
+ */
+
+long DelMultiListBox::Notify( NotifyEvent& rEvent )
+{
+ long nRet = 0;
+
+ if( rEvent.GetType() == EVENT_KEYINPUT &&
+ rEvent.GetKeyEvent()->GetKeyCode().GetCode() == KEY_DELETE )
+ {
+ m_aDelPressedLink.Call( this );
+ nRet = 1;
+ }
+
+ return nRet;
+}
+
+/*
+ * DelListBox
+ */
+
+long DelListBox::Notify( NotifyEvent& rEvent )
+{
+ long nRet = 0;
+
+ if( rEvent.GetType() == EVENT_KEYINPUT &&
+ rEvent.GetKeyEvent()->GetKeyCode().GetCode() == KEY_DELETE )
+ {
+ m_aDelPressedLink.Call( this );
+ nRet = 1;
+ }
+
+ return nRet;
+}
+
+/*
+ * QueryString
+ */
+
+QueryString::QueryString( Window* pParent, String& rQuery, String& rRet ) :
+ m_rReturnValue( rRet ),
+ ModalDialog( pParent, PaResId( RID_STRINGQUERYDLG ) ),
+ m_aOKButton( this, PaResId( RID_STRQRY_BTN_OK ) ),
+ m_aEdit( this, PaResId( RID_STRQRY_EDT_NEWNAME ) ),
+ m_aFixedText( this, PaResId( RID_STRQRY_TXT_RENAME ) ),
+ m_aCancelButton( this, PaResId( RID_STRQRY_BTN_CANCEL ) )
+{
+ m_aOKButton.SetClickHdl( LINK( this, QueryString, ClickBtnHdl ) );
+ m_aFixedText.SetText( rQuery );
+ m_aEdit.SetText( m_rReturnValue );
+ SetText( Application::GetDisplayName() );
+ FreeResource();
+}
+
+QueryString::~QueryString()
+{
+}
+
+IMPL_LINK( QueryString, ClickBtnHdl, Button*, pButton )
+{
+ if( pButton == &m_aOKButton )
+ {
+ m_rReturnValue = m_aEdit.GetText();
+ EndDialog( 1 );
+ }
+ else
+ EndDialog(0);
+ return 0;
+}
+
+/*
+ * AreYouSure
+ */
+
+BOOL padmin::AreYouSure( Window* pParent, int nRid )
+{
+ if( nRid == -1 )
+ nRid = RID_YOU_SURE;
+ QueryBox aQueryBox( pParent, WB_YES_NO | WB_DEF_NO,
+ String( PaResId( nRid ) ) );
+ return aQueryBox.Execute() == RET_NO ? FALSE : TRUE;
+}
+
+/*
+ * getPadminRC
+ */
+
+static Config* pRC = NULL;
+
+Config& padmin::getPadminRC()
+{
+ if( ! pRC )
+ {
+ static const char* pEnv = getenv( "HOME" );
+ String aFileName( pEnv ? pEnv : "", gsl_getSystemTextEncoding() );
+ aFileName.AppendAscii( "/.padminrc" );
+ pRC = new Config( aFileName );
+ }
+ return *pRC;
+}
+
+void padmin::freePadminRC()
+{
+ if( pRC )
+ delete pRC, pRC = NULL;
+}
diff --git a/padmin/source/helper.hxx b/padmin/source/helper.hxx
new file mode 100644
index 000000000000..b10a07f79f2d
--- /dev/null
+++ b/padmin/source/helper.hxx
@@ -0,0 +1,163 @@
+/*************************************************************************
+ *
+ * $RCSfile: helper.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _PAD_HELPER_HXX_
+#define _PAD_HELPER_HXX_
+
+#ifndef __SGI_STL_LIST
+#include <list>
+#endif
+#ifndef _STRING_HXX
+#include <tools/string.hxx>
+#endif
+#ifndef _RESID_HXX
+#include <tools/resid.hxx>
+#endif
+#ifndef _SV_DIALOG_HXX
+#include <vcl/dialog.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_EDIT_HXX
+#include <vcl/edit.hxx>
+#endif
+#ifndef _SV_FIXED_HXX
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_LISTBOX_HXX
+#include <vcl/lstbox.hxx>
+#endif
+
+class Config;
+
+#define PSPRINT_PPDDIR "driver"
+
+namespace padmin
+{
+ class DelMultiListBox : public MultiListBox
+ {
+ Link m_aDelPressedLink;
+ public:
+ DelMultiListBox( Window* pParent, const ResId& rResId ) :
+ MultiListBox( pParent, rResId ) {}
+ ~DelMultiListBox() {}
+
+ virtual long Notify( NotifyEvent& rEvent );
+
+ Link setDelPressedLink( const Link& rLink )
+ {
+ Link aOldLink( m_aDelPressedLink );
+ m_aDelPressedLink = rLink;
+ return aOldLink;
+ }
+ const Link& getDelPressedLink() const { return m_aDelPressedLink; }
+ };
+
+ class DelListBox : public ListBox
+ {
+ Link m_aDelPressedLink;
+ public:
+ DelListBox( Window* pParent, const ResId& rResId ) :
+ ListBox( pParent, rResId ) {}
+ ~DelListBox() {}
+
+ virtual long Notify( NotifyEvent& rEvent );
+
+ Link setDelPressedLink( const Link& rLink )
+ {
+ Link aOldLink( m_aDelPressedLink );
+ m_aDelPressedLink = rLink;
+ return aOldLink;
+ }
+ const Link& getDelPressedLink() const { return m_aDelPressedLink; }
+ };
+
+ class QueryString : public ModalDialog
+ {
+ private:
+ OKButton m_aOKButton;
+ CancelButton m_aCancelButton;
+ Edit m_aEdit;
+ FixedText m_aFixedText;
+
+ String& m_rReturnValue;
+
+ DECL_LINK( ClickBtnHdl, Button* );
+
+ public:
+ QueryString( Window*, String &, String & );
+ // parent window, Query text, initial value
+ ~QueryString();
+ };
+
+ BOOL AreYouSure( Window*, int nRid = -1 );
+
+ ResId PaResId( ULONG nId );
+
+ void FindFiles( const String& rDirectory, ::std::list< String >& rResult, const String& rSuffixes );
+
+ Config& getPadminRC();
+ void freePadminRC();
+
+} // namespace padmin
+
+#endif
diff --git a/padmin/source/makefile.mk b/padmin/source/makefile.mk
new file mode 100644
index 000000000000..2678691ed2d5
--- /dev/null
+++ b/padmin/source/makefile.mk
@@ -0,0 +1,131 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: pl $ $Date: 2001-05-08 11:56:35 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..
+PRJNAME=padmin
+TARGET=padmin
+LIBTARGET=NO
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE: settings.mk
+
+# --- Files --------------------------------------------------------
+
+SRCFILES=padialog.src filedlg2.src rtsetup.src
+
+RESLIB1NAME=spa
+RESLIB1SRSFILES= $(SRS)$/padmin.srs
+RESLIB1DEPN=\
+ padialog.src \
+ padialog.hrc \
+ filedlg2.hrc \
+ filedlg2.src \
+ rtsetup.src \
+ rtsetup.hrc
+RESLIB1BMPS=butter.bmp
+
+SLOFILES=\
+ $(SLO)$/padialog.obj \
+ $(SLO)$/cmddlg.obj \
+ $(SLO)$/progress.obj \
+ $(SLO)$/newppdlg.obj \
+ $(SLO)$/filedlg.obj \
+ $(SLO)$/filedlg2.obj \
+ $(SLO)$/prtsetup.obj \
+ $(SLO)$/prgsbar.obj \
+ $(SLO)$/fontentry.obj \
+ $(SLO)$/helper.obj \
+ $(SLO)$/adddlg.obj
+
+
+OBJFILES=\
+ $(OBJ)/pamain.obj
+
+SHL1TARGET= spa$(UPD)$(DLLPOSTFIX)
+SHL1OBJS=$(SLOFILES)
+SHL1STDLIBS=\
+ $(COMPHELPERLIB) \
+ $(CPPUHELPERLIB) \
+ $(CPPULIB) \
+ $(VCLLIB) \
+ -lpsp$(UPD)$(DLLPOSTFIX) \
+ $(TOOLSLIB) \
+ $(UNOLIB) \
+ $(SOTLIB) \
+ $(VOSLIB) \
+ $(SALLIB)
+
+
+APP1TARGET=spadmin.bin
+APP1OBJS=\
+ $(OBJ)/pamain.obj
+
+APP1STDLIBS= \
+ -l$(SHL1TARGET) \
+ $(SHL1STDLIBS) \
+ -lXext -lX11
+
+# --- Targets ------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/padmin/source/newppdlg.cxx b/padmin/source/newppdlg.cxx
new file mode 100644
index 000000000000..31ff9ce51ad3
--- /dev/null
+++ b/padmin/source/newppdlg.cxx
@@ -0,0 +1,288 @@
+/*************************************************************************
+ *
+ * $RCSfile: newppdlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include <stdio.h>
+#include <unistd.h>
+
+#ifndef _PSPRINT_PPDPARSER_HXX_
+#include <psprint/ppdparser.hxx>
+#endif
+#ifndef _PSPRINT_HELPER_HXX_
+#include <psprint/helper.hxx>
+#endif
+#ifndef _SVT_FILEDLG_HXX
+#include <filedlg.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _URLOBJ_HXX
+#include <tools/urlobj.hxx>
+#endif
+#ifndef __SGI_STL_LIST
+#include <list>
+#endif
+#ifndef _OSL_FILE_HXX_
+#include <osl/file.hxx>
+#endif
+
+#ifndef _PAD_HELPER_HXX_
+#include <helper.hxx>
+#endif
+#ifndef _PAD_PADIALOG_HRC_
+#include <padialog.hrc>
+#endif
+#ifndef _PAD_NEWPPDLG_HXX_
+#include <newppdlg.hxx>
+#endif
+#ifndef _PAD_PADIALOG_HXX_
+#include <padialog.hxx>
+#endif
+#ifndef _PAD_PROGRESS_HXX_
+#include <progress.hxx>
+#endif
+
+#define PPDIMPORT_GROUP "PPDImport"
+
+using namespace padmin;
+using namespace psp;
+using namespace osl;
+using namespace rtl;
+
+PPDImportDialog::PPDImportDialog( Window* pParent ) :
+ ModalDialog( pParent, PaResId( RID_PPDIMPORT_DLG ) ),
+ m_aOKBtn( this, PaResId( RID_PPDIMP_BTN_OK ) ),
+ m_aCancelBtn( this, PaResId( RID_PPDIMP_BTN_CANCEL ) ),
+ m_aSearchBtn( this, PaResId( RID_PPDIMP_BTN_SEARCH ) ),
+ m_aPathBox( this, PaResId( RID_PPDIMP_LB_PATH ) ),
+ m_aDriverTxt( this, PaResId( RID_PPDIMP_TXT_DRIVER ) ),
+ m_aDriverLB( this, PaResId( RID_PPDIMP_LB_DRIVER ) ),
+ m_aPathGroup( this, PaResId( RID_PPDIMP_GROUP_PATH ) ),
+ m_aDriverGroup( this, PaResId( RID_PPDIMP_GROUP_DRIVER ) ),
+ m_aPathTxt( this, PaResId( RID_PPDIMP_TXT_PATH ) ),
+ m_aLoadingPPD( PaResId( RID_PPDIMP_STR_LOADINGPPD ) )
+{
+ FreeResource();
+
+ String aText( m_aDriverTxt.GetText() );
+ aText.SearchAndReplaceAscii( "%s", Button::GetStandardText( BUTTON_OK ) );
+ aText.EraseAllChars( '~' );
+ m_aDriverTxt.SetText( aText );
+
+ Config& rConfig = getPadminRC();
+ rConfig.SetGroup( PPDIMPORT_GROUP );
+ m_aPathBox.SetText( String( rConfig.ReadKey( "LastDir" ), RTL_TEXTENCODING_UTF8 ) );
+ for( int i = 0; i < 11; i++ )
+ {
+ ByteString aEntry( rConfig.ReadKey( ByteString::CreateFromInt32( i ) ) );
+ if( aEntry.Len() )
+ m_aPathBox.InsertEntry( String( aEntry, RTL_TEXTENCODING_UTF8 ) );
+ }
+
+ m_aOKBtn.SetClickHdl( LINK( this, PPDImportDialog, ClickBtnHdl ) );
+ m_aCancelBtn.SetClickHdl( LINK( this, PPDImportDialog, ClickBtnHdl ) );
+ m_aSearchBtn.SetClickHdl( LINK( this, PPDImportDialog, ClickBtnHdl ) );
+ m_aPathBox.SetSelectHdl( LINK( this, PPDImportDialog, SelectHdl ) );
+ m_aPathBox.SetModifyHdl( LINK( this, PPDImportDialog, ModifyHdl ) );
+}
+
+PPDImportDialog::~PPDImportDialog()
+{
+ while( m_aDriverLB.GetEntryCount() )
+ {
+ delete (String*)m_aDriverLB.GetEntryData( 0 );
+ m_aDriverLB.RemoveEntry( 0 );
+ }
+}
+
+void PPDImportDialog::Import()
+{
+ String aImportPath( m_aPathBox.GetText() );
+
+ Config& rConfig = getPadminRC();
+ rConfig.SetGroup( PPDIMPORT_GROUP );
+ rConfig.WriteKey( "LastDir", ByteString( aImportPath, RTL_TEXTENCODING_UTF8 ) );
+
+ int nEntries = m_aPathBox.GetEntryCount();
+ while( nEntries-- )
+ if( aImportPath == m_aPathBox.GetEntry( nEntries ) )
+ break;
+ if( nEntries < 0 )
+ {
+ int nNextEntry = rConfig.ReadKey( "NextEntry" ).ToInt32();
+ rConfig.WriteKey( ByteString::CreateFromInt32( nNextEntry ), ByteString( aImportPath, RTL_TEXTENCODING_UTF8 ) );
+ nNextEntry = nNextEntry < 10 ? nNextEntry+1 : 0;
+ rConfig.WriteKey( "NextEntry", ByteString::CreateFromInt32( nNextEntry ) );
+ m_aPathBox.InsertEntry( aImportPath );
+ }
+ while( m_aDriverLB.GetEntryCount() )
+ {
+ delete (String*)m_aDriverLB.GetEntryData( 0 );
+ m_aDriverLB.RemoveEntry( 0 );
+ }
+
+ ProgressDialog aProgress( Application::GetFocusWindow() );
+ aProgress.startOperation( m_aLoadingPPD );
+
+ ::std::list< String > aFiles;
+ FindFiles( aImportPath, aFiles, String::CreateFromAscii( "PS;PPD" ) );
+
+ int i = 0;
+ aProgress.setRange( 0, aFiles.size() );
+ while( aFiles.size() )
+ {
+ aProgress.setValue( ++i );
+ aProgress.setFilename( aFiles.front() );
+ INetURLObject aPath( aImportPath, INET_PROT_FILE, INetURLObject::ENCODE_ALL );
+ aPath.Append( aFiles.front() );
+ String aPrinterName = PPDParser::getPPDPrinterName( aPath.PathToFileName() );
+ aFiles.pop_front();
+
+ if( ! aPrinterName.Len() )
+ {
+#ifdef DEBUG
+ fprintf( stderr, "Warning: File %s has empty printer name.\n",
+ ByteString( ByteString( aPath.PathToFileName(), gsl_getSystemTextEncoding() ).GetBuffer() ) );
+#endif
+ continue;
+ }
+
+ USHORT nPos = m_aDriverLB.InsertEntry( aPrinterName );
+ m_aDriverLB.SetEntryData( nPos, new String( aPath.PathToFileName() ) );
+ }
+}
+
+IMPL_LINK( PPDImportDialog, ClickBtnHdl, PushButton*, pButton )
+{
+ rtl_TextEncoding aEncoding = gsl_getSystemTextEncoding();
+
+ if( pButton == &m_aCancelBtn )
+ {
+ EndDialog( 0 );
+ }
+ else if( pButton == &m_aOKBtn )
+ {
+ // copy the files
+ ::std::list< String > aToDirs;
+ String aPathList( ::psp::getPrinterPath() );
+ int nTokens = aPathList.GetTokenCount( ':' );
+ for( int n = 0; n < nTokens; n++ )
+ {
+ String aPath = aPathList.GetToken( n, ':' );
+ aPath.AppendAscii( "/"PSPRINT_PPDDIR );
+ aToDirs.push_back( aPath );
+ }
+ ::std::list< String >::iterator writeDir = aToDirs.begin();
+
+ for( int i = 0; i < m_aDriverLB.GetSelectEntryCount(); i++ )
+ {
+ INetURLObject aFile( *(String*)m_aDriverLB.GetEntryData(
+ m_aDriverLB.GetSelectEntryPos( i )
+ ), INET_PROT_FILE, INetURLObject::ENCODE_ALL );
+ OUString aFromUni;
+ FileBase::normalizePath( aFile.PathToFileName(), aFromUni );
+
+ do
+ {
+ INetURLObject aToFile( *writeDir, INET_PROT_FILE, INetURLObject::ENCODE_ALL );
+ aToFile.Append( aFile.GetName() );
+ aToFile.setExtension( String::CreateFromAscii( "PPD" ) );
+ OUString aToUni;
+ FileBase::normalizePath( aToFile.PathToFileName(), aToUni );
+ if( ! File::copy( aFromUni, aToUni ) )
+ break;
+ ++writeDir;
+ } while( writeDir != aToDirs.end() );
+ }
+ EndDialog( 1 );
+ }
+ else if( pButton == &m_aSearchBtn )
+ {
+ PathDialog aDlg( this );
+ aDlg.SetPath( m_aPathBox.GetText() );
+ if( aDlg.Execute() )
+ {
+ m_aPathBox.SetText( aDlg.GetPath() );
+ Import();
+ }
+ }
+ return 0;
+}
+
+IMPL_LINK( PPDImportDialog, SelectHdl, ComboBox*, pListBox )
+{
+ if( pListBox == &m_aPathBox )
+ {
+ Import();
+ }
+ return 0;
+}
+
+IMPL_LINK( PPDImportDialog, ModifyHdl, ComboBox*, pListBox )
+{
+ if( pListBox == &m_aPathBox )
+ {
+ ByteString aDir( m_aPathBox.GetText(), gsl_getSystemTextEncoding() );
+ if( ! access( aDir.GetBuffer(), F_OK ) )
+ Import();
+ }
+ return 0;
+}
diff --git a/padmin/source/newppdlg.hxx b/padmin/source/newppdlg.hxx
new file mode 100644
index 000000000000..7fc9bca55fb0
--- /dev/null
+++ b/padmin/source/newppdlg.hxx
@@ -0,0 +1,115 @@
+/*************************************************************************
+ *
+ * $RCSfile: newppdlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _PAD_NEWPPDLG_HXX_
+#define _PAD_NEWPPDLG_HXX_
+
+#ifndef _SV_DIALOG_HXX
+#include <vcl/dialog.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_COMBOBOX_HXX
+#include <vcl/combobox.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_FIXED_HXX
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_GROUP_HXX
+#include <vcl/group.hxx>
+#endif
+
+namespace psp { class PPDParser; }
+
+namespace padmin {
+
+ class PPDImportDialog : public ModalDialog
+ {
+ OKButton m_aOKBtn;
+ CancelButton m_aCancelBtn;
+ FixedText m_aPathTxt;
+ ComboBox m_aPathBox;
+ PushButton m_aSearchBtn;
+ FixedText m_aDriverTxt;
+ MultiListBox m_aDriverLB;
+
+ GroupBox m_aPathGroup;
+ GroupBox m_aDriverGroup;
+
+ String m_aLoadingPPD;
+
+ DECL_LINK( ClickBtnHdl, PushButton* );
+ DECL_LINK( SelectHdl, ComboBox* );
+ DECL_LINK( ModifyHdl, ComboBox* );
+
+ void Import();
+ public:
+ PPDImportDialog( Window* pParent );
+ ~PPDImportDialog();
+ };
+
+} // namespace
+
+#endif // _NEWPPDLG_HXX
diff --git a/padmin/source/padialog.cxx b/padmin/source/padialog.cxx
new file mode 100644
index 000000000000..0e3174714278
--- /dev/null
+++ b/padmin/source/padialog.cxx
@@ -0,0 +1,698 @@
+/*************************************************************************
+ *
+ * $RCSfile: padialog.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56: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 <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
+#include <math.h>
+
+#ifndef _SV_MSGBOX_HXX
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SV_PRINT_HXX
+#include <vcl/print.hxx>
+#endif
+#ifndef _SV_GRADIENT_HXX
+#include <vcl/gradient.hxx>
+#endif
+#ifndef _SV_BITMAP_HXX
+#include <vcl/bitmap.hxx>
+#endif
+#ifndef _SV_LINEINFO_HXX
+#include <vcl/lineinfo.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _STREAM_HXX
+#include <tools/stream.hxx>
+#endif
+#ifndef _TOOLS_COLOR_HXX
+#include <tools/color.hxx>
+#endif
+#ifndef _PAD_PADIALOG_HRC_
+#include <padialog.hrc>
+#endif
+#ifndef _PAD_FONTENTRY_HXX_
+#include <fontentry.hxx>
+#endif
+#ifndef _PAD_HELPER_HXX_
+#include <helper.hxx>
+#endif
+#ifndef _PSP_PRINTERINFOMANAGER_HXX_
+#include <psprint/printerinfomanager.hxx>
+#endif
+#ifndef _PAD_PADIALOG_HXX_
+#include <padialog.hxx>
+#endif
+#ifndef _PAD_ADDDLG_HXX_
+#include <adddlg.hxx>
+#endif
+#ifndef _PAD_PRTSETUP_HXX_
+#include <prtsetup.hxx>
+#endif
+#ifndef _OSL_FILE_HXX_
+#include <osl/file.hxx>
+#endif
+
+using namespace psp;
+using namespace rtl;
+using namespace padmin;
+using namespace osl;
+
+PADialog* PADialog::Create( Window* pParent, BOOL bAdmin )
+{
+ return new PADialog( pParent, bAdmin );
+}
+
+PADialog::PADialog( Window* pParent, BOOL bAdmin ) :
+ ModalDialog( pParent, PaResId( RID_PADIALOG ) ),
+ m_aAddPB( this, PaResId( RID_PA_BTN_ADD ) ),
+ m_aCancelButton( this, PaResId( RID_PA_BTN_CANCEL ) ),
+ m_aDevicesLB( this, PaResId( RID_PA_LB_DEV ) ),
+ m_aStdPB( this, PaResId( RID_PA_BTN_STD ) ),
+ m_aRemPB( this, PaResId( RID_PA_BTN_DEL ) ),
+ m_aGroupBox( this, PaResId( RID_PA_GROUP_INSTALL ) ),
+ m_aFontsPB( this, PaResId( RID_PA_BTN_FONTS ) ),
+ m_aAddFontsPB( this, PaResId( RID_PA_BTN_ADDFONTS ) ),
+ m_aConfPB( this, PaResId( RID_PA_BTN_CONF ) ),
+ m_aRenamePB( this, PaResId( RID_PA_BTN_RENAME ) ),
+ m_aTestPagePB( this, PaResId( RID_PA_TESTPAGE ) ),
+ m_aDriverTxt( this, PaResId( RID_PA_TXT_DRIVER ) ),
+ m_aDriver( this, PaResId( RID_PA_TXT_DRIVER_STRING ) ),
+ m_aLocationTxt( this, PaResId( RID_PA_TXT_LOCATION ) ),
+ m_aLocation( this, PaResId( RID_PA_TXT_LOCATION_STRING ) ),
+ m_aCommandTxt( this, PaResId( RID_PA_TXT_COMMAND ) ),
+ m_aCommand( this, PaResId( RID_PA_TXT_COMMAND_STRING ) ),
+ m_aCommentTxt( this, PaResId( RID_PA_TXT_COMMENT ) ),
+ m_aComment( this, PaResId( RID_PA_TXT_COMMENT_STRING ) ),
+ m_aDefPrt( PaResId( RID_PA_STR_DEFPRT ) ),
+ m_aRenameStr( PaResId( RID_PA_STR_RENAME ) ),
+ m_pPrinter( 0 ),
+ m_rPIManager( PrinterInfoManager::get() )
+{
+ Init();
+ FreeResource();
+}
+
+void PADialog::Init()
+{
+ UpdateDevice();
+ UpdateText();
+
+ m_aRemPB.Enable( FALSE );
+
+ m_aDevicesLB.SetDoubleClickHdl( LINK( this, PADialog, DoubleClickHdl ) );
+ m_aDevicesLB.SetSelectHdl( LINK( this, PADialog, SelectHdl ) );
+ m_aStdPB.SetClickHdl( LINK( this, PADialog, ClickBtnHdl ) );
+ m_aRemPB.SetClickHdl( LINK( this, PADialog, ClickBtnHdl ) );
+ m_aConfPB.SetClickHdl( LINK( this, PADialog, ClickBtnHdl ) );
+ m_aRenamePB.SetClickHdl( LINK( this, PADialog, ClickBtnHdl ) );
+ m_aTestPagePB.SetClickHdl( LINK( this, PADialog, ClickBtnHdl ) );
+ m_aFontsPB.SetClickHdl( LINK( this, PADialog, ClickBtnHdl ) );
+ m_aAddFontsPB.SetClickHdl( LINK( this, PADialog, ClickBtnHdl ) );
+ m_aAddPB.SetClickHdl( LINK( this, PADialog, ClickBtnHdl ) );
+ m_aDevicesLB.setDelPressedLink( LINK( this, PADialog, DelPressedHdl ) );
+
+ ::psp::PrintFontManager& rFontManager( ::psp::PrintFontManager::get() );
+ if( ! rFontManager.checkImportPossible() )
+ m_aFontsPB.Enable( FALSE );
+}
+
+PADialog::~PADialog()
+{
+ m_rPIManager.writePrinterConfig();
+ freePadminRC();
+}
+
+String PADialog::getSelectedDevice()
+{
+ int nPos = m_aDevicesLB.GetSelectEntryPos();
+ int nLen = (int)m_aDevicesLB.GetEntryData( nPos );
+ return m_aDevicesLB.GetEntry( nPos ).Copy( 0, nLen );
+}
+
+IMPL_LINK( PADialog, DelPressedHdl, ListBox*, pBox )
+{
+ if( pBox == &m_aDevicesLB && m_aRemPB.IsEnabled() )
+ ClickBtnHdl( &m_aRemPB );
+ return 0;
+}
+
+IMPL_LINK( PADialog, ClickBtnHdl, PushButton*, pButton )
+{
+ if( pButton == &m_aStdPB )
+ UpdateDefPrt();
+ else if( pButton == &m_aRemPB && AreYouSure( this, RID_QUERY_REMOVEPRINTER ) )
+ RemDevice();
+ else if( pButton == &m_aConfPB )
+ ConfigureDevice();
+ else if( pButton == &m_aRenamePB )
+ RenameDevice();
+ else if( pButton == &m_aTestPagePB )
+ PrintTestPage();
+ else if( pButton == &m_aAddPB )
+ AddDevice();
+ else if( pButton == &m_aFontsPB )
+ {
+ FontNameDlg aDialog( this );
+ aDialog.Execute();
+ }
+ else if( pButton == & m_aAddFontsPB )
+ {
+ FontImportDialog aDialog( this );
+ aDialog.Execute();
+ }
+
+ return 0;
+}
+
+IMPL_LINK( PADialog, DoubleClickHdl, ListBox*, pListBox )
+{
+ if( pListBox == &m_aDevicesLB )
+ UpdateDefPrt();
+ return 0;
+}
+
+IMPL_LINK( PADialog, SelectHdl, ListBox*, pListBox )
+{
+ if( pListBox == &m_aDevicesLB )
+ {
+ String sSelect = getSelectedDevice();
+ String sDefPrt = m_rPIManager.getDefaultPrinter();
+ if( sDefPrt == sSelect )
+ m_aRemPB.Enable( FALSE );
+ else
+ m_aRemPB.Enable( TRUE );
+ UpdateText();
+ }
+ return 0;
+}
+
+IMPL_LINK( PADialog, EndPrintHdl, void*, pNil )
+{
+ String aInfoString( PaResId( RID_PA_TXT_TESTPAGE_PRINTED ) );
+ InfoBox aInfoBox( this, aInfoString );
+ aInfoBox.SetText( String( PaResId( RID_BXT_TESTPAGE ) ) );
+ aInfoBox.Execute();
+
+ delete m_pPrinter;
+ m_pPrinter = NULL;
+ return 0;
+}
+
+void PADialog::UpdateDefPrt()
+{
+ m_rPIManager.setDefaultPrinter( getSelectedDevice() );
+
+ UpdateDevice();
+ UpdateText();
+
+ if( m_aRemPB.HasFocus() )
+ m_aDevicesLB.GetFocus();
+ m_aRemPB.Enable( FALSE );
+}
+
+void PADialog::UpdateText()
+{
+ const PrinterInfo& rInfo = m_rPIManager.getPrinterInfo( getSelectedDevice() );
+ String aDriver( rInfo.m_aPrinterName );
+ aDriver.AppendAscii( " (" );
+ aDriver += String( rInfo.m_aDriverName );
+ aDriver.Append( ')' );
+ m_aDriver.SetText( aDriver );
+ m_aCommand.SetText( rInfo.m_aCommand );
+ m_aComment.SetText( rInfo.m_aComment );
+ m_aLocation.SetText( rInfo.m_aLocation );
+}
+
+static Point project( const Point& rPoint )
+{
+ const double angle_x = M_PI / 6.0;
+ const double angle_z = M_PI / 6.0;
+
+ // transform planar coordinates to 3d
+ double x = rPoint.X();
+ double y = rPoint.Y();
+ double z = 0;
+
+ // rotate around X axis
+ double x1 = x;
+ double y1 = y * cos( angle_x );
+ double z1 = y * sin( angle_x );
+
+ // rotate around Z axis
+ double x2 = x1 * cos( angle_z ) + y1 * sin( angle_z );
+ double y2 = y1 * cos( angle_z ) - x1 * sin( angle_z );
+ double z2 = z1;
+
+ return Point( x2, z2 );
+}
+
+static Color approachColor( const Color& rFrom, const Color& rTo )
+{
+ Color aColor;
+ UINT8 nDiff;
+ // approach red
+ if( rFrom.GetRed() < rTo.GetRed() )
+ {
+ nDiff = rTo.GetRed() - rFrom.GetRed();
+ aColor.SetRed( rFrom.GetRed() + ( nDiff < 10 ? nDiff : 10 ) );
+ }
+ else if( rFrom.GetRed() > rTo.GetRed() )
+ {
+ nDiff = rFrom.GetRed() - rTo.GetRed();
+ aColor.SetRed( rFrom.GetRed() - ( nDiff < 10 ? nDiff : 10 ) );
+ }
+ else
+ aColor.SetRed( rFrom.GetRed() );
+
+ // approach Green
+ if( rFrom.GetGreen() < rTo.GetGreen() )
+ {
+ nDiff = rTo.GetGreen() - rFrom.GetGreen();
+ aColor.SetGreen( rFrom.GetGreen() + ( nDiff < 10 ? nDiff : 10 ) );
+ }
+ else if( rFrom.GetGreen() > rTo.GetGreen() )
+ {
+ nDiff = rFrom.GetGreen() - rTo.GetGreen();
+ aColor.SetGreen( rFrom.GetGreen() - ( nDiff < 10 ? nDiff : 10 ) );
+ }
+ else
+ aColor.SetGreen( rFrom.GetGreen() );
+
+ // approach blue
+ if( rFrom.GetBlue() < rTo.GetBlue() )
+ {
+ nDiff = rTo.GetBlue() - rFrom.GetBlue();
+ aColor.SetBlue( rFrom.GetBlue() + ( nDiff < 10 ? nDiff : 10 ) );
+ }
+ else if( rFrom.GetBlue() > rTo.GetBlue() )
+ {
+ nDiff = rFrom.GetBlue() - rTo.GetBlue();
+ aColor.SetBlue( rFrom.GetBlue() - ( nDiff < 10 ? nDiff : 10 ) );
+ }
+ else
+ aColor.SetBlue( rFrom.GetBlue() );
+
+ return aColor;
+}
+
+#define DELTA 5.0
+void PADialog::PrintTestPage()
+{
+ if( m_pPrinter ) // already printing; user pressed button twice
+ return;
+
+ rtl_TextEncoding aEncoding = gsl_getSystemTextEncoding();
+
+ String sPrinter( getSelectedDevice() );
+
+ m_pPrinter = new Printer( sPrinter );
+
+ PrinterInfo aInfo( m_rPIManager.getPrinterInfo( sPrinter ) );
+ const PPDParser* pPrintParser = aInfo.m_pParser;
+
+ MapMode aMapMode( MAP_100TH_MM );
+
+ Bitmap aButterfly( PaResId( RID_BUTTERFLY ) );
+
+ m_pPrinter->SetMapMode( aMapMode );
+ m_pPrinter->SetEndPrintHdl( LINK( this, PADialog, EndPrintHdl ) );
+ String aJobName( String( RTL_CONSTASCII_USTRINGPARAM( "StarOffice Test" ) ) );
+ if( m_pPrinter->GetName() != sPrinter || ! m_pPrinter->StartJob( aJobName ) )
+ {
+ String aString( PaResId( RID_ERR_NOPRINTER ) );
+ aString.SearchAndReplaceAscii( "%s", sPrinter );
+
+ ErrorBox aErrorBox( this, WB_OK | WB_DEF_OK, aString );
+ aErrorBox.SetText( String( PaResId( RID_BXT_ENVIRONMENT ) ) );
+ aErrorBox.Execute();
+ delete m_pPrinter;
+ m_pPrinter = 0;
+ return;
+ }
+ m_pPrinter->StartPage();
+
+ Size aPaperSize=m_pPrinter->GetOutputSize();
+ Point aCenter( aPaperSize.Width()/2-300,
+ aPaperSize.Height() - aPaperSize.Width()/2 );
+ Point aP1( aPaperSize.Width()/48, 0), aP2( aPaperSize.Width()/40, 0 ), aPoint;
+
+ m_pPrinter->DrawRect( Rectangle( Point( 0,0 ), aPaperSize ) );
+ m_pPrinter->DrawRect( Rectangle( Point( 100,100 ),
+ Size( aPaperSize.Width()-200,
+ aPaperSize.Height()-200 ) ) );
+ m_pPrinter->DrawRect( Rectangle( Point( 200,200 ),
+ Size( aPaperSize.Width()-400,
+ aPaperSize.Height()-400 ) ) );
+ m_pPrinter->DrawRect( Rectangle( Point( 300,300 ),
+ Size( aPaperSize.Width()-600,
+ aPaperSize.Height()-600 ) ) );
+
+ Font aFont( m_pPrinter->GetFont() );
+ aFont.SetName( String( RTL_CONSTASCII_USTRINGPARAM( "Courier" ) ) );
+ aFont.SetWeight( WEIGHT_NORMAL );
+ aFont.SetItalic( ITALIC_NONE );
+ m_pPrinter->SetFont( aFont );
+
+ String aPrintText;
+ long nWidth = 0, nMaxWidth = 0;
+ String aToken;
+
+ aToken = String( PaResId( RID_TXT_TESTPAGE_NAME ) );
+ nMaxWidth = ( nWidth = m_pPrinter->GetTextWidth( aToken ) ) > nMaxWidth ? nWidth : nMaxWidth;
+ aPrintText += aToken;
+ aPrintText += '\n';
+ aToken = String( PaResId( RID_TXT_TESTPAGE_MODEL ) );
+ nMaxWidth = ( nWidth = m_pPrinter->GetTextWidth( aToken ) ) > nMaxWidth ? nWidth : nMaxWidth;
+ aPrintText += aToken;
+ aPrintText += '\n';
+ aPrintText.AppendAscii( "PPD" );
+ aPrintText += '\n';
+ aToken = String( PaResId( RID_TXT_TESTPAGE_QUEUE ) );
+ nMaxWidth = ( nWidth = m_pPrinter->GetTextWidth( aToken ) ) > nMaxWidth ? nWidth : nMaxWidth;
+ aPrintText += aToken;
+ aPrintText += '\n';
+ aToken = String( PaResId( RID_TXT_TESTPAGE_COMMENT ) );
+ nMaxWidth = ( nWidth = m_pPrinter->GetTextWidth( aToken ) ) > nMaxWidth ? nWidth : nMaxWidth;
+ aPrintText += aToken;
+ aPrintText += '\n';
+ aToken = String( PaResId( RID_TXT_TESTPAGE_DATE ) );
+ nMaxWidth = ( nWidth = m_pPrinter->GetTextWidth( aToken ) ) > nMaxWidth ? nWidth : nMaxWidth;
+ aPrintText += aToken;
+ aPrintText += '\n';
+ aToken = String( PaResId( RID_TXT_TESTPAGE_TIME ) );
+ nMaxWidth = ( nWidth = m_pPrinter->GetTextWidth( aToken ) ) > nMaxWidth ? nWidth : nMaxWidth;
+ aPrintText += aToken;
+
+ m_pPrinter->DrawText( Rectangle( Point( 1000, 2000 ),
+ Size( aPaperSize.Width() - 2000,
+ aPaperSize.Height() - 4000 ) ),
+ aPrintText,
+ TEXT_DRAW_MULTILINE );
+
+ aPrintText = String( RTL_CONSTASCII_USTRINGPARAM( ": " ) );
+ aPrintText += sPrinter;
+ aPrintText.AppendAscii( "\n: " );
+ aPrintText += pPrintParser->getPrinterName();
+ aPrintText.AppendAscii( "\n: " );
+ INetURLObject aDriverPath( pPrintParser->getFilename(), INET_PROT_FILE, INetURLObject::ENCODE_ALL );
+ aPrintText += aDriverPath.GetName();
+ aPrintText.AppendAscii( "\n: " );
+ aPrintText += String( aInfo.m_aCommand );
+ aPrintText.AppendAscii( "\n: " );
+ aPrintText += String( aInfo.m_aComment );
+ aPrintText.AppendAscii( "\n: " );
+ aPrintText += Application::GetAppInternational().GetLongDate( Date() );
+ aPrintText.AppendAscii( "\n: " );
+ aPrintText += Application::GetAppInternational().GetTime( Time() );
+
+ m_pPrinter->DrawText( Rectangle( Point( 1100 + nMaxWidth, 2000 ),
+ Size( aPaperSize.Width() - 2100 - nMaxWidth,
+ aPaperSize.Height() - 4000 ) ),
+ aPrintText,
+ TEXT_DRAW_MULTILINE );
+
+ m_pPrinter->DrawBitmap( Point( aPaperSize.Width() - 4000, 1000 ),
+ Size( 3000,3000 ),
+ aButterfly );
+ m_pPrinter->SetFillColor();
+ m_pPrinter->DrawRect( Rectangle( Point( aPaperSize.Width() - 4000, 1000 ),
+ Size( 3000,3000 ) ) );
+
+ Color aWhite( 0xff, 0xff, 0xff );
+ Color aBlack( 0, 0, 0 );
+ Color aLightRed( 0xff, 0, 0 );
+ Color aDarkRed( 0x40, 0, 0 );
+ Color aLightBlue( 0, 0, 0xff );
+ Color aDarkBlue( 0,0,0x40 );
+ Color aLightGreen( 0, 0xff, 0 );
+ Color aDarkGreen( 0, 0x40, 0 );
+
+ Gradient aGradient( GRADIENT_LINEAR, aBlack, aWhite );
+ aGradient.SetAngle( 900 );
+ m_pPrinter->DrawGradient( Rectangle( Point( 1000, 5500 ),
+ Size( aPaperSize.Width() - 2000,
+ 500 ) ), aGradient );
+ aGradient.SetStartColor( aDarkRed );
+ aGradient.SetEndColor( aLightBlue );
+ m_pPrinter->DrawGradient( Rectangle( Point( 1000, 6300 ),
+ Size( aPaperSize.Width() - 2000,
+ 500 ) ), aGradient );
+ aGradient.SetStartColor( aDarkBlue );
+ aGradient.SetEndColor( aLightGreen );
+ m_pPrinter->DrawGradient( Rectangle( Point( 1000, 7100 ),
+ Size( aPaperSize.Width() - 2000,
+ 500 ) ), aGradient );
+ aGradient.SetStartColor( aDarkGreen );
+ aGradient.SetEndColor( aLightRed );
+ m_pPrinter->DrawGradient( Rectangle( Point( 1000, 7900 ),
+ Size( aPaperSize.Width() - 2000,
+ 500 ) ), aGradient );
+
+
+
+ LineInfo aLineInfo( LINE_SOLID, 200 );
+ double sind = sin( DELTA*M_PI/180.0 );
+ double cosd = cos( DELTA*M_PI/180.0 );
+ double factor = 1 + (DELTA/1000.0);
+ int n=0;
+ Color aLineColor( 0, 0, 0 );
+ Color aApproachColor( 0, 0, 200 );
+ while ( aP2.X() < aCenter.X() && n++ < 680 )
+ {
+ aLineInfo.SetWidth( n/3 );
+ aLineColor = approachColor( aLineColor, aApproachColor );
+ m_pPrinter->SetLineColor( aLineColor );
+
+ // switch aproach color
+ if( aApproachColor.IsRGBEqual( aLineColor ) )
+ {
+ if( aApproachColor.GetRed() )
+ aApproachColor = Color( 0, 0, 200 );
+ else if( aApproachColor.GetGreen() )
+ aApproachColor = Color( 200, 0, 0 );
+ else
+ aApproachColor = Color( 0, 200, 0 );
+ }
+
+ m_pPrinter->DrawLine( project( aP1 ) + aCenter,
+ project( aP2 ) + aCenter,
+ aLineInfo );
+ aPoint.X() = (((double)aP1.X())*cosd - ((double)aP1.Y())*sind)*factor;
+ aPoint.Y() = (((double)aP1.Y())*cosd + ((double)aP1.X())*sind)*factor;
+ aP1 = aPoint;
+ aPoint.X() = (((double)aP2.X())*cosd - ((double)aP2.Y())*sind)*factor;
+ aPoint.Y() = (((double)aP2.Y())*cosd + ((double)aP2.X())*sind)*factor;
+ aP2 = aPoint;
+ }
+#if defined DEBUG || defined DBG_UTIL
+ fprintf( stderr, "%d lines\n",n );
+#endif
+ m_pPrinter->EndPage();
+ m_pPrinter->EndJob();
+}
+
+void PADialog::AddDevice()
+{
+ AddPrinterDialog aDlg( this );
+
+ if( aDlg.Execute() )
+ UpdateDevice();
+}
+
+void PADialog::RemDevice()
+{
+ String aPrinter( getSelectedDevice() );
+ String aDefPrinter( m_rPIManager.getDefaultPrinter() );
+ // do not remove the default printer
+ if( aPrinter.Equals( aDefPrinter ) )
+ return;
+
+ if( ! m_rPIManager.removePrinter( aPrinter ) )
+ {
+ String aText( PaResId( RID_ERR_PRINTERNOTREMOVEABLE ) );
+ aText.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "%s" ) ), aPrinter );
+ ErrorBox aBox( this, WB_OK | WB_DEF_OK, aText );
+ aBox.Execute();
+ return;
+ }
+ m_aPrinters.remove( aPrinter );
+
+ m_aDevicesLB.RemoveEntry( m_aDevicesLB.GetSelectEntryPos() );
+ for( int i=0; i < m_aDevicesLB.GetEntryCount(); i++ )
+ {
+ if( m_aDevicesLB.GetEntry( i ).CompareTo( aDefPrinter, aDefPrinter.Len() ) == COMPARE_EQUAL )
+ {
+ m_aDevicesLB.SelectEntryPos( i, TRUE );
+ UpdateText();
+ break;
+ }
+ }
+
+ m_aDevicesLB.GetFocus();
+
+ if( m_aDevicesLB.GetEntryCount() < 2 )
+ m_aRemPB.Enable( FALSE );
+}
+
+void PADialog::ConfigureDevice()
+{
+ String aPrinter( getSelectedDevice() );
+
+ if( ! aPrinter.Len() )
+ return;
+
+ PrinterInfo aInfo( m_rPIManager.getPrinterInfo( aPrinter ) );
+ RTSDialog aDialog( aInfo, aPrinter, true, this );
+
+ if( aDialog.Execute() )
+ m_rPIManager.changePrinterInfo( aPrinter, aDialog.getSetup() );
+
+ UpdateText();
+}
+
+void PADialog::RenameDevice()
+{
+ rtl_TextEncoding aEncoding = gsl_getSystemTextEncoding();
+
+ String aPrinter( getSelectedDevice() );
+ OUString aOldPrinter( aPrinter );
+ int nSelectEntryPos = m_aDevicesLB.GetSelectEntryPos();
+
+ if( ! aPrinter.Len() )
+ return;
+
+ QueryString aQuery( this,
+ String( PaResId( RID_QRY_PRTNAME ) ),
+ aPrinter );
+ aQuery.SetText( m_aRenameStr );
+ aQuery.Execute();
+
+ if( aPrinter.Len() )
+ {
+ PrinterInfo aInfo( m_rPIManager.getPrinterInfo( aOldPrinter ) );
+ aInfo.m_aPrinterName = aPrinter;
+ if( m_rPIManager.addPrinter( aPrinter, aInfo.m_aDriverName ) )
+ {
+ m_aPrinters.push_back( aPrinter );
+ if( m_rPIManager.removePrinter( aOldPrinter ) )
+ m_aPrinters.remove( aOldPrinter );
+ m_rPIManager.changePrinterInfo( aPrinter, aInfo );
+ if( m_rPIManager.getDefaultPrinter() == aOldPrinter )
+ {
+ m_rPIManager.setDefaultPrinter( aPrinter );
+ UpdateDefPrt();
+ }
+ UpdateDevice();
+ }
+ }
+}
+
+void PADialog::UpdateDevice()
+{
+ rtl_TextEncoding aEncoding = gsl_getSystemTextEncoding();
+
+ m_aDevicesLB.Clear();
+
+ m_rPIManager.listPrinters( m_aPrinters );
+ ::std::list< OUString >::iterator it;
+ for( it = m_aPrinters.begin(); it != m_aPrinters.end(); ++it )
+ {
+ const PrinterInfo& rInfo( m_rPIManager.getPrinterInfo( *it ) );
+ String aEntry( *it );
+ if( *it == m_rPIManager.getDefaultPrinter() )
+ {
+ aEntry.AppendAscii( " (" );
+ aEntry += m_aDefPrt;
+ aEntry.AppendAscii( ")" );
+ }
+ int nPos = m_aDevicesLB.InsertEntry( aEntry );
+ m_aDevicesLB.SetEntryData( nPos, (void*)it->getLength() );
+ if( *it == m_rPIManager.getDefaultPrinter() )
+ {
+ m_aDevicesLB.SelectEntryPos( nPos );
+ UpdateText();
+ }
+ }
+}
+
+
+// ------------------------------------------------------------------
+
+// get a nice icon
+#include <psetupl.xpm>
+
+extern "C"
+void vcl_customIcon1(
+ char **&iconRes1,
+ char **&iconRes2,
+ char **&iconRes3,
+ char **&iconRes4
+ )
+{
+ iconRes1 = L3PSetup_m_pm;
+ iconRes2 = NULL;
+ iconRes3 = NULL;
+ iconRes4 = NULL;
+}
diff --git a/padmin/source/padialog.hrc b/padmin/source/padialog.hrc
new file mode 100644
index 000000000000..f25b59624040
--- /dev/null
+++ b/padmin/source/padialog.hrc
@@ -0,0 +1,296 @@
+/*************************************************************************
+ *
+ * $RCSfile: padialog.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56: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 _PAD_PADIALOG_HRC_
+#define _PAD_PADIALOG_HRC_
+
+#define RID_PADIALOG 1000
+#define RID_PA_BTN_CANCEL 1
+#define RID_PA_BTN_STD 2
+#define RID_PA_BTN_DEL 3
+#define RID_PA_LB_DEV 4
+#define RID_PA_GROUP_INSTALL 5
+#define RID_PA_BTN_CONF 6
+#define RID_PA_BTN_RENAME 7
+#define RID_PA_TESTPAGE 8
+#define RID_PA_BTN_FONTS 9
+#define RID_PA_TXT_DRIVER 10
+#define RID_PA_TXT_DRIVER_STRING 11
+#define RID_PA_TXT_LOCATION 12
+#define RID_PA_TXT_LOCATION_STRING 13
+#define RID_PA_TXT_COMMAND 14
+#define RID_PA_TXT_COMMAND_STRING 15
+#define RID_PA_TXT_COMMENT 16
+#define RID_PA_TXT_COMMENT_STRING 17
+#define RID_PA_STR_DEFPRT 18
+#define RID_PA_BTN_ADD 19
+#define RID_PA_BTN_ADDFONTS 20
+#define RID_PA_STR_RENAME 21
+
+#define RID_STRINGQUERYDLG 1003
+#define RID_STRQRY_TXT_RENAME 1
+#define RID_STRQRY_EDT_NEWNAME 2
+#define RID_STRQRY_BTN_OK 3
+#define RID_STRQRY_BTN_CANCEL 4
+
+#define RID_PPDIMPORT_DLG 1004
+#define RID_PPDIMP_BTN_OK 1
+#define RID_PPDIMP_BTN_CANCEL 2
+#define RID_PPDIMP_BTN_SEARCH 3
+#define RID_PPDIMP_TXT_DRIVER 4
+#define RID_PPDIMP_LB_DRIVER 5
+#define RID_PPDIMP_LB_PATH 6
+#define RID_PPDIMP_GROUP_PATH 7
+#define RID_PPDIMP_GROUP_DRIVER 8
+#define RID_PPDIMP_TXT_PATH 9
+#define RID_PPDIMP_STR_LOADINGPPD 10
+
+#define RID_PA_TXT_TESTPAGE_PRINTED 1005
+
+#define RID_ERR_PRINTERNOTREMOVEABLE 1006
+#define RID_ERR_COMMANDCONNECTED 1007
+#define RID_ERR_FILENOTFOUND 1008
+#define RID_ERR_NOWRITE 1009
+#define RID_ERR_NOPRINTER 1013
+#define RID_ERR_FILEOPENREAD 1016
+#define RID_ERR_FILEOPENWRITE 1017
+#define RID_QRY_PRTNAME 1022
+
+#define RID_FONTLISTDLG 1026
+#define RID_FLDLG_BTN_OK 1
+#define RID_FLDLG_LB_FONTS 2
+#define RID_FLDLG_BTN_REMOVE 3
+#define RID_FLDLG_TXT 4
+
+#define RID_METRICOPTIONS_DLG 1029
+#define RID_METDLG_BTN_OK 1
+#define RID_METDLG_BTN_CANCEL 2
+#define RID_METDLG_BTN_SELECTION 3
+#define RID_METDLG_BTN_ALL 4
+#define RID_METDLG_BTN_CORRECT 5
+
+#define RID_FONTNAMEDIALOG 1030
+#define RID_FNTNM_FIXED 1
+#define RID_FNTNM_FOUNDRY 2
+#define RID_FNTNM_FAMILY 3
+#define RID_FNTNM_WEIGHT 4
+#define RID_FNTNM_SLANT 5
+#define RID_FNTNM_SPACING 6
+#define RID_FNTNM_REGISTRY 7
+#define RID_FNTNM_ENCODING 8
+#define RID_FNTNM_TXT_FOUNDRY 9
+#define RID_FNTNM_TXT_FAMILY 10
+#define RID_FNTNM_TXT_WEIGHT 11
+#define RID_FNTNM_TXT_SLANT 12
+#define RID_FNTNM_TXT_SPACING 13
+#define RID_FNTNM_TXT_REGISTRY 14
+#define RID_FNTNM_TXT_ENCODING 15
+#define RID_FNTNM_BTN_OK 16
+#define RID_FNTNM_STYLEWIDTH 17
+#define RID_FNTNM_TXT_STYLEWIDTH 18
+#define RID_FNTNM_BTN_REMOVE 19
+#define RID_FNTNM_LB_FONTS 20
+#define RID_FNTNM_GRP_FONTPROP 21
+#define RID_FNTNM_BTN_MODIFY 22
+#define RID_FNTNM_TXT_ADDSTYLE 24
+#define RID_FNTNM_ADDSTYLE 25
+#define RID_FNTNM_STR_FONTSDIRWRITEFAILED 26
+
+#define RID_TXT_REFETCH 1031
+
+#define RID_BXT_TESTPAGE 1034
+#define RID_BXT_ENVIRONMENT 1035
+
+#define RID_YOU_SURE 1040
+
+#define RID_BUTTERFLY 1047
+
+#define RID_COMMAND_TXT_MODIFY 1049
+#define RID_COMMAND_TXT_ADDENTRY 1050
+#define RID_PA_TXT_NOWRITE 1052
+#define RID_DOUBLEFONTFILE 1053
+#define RID_INVALIDFONTPATH 1054
+#define RID_TESTPAGESAVE 1055
+#define RID_FNTNM_FONTNAME_TXT 1056
+#define RID_FNTNM_NOFONT_TXT 1057
+#define RID_QUERY_REMOVEDRIVER 1058
+#define RID_QUERY_REMOVEPRINTER 1059
+#define RID_QUERY_REMOVEFONTFROMLIST 1060
+#define RID_QUERY_DRIVERUSED 1062
+#define RID_ERR_REMOVEDEFAULTDRIVER 1063
+#define RID_ERR_WRITEFONTSDIR 1064
+
+#define RID_FONTIMPORT_DIALOG 1065
+#define RID_FIMP_BTN_OK 1
+#define RID_FIMP_BTN_CANCEL 2
+#define RID_FIMP_EDT_FROM 3
+#define RID_FIMP_BTN_FROM 4
+#define RID_FIMP_GRP_FROM 5
+#define RID_FIMP_EDT_TO 6
+#define RID_FIMP_BTN_TO 7
+#define RID_FIMP_GRP_TO 8
+#define RID_FIMP_STR_IMPORTOP 9
+#define RID_FIMP_STR_QUERYOVERWRITE 10
+#define RID_FIMP_STR_OVERWRITEALL 11
+#define RID_FIMP_STR_OVERWRITENONE 12
+#define RID_FIMP_STR_NOAFM 13
+#define RID_FIMP_STR_AFMCOPYFAILED 14
+#define RID_FIMP_STR_FONTCOPYFAILED 15
+#define RID_FIMP_STR_NOWRITEABLEFONTSDIR 16
+#define RID_FIMP_STR_NUMBEROFFONTSIMPORTED 17
+
+#define RID_TXT_IMPORTTITLE 1066
+#define RID_TXT_FONTS2IMPORT 1067
+#define RID_TXT_TESTPAGE_MODEL 1068
+#define RID_TXT_TESTPAGE_QUEUE 1069
+#define RID_TXT_TESTPAGE_DATE 1070
+#define RID_TXT_TESTPAGE_TIME 1071
+#define RID_TXT_PRINTERALREADYEXISTS 1072
+#define RID_TXT_PRINTERWITHOUTCOMMAND 1073
+#define RID_TXT_PRINTERADDFAILED 1074
+#define RID_TXT_DRIVERDOESNOTEXIST 1075
+#define RID_TXT_TESTPAGE_COMMENT 1076
+#define RID_TXT_TESTPAGE_NAME 1077
+
+#define RID_AFMERROR_OK 1300
+#define RID_AFMERROR_NO_FONT_NAME 1301
+#define RID_AFMERROR_NO_FULL_NAME 1302
+#define RID_AFMERROR_NO_FAMILY_NAME 1303
+#define RID_AFMERROR_MOVETO_FAILED 1304
+#define RID_AFMERROR_STREAM_READ_FAILED 1305
+#define RID_AFMERROR_STREAM_WRITE_FAILED 1306
+#define RID_AFMERROR_NOT_A_METRIC 1307
+
+#define RID_AFMERROR_BOX_TXT 1350
+
+#define RID_PROGRESS_DLG 1400
+#define RID_PROGRESS_BTN_CANCEL 1
+#define RID_PROGRESS_OPERATION_TXT 2
+#define RID_PROGRESS_PROGRESS_TXT 3
+#define RID_PROGRESS_STATUSBAR 5
+#define RID_PROGRESS_FILENAME_TXT 6
+
+#define RID_OPERATION_FONTINTEGRATE 1402
+#define RID_OPERATION_FONTADD 1403
+#define RID_OPERATION_CONVERTMETRIC 1406
+#define RID_OPERATION_FONTCOLLECT 1407
+#define RID_OPERATION_FONTIMPORT 1408
+
+#define RID_ADD_PRINTER_DIALOG 2000
+#define RID_ADDP_BTN_FINISH 1
+#define RID_ADDP_BTN_CANCEL 2
+#define RID_ADDP_BTN_NEXT 3
+#define RID_ADDP_BTN_PREV 4
+#define RID_ADDP_LINE 5
+
+#define RID_ADDP_PAGE_CHOOSEDEV 2001
+#define RID_ADDP_CHDEV_TXT_OVER 1
+#define RID_ADDP_CHDEV_BTN_PRINTER 2
+#define RID_ADDP_CHDEV_BTN_FAX 3
+#define RID_ADDP_CHDEV_BTN_PDF 4
+#define RID_ADDP_CHDEV_BTN_OLD 5
+
+#define RID_ADDP_PAGE_CHOOSEDRIVER 2002
+#define RID_ADDP_CHDRV_TXT_DRIVER 1
+#define RID_ADDP_CHDRV_BOX_DRIVER 2
+#define RID_ADDP_CHDRV_BTN_ADD 3
+#define RID_ADDP_CHDRV_BTN_REMOVE 4
+#define RID_ADDP_CHDRV_STR_REMOVE 5
+
+#define RID_ADDP_PAGE_NAME 2003
+#define RID_ADDP_NAME_TXT_NAME 1
+#define RID_ADDP_NAME_TXT_FAXNAME 2
+#define RID_ADDP_NAME_TXT_PDFNAME 3
+#define RID_ADDP_NAME_EDT_NAME 4
+#define RID_ADDP_NAME_EDT_FAXNAME 5
+#define RID_ADDP_NAME_EDT_PDFNAME 6
+#define RID_ADDP_NAME_BOX_DEFAULT 7
+#define RID_ADDP_NAME_BOX_FAXSWALLOW 8
+
+#define RID_ADDP_PAGE_COMMAND 2004
+#define RID_ADDP_CMD_TXT_COMMAND 1
+#define RID_ADDP_CMD_BOX_COMMAND 2
+#define RID_ADDP_CMD_BTN_HELP 3
+#define RID_ADDP_CMD_STR_FAXHELP 4
+#define RID_ADDP_CMD_STR_PDFHELP 5
+#define RID_ADDP_CMD_TXT_PDFDIR 6
+#define RID_ADDP_CMD_EDT_PDFDIR 7
+#define RID_ADDP_CMD_BTN_PDFDIR 8
+#define RID_ADDP_CMD_BOX_PDFCOMMAND 9
+
+#define RID_ADDP_PAGE_OLDPRINTERS 2005
+#define RID_ADDP_OLD_TXT_PRINTERS 1
+#define RID_ADDP_OLD_BOX_PRINTERS 2
+#define RID_ADDP_OLD_BTN_REMOVE 3
+#define RID_ADDP_OLD_BTN_RESTORE 4
+
+#define RID_ADDP_PAGE_FAXDRIVER 2006
+#define RID_ADDP_FAXDRV_TXT_DRIVER 1
+#define RID_ADDP_FAXDRV_BTN_DEFAULT 2
+#define RID_ADDP_FAXDRV_BTN_SELECT 3
+
+#define RID_ADDP_PAGE_PDFDRIVER 2007
+#define RID_ADDP_PDFDRV_TXT_DRIVER 1
+#define RID_ADDP_PDFDRV_BTN_DEFAULT 2
+#define RID_ADDP_PDFDRV_BTN_DIST 3
+#define RID_ADDP_PDFDRV_BTN_SELECT 4
+
+#endif
diff --git a/padmin/source/padialog.hxx b/padmin/source/padialog.hxx
new file mode 100644
index 000000000000..32747bf7477a
--- /dev/null
+++ b/padmin/source/padialog.hxx
@@ -0,0 +1,158 @@
+/*************************************************************************
+ *
+ * $RCSfile: padialog.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _PAD_PADIALOG_HXX_
+#define _PAD_PADIALOG_HXX_
+#ifndef __SGI_STL_LIST
+#include <list>
+#endif
+#ifndef _RTL_USTRING
+#include <rtl/ustring>
+#endif
+#ifndef _SV_DIALOG_HXX
+#include <vcl/dialog.hxx>
+#endif
+#ifndef _SV_CONFIG_HXX
+#include <vcl/config.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_FIXED_HXX
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_GROUP_HXX
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_EDIT_HXX
+#include <vcl/edit.hxx>
+#endif
+#ifndef _PAD_HELPER_HXX_
+#include <helper.hxx>
+#endif
+
+// forward declaration
+namespace psp { class PrinterInfoManager; }
+
+namespace padmin {
+
+ class PADialog : public ModalDialog
+ {
+ private:
+ DelListBox m_aDevicesLB;
+ PushButton m_aConfPB;
+ PushButton m_aRenamePB;
+ PushButton m_aStdPB;
+ PushButton m_aRemPB;
+ PushButton m_aTestPagePB;
+ GroupBox m_aGroupBox;
+ FixedText m_aDriverTxt;
+ FixedText m_aDriver;
+ FixedText m_aLocationTxt;
+ FixedText m_aLocation;
+ FixedText m_aCommandTxt;
+ FixedText m_aCommand;
+ FixedText m_aCommentTxt;
+ FixedText m_aComment;
+
+ PushButton m_aAddPB;
+ PushButton m_aFontsPB;
+ PushButton m_aAddFontsPB;
+ CancelButton m_aCancelButton;
+
+ String m_aDefPrt;
+ String m_aRenameStr;
+
+ Printer* m_pPrinter;
+ ::psp::PrinterInfoManager& m_rPIManager;
+ ::std::list< ::rtl::OUString > m_aPrinters;
+
+ DECL_LINK( ClickBtnHdl, PushButton* );
+ DECL_LINK( DoubleClickHdl, ListBox* );
+ DECL_LINK( SelectHdl, ListBox* );
+ DECL_LINK( EndPrintHdl, void* );
+ DECL_LINK( DelPressedHdl, ListBox* );
+
+ PADialog( Window*, BOOL );
+ void Init();
+
+ void UpdateDefPrt();
+ void UpdateText();
+ void UpdateDevice();
+ void AddDevice();
+ void RemDevice();
+ void ConfigureDevice();
+ void RenameDevice();
+ void PrintTestPage();
+
+ String getSelectedDevice();
+ public:
+ ~PADialog();
+
+ static PADialog* Create( Window*, BOOL );
+ };
+
+} // namespace
+
+#endif
diff --git a/padmin/source/padialog.src b/padmin/source/padialog.src
new file mode 100644
index 000000000000..37c59c52ae42
--- /dev/null
+++ b/padmin/source/padialog.src
@@ -0,0 +1,3334 @@
+/*************************************************************************
+ *
+ * $RCSfile: padialog.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56:38 $
+ *
+ * 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 "padialog.hrc"
+
+ModalDialog RID_FONTIMPORT_DIALOG
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 230 , 48 ) ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Text = "Schriften importieren" ;
+ Text [ English ] = "Import fonts" ;
+
+ GroupBox RID_FIMP_GRP_FROM
+ {
+ Pos = MAP_APPFONT( 5, 5 );
+ Size = MAP_APPFONT( 160, 30 );
+ Text = "Quellverzeichnis";
+ Text [ English ] = "Source directory";
+ Text[ english_us ] = "Source directory";
+ Text[ portuguese ] = "Directrio-fonte";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Brondirectory";
+ Text[ french ] = "Rpertoire source";
+ Text[ spanish ] = "Directorio fuente";
+ Text[ italian ] = "Cartella sorgente";
+ Text[ danish ] = "Source directory";
+ Text[ swedish ] = "Kllkatalog";
+ Text[ polish ] = "Katalog rdowy";
+ Text[ portuguese_brazilian ] = "Source directory";
+ Text[ japanese ] = "ިڸ";
+ Text[ korean ] = "ҽ丮";
+ Text[ chinese_simplified ] = "ԴĿ¼";
+ Text[ chinese_traditional ] = "ӷؿ";
+ Text[ turkish ] = "Source directory";
+ Text[ arabic ] = " ";
+ };
+ Edit RID_FIMP_EDT_FROM
+ {
+ Border = TRUE;
+ Pos = MAP_APPFONT( 10, 17 );
+ Size = MAP_APPFONT( 130, 12 );
+ };
+ OKButton RID_FIMP_BTN_OK
+ {
+ DefButton = TRUE;
+ Pos = MAP_APPFONT( 175, 10 );
+ Size = MAP_APPFONT( 50, 14 );
+ };
+ CancelButton RID_FIMP_BTN_CANCEL
+ {
+ Pos = MAP_APPFONT( 175, 29 );
+ Size = MAP_APPFONT( 50, 14 );
+ };
+ PushButton RID_FIMP_BTN_FROM
+ {
+ Pos = MAP_APPFONT( 145, 17 );
+ Size = MAP_APPFONT( 15, 12 );
+ Text = "...";
+ };
+ String RID_FIMP_STR_IMPORTOP
+ {
+ Text = "Importiere Schriften";
+ Text[ English ] = "Importing fonts";
+ Text[ english_us ] = "Importing fonts";
+ Text[ portuguese ] = "Importar tipos de letra";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Lettertypen worden gemporteerd";
+ Text[ french ] = "Import de polices";
+ Text[ spanish ] = "Fuentes importadas";
+ Text[ italian ] = "Importa font";
+ Text[ danish ] = "Importing fonts";
+ Text[ swedish ] = "Importerar teckensnitt";
+ Text[ polish ] = "Importuj czcionki";
+ Text[ portuguese_brazilian ] = "Importing fonts";
+ Text[ japanese ] = "̫Ă߰Ă܂";
+ Text[ korean ] = "۲á";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "Jr";
+ Text[ turkish ] = "Importing fonts";
+ Text[ arabic ] = " ";
+ };
+ String RID_FIMP_STR_QUERYOVERWRITE
+ {
+ Text = "Wollen Sie die Schriftdatei\n %s\n wirklich berschreiben ?";
+ Text[ English ] = "Do you really want to replace this font file?\n %s";
+ Text[ english_us ] = "Do you really want to overwrite this font file?\n %s";
+ Text[ portuguese ] = "Substituir realmente o ficheiro dos\ntipos de letra %s?";
+ Text[ russian ] = " \n %s?";
+ Text[ greek ] = " \n %s ;";
+ Text[ dutch ] = "Wilt u dit lettertypenbestand\n %s\n werkelijk overschrijven?";
+ Text[ french ] = "Voulez-vous vraiment craser\nle fichier de polices\n %s ?";
+ Text[ spanish ] = "Desea realmente sobrescribir los archivos de fuente\n %s?";
+ Text[ italian ] = "Volete davvero soprascrivere\n il file di font\n %s";
+ Text[ danish ] = "Do you really want to replace this font file?\n %s";
+ Text[ swedish ] = "Vill du verkligen skriva ver den hr teckensnittsfilen\n %s?";
+ Text[ polish ] = "Na pewno skasowa plik czcionek?\n %s\nprzez ponowne zapisanie?";
+ Text[ portuguese_brazilian ] = "Do you really want to replace this font file?\n %s";
+ Text[ japanese ] = "̧̫\n %s\n㏑܂B";
+ Text[ korean ] = "۲\n %sðڽϱ";
+ Text[ chinese_simplified ] = "Ҫдļ\n %s";
+ Text[ chinese_traditional ] = "unRoӦrɮ\n %s H";
+ Text[ turkish ] = "Do you really want to replace this font file?\n %s";
+ Text[ arabic ] = " \n \n %s";
+ };
+ String RID_FIMP_STR_OVERWRITEALL
+ {
+ Text = "Alle";
+ Text [ English ] = "All";
+ Text[ english_us ] = "All";
+ Text[ portuguese ] = "Todos";
+ Text[ russian ] = "";
+ Text[ greek ] = "";
+ Text[ dutch ] = "Alle";
+ Text[ french ] = "Toutes";
+ Text[ spanish ] = "Todos";
+ Text[ italian ] = "Tutti";
+ Text[ danish ] = "All";
+ Text[ swedish ] = "Alla";
+ Text[ polish ] = "Wszystkie";
+ Text[ portuguese_brazilian ] = "All";
+ Text[ japanese ] = "ׂ";
+ Text[ korean ] = "l";
+ Text[ chinese_simplified ] = "ȫ";
+ Text[ chinese_traditional ] = "";
+ Text[ turkish ] = "All";
+ Text[ arabic ] = "";
+ };
+ String RID_FIMP_STR_OVERWRITENONE
+ {
+ Text = "Keine";
+ Text [ English ] = "None";
+ Text[ english_us ] = "None";
+ Text[ portuguese ] = "Nenhum";
+ Text[ russian ] = "";
+ Text[ greek ] = "";
+ Text[ dutch ] = "Geen";
+ Text[ french ] = "Aucun(e)";
+ Text[ spanish ] = "Ninguno";
+ Text[ italian ] = "Nessuno";
+ Text[ danish ] = "None";
+ Text[ swedish ] = "Inga";
+ Text[ polish ] = "Brak";
+ Text[ portuguese_brazilian ] = "None";
+ Text[ japanese ] = "Ȃ";
+ Text[ korean ] = "";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "L";
+ Text[ turkish ] = "None";
+ Text[ arabic ] = "";
+ };
+
+ String RID_FIMP_STR_NOAFM
+ {
+ Text = "Zu der Sriftdatei\n%s\nwurde keine Formatdatei ( mit Endung .afm ) gefunden, weshalb sie nicht installiert werden kann. Formatdateien knnen z.B. mit ghostscript erstellt werden und mssen im gleichen Verzeichnis wie die Schriftdateien oder in dessen Unterverzeichnis afm stehen." ;
+ Text [ English ] = "Noo format file ( with .afm extension ) for font\n%s\n was found, hence the font will not be installed. Format files can be made e.g. with ghostscript and have to reside in the same directory as the font file or in its afm subdir ectory." ;
+ Text[ english_us ] = "A format file (with an .afm extension) has not been found for the font\n%s\ntherefore, the font cannot be installed. Format files can be created with ghostscript, for example, and have to be located in the same directory as the font files or its afm subdirectory.";
+ Text[ portuguese ] = "Foi impossvel encontrar o ficheiro de formato (com extenso .afm) para o ficheiro do tipo de letra\n%s\n. Por esta razo no foi possvel instal-lo. Os ficheiros de formato podem ser criados com ghostscript (por exemplo), devendo ser guardados no directrio contendo os ficheiros dos tipos de letra ou num dos respectivos subdirectrios afm.";
+ Text[ russian ] = " \n%s\n ( .afm) . . , , ghostscript , , afm.";
+ Text[ greek ] = " \n%s\n ( .afm ). .. ghostscript 'afm'.";
+ Text[ dutch ] = "Lettertypenbestand\n%s\n kan niet worden genstalleerd daar geen bijbehorend formaatbestand (met extensie .afm) werd gevonden. Formaatbestanden kunnen worden gemaakt met bijv. ghostscript en moeten worden opgeslagen in de directory waarin de lettertypenbestanden staan of in een subdirectory daarvan.";
+ Text[ french ] = "Aucun fichier de format (d'extension .afm) n'a t dtect pour le fichier de police\n%s\n ; la police ne peut donc pas tre installe. Les fichiers de format peuvent par ex. tre cr avec ghostscript et doivent tre placs dans le mme rpertoire que celui des fichiers de police ou dans le sous-rpertoire afm.";
+ Text[ spanish ] = "No se encontr ningn archivo de formato (terminacin .afm) para el archivo de fuente\n%s\n por lo que no se puede instalar la fuente. Los archivos de formato se pueden crear p.ej. con ghostscript y deben estar en el mismo directorio que los archivos de fuentes o en su subdirectorio afm.";
+ Text[ italian ] = "Impossibile installare il font\n%s\nperch non stato trovato il rispettivo file di formato (con estensione .afm). I file di formato si possono creare ad esempio con ghostscript e si devono trovare nella stessa cartella dei font oppure nella rispettiva sottocartella afm.";
+ Text[ danish ] = "Noo format file ( with .afm extension ) for font\n%s\n was found, hence the font will not be installed. Format files can be made e.g. with ghostscript and have to reside in the same directory as the font file or in its afm subdir ectory.";
+ Text[ swedish ] = "Det hittades ingen formatfil (med filtillgget .afm) till teckensnittsfilen\n%s\n, varfr den inte kan installeras. Formatfiler kan t.ex. skapas med ghostscript och mste finnas i samma katalog som teckensnittsfilerna eller i katalogens underordnade kataloger.";
+ Text[ polish ] = "Czcionka\n%s\nnie zostanie zainstalowana, poniewa nie znaleziono dla niej adnego pliku formatu (z kocwk .afm ). Pliki formatu mona utworzy n.p. za pomoc programu ghostscript. Musz si one znajdowa w tym samym katalogu, co pliki czcionki lub w jego katalogu podrzdnym afm.";
+ Text[ portuguese_brazilian ] = "Noo format file ( with .afm extension ) for font\n%s\n was found, hence the font will not be installed. Format files can be made e.g. with ghostscript and have to reside in the same directory as the font file or in its afm subdir ectory.";
+ Text[ japanese ] = "̧̫\n%s\ņ̏(.afm gq)‚Ȃ̂ŁAݽİقł܂łB̧ق́Aghostscript Ȃǂō쐬ł܂A̍ۂɏ̧قƓިڸ؂A邢̻͂ިڸ؂ afm ɂ邱ƂKvłB";
+ Text[ korean ] = "۲\n%s\n ѡ (Ȯ .afm )ã߽ϴ, 󼭡ġҡϴ. 顡ƮũƮ磬۲ϰѡ丮Ǵ¡̰ǡ丮־մϴ.";
+ Text[ chinese_simplified ] = "ûҵ\n%s\nĸʽļ(չ .afm )޷װ塣ʽļ ghostscript ɵģͬĿ¼Ŀ¼ afm ֮С";
+ Text[ chinese_traditional ] = "Sr\n%s\n榡ɮ(ɦW .afm )A]Lkw˳oӦrC榡ɮ׬O ghostscript ͦA}sbۦPrؿΨlؿ afm C";
+ Text[ turkish ] = "Noo format file ( with .afm extension ) for font\n%s\n was found, hence the font will not be installed. Format files can be made e.g. with ghostscript and have to reside in the same directory as the font file or in its afm subdir ectory.";
+ Text[ arabic ] = " ( .afm) \n%s\n . ޡ ghostscript ء afm . ";
+ };
+ String RID_FIMP_STR_AFMCOPYFAILED
+ {
+ Text = "Die Metrikdatei zur Schriftdatei\n %s\nkonnte nicht kopiert werden. Die Schrift wird nicht installiert.";
+ Text [ English ] = "The metric file for font file\n %s\ncould not be copied. The font wille not be installed.";
+ Text[ english_us ] = "The metric file for the font file\n %s\ncould not be copied. The font will not be installed.";
+ Text[ portuguese ] = "Foi impossvel copiar o ficheiro mtrico para o ficheiro do tipo de letra\n...%s\n. O tipo de letra no ser instalado.";
+ Text[ russian ] = " \n %s\n . .";
+ Text[ greek ] = " \n %s\n. .";
+ Text[ dutch ] = "Het lettertype werd niet genstalleerd daar het metrische bestand voor lettertypenbestand\n %s\nniet kon worden gekopieerd. ";
+ Text[ french ] = "Copie du fichier mtrique pour le fichier\n %s\nimpossible, donc impossibilit d'installer la police !";
+ Text[ spanish ] = "No se pudo copiar el archivo de mtrica correspondiente al de fuente\n %s\n, por lo que no se instalar la fuente.";
+ Text[ italian ] = "Impossibile copiare il file metrico per il file dei font\n...%s\n. Il font non stato installato.";
+ Text[ danish ] = "The metric file for font file\n %s\ncould not be copied. The font wille not be installed.";
+ Text[ swedish ] = "Det gick inte att kopiera metrikfilen till teckensnittsfilen\n %s\n. Teckensnittet kommer inte att installeras.";
+ Text[ polish ] = "Skopiowanie pliku metryki nalecego do pliku czcionki\n %s\nnie byo moliwe. Czcionka nie zostanie zainstalowana.";
+ Text[ portuguese_brazilian ] = "The metric file for font file\n %s\ncould not be copied. The font wille not be installed.";
+ Text[ japanese ] = "̧̫\n %s\nد̧ق́A߰ł܂łB̫ĂͲݽİق܂B";
+ Text[ korean ] = " ۲\n %s\nǡƮ߽ϴ. ۲ġʽϴ.";
+ Text[ chinese_simplified ] = "޷ļ\n %s\n޷װ塣";
+ Text[ chinese_traditional ] = "Lk`sr׶qɮ\n %s\nCLkw˳oӦrC";
+ Text[ turkish ] = "The metric file for font file\n %s\ncould not be copied. The font wille not be installed.";
+ Text[ arabic ] = " \n %s\n .";
+ };
+ String RID_FIMP_STR_FONTCOPYFAILED
+ {
+ Text = "Die Schriftdatei\n %s\nkonnte nicht kopiert werden. Die Schrift wird nicht installiert.";
+ Text [ English ] = "The font file\n %s\ncould not be copied. The font wille not be installed.";
+ Text[ english_us ] = "The font file\n %s\ncould not be copied. The font will not be installed.";
+ Text[ portuguese ] = "Foi impossvel copiar o ficheiro dos tipos de letra\n %s\n. O tipo de letra no ser instalado.";
+ Text[ russian ] = " \n %s\n. .";
+ Text[ greek ] = " \n %s\n .";
+ Text[ dutch ] = "Het lettertype wordt niet genstalleerd daar het lettertypenbestand \n %s\n niet kon worden gekopieerd.";
+ Text[ french ] = "Copie du fichier de police\n %s\n impossible, donc impossibilit d'installer la police !";
+ Text[ spanish ] = "No se pudo copiar el archivo de fuente\n %s\n, por lo que no se instalar la fuente.";
+ Text[ italian ] = "Impossibile compiare il file di font\n %s\n. Il font non stato installato.";
+ Text[ danish ] = "The font file\n %s\ncould not be copied. The font wille not be installed.";
+ Text[ swedish ] = "Det gick inte att kopiera teckensnittsfilen\n %s\n. Teckensnittet installeras inte.";
+ Text[ polish ] = "Skopiowanie pliku czcionki\n %s\nnie byo moliwe. Czcionka nie zostanie zainstalowana.";
+ Text[ portuguese_brazilian ] = "The font file\n %s\ncould not be copied. The font wille not be installed.";
+ Text[ japanese ] = "̧̫\n %s\n߰ł܂łB̫ĂͲݽİقł܂B";
+ Text[ korean ] = "۲\n %s\n߽ϴ. ۲ġʽϴ.";
+ Text[ chinese_simplified ] = "޷ļ\n %s\n޷װ塣";
+ Text[ chinese_traditional ] = "Lk`srɮ\n %s\nCLkw˳oӦrC";
+ Text[ turkish ] = "The font file\n %s\ncould not be copied. The font wille not be installed.";
+ Text[ arabic ] = " \n \n%s .";
+ };
+ String RID_FIMP_STR_NOWRITEABLEFONTSDIR
+ {
+ Text = "Es wurde kein Verzeichnis im Fontpath gefunden, welches eine screibbare fonts.dir Datei enthlt. Es knnen keine Schriften installiert werden.";
+ Text[ English ] = "In the fontpath there is no directory containing a writeable fonts.dir file. Therefore no fonts can be installed.";
+ Text[ english_us ] = "A directory containing a writable fonts.dir file is not located in the Fontpath. Therefore, fonts cannot be installed.";
+ Text[ portuguese ] = "Foi impossvel encontrar o directrio no \"fontpath\", contendo um ficheiro de escrita fonts.dir. impossvel instalar os tipos de letra.";
+ Text[ russian ] = ", fonts.dir, , Fontpath . .";
+ Text[ greek ] = " Fontpath, fonts.dir. .";
+ Text[ dutch ] = "Er konden geen lettertypen worden genstalleerd daar er in het pad voor de lettertypen geen directory werd aangetroffen met een beschrijfbaar bestand fonts.dir.";
+ Text[ french ] = "Aucun rpertoire contenant un fichier d'criture fonts.dir ne se trouve dans le chemin de police (fontpath). Impossible d'installer des polices !";
+ Text[ spanish ] = "No se encontr ningn directorio con un archivo fonts.dir escribible. Por ello no se puede instalar ninguna fuente.";
+ Text[ italian ] = "Impossibile trovare in Fontpath una cartella con un file font.dir scrivibile. Non possibile installare i font.";
+ Text[ danish ] = "In the fontpath there is no directory containing a writeable fonts.dir file. Therefore no fonts can be installed.";
+ Text[ swedish ] = "I Fontpath finns det ingen katalog som innehller en skrivbar fonts.dir-fil. Det gr inte att skapa ngra teckensnitt.";
+ Text[ polish ] = "Instalacja czionek nie jest moliwa, poniewa nie znaleziono na ciece fontw (fontpath) adnego katalogu z plikiem fonts.dir, ktry mona by byo zapisa.";
+ Text[ portuguese_brazilian ] = "In the fontpath there is no directory containing a writeable fonts.dir file. Therefore no fonts can be installed.";
+ Text[ japanese ] = "݉”\\ fonts.dir ̧ق܂ިڸ؂́A̫߽Ɍ‚܂łB̫ĂͲݽİقł܂B";
+ Text[ korean ] = " ۲ðοִ¡۲ .dir ϰִ¡丮ã߽ϴ٣۲ġɼϴ.";
+ Text[ chinese_simplified ] = "·֮ûЧĿɶд fonts.dir ļ޷װκ塣";
+ Text[ chinese_traditional ] = "r|SĪiŪg fonts.dir ɮסC]Lkw˥rC";
+ Text[ turkish ] = "In the fontpath there is no directory containing a writeable fonts.dir file. Therefore no fonts can be installed.";
+ Text[ arabic ] = " ء fonts.dir . .";
+ };
+ String RID_FIMP_STR_NUMBEROFFONTSIMPORTED
+ {
+ Text = "Es wurden %d neue Schriften installiert.";
+ Text [ English ] = "%d new fonts were installed.";
+ Text[ english_us ] = "%d new fonts were installed.";
+ Text[ portuguese ] = "Instalados %d novos tipos de letra.";
+ Text[ russian ] = " %d ().";
+ Text[ greek ] = " %d .";
+ Text[ dutch ] = "Er werden %d nieuwe lettertypen genstalleerd.";
+ Text[ french ] = "%d nouvelles polices installes.";
+ Text[ spanish ] = "Se instalaron %d nuevas fuentes.";
+ Text[ italian ] = "Sono stati installati %d nuovi font.";
+ Text[ danish ] = "%d new fonts were installed.";
+ Text[ swedish ] = "%d nya teckensnitt har installerats.";
+ Text[ polish ] = "Zainstalowano %d nowych czionek.";
+ Text[ portuguese_brazilian ] = "%d new fonts were installed.";
+ Text[ japanese ] = "%d V̫Ăݽİق܂B";
+ Text[ korean ] = "%d ۲̡ġǾϴ.";
+ Text[ chinese_simplified ] = "Ѿװ %d µ塣";
+ Text[ chinese_traditional ] = "wgw˷sr %d C";
+ Text[ turkish ] = "%d new fonts were installed.";
+ Text[ arabic ] = " %d () ().";
+ };
+ Text[ english_us ] = "Import Fonts";
+ Text[ portuguese ] = "Importar tipos de letra";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Lettertypen importeren";
+ Text[ french ] = "Import de polices";
+ Text[ spanish ] = "Importar fuentes";
+ Text[ italian ] = "Importa font";
+ Text[ danish ] = "Import fonts";
+ Text[ swedish ] = "Importera teckensnitt";
+ Text[ polish ] = "Importuj czcionki";
+ Text[ portuguese_brazilian ] = "Import fonts";
+ Text[ japanese ] = "̫Ă̲߰";
+ Text[ korean ] = "۲á";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "Jr";
+ Text[ turkish ] = "Import fonts";
+ Text[ arabic ] = " ";
+};
+
+ModalDialog RID_PADIALOG
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Pos = MAP_APPFONT ( 1 , 1 ) ;
+ Size = MAP_APPFONT ( 280 , 170 ) ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Text = "Druckerinstallation" ;
+ Text [ English ] = "Printer installation" ;
+
+ CancelButton RID_PA_BTN_CANCEL
+ {
+ Pos = MAP_APPFONT( 225, 150 );
+ Size = MAP_APPFONT( 50, 15 );
+ Text = "~Schlieen";
+ Text [ english ] = "~Close";
+ Text[ english_us ] = "~Close";
+ Text[ portuguese ] = "~Fechar";
+ Text[ russian ] = "~";
+ Text[ greek ] = "~";
+ Text[ dutch ] = "~Sluiten";
+ Text[ french ] = "~Fermer";
+ Text[ spanish ] = "~Cerrar";
+ Text[ italian ] = "C~hiudi";
+ Text[ danish ] = "~Close";
+ Text[ swedish ] = "~Stng";
+ Text[ polish ] = "~Zamknij";
+ Text[ portuguese_brazilian ] = "~Close";
+ Text[ japanese ] = "‚(~C)";
+ Text[ korean ] = "ݱ(~C)";
+ Text[ chinese_simplified ] = "ر(~C)";
+ Text[ chinese_traditional ] = "(~C)";
+ Text[ turkish ] = "~Close";
+ Text[ arabic ] = "";
+ };
+
+ GroupBox RID_PA_GROUP_INSTALL
+ {
+ Pos = MAP_APPFONT( 5, 5 );
+ Size = MAP_APPFONT( 270, 140 );
+ Text = "Installierte Drucker";
+ Text [ english ] = "Installed printers";
+ Text[ english_us ] = "Installed printers";
+ Text[ portuguese ] = "Impressoras instaladas";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Genstalleerde printers";
+ Text[ french ] = "Imprimantes installes";
+ Text[ spanish ] = "Impresoras instaladas";
+ Text[ italian ] = "Stampanti configurate";
+ Text[ danish ] = "Configured printers";
+ Text[ swedish ] = "Installerade skrivare";
+ Text[ polish ] = "Zainstalowane drukarki";
+ Text[ portuguese_brazilian ] = "Configured printers";
+ Text[ japanese ] = "ݽİقꂽ";
+ Text[ korean ] = "ġȡ";
+ Text[ chinese_simplified ] = "ѾõĴӡ";
+ Text[ chinese_traditional ] = "wg]mL";
+ Text[ turkish ] = "Configured printers";
+ Text[ arabic ] = " ";
+ };
+ ListBox RID_PA_LB_DEV
+ {
+ Pos = MAP_APPFONT( 10, 15 );
+ Size = MAP_APPFONT( 200, 80 );
+ Border = TRUE;
+ Sort = TRUE;
+ };
+ FixedText RID_PA_TXT_COMMAND
+ {
+ Pos = MAP_APPFONT( 10, 100 );
+ Size = MAP_APPFONT( 60, 8 );
+ Text = "Kommando :";
+ Text [english] = "Command :";
+ Text[ english_us ] = "Command :";
+ Text[ portuguese ] = "Command :";
+ Text[ russian ] = " :";
+ Text[ greek ] = "Command :";
+ Text[ dutch ] = "Commando :";
+ Text[ french ] = "Commande :";
+ Text[ spanish ] = "Comando :";
+ Text[ italian ] = "Comando :";
+ Text[ danish ] = "Command :";
+ Text[ swedish ] = "Kommando :";
+ Text[ polish ] = "Polecenie :";
+ Text[ portuguese_brazilian ] = "Command :";
+ Text[ japanese ] = ":";
+ Text[ korean ] = "Command :";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "OG";
+ Text[ turkish ] = "Command :";
+ Text[ arabic ] = " :";
+ };
+ FixedText RID_PA_TXT_COMMAND_STRING
+ {
+ Pos = MAP_APPFONT( 75, 100 );
+ Size = MAP_APPFONT( 135, 8 );
+ };
+ FixedText RID_PA_TXT_DRIVER
+ {
+ Pos = MAP_APPFONT( 10, 110 );
+ Size = MAP_APPFONT( 60, 8 );
+ Text = "Treiber :";
+ Text [english] = "Driver :";
+ Text[ english_us ] = "Driver :";
+ Text[ portuguese ] = "Driver :";
+ Text[ russian ] = " :";
+ Text[ greek ] = "Driver :";
+ Text[ dutch ] = "Driver :";
+ Text[ french ] = "Pilote :";
+ Text[ spanish ] = "Controlador :";
+ Text[ italian ] = "Driver :";
+ Text[ danish ] = "Driver :";
+ Text[ swedish ] = "Drivrutin :";
+ Text[ polish ] = "Sterownik :";
+ Text[ portuguese_brazilian ] = "Driver :";
+ Text[ japanese ] = "ײ:";
+ Text[ korean ] = "Driver :";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "Xʵ{G";
+ Text[ turkish ] = "Driver :";
+ Text[ arabic ] = " :";
+ };
+ FixedText RID_PA_TXT_DRIVER_STRING
+ {
+ Pos = MAP_APPFONT( 75, 110 );
+ Size = MAP_APPFONT( 135, 8 );
+ };
+ FixedText RID_PA_TXT_LOCATION
+ {
+ Pos = MAP_APPFONT( 10, 120 );
+ Size = MAP_APPFONT( 60, 8 );
+ Text = "Ort :";
+ Text [english] = "Location :";
+ Text[ english_us ] = "Location :";
+ Text[ portuguese ] = "Location :";
+ Text[ russian ] = " :";
+ Text[ greek ] = "Location :";
+ Text[ dutch ] = "Locatie :";
+ Text[ french ] = "Emplacement :";
+ Text[ spanish ] = "Ubicacin :";
+ Text[ italian ] = "Posizione :";
+ Text[ danish ] = "Location :";
+ Text[ swedish ] = "Plats :";
+ Text[ polish ] = "Miejsce :";
+ Text[ portuguese_brazilian ] = "Location :";
+ Text[ japanese ] = "ꏊ:";
+ Text[ korean ] = "Location :";
+ Text[ chinese_simplified ] = "λã";
+ Text[ chinese_traditional ] = "mG";
+ Text[ turkish ] = "Location :";
+ Text[ arabic ] = " :";
+ };
+ FixedText RID_PA_TXT_LOCATION_STRING
+ {
+ Pos = MAP_APPFONT( 75, 120 );
+ Size = MAP_APPFONT( 135, 8 );
+ };
+ FixedText RID_PA_TXT_COMMENT
+ {
+ Pos = MAP_APPFONT( 10, 130 );
+ Size = MAP_APPFONT( 60, 8 );
+ Text = "Kommentar :";
+ Text [english] = "Comment :";
+ Text[ english_us ] = "Comment :";
+ Text[ portuguese ] = "Comment :";
+ Text[ russian ] = " :";
+ Text[ greek ] = "Comment :";
+ Text[ dutch ] = "Commentaar :";
+ Text[ french ] = "Commentaire :";
+ Text[ spanish ] = "Comentario :";
+ Text[ italian ] = "Commento :";
+ Text[ danish ] = "Comment :";
+ Text[ swedish ] = "Kommentar :";
+ Text[ polish ] = "Komentarz :";
+ Text[ portuguese_brazilian ] = "Comment :";
+ Text[ japanese ] = ":";
+ Text[ korean ] = "Comment :";
+ Text[ chinese_simplified ] = "ע⣺";
+ Text[ chinese_traditional ] = "`ѡG";
+ Text[ turkish ] = "Comment :";
+ Text[ arabic ] = " :";
+ };
+ FixedText RID_PA_TXT_COMMENT_STRING
+ {
+ Pos = MAP_APPFONT( 75, 130 );
+ Size = MAP_APPFONT( 135, 8 );
+ };
+ PushButton RID_PA_BTN_CONF
+ {
+ Pos = MAP_APPFONT( 215, 15 );
+ Size = MAP_APPFONT( 55, 15 );
+ Text = "~Eigenschaften...";
+ Text [english] = "~Properties...";
+ Text[ english_us ] = "Properties...";
+ Text[ portuguese ] = "~Configurar...";
+ Text[ russian ] = "~...";
+ Text[ greek ] = "~...";
+ Text[ dutch ] = "Co~nfigureren...";
+ Text[ french ] = "~Proprits...";
+ Text[ spanish ] = "P~ropiedades...";
+ Text[ italian ] = "~Propriet...";
+ Text[ danish ] = "Co~nfigure...";
+ Text[ swedish ] = "~Egenskaper...";
+ Text[ polish ] = "~Waciwoci...";
+ Text[ portuguese_brazilian ] = "Co~nfigure...";
+ Text[ japanese ] = "è...";
+ Text[ korean ] = "(~N)...";
+ Text[ chinese_simplified ] = "...";
+ Text[ chinese_traditional ] = "ݩ...";
+ Text[ turkish ] = "Co~nfigure...";
+ Text[ arabic ] = "...";
+ };
+ PushButton RID_PA_BTN_RENAME
+ {
+ Pos = MAP_APPFONT( 215, 35 );
+ Size = MAP_APPFONT( 55, 15 );
+ Text = "~Umbenennen...";
+ Text [english] = "~Rename...";
+ Text[ english_us ] = "R~ename...";
+ Text[ portuguese ] = "~Mudar nome...";
+ Text[ russian ] = "...";
+ Text[ greek ] = "...";
+ Text[ dutch ] = "N~aam wijzigen...";
+ Text[ french ] = "R~enommer...";
+ Text[ spanish ] = "Cambiar nomb~re...";
+ Text[ italian ] = "Rinomina...";
+ Text[ danish ] = "R~ename...";
+ Text[ swedish ] = "B~yt namn...";
+ Text[ polish ] = "Zmie nazw...";
+ Text[ portuguese_brazilian ] = "R~ename...";
+ Text[ japanese ] = "O̕ύX(~E)...";
+ Text[ korean ] = "̸(~E)";
+ Text[ chinese_simplified ] = "(~E)...";
+ Text[ chinese_traditional ] = "RW(~E)...";
+ Text[ turkish ] = "R~ename...";
+ Text[ arabic ] = " ...";
+ };
+ PushButton RID_PA_BTN_STD
+ {
+ Pos = MAP_APPFONT( 215, 55 );
+ Size = MAP_APPFONT( 55, 15 );
+ Text = "St~andard";
+ Text [english] = "~Default";
+ Text[ language_user1 ] = "EM30.3.01 this refers to the Default Printer";
+ Text[ english_us ] = "Default";
+ Text[ portuguese ] = "~Definir como impressora padro";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "~Standaard";
+ Text[ french ] = "Par ~dfaut";
+ Text[ spanish ] = "~Estndar";
+ Text[ italian ] = "Imposta come stampante standard";
+ Text[ danish ] = "~Set as default Printer";
+ Text[ swedish ] = "St~andard";
+ Text[ polish ] = "Drukarka domylna";
+ Text[ portuguese_brazilian ] = "~Set as default Printer";
+ Text[ japanese ] = "W";
+ Text[ korean ] = "⺻ͷμ(~S)";
+ Text[ chinese_simplified ] = "ĬϵĴӡ";
+ Text[ chinese_traditional ] = "q{L";
+ Text[ turkish ] = "~Set as default Printer";
+ Text[ arabic ] = "";
+ };
+ PushButton RID_PA_BTN_DEL
+ {
+ Pos = MAP_APPFONT( 215, 75 );
+ Size = MAP_APPFONT( 55, 15 );
+ Text = "E~ntfernen...";
+ Text [english] = "~Remove...";
+ Text[ english_us ] = "Remove...";
+ Text[ portuguese ] = "~Remover...";
+ Text[ russian ] = "~...";
+ Text[ greek ] = "...";
+ Text[ dutch ] = "~Verwijderen...";
+ Text[ french ] = "~Supprimer...";
+ Text[ spanish ] = "~Eliminar...";
+ Text[ italian ] = "~Rimuovi...";
+ Text[ danish ] = "~Remove...";
+ Text[ swedish ] = "~Ta bort...";
+ Text[ polish ] = "Usu...";
+ Text[ portuguese_brazilian ] = "~Remove...";
+ Text[ japanese ] = "폜...";
+ Text[ korean ] = "(~R)";
+ Text[ chinese_simplified ] = "Ƴ...";
+ Text[ chinese_traditional ] = "...";
+ Text[ turkish ] = "~Remove...";
+ Text[ arabic ] = "...";
+ };
+ PushButton RID_PA_TESTPAGE
+ {
+ Pos = MAP_APPFONT( 215, 95 );
+ Size = MAP_APPFONT( 55, 15 );
+ Text = "~Testseite";
+ Text [english] = "~Test page";
+ Text[ english_us ] = "Test ~Page";
+ Text[ portuguese ] = "Pgi~na-teste";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "test ~pagina";
+ Text[ french ] = "Page de ~test";
+ Text[ spanish ] = "Pgina de prue~ba";
+ Text[ italian ] = "Pagina di prova";
+ Text[ danish ] = "test ~page";
+ Text[ swedish ] = "~Testsida";
+ Text[ polish ] = "Strona prbna";
+ Text[ portuguese_brazilian ] = "test ~page";
+ Text[ japanese ] = "ý߰(~P)";
+ Text[ korean ] = "׽Ʈ(~P)";
+ Text[ chinese_simplified ] = "ӡ(~P)";
+ Text[ chinese_traditional ] = "զCL(~P)";
+ Text[ turkish ] = "test ~page";
+ Text[ arabic ] = " ";
+ };
+
+ PushButton RID_PA_BTN_FONTS
+ {
+ Pos = MAP_APPFONT( 70, 150 );
+ Size = MAP_APPFONT( 50, 15 );
+ Text = "S~chriften...";
+ Text [english] = "~Fonts...";
+ Text[ english_us ] = "Fon~ts...";
+ Text[ portuguese ] = "Adi~cionar\ntipos de letra...";
+ Text[ russian ] = "...";
+ Text[ greek ] = "~\n...";
+ Text[ dutch ] = "~Lettertypen...";
+ Text[ french ] = "~Polices...";
+ Text[ spanish ] = "Fue~ntes...";
+ Text[ italian ] = "Font...";
+ Text[ danish ] = "Add\nfon~ts..";
+ Text[ swedish ] = "Te~ckensnitt..";
+ Text[ polish ] = "Czcionki...";
+ Text[ portuguese_brazilian ] = "Add\nfon~ts..";
+ Text[ japanese ] = "̫...";
+ Text[ korean ] = "۲á߰(~T)";
+ Text[ chinese_simplified ] = "...";
+ Text[ chinese_traditional ] = "r...";
+ Text[ turkish ] = "Add\nfon~ts..";
+ Text[ arabic ] = "...";
+ };
+ PushButton RID_PA_BTN_ADDFONTS
+ {
+ Pos = MAP_APPFONT( 125, 150 );
+ Size = MAP_APPFONT( 70, 15 );
+ Text = "Sc~hriftimport...";
+ Text [english] = "~Import fonts...";
+ Text[ english_us ] = "~Import Fonts...";
+ Text[ portuguese ] = "~Import fonts...";
+ Text[ russian ] = "~ ...";
+ Text[ greek ] = "~Import fonts...";
+ Text[ dutch ] = "~Import lettertypen...";
+ Text[ french ] = "~Import de polices...";
+ Text[ spanish ] = "~Importar fuentes...";
+ Text[ italian ] = "~Importa fonts...";
+ Text[ danish ] = "~Import fonts...";
+ Text[ swedish ] = "~Import av teckensnitt...";
+ Text[ polish ] = "Import czcionek...";
+ Text[ portuguese_brazilian ] = "~Import fonts...";
+ Text[ japanese ] = "̫Ă̲߰...";
+ Text[ korean ] = "~Import fonts...";
+ Text[ chinese_simplified ] = "...";
+ Text[ chinese_traditional ] = "פJr...";
+ Text[ turkish ] = "~Import fonts...";
+ Text[ arabic ] = " ...";
+ };
+ PushButton RID_PA_BTN_ADD
+ {
+ Pos = MAP_APPFONT( 5, 150 );
+ Size = MAP_APPFONT( 60, 15 );
+ Text = "~Neuer Drucker...";
+ Text [english] = "~Add printer...";
+ Text[ english_us ] = "New Printer...";
+ Text[ portuguese ] = "~Adicionar nova impressora";
+ Text[ russian ] = "~ ...";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "~Nieuwe printer...";
+ Text[ french ] = "~Nouvelle imprimante";
+ Text[ spanish ] = "~Nueva impresora";
+ Text[ italian ] = "~Nuova stampante...";
+ Text[ danish ] = "~Add new printer";
+ Text[ swedish ] = "~Ny skrivare";
+ Text[ polish ] = "Nowa drukarka...";
+ Text[ portuguese_brazilian ] = "~Add new printer";
+ Text[ japanese ] = "V...";
+ Text[ korean ] = "ͷμ߰(~A)";
+ Text[ chinese_simplified ] = "ӡ...";
+ Text[ chinese_traditional ] = "sWL...";
+ Text[ turkish ] = "~Add new printer";
+ Text[ arabic ] = " ...";
+ };
+
+ String RID_PA_STR_DEFPRT
+ {
+ Text = "Standarddrucker";
+ Text [english] = "default printer";
+ Text[ english_us ] = "Default printer";
+ Text[ portuguese ] = "default printer";
+ Text[ russian ] = " ";
+ Text[ greek ] = "default printer";
+ Text[ dutch ] = "Standaardprinter";
+ Text[ french ] = "Imprimante par dfaut";
+ Text[ spanish ] = "Impresora estndar";
+ Text[ italian ] = "Stampante predefinta";
+ Text[ danish ] = "default printer";
+ Text[ swedish ] = "Standardskrivare";
+ Text[ polish ] = "Drukarka domylna";
+ Text[ portuguese_brazilian ] = "default printer";
+ Text[ japanese ] = "W";
+ Text[ korean ] = "default printer";
+ Text[ chinese_simplified ] = "ĬϵĴӡ";
+ Text[ chinese_traditional ] = "q{L";
+ Text[ turkish ] = "default printer";
+ Text[ arabic ] = " ";
+ };
+ String RID_PA_STR_RENAME
+ {
+ Text = "Umbenennen";
+ Text [english] = "Rename";
+ Text[ english_us ] = "Rename";
+ Text[ portuguese ] = "Rename";
+ Text[ russian ] = "";
+ Text[ greek ] = "Rename";
+ Text[ dutch ] = "Naam wijzigen";
+ Text[ french ] = "Renommer";
+ Text[ spanish ] = "Cambiar nombre";
+ Text[ italian ] = "Rinomina";
+ Text[ danish ] = "Rename";
+ Text[ swedish ] = "Byt namn";
+ Text[ polish ] = "Rename";
+ Text[ portuguese_brazilian ] = "Rename";
+ Text[ japanese ] = "O̕ύX";
+ Text[ korean ] = "Rename";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "sRW";
+ Text[ turkish ] = "Rename";
+ Text[ arabic ] = " ";
+ };
+ Text[ english_us ] = "Printer Installation";
+ Text[ portuguese ] = "Instalao de impressora";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Printerinstallatie";
+ Text[ french ] = "Installation de l'imprimante";
+ Text[ spanish ] = "Instalacin de impresora";
+ Text[ italian ] = "Installazione stampante";
+ Text[ danish ] = "Printer installation";
+ Text[ swedish ] = "Skrivarinstallation";
+ Text[ polish ] = "Instalacja drukarki";
+ Text[ portuguese_brazilian ] = "Printer installation";
+ Text[ japanese ] = "̲ݽİ";
+ Text[ korean ] = "͡ġ";
+ Text[ chinese_simplified ] = "װӡ";
+ Text[ chinese_traditional ] = "w˦L";
+ Text[ turkish ] = "Printer installation";
+ Text[ arabic ] = " ";
+};
+
+ModalDialog RID_STRINGQUERYDLG
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Pos = MAP_APPFONT ( 10 , 10 ) ;
+ Size = MAP_APPFONT ( 200 , 46 ) ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ FixedText RID_STRQRY_TXT_RENAME
+ {
+ Pos = MAP_APPFONT ( 6 , 6 ) ;
+ Size = MAP_APPFONT ( 130 , 16 ) ;
+ };
+ Edit RID_STRQRY_EDT_NEWNAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 24 ) ;
+ Size = MAP_APPFONT ( 130 , 14 ) ;
+ };
+ OKButton RID_STRQRY_BTN_OK
+ {
+ DefButton = TRUE ;
+ Pos = MAP_APPFONT ( 145 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ };
+ CancelButton RID_STRQRY_BTN_CANCEL
+ {
+ Pos = MAP_APPFONT ( 145 , 24 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ };
+};
+
+String RID_ERR_NOPRINTER
+{
+ Text = "Der Drucker %s konnte nicht geffnet werden." ;
+ Text [ English ] = "Could not open printer %s." ;
+ Text[ english_us ] = "Could not open printer %s.";
+ Text[ portuguese ] = "Foi impossvel abrir a impressora %s.";
+ Text[ russian ] = " %s .";
+ Text[ greek ] = " %s.";
+ Text[ dutch ] = "Printer %s kon niet worden geopend.";
+ Text[ french ] = "Impossible d'ouvrir l'imprimante %s.";
+ Text[ spanish ] = "No se pudo abrir la impresora %s.";
+ Text[ italian ] = "Impossibile aprire la stampante %s.";
+ Text[ danish ] = "Could not open printer %s.";
+ Text[ swedish ] = "Det gick inte att ppna skrivaren %s.";
+ Text[ polish ] = "Nie mona otworzy drukarki %s.";
+ Text[ portuguese_brazilian ] = "Could not open printer %s.";
+ Text[ japanese ] = " %s J܂łB";
+ Text[ korean ] = "%s͸߽ϴ.";
+ Text[ chinese_simplified ] = "޷ӡ %s ";
+ Text[ chinese_traditional ] = "Lk}ҦL %s C";
+ Text[ turkish ] = "Could not open printer %s.";
+ Text[ arabic ] = " %s.";
+};
+
+String RID_PA_TXT_TESTPAGE_PRINTED
+{
+ Text = "Die Testseite wurde erfolgreich gedruckt. Bitte prfen Sie das Ergebnis." ;
+ Text [ English ] = "The test page was printed succesfully. Please check the resulting output." ;
+ Text[ english_us ] = "The test page was printed succesfully. Please check the result.";
+ Text[ portuguese ] = "A impresso da pgina-teste est concluda. Queira verificar os resultados.";
+ Text[ russian ] = " . , , .";
+ Text[ greek ] = " . .";
+ Text[ dutch ] = "De testpagina werd met succes afgedrukt. Controleer het resultaat.";
+ Text[ french ] = "L'impression de la page de test est termine. Veuillez en vrifier le rsultat.";
+ Text[ spanish ] = "La pgina de prueba se imprimi satisfactoriamente. Compruebe por favor el resultado.";
+ Text[ italian ] = "La pagina di prova stata stampata. Controllate il risultato.";
+ Text[ danish ] = "The test page was printed succesfully. Please check the resulting output.";
+ Text[ swedish ] = "Testsidan har skrivits ut. Kontrollera resultatet.";
+ Text[ polish ] = "Wydrukowano stron prbn. Naley sprawdzi jej jako.";
+ Text[ portuguese_brazilian ] = "The test page was printed succesfully. Please check the resulting output.";
+ Text[ japanese ] = "ý߰ނ͐ɏI܂BʂmFĂB";
+ Text[ korean ] = "׽ƮΡμǾϴ. ¡˻Ͻʽÿ.";
+ Text[ chinese_simplified ] = "ӡɹӡ";
+ Text[ chinese_traditional ] = "զCL\\CˬdCLGC";
+ Text[ turkish ] = "The test page was printed succesfully. Please check the resulting output.";
+ Text[ arabic ] = " . .";
+};
+
+String RID_QRY_PRTNAME
+{
+ Text = "Bitte geben Sie den neuen Namen\ndes Druckers ein." ;
+ Text [ English ] = "Please enter the printer's new name." ;
+ Text[ english_us ] = "Please enter the new name\nof the printer.";
+ Text[ portuguese ] = "Indique o novo nome\nda impressora.";
+ Text[ russian ] = ", ,\n .";
+ Text[ greek ] = " \n.";
+ Text[ dutch ] = "Vermeld de nieuwe naam van de printer.";
+ Text[ french ] = "Indiquez le nouveau nom\nde l'imprimante.";
+ Text[ spanish ] = "Escriba por favor el nuevo nombre\nde la impresora.";
+ Text[ italian ] = "Indicate il nuovo nome\ndella stampante.";
+ Text[ danish ] = "Please enter the printer's new name.";
+ Text[ swedish ] = "Ange det nya namnet\np skrivaren.";
+ Text[ polish ] = "Naley poda now nazw\ndrukarki.";
+ Text[ portuguese_brazilian ] = "Please enter the printer's new name.";
+ Text[ japanese ] = "V͂ĂB";
+ Text[ korean ] = "ǡ̸ԷϽʽÿ";
+ Text[ chinese_simplified ] = "´ӡơ";
+ Text[ chinese_traditional ] = "бzJLsW١C";
+ Text[ turkish ] = "Please enter the printer's new name.";
+ Text[ arabic ] = " \n.";
+};
+
+String RID_TXT_TESTPAGE_MODEL
+{
+ Text = "Modell";
+ Text[ English ] = "Model";
+ Text[ english_us ] = "Model";
+ Text[ portuguese ] = "Modelo";
+ Text[ russian ] = "";
+ Text[ greek ] = "";
+ Text[ dutch ] = "Model";
+ Text[ french ] = "Modlel";
+ Text[ spanish ] = "Modelo";
+ Text[ italian ] = "Modello";
+ Text[ danish ] = "Model";
+ Text[ swedish ] = "Modell";
+ Text[ polish ] = "Model";
+ Text[ portuguese_brazilian ] = "Model";
+ Text[ japanese ] = "";
+ Text[ korean ] = "l";
+ Text[ chinese_simplified ] = "ģʽ";
+ Text[ chinese_traditional ] = "Ҧ";
+ Text[ turkish ] = "Model";
+ Text[ arabic ] = "";
+};
+
+String RID_TXT_TESTPAGE_NAME
+{
+ Text = "Name";
+ Text [ English ] = "Name";
+ Text[ english_us ] = "Name";
+ Text[ portuguese ] = "Nome";
+ Text[ russian ] = "";
+ Text[ greek ] = "";
+ Text[ dutch ] = "Naam";
+ Text[ french ] = "Nom";
+ Text[ spanish ] = "Nombre";
+ Text[ italian ] = "Nome";
+ Text[ danish ] = "Name";
+ Text[ swedish ] = "Namn";
+ Text[ polish ] = "Nazwa";
+ Text[ portuguese_brazilian ] = "Name";
+ Text[ japanese ] = "O";
+ Text[ korean ] = "̸";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "W";
+ Text[ turkish ] = "Name";
+ Text[ arabic ] = "";
+};
+
+String RID_TXT_TESTPAGE_COMMENT
+{
+ Text = "Kommentar";
+ Text [ English ] = "Comment";
+ Text[ english_us ] = "Comment";
+ Text[ portuguese ] = "Comentrio";
+ Text[ russian ] = "";
+ Text[ greek ] = "";
+ Text[ dutch ] = "Commentaar";
+ Text[ french ] = "Commentaire";
+ Text[ spanish ] = "Comentario";
+ Text[ italian ] = "Commento";
+ Text[ danish ] = "Comment";
+ Text[ swedish ] = "Kommentar";
+ Text[ polish ] = "Komentarz";
+ Text[ portuguese_brazilian ] = "Comment";
+ Text[ japanese ] = "";
+ Text[ korean ] = "ּ";
+ Text[ chinese_simplified ] = "ע";
+ Text[ chinese_traditional ] = "ƪ`";
+ Text[ turkish ] = "Comment";
+ Text[ arabic ] = "";
+};
+
+String RID_TXT_TESTPAGE_QUEUE
+{
+ Text = "Queue";
+ Text[ English ] = "Queue";
+ Text[ english_us ] = "Queue";
+ Text[ portuguese ] = "Fila de espera";
+ Text[ russian ] = "";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Wachtrij";
+ Text[ french ] = "File d'attente";
+ Text[ spanish ] = "Cola";
+ Text[ italian ] = "Coda";
+ Text[ danish ] = "Queue";
+ Text[ swedish ] = "K";
+ Text[ polish ] = "Kolejka";
+ Text[ portuguese_brazilian ] = "Queue";
+ Text[ japanese ] = "";
+ Text[ korean ] = "ť";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "C";
+ Text[ turkish ] = "Queue";
+ Text[ arabic ] = "";
+};
+
+String RID_TXT_TESTPAGE_DATE
+{
+ Text = "Datum";
+ Text[ English ] = "Date";
+ Text[ english_us ] = "Date";
+ Text[ portuguese ] = "Data";
+ Text[ russian ] = "";
+ Text[ greek ] = "";
+ Text[ dutch ] = "Datum";
+ Text[ french ] = "Date";
+ Text[ spanish ] = "Fecha";
+ Text[ italian ] = "Data";
+ Text[ danish ] = "Date";
+ Text[ swedish ] = "Datum";
+ Text[ polish ] = "Data";
+ Text[ portuguese_brazilian ] = "Date";
+ Text[ japanese ] = "t";
+ Text[ korean ] = "¥";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "";
+ Text[ turkish ] = "Date";
+ Text[ arabic ] = "";
+};
+
+String RID_TXT_TESTPAGE_TIME
+{
+ Text = "Uhrzeit";
+ Text[ English ] = "Time";
+ Text[ english_us ] = "Time";
+ Text[ portuguese ] = "Hora";
+ Text[ russian ] = "";
+ Text[ greek ] = "";
+ Text[ dutch ] = "Tijd";
+ Text[ french ] = "Heure";
+ Text[ spanish ] = "Hora";
+ Text[ italian ] = "Ora";
+ Text[ danish ] = "Time";
+ Text[ swedish ] = "Klockslag";
+ Text[ polish ] = "Godzina";
+ Text[ portuguese_brazilian ] = "Time";
+ Text[ japanese ] = "";
+ Text[ korean ] = "ð";
+ Text[ chinese_simplified ] = "ʱ";
+ Text[ chinese_traditional ] = "ɶ";
+ Text[ turkish ] = "Time";
+ Text[ arabic ] = "";
+};
+
+
+ModalDialog RID_FONTNAMEDIALOG
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 255 , 249 ) ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Text = "Schriften" ;
+ Text [ English ] = "Fonts" ;
+ OKButton RID_FNTNM_BTN_OK
+ {
+ DefButton = TRUE ;
+ Pos = MAP_APPFONT ( 196 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "Schlieen" ;
+ Text [ English ] = "Close" ;
+ Text[ english_us ] = "Close";
+ Text[ portuguese ] = "Fechar";
+ Text[ russian ] = "";
+ Text[ greek ] = "";
+ Text[ dutch ] = "Sluiten";
+ Text[ french ] = "Fermer";
+ Text[ spanish ] = "Cerrar";
+ Text[ italian ] = "Chiudi";
+ Text[ danish ] = "Close";
+ Text[ swedish ] = "Stng";
+ Text[ polish ] = "Zamknij";
+ Text[ portuguese_brazilian ] = "Close";
+ Text[ japanese ] = "‚";
+ Text[ korean ] = "ݱ";
+ Text[ chinese_simplified ] = "ر";
+ Text[ chinese_traditional ] = "";
+ Text[ turkish ] = "Close";
+ Text[ arabic ] = "";
+ };
+ PushButton RID_FNTNM_BTN_MODIFY
+ {
+ Pos = MAP_APPFONT ( 196 , 25 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "berneh~men" ;
+ Text [ English ] = "~Modify" ;
+ Text[ english_us ] = "Apply";
+ Text[ portuguese ] = "Aplica~r";
+ Text[ russian ] = "~";
+ Text[ greek ] = "~";
+ Text[ dutch ] = "~Overnemen";
+ Text[ french ] = "~Appliquer";
+ Text[ spanish ] = "~Aplicar";
+ Text[ italian ] = "Applica";
+ Text[ danish ] = "~Modify";
+ Text[ swedish ] = "ve~rta";
+ Text[ polish ] = "Zastosuj";
+ Text[ portuguese_brazilian ] = "~Modify";
+ Text[ japanese ] = "Kp(~M)";
+ Text[ korean ] = "";
+ Text[ chinese_simplified ] = "(~M)";
+ Text[ chinese_traditional ] = "M(~M)";
+ Text[ turkish ] = "~Modify";
+ Text[ arabic ] = "";
+ };
+ PushButton RID_FNTNM_BTN_REMOVE
+ {
+ Pos = MAP_APPFONT ( 196 , 44 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "~Entfernen" ;
+ Text [ English ] = "~Remove" ;
+ Text[ english_us ] = "~Remove";
+ Text[ portuguese ] = "~Remover";
+ Text[ russian ] = "~";
+ Text[ greek ] = "";
+ Text[ dutch ] = "~Verwijderen";
+ Text[ french ] = "~Supprimer";
+ Text[ spanish ] = "~Eliminar";
+ Text[ italian ] = "Rimuo~vi";
+ Text[ danish ] = "~Remove";
+ Text[ swedish ] = "Ta b~ort";
+ Text[ polish ] = "Usu";
+ Text[ portuguese_brazilian ] = "~Remove";
+ Text[ japanese ] = "폜(~R)";
+ Text[ korean ] = "(~R)";
+ Text[ chinese_simplified ] = "ɾ(~R)";
+ Text[ chinese_traditional ] = "(~R)";
+ Text[ turkish ] = "~Remove";
+ Text[ arabic ] = "";
+ };
+ ListBox RID_FNTNM_LB_FONTS
+ {
+ Border = TRUE ;
+ Sort = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 6 ) ;
+ Size = MAP_APPFONT ( 185 , 70 ) ;
+ };
+ GroupBox RID_FNTNM_GRP_FONTPROP
+ {
+ Pos = MAP_APPFONT ( 6 , 80 ) ;
+ Size = MAP_APPFONT ( 185 , 166 ) ;
+ Text = "Schrifteigenschaften";
+ };
+ FixedText RID_FNTNM_FIXED
+ {
+ Pos = MAP_APPFONT ( 11 , 88 ) ;
+ Size = MAP_APPFONT ( 175 , 16 ) ;
+ Text = "Aus den Eigenschaften wird der Xwindow-Name\nder Schrift konstruiert" ;
+ Text [ English ] = "The Xwindow name of the font is constructed\nfrom the properties" ;
+ Text[ english_us ] = "The Xwindow name of the font is constructed\nfrom the properties";
+ Text[ portuguese ] = "O nome Xwindow do tipo de letra constri-se\na partir das propriedades.";
+ Text[ russian ] = " Xwindow \n ";
+ Text[ greek ] = " Xwindow \n .";
+ Text[ dutch ] = "De Xwindow-naam van het lettertype\nwordt samengesteld uit de eigenschappen";
+ Text[ french ] = "Le nom Xwindow de la police\nest gnr partir des proprits";
+ Text[ spanish ] = "De las propiedades se construir el nombre\nXwindow de la fuente.";
+ Text[ italian ] = "Il nome Xwindow determinato\ndalle caratteristiche";
+ Text[ danish ] = "The Xwindow name of the font is constructed\nfrom the properties";
+ Text[ swedish ] = "Xwindow-namnet p teckensnittet konstrueras\nutifrn egenskaperna";
+ Text[ polish ] = "Nazwa Xwindow czcionki utworzona\nzostanie z waciwoci.";
+ Text[ portuguese_brazilian ] = "The Xwindow name of the font is constructed\nfrom the properties";
+ Text[ japanese ] = "̫Ă X ޳͑\\܂B";
+ Text[ korean ] = "κ͡۲ X졡̸̡˴ϴ";
+ Text[ chinese_simplified ] = "Xwindow Թɵ";
+ Text[ chinese_traditional ] = "Xwindow W٥Ѧrݩۦ";
+ Text[ turkish ] = "The Xwindow name of the font is constructed\nfrom the properties";
+ Text[ arabic ] = " Xwindow \n ";
+ };
+ FixedText RID_FNTNM_TXT_FOUNDRY
+ {
+ Pos = MAP_APPFONT ( 11 , 110 ) ;
+ Size = MAP_APPFONT ( 80 , 8 ) ;
+ Text = "~Hersteller :" ;
+ Text [ English ] = "~Foundry :" ;
+ Text [ english_us ] = "Manufacturer:" ;
+ Text [ portuguese_brazilian ] = "Hersteller :" ;
+ Text [ swedish ] = "T~illverkare :" ;
+ Text [ danish ] = "Producent :" ;
+ Text [ italian ] = "Fabbricante :" ;
+ Text [ spanish ] = "~Fabricante:" ;
+ Text [ french ] = "~Fabricant :" ;
+ Text [ dutch ] = "~Producent :" ;
+ Text [ portuguese ] = "~Fabricante:" ;
+ Text[ russian ] = ":";
+ Text[ greek ] = ":";
+ Text[ polish ] = "Producent :";
+ Text[ japanese ] = ":";
+ Text[ korean ] = "ۼ:";
+ Text[ chinese_simplified ] = "̣";
+ Text[ chinese_traditional ] = "yӡG";
+ Text[ arabic ] = " :";
+ Text[ turkish ] = "retici:";
+ };
+ ComboBox RID_FNTNM_FOUNDRY
+ {
+ Pos = MAP_APPFONT ( 95 , 108 ) ;
+ Size = MAP_APPFONT ( 90 , 150 ) ;
+ Sort = TRUE ;
+ DropDown = TRUE ;
+ };
+ FixedText RID_FNTNM_TXT_FAMILY
+ {
+ Pos = MAP_APPFONT ( 11 , 125 ) ;
+ Size = MAP_APPFONT ( 80 , 8 ) ;
+ Text = "~Familie :" ;
+ Text [ English ] = "Fa~mily :" ;
+ Text[ english_us ] = "~Family :";
+ Text[ portuguese ] = "Fa~mlia:";
+ Text[ russian ] = " :";
+ Text[ greek ] = " :";
+ Text[ dutch ] = "Fa~milie :";
+ Text[ french ] = "Fa~mille :";
+ Text[ spanish ] = "Fa~milia :";
+ Text[ italian ] = "~Famiglia :";
+ Text[ danish ] = "Fa~mily :";
+ Text[ swedish ] = "~Familj :";
+ Text[ polish ] = "Rodzina fontw :";
+ Text[ portuguese_brazilian ] = "Fa~mily :";
+ Text[ japanese ] = "(~F):";
+ Text[ korean ] = "迭 (~F):";
+ Text[ chinese_simplified ] = "Ʒϵ(~F)";
+ Text[ chinese_traditional ] = "~tC(~F)G";
+ Text[ turkish ] = "Fa~mily :";
+ Text[ arabic ] = ":";
+ };
+ Edit RID_FNTNM_FAMILY
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 95 , 123 ) ;
+ Size = MAP_APPFONT ( 90 , 12 ) ;
+ };
+ FixedText RID_FNTNM_TXT_WEIGHT
+ {
+ Pos = MAP_APPFONT ( 11 , 140 ) ;
+ Size = MAP_APPFONT ( 80 , 8 ) ;
+ Text = "~Gewicht :" ;
+ Text [ English ] = "~Weight :" ;
+ Text[ english_us ] = "~Weight :";
+ Text[ portuguese ] = "~Peso:";
+ Text[ russian ] = "~ :";
+ Text[ greek ] = " :";
+ Text[ dutch ] = "~Gewicht :";
+ Text[ french ] = "~Poids :";
+ Text[ spanish ] = "~Peso :";
+ Text[ italian ] = "Peso :";
+ Text[ danish ] = "~Weight :";
+ Text[ swedish ] = "~Vikt :";
+ Text[ polish ] = "Grubo :";
+ Text[ portuguese_brazilian ] = "~Weight :";
+ Text[ japanese ] = "(~W):";
+ Text[ korean ] = " (~W):";
+ Text[ chinese_simplified ] = "ϸ(~W)";
+ Text[ chinese_traditional ] = "ʲ(~W)G";
+ Text[ turkish ] = "~Weight :";
+ Text[ arabic ] = ":";
+ };
+ ComboBox RID_FNTNM_WEIGHT
+ {
+ Pos = MAP_APPFONT ( 95 , 138 ) ;
+ Size = MAP_APPFONT ( 90 , 150 ) ;
+ Sort = TRUE ;
+ DropDown = TRUE ;
+ };
+ FixedText RID_FNTNM_TXT_SLANT
+ {
+ Pos = MAP_APPFONT ( 11 , 155 ) ;
+ Size = MAP_APPFONT ( 80 , 8 ) ;
+ Text = "~Neigung :" ;
+ Text [ English ] = "~Slant :" ;
+ Text[ english_us ] = "~Slant :";
+ Text[ portuguese ] = "~Inclinao:";
+ Text[ russian ] = "~ :";
+ Text[ greek ] = " :";
+ Text[ dutch ] = "~Helling :";
+ Text[ french ] = "~Inclinaison :";
+ Text[ spanish ] = "~Inclinacin :";
+ Text[ italian ] = "Inclina~zione :";
+ Text[ danish ] = "~Slant :";
+ Text[ swedish ] = "Lut~ning :";
+ Text[ polish ] = "Pochylenie :";
+ Text[ portuguese_brazilian ] = "~Slant :";
+ Text[ japanese ] = "X(~S):";
+ Text[ korean ] = " (~S):";
+ Text[ chinese_simplified ] = "б(~S)";
+ Text[ chinese_traditional ] = "ɱ(~S)G";
+ Text[ turkish ] = "~Slant :";
+ Text[ arabic ] = " :";
+ };
+ ComboBox RID_FNTNM_SLANT
+ {
+ Pos = MAP_APPFONT ( 95 , 153 ) ;
+ Size = MAP_APPFONT ( 90 , 150 ) ;
+ Sort = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ "*" ;
+ "i" ;
+ "o" ;
+ "r" ;
+ };
+ };
+ FixedText RID_FNTNM_TXT_STYLEWIDTH
+ {
+ Pos = MAP_APPFONT ( 11 , 170 ) ;
+ Size = MAP_APPFONT ( 80 , 8 ) ;
+ Text = "~Breite :" ;
+ Text [ English ] = "W~idth :" ;
+ Text[ english_us ] = "W~idth :";
+ Text[ portuguese ] = "~Largura:";
+ Text[ russian ] = " :";
+ Text[ greek ] = " :";
+ Text[ dutch ] = "B~reedte :";
+ Text[ french ] = "~Largeur :";
+ Text[ spanish ] = "An~cho :";
+ Text[ italian ] = "Larghezza :";
+ Text[ danish ] = "W~idth :";
+ Text[ swedish ] = "~Bredd :";
+ Text[ polish ] = "Szeroko :";
+ Text[ portuguese_brazilian ] = "W~idth :";
+ Text[ japanese ] = "(W~):";
+ Text[ korean ] = "ʺ (~I):";
+ Text[ chinese_simplified ] = "(~I)";
+ Text[ chinese_traditional ] = "e(~I)G";
+ Text[ turkish ] = "W~idth :";
+ Text[ arabic ] = " :";
+ };
+ ComboBox RID_FNTNM_STYLEWIDTH
+ {
+ Pos = MAP_APPFONT ( 95 , 168 ) ;
+ Size = MAP_APPFONT ( 90 , 150 ) ;
+ Sort = TRUE ;
+ DropDown = TRUE ;
+ };
+ FixedText RID_FNTNM_TXT_ADDSTYLE
+ {
+ Pos = MAP_APPFONT ( 11 , 185 ) ;
+ Size = MAP_APPFONT ( 80 , 8 ) ;
+ Text = "~Zustzliche Attribute :" ;
+ Text [ English ] = "~Additional attributes :";
+ Text[ english_us ] = "~Additional attributes :";
+ Text[ portuguese ] = "~Atributos adicionais:";
+ Text[ russian ] = "~ :";
+ Text[ greek ] = " :";
+ Text[ dutch ] = "~Extra attributen :";
+ Text[ french ] = "~Attributs supplmentaires :";
+ Text[ spanish ] = "~Atributos adicionales :";
+ Text[ italian ] = "Altri attri~buti :";
+ Text[ danish ] = "~Additional attributes :";
+ Text[ swedish ] = "~Ytterligare attribut :";
+ Text[ polish ] = "Dodatkowe atrybuty :";
+ Text[ portuguese_brazilian ] = "~Additional attributes :";
+ Text[ japanese ] = "̑̑(~A):";
+ Text[ korean ] = "߰ΡӼ (~A):";
+ Text[ chinese_simplified ] = "ӵ(~A)";
+ Text[ chinese_traditional ] = "䥦ݩ(~A)G";
+ Text[ turkish ] = "~Additional attributes :";
+ Text[ arabic ] = " :";
+ };
+ ComboBox RID_FNTNM_ADDSTYLE
+ {
+ Pos = MAP_APPFONT ( 95 , 183 ) ;
+ Size = MAP_APPFONT ( 90 , 150 ) ;
+ Sort = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ "" ;
+ "iso8859" ;
+ "sans";
+ "sans serif";
+ "serif";
+ "script";
+ "decor";
+ "symbol";
+ };
+ };
+ FixedText RID_FNTNM_TXT_SPACING
+ {
+ Pos = MAP_APPFONT ( 11 , 200 ) ;
+ Size = MAP_APPFONT ( 80 , 8 ) ;
+ Text = "~Dichte :" ;
+ Text [ English ] = "S~pacing :" ;
+ Text[ english_us ] = "S~pacing :";
+ Text[ portuguese ] = "~Espaamento:";
+ Text[ russian ] = " :";
+ Text[ greek ] = " :";
+ Text[ dutch ] = "S~patiring :";
+ Text[ french ] = "~Espacement :";
+ Text[ spanish ] = "E~spacio :";
+ Text[ italian ] = "Spa~zio :";
+ Text[ danish ] = "S~pacing :";
+ Text[ swedish ] = "Tth~et :";
+ Text[ polish ] = "Spacje :";
+ Text[ portuguese_brazilian ] = "S~pacing :";
+ Text[ japanese ] = "Ԋu(~P):";
+ Text[ korean ] = " (~P):";
+ Text[ chinese_simplified ] = "(~P):";
+ Text[ chinese_traditional ] = "j(~P)G";
+ Text[ turkish ] = "S~pacing :";
+ Text[ arabic ] = " :";
+ };
+ ListBox RID_FNTNM_SPACING
+ {
+ Pos = MAP_APPFONT ( 95 , 198 ) ;
+ Size = MAP_APPFONT ( 90 , 150 ) ;
+ Sort = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ "c character cell" ;
+ "m monospace" ;
+ "p proportional" ;
+ };
+ };
+ FixedText RID_FNTNM_TXT_REGISTRY
+ {
+ Pos = MAP_APPFONT ( 11 , 215 ) ;
+ Size = MAP_APPFONT ( 80 , 8 ) ;
+ Text = "~Registrierung :" ;
+ Text [ English ] = "Re~gistry :" ;
+ Text[ english_us ] = "Re~gistry :";
+ Text[ portuguese ] = "~Registo:";
+ Text[ russian ] = " :";
+ Text[ greek ] = " :";
+ Text[ dutch ] = "Re~gistratie :";
+ Text[ french ] = "Enre~gistrement :";
+ Text[ spanish ] = "Re~gistro :";
+ Text[ italian ] = "Re~gistrazione :";
+ Text[ danish ] = "Re~gistry :";
+ Text[ swedish ] = "~Registrering :";
+ Text[ polish ] = "Rejestracja :";
+ Text[ portuguese_brazilian ] = "Re~gistry :";
+ Text[ japanese ] = "o^(~G):";
+ Text[ korean ] = " (~G):";
+ Text[ chinese_simplified ] = "Ǽ(~G)";
+ Text[ chinese_traditional ] = "nO(~G)G";
+ Text[ turkish ] = "Re~gistry :";
+ Text[ arabic ] = " :";
+ };
+ ComboBox RID_FNTNM_REGISTRY
+ {
+ Pos = MAP_APPFONT ( 95 , 213 ) ;
+ Size = MAP_APPFONT ( 90 , 150 ) ;
+ Sort = TRUE ;
+ DropDown = TRUE ;
+ };
+ FixedText RID_FNTNM_TXT_ENCODING
+ {
+ Pos = MAP_APPFONT ( 11 , 230 ) ;
+ Size = MAP_APPFONT ( 80 , 8 ) ;
+ Text = "~Kodierung :" ;
+ Text [ English ] = "Enco~ding :" ;
+ Text[ english_us ] = "Enco~ding :";
+ Text[ portuguese ] = "~Codificao:";
+ Text[ russian ] = " :";
+ Text[ greek ] = "~ :";
+ Text[ dutch ] = "Co~dering :";
+ Text[ french ] = "~Encodage :";
+ Text[ spanish ] = "Codi~ficacin :";
+ Text[ italian ] = "Codifica :";
+ Text[ danish ] = "Enco~ding :";
+ Text[ swedish ] = "~Kodning :";
+ Text[ polish ] = "Kodowanie :";
+ Text[ portuguese_brazilian ] = "Enco~ding :";
+ Text[ japanese ] = "(~D):";
+ Text[ korean ] = "ڵ (~D):";
+ Text[ chinese_simplified ] = "(~D)";
+ Text[ chinese_traditional ] = "sX(~D)G";
+ Text[ turkish ] = "Enco~ding :";
+ Text[ arabic ] = " :";
+ };
+ ComboBox RID_FNTNM_ENCODING
+ {
+ Pos = MAP_APPFONT ( 95 , 228 ) ;
+ Size = MAP_APPFONT ( 90 , 150 ) ;
+ Sort = TRUE ;
+ DropDown = TRUE ;
+ };
+ String RID_FNTNM_STR_FONTSDIRWRITEFAILED
+ {
+ Text = "Die Schrift %s1 kann nicht gendert werden weil die Datei\n %s2\nnicht geschrieben werden kann.";
+ Text [ English ] = "The font %s1 cannot be changed because the file\n %s2\ncannot be written.";
+ Text[ english_us ] = "The font %s1 cannot be changed because the file\n %s2\ncannot be written.";
+ Text[ portuguese ] = " impossvel modificar o tipo de letra %s1, porque no \npossvel escrever o ficheiro %s2\\.";
+ Text[ russian ] = " %s1 , \n %s2\n .";
+ Text[ greek ] = " %s1 \n %s2.";
+ Text[ dutch ] = "Lettertype %s1 kan niet worden veranderd daar bestand\n %s2\nniet kan worden geschreven.";
+ Text[ french ] = "Impossible de modifier la police %s1 car criture du fichier\n %s2\n impossible !";
+ Text[ spanish ] = "No se puede modificar la fuente %s1 porque no se puede escribir el archivo\n %s2\n.";
+ Text[ italian ] = "Impossibile modificare il font %1 perch il file\n %2\nnon pu essere scritto.";
+ Text[ danish ] = "The font %s1 cannot be changed because the file\n %s2\ncannot be written.";
+ Text[ swedish ] = "Det gr inte att ndra teckensnittet %s1 eftersom det inte gr att skriva filen\n %s2\n.";
+ Text[ polish ] = "Czcionki %s1 nie mona zmieni, poniewa pliku\n %s2\nnie mona zapisa.";
+ Text[ portuguese_brazilian ] = "The font %s1 cannot be changed because the file\n %s2\ncannot be written.";
+ Text[ japanese ] = "̧\n %s2\n܂ĂȂ̂ŁA̫ %s1 ̕ύX͂ł܂B";
+ Text[ korean ] = "%s1 ۲ٲܼϴ٣\n %s2\n⡡Դϴ.";
+ Text[ chinese_simplified ] = "޷ %s1 Ϊļ\n %s2\n޷д";
+ Text[ chinese_traditional ] = "Lkܧr %s1 A]Lkмgɮ\n %s2\n C";
+ Text[ turkish ] = "The font %s1 cannot be changed because the file\n %s2\ncannot be written.";
+ Text[ arabic ] = " %s1 \n %s2.";
+ };
+ Text[ english_us ] = "Fonts";
+ Text[ portuguese ] = "Tipos de letra";
+ Text[ russian ] = "";
+ Text[ greek ] = "";
+ Text[ dutch ] = "Lettertypen";
+ Text[ french ] = "Polices";
+ Text[ spanish ] = "Fuentes";
+ Text[ italian ] = "Font";
+ Text[ danish ] = "Fonts";
+ Text[ swedish ] = "Teckensnitt";
+ Text[ polish ] = "Czcionki";
+ Text[ portuguese_brazilian ] = "Fonts";
+ Text[ japanese ] = "̫";
+ Text[ korean ] = "۲";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "r";
+ Text[ turkish ] = "Fonts";
+ Text[ arabic ] = "";
+};
+String RID_FNTNM_FONTNAME_TXT
+{
+ Text = "Eigenschaften von %s" ;
+ Text [ English ] = "Properties of %s" ;
+ Text[ english_us ] = "Properties of %s";
+ Text[ portuguese ] = "Propriedades de %s";
+ Text[ russian ] = " %s";
+ Text[ greek ] = " %s";
+ Text[ dutch ] = "Eigenschappen van %s";
+ Text[ french ] = "Proprits de %s";
+ Text[ spanish ] = "Propiedades de %s";
+ Text[ italian ] = "Propriet di %s";
+ Text[ danish ] = "Properties of %s";
+ Text[ swedish ] = "Egenskaper fr %s";
+ Text[ polish ] = "Waciwoci %s";
+ Text[ portuguese_brazilian ] = "Properties of %s";
+ Text[ japanese ] = "%s ̑";
+ Text[ korean ] = "%sǡ";
+ Text[ chinese_simplified ] = "%s ";
+ Text[ chinese_traditional ] = "%s ݩ";
+ Text[ turkish ] = "Properties of %s";
+ Text[ arabic ] = " %s";
+};
+String RID_FNTNM_NOFONT_TXT
+{
+ Text = "Keine Schrift gewhlt" ;
+ Text [ English ] = "No font selected" ;
+ Text[ english_us ] = "No font selected";
+ Text[ portuguese ] = "Nenhum tipo de letra seleccionado";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Geen lettertype geselecteerd";
+ Text[ french ] = "Aucune police slectionne";
+ Text[ spanish ] = "Ninguna fuente seleccionada";
+ Text[ italian ] = "Non sono stati selezionati font";
+ Text[ danish ] = "No font selected";
+ Text[ swedish ] = "Inget teckensnitt har valts";
+ Text[ polish ] = "Nie wybrano czcionki";
+ Text[ portuguese_brazilian ] = "No font selected";
+ Text[ japanese ] = "̫ĂIĂ܂";
+ Text[ korean ] = "۲ʾҽϴ";
+ Text[ chinese_simplified ] = "ûѡκ";
+ Text[ chinese_traditional ] = "S襤r";
+ Text[ turkish ] = "No font selected";
+ Text[ arabic ] = " ";
+};
+String RID_BXT_TESTPAGE
+{
+ Text = "Testseite" ;
+ Text [ English ] = "Testpage" ;
+ Text[ english_us ] = "Test page";
+ Text[ portuguese ] = "Pgina-teste";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Testpagina";
+ Text[ french ] = "Page de test";
+ Text[ spanish ] = "Pgina de prueba";
+ Text[ italian ] = "Pagina di prova";
+ Text[ danish ] = "Testpage";
+ Text[ swedish ] = "Testsida";
+ Text[ polish ] = "Strona prbna";
+ Text[ portuguese_brazilian ] = "Testpage";
+ Text[ japanese ] = "ý߰";
+ Text[ korean ] = "׽Ʈ";
+ Text[ chinese_simplified ] = "ӡ";
+ Text[ chinese_traditional ] = "զCL";
+ Text[ turkish ] = "Testpage";
+ Text[ arabic ] = " ";
+};
+String RID_BXT_ENVIRONMENT
+{
+ Text = "Fehlerhafte Umgebung" ;
+ Text [ English ] = "Wrong environment" ;
+ Text[ english_us ] = "Wrong environment";
+ Text[ portuguese ] = "Ambiente defeituoso";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Verkeerde omgeving";
+ Text[ french ] = "Environnement dfectueux";
+ Text[ spanish ] = "Entorno errneo";
+ Text[ italian ] = "Ambiente non corretto";
+ Text[ danish ] = "Wrong environment";
+ Text[ swedish ] = "Fel milj";
+ Text[ polish ] = "Nieprawidowe rodowisko";
+ Text[ portuguese_brazilian ] = "Wrong environment";
+ Text[ japanese ] = "Ȃ‹";
+ Text[ korean ] = "ȯ桡Ʋ";
+ Text[ chinese_simplified ] = "Ļ趨";
+ Text[ chinese_traditional ] = "~";
+ Text[ turkish ] = "Wrong environment";
+ Text[ arabic ] = " ";
+};
+
+String RID_YOU_SURE
+{
+ Text = "Sind Sie sicher ?" ;
+ Text [ English ] = "Are you sure ?" ;
+ Text[ english_us ] = "Are you sure ?";
+ Text[ portuguese ] = "Tem a certeza?";
+ Text[ russian ] = " ?";
+ Text[ greek ] = " ;";
+ Text[ dutch ] = "Wilt u dat werkelijk?";
+ Text[ french ] = "tes-vous sr ?";
+ Text[ spanish ] = "Est realmente seguro?";
+ Text[ italian ] = "Siete sicuri ?";
+ Text[ danish ] = "Are you sure ?";
+ Text[ swedish ] = "r du sker ?";
+ Text[ polish ] = "Na pewno ?";
+ Text[ portuguese_brazilian ] = "Are you sure ?";
+ Text[ japanese ] = "łłB";
+ Text[ korean ] = "Ȯմϱ ?";
+ Text[ chinese_simplified ] = "ȷ";
+ Text[ chinese_traditional ] = "TwH";
+ Text[ turkish ] = "Are you sure ?";
+ Text[ arabic ] = " ";
+};
+
+Bitmap RID_BUTTERFLY
+{
+ File = "butter.bmp" ;
+};
+
+String RID_AFMERROR_OK
+{
+ Text = "Kein Fehler" ;
+ Text [ English ] = "No error" ;
+ Text[ english_us ] = "No error";
+ Text[ portuguese ] = "Nenhum erro";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Geen fout";
+ Text[ french ] = "Aucune erreur";
+ Text[ spanish ] = "Ningn error";
+ Text[ italian ] = "Nessun errore";
+ Text[ danish ] = "No error";
+ Text[ swedish ] = "Inget fel";
+ Text[ polish ] = "Bez bdu";
+ Text[ portuguese_brazilian ] = "No error";
+ Text[ japanese ] = "װȂ";
+ Text[ korean ] = "";
+ Text[ chinese_simplified ] = "ûд";
+ Text[ chinese_traditional ] = "S~";
+ Text[ turkish ] = "No error";
+ Text[ arabic ] = " ";
+};
+String RID_AFMERROR_NO_FONT_NAME
+{
+ Text = "Die Metrik enthlt keinen 'FontName' Eintrag." ;
+ Text [ English ] = "The metric does not contain a 'FontName' entry." ;
+ Text[ english_us ] = "The metric does not contain a 'FontName' entry.";
+ Text[ portuguese ] = "A mtrica no contm a entrada 'FontName'.";
+ Text[ russian ] = " 'FontName'.";
+ Text[ greek ] = " 'FontName'.";
+ Text[ dutch ] = "De metriek bevat geen item 'FontName'.";
+ Text[ french ] = "La mtrique ne contient aucune entre 'FontName'.";
+ Text[ spanish ] = "La mtrica no contiene una entrada 'FontName'.";
+ Text[ italian ] = "La metrica non contiene una voce 'FontName'.";
+ Text[ danish ] = "The metric does not contain a 'FontName' entry.";
+ Text[ swedish ] = "Metriken innehller ingen 'FontName'-post.";
+ Text[ polish ] = "Metryka nie zawiera wpisu 'FontName'.";
+ Text[ portuguese_brazilian ] = "The metric does not contain a 'FontName' entry.";
+ Text[ japanese ] = "دɁuFontNamev̍ڂ͊܂܂Ă܂B";
+ Text[ korean ] = "Ʈ 'FontName' ׸̡ԵǾʽϴ.";
+ Text[ chinese_simplified ] = "ļû 'FontName' Ŀ";
+ Text[ chinese_traditional ] = "r׶qɮרS 'FontName' ءC";
+ Text[ turkish ] = "The metric does not contain a 'FontName' entry.";
+ Text[ arabic ] = " 'FontName' .";
+};
+String RID_AFMERROR_NO_FULL_NAME
+{
+ Text = "Die Metrik enthlt keinen 'FullName' Eintrag." ;
+ Text [ English ] = "The metric does not contain a 'FullName' entry." ;
+ Text[ english_us ] = "The metric does not contain a 'FullName' entry.";
+ Text[ portuguese ] = "A mtrica no contm a entrada 'FullName'.";
+ Text[ russian ] = " 'FullName'.";
+ Text[ greek ] = " 'FullName'.";
+ Text[ dutch ] = "De metriek bevat geen item 'FullName'.";
+ Text[ french ] = "La mtrique ne contient aucune entre 'FullName'.";
+ Text[ spanish ] = "La mtrica no contiene ninguna entrada 'FullName'.";
+ Text[ italian ] = "La metrica non contiene una voce 'FullName'.";
+ Text[ danish ] = "The metric does not contain a 'FullName' entry.";
+ Text[ swedish ] = "Metriken innehller ingen 'FullName'-post.";
+ Text[ polish ] = "Metryka nie zawiera wpisu 'FullName'.";
+ Text[ portuguese_brazilian ] = "The metric does not contain a 'FullName' entry.";
+ Text[ japanese ] = "دɂ́uFullNamev̍ڂ͊܂܂Ă܂B";
+ Text[ korean ] = "Ʈ 'FullName' ׸̡ԵǾʽϴ.";
+ Text[ chinese_simplified ] = "ļû 'FullName' Ŀ";
+ Text[ chinese_traditional ] = "r׶qɮרS 'FullName' ءC";
+ Text[ turkish ] = "The metric does not contain a 'FullName' entry.";
+ Text[ arabic ] = " 'FullName'.";
+};
+String RID_AFMERROR_NO_FAMILY_NAME
+{
+ Text = "Die Metrik enthlt keinen 'FamilyName' Eintrag." ;
+ Text [ English ] = "The metric does not contain a 'FamilyName' entry." ;
+ Text[ english_us ] = "The metric does not contain a 'FamilyName' entry.";
+ Text[ portuguese ] = "A mtrica no contm a entrada 'FamilyName'.";
+ Text[ russian ] = " 'FamilyName'.";
+ Text[ greek ] = " 'FamilyName'.";
+ Text[ dutch ] = "De metriek bevat geen item 'FamilyName'.";
+ Text[ french ] = "La mtrique ne contient aucune entre 'FamilyName'.";
+ Text[ spanish ] = "La mtrica no contiene una entrada 'FamilyName'.";
+ Text[ italian ] = "La metrica non contiene una voce 'FamilyName'.";
+ Text[ danish ] = "The metric does not contain a 'FamilyName' entry.";
+ Text[ swedish ] = "Metriken innehller ingen 'FamilyName'-post.";
+ Text[ polish ] = "Metryka nie zawiera wpisu 'FamilyName'.";
+ Text[ portuguese_brazilian ] = "The metric does not contain a 'FamilyName' entry.";
+ Text[ japanese ] = "دɁuFamilyNamev̍ڂ͊܂܂Ă܂B";
+ Text[ korean ] = " Ʈ 'FamilyName' ׸̡ԵǾʽϴ٣";
+ Text[ chinese_simplified ] = "ļû 'FamilyName' Ŀ";
+ Text[ chinese_traditional ] = "r׶qɮרS 'FamilyName' ءC";
+ Text[ turkish ] = "The metric does not contain a 'FamilyName' entry.";
+ Text[ arabic ] = " 'FamilyName'.";
+};
+String RID_AFMERROR_MOVETO_FAILED
+{
+ Text = "Die konvertierte Metrik kann nicht geschrieben werden." ;
+ Text [ English ] = "The converted metric could not be written." ;
+ Text[ english_us ] = "The converted metric could not be written.";
+ Text[ portuguese ] = "Impossvel escrever a mtrica convertida.";
+ Text[ russian ] = " .";
+ Text[ greek ] = " .";
+ Text[ dutch ] = "De geconverteerde metriek kon niet worden geschreven.";
+ Text[ french ] = "criture de la mtrique convertie impossible.";
+ Text[ spanish ] = "No se puede escribir la mtrica convertida.";
+ Text[ italian ] = "Impossibile scrivere la metrica convertita.";
+ Text[ danish ] = "The converted metric could not be written.";
+ Text[ swedish ] = "Det gr inte att skriva den konverterade metriken.";
+ Text[ polish ] = "Nie mona napisa skonwertowanej metryki.";
+ Text[ portuguese_brazilian ] = "The converted metric could not be written.";
+ Text[ japanese ] = "ϊدɏ݂͂ł܂B";
+ Text[ korean ] = "ȯȡƮϴ.";
+ Text[ chinese_simplified ] = "޷дѾתļ";
+ Text[ chinese_traditional ] = "LkgJwgഫr׶qɮסC";
+ Text[ turkish ] = "The converted metric could not be written.";
+ Text[ arabic ] = " .";
+};
+String RID_AFMERROR_STREAM_READ_FAILED
+{
+ Text = "Die Metrik konnte nicht gelesen werden." ;
+ Text [ English ] = "The metric could not be read." ;
+ Text[ english_us ] = "The metric could not be read.";
+ Text[ portuguese ] = "Foi impossvel ler mtrica.";
+ Text[ russian ] = " .";
+ Text[ greek ] = " .";
+ Text[ dutch ] = "De metriek kon niet worden gelezen.";
+ Text[ french ] = "Lecture de la mtrique impossible.";
+ Text[ spanish ] = "No se pudo leer la mtrica.";
+ Text[ italian ] = "Impossibile leggere la metrica.";
+ Text[ danish ] = "The metric could not be read.";
+ Text[ swedish ] = "Det gick inte att lsa metriken.";
+ Text[ polish ] = "Odczytanie metryki nie byo moliwe.";
+ Text[ portuguese_brazilian ] = "The metric could not be read.";
+ Text[ japanese ] = "دǂݎ܂łB";
+ Text[ korean ] = "Ʈ߽ϴ";
+ Text[ chinese_simplified ] = "޷ȡļ";
+ Text[ chinese_traditional ] = "LkŪr׶qɮסC";
+ Text[ turkish ] = "The metric could not be read.";
+ Text[ arabic ] = " .";
+};
+String RID_AFMERROR_STREAM_WRITE_FAILED
+{
+ Text = "Es konnte keine temporre Datei erzeugt werden." ;
+ Text [ English ] = "No temporary file could be created." ;
+ Text[ english_us ] = "A temporary file could not be created.";
+ Text[ portuguese ] = "Foi impossvel criar ficheiro temporrio.";
+ Text[ russian ] = " .";
+ Text[ greek ] = " .";
+ Text[ dutch ] = "Er kon geen tijdelijk bestand worden aangelegd.";
+ Text[ french ] = "Impossible de crer un fichier temporaire !";
+ Text[ spanish ] = "No se pudo crear ningn archivo temporal.";
+ Text[ italian ] = "Impossibile creare file temporanei.";
+ Text[ danish ] = "No temporary file could be created.";
+ Text[ swedish ] = "Det gick inte att skapa en temporr fil.";
+ Text[ polish ] = "Nie mona byo utworzy adnego pliku tymczasowego.";
+ Text[ portuguese_brazilian ] = "No temporary file could be created.";
+ Text[ japanese ] = "ꎞ̧ق쐬ł܂łB";
+ Text[ korean ] = "ӽá߽ϴ.";
+ Text[ chinese_simplified ] = "޷ʱļ";
+ Text[ chinese_traditional ] = "Lkإ߼ȮɪɮסC";
+ Text[ turkish ] = "No temporary file could be created.";
+ Text[ arabic ] = " .";
+};
+STRING RID_AFMERROR_NOT_A_METRIC
+{
+ Text = "Die Datei enthlt keine Metrik." ;
+ Text [ English ] = "The file does not contain a metric." ;
+ Text[ english_us ] = "The file does not contain a metric.";
+ Text[ portuguese ] = "O ficheiro no contm mtrica.";
+ Text[ russian ] = " .";
+ Text[ greek ] = " .";
+ Text[ dutch ] = "Het bestand bevat geen metriek.";
+ Text[ french ] = "Le fichier ne contient aucune mtrique.";
+ Text[ spanish ] = "El archivo no contiene mtrica.";
+ Text[ italian ] = "Il file non contiene metrica.";
+ Text[ danish ] = "The file does not contain a metric.";
+ Text[ swedish ] = "Filen innehller ingen metrik.";
+ Text[ polish ] = "Plik nie zawiera adnej metryki.";
+ Text[ portuguese_brazilian ] = "The file does not contain a metric.";
+ Text[ japanese ] = "̧قد͊܂܂Ă܂B";
+ Text[ korean ] = "Ͽ¡Ʈ̡ԵǾʽϴ.";
+ Text[ chinese_simplified ] = "ļûݡ";
+ Text[ chinese_traditional ] = "oɮרSr׶qƾڡC";
+ Text[ turkish ] = "The file does not contain a metric.";
+ Text[ arabic ] = " .";
+};
+String RID_AFMERROR_BOX_TXT
+{
+ Text = "Die Metrik\n\n%s\n\nkonnte aus folgendem Grund nicht konvertiert werden:\n\n" ;
+ Text [ English ] = "The metric\n\n%s\n\ncould not be converted for the following reason:\n\n" ;
+ Text[ english_us ] = "The metric\n\n%s\n\ncould not be converted for the following reason:\n\n";
+ Text[ portuguese ] = "Foi impossvel converter a mtrica\n\n%s\n\npela seguinte razo:\n\n";
+ Text[ russian ] = " \n\n%s\n\n :\n\n";
+ Text[ greek ] = " \n\n%s\n\n :\n\n";
+ Text[ dutch ] = "De metriek\n\n%s\n\nkon niet worden geconverteerd om de volgende reden:\n\n";
+ Text[ french ] = "Impossible de convertir la mtrique\n\n%s\n\npour la raison suivante :\n\n";
+ Text[ spanish ] = "Por el siguiente motivo no se pudo convertir la mtrica\n\n%s\\:\n\n";
+ Text[ italian ] = "Impossibile convertire la metrica\n\n%s\n\nper il motivo seguente:\n\n";
+ Text[ danish ] = "The metric\n\n%s\n\ncould not be converted for the following reason:\n\n";
+ Text[ swedish ] = "Det gick inte att konvertera metriken\n\n%s\n\n av fljande skl:\n\n";
+ Text[ polish ] = "Konwersja metryki\n\n%s\n\nnie bya moliwa, poniewa:\n\n";
+ Text[ portuguese_brazilian ] = "The metric\n\n%s\n\ncould not be converted for the following reason:\n\n";
+ Text[ japanese ] = "د\n\n%s\n\n͈ȉ̗Rŕϊ܂ł:\n\n";
+ Text[ korean ] = "\n\n%s\n\nƮءȯ߽ϴ:\n\n";
+ Text[ chinese_simplified ] = "ļ\n\n%s\n\n޷תԭ£\n\n";
+ Text[ chinese_traditional ] = "r׶qɮ\n\n%s\n\nLkQഫA]pUG\n\n";
+ Text[ turkish ] = "The metric\n\n%s\n\ncould not be converted for the following reason:\n\n";
+ Text[ arabic ] = " \n\n%s\n\n :\n\n";
+};
+
+ModelessDialog RID_PROGRESS_DLG
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Pos = MAP_APPFONT ( 10 , 10 ) ;
+ Size = MAP_APPFONT ( 150 , 90 ) ;
+ Moveable = TRUE ;
+ Closeable = FALSE ;
+ Text = "Bitte warten" ;
+ Text [ English ] = "Please wait" ;
+ CancelButton RID_PROGRESS_BTN_CANCEL
+ {
+ Pos = MAP_APPFONT ( 50 , 71 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ };
+ FixedText RID_PROGRESS_OPERATION_TXT
+ {
+ Pos = MAP_APPFONT ( 6 , 6 ) ;
+ Size = MAP_APPFONT ( 140 , 18 ) ;
+ };
+ FixedText RID_PROGRESS_PROGRESS_TXT
+ {
+ Pos = MAP_APPFONT( 6, 48 );
+ Size = MAP_APPFONT( 140, 8 );
+ Text = "Bereits bearbeitet" ;
+ };
+ Window RID_PROGRESS_STATUSBAR
+ {
+ SVLook = TRUE;
+ Border = TRUE;
+ Pos = MAP_APPFONT ( 6 , 58 ) ;
+ Size = MAP_APPFONT( 140, 8 );
+ };
+ FixedText RID_PROGRESS_FILENAME_TXT
+ {
+ Pos = MAP_APPFONT ( 6 , 28 ) ;
+ Size = MAP_APPFONT ( 140 , 8 ) ;
+ };
+ Text[ english_us ] = "Please wait";
+ Text[ portuguese ] = "Aguarde um momento...";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Even geduld a.u.b.";
+ Text[ french ] = "Veuillez patienter...";
+ Text[ spanish ] = "Espere por favor";
+ Text[ italian ] = "Vi preghiamo di attendere";
+ Text[ danish ] = "Please wait";
+ Text[ swedish ] = "Vnta";
+ Text[ polish ] = "Prosz zaczeka...";
+ Text[ portuguese_brazilian ] = "Please wait";
+ Text[ japanese ] = "΂炭҂";
+ Text[ korean ] = "ٸʽÿ";
+ Text[ chinese_simplified ] = "Ժ";
+ Text[ chinese_traditional ] = "бzy";
+ Text[ turkish ] = "Please wait";
+ Text[ arabic ] = " ";
+};
+
+String RID_OPERATION_CONVERTMETRIC
+{
+ Text = "Konvertierung der Fontmetriken";
+ Text [ English ] = "Converting font metrics";
+ Text[ english_us ] = "Font metrics conversion";
+ Text[ portuguese ] = "Converso das mtricas dos tipos de letra";
+ Text[ russian ] = " ";
+ Text[ dutch ] = "Lettertypen-metrieken converteren";
+ Text[ french ] = "Conversion des mtriques de polices";
+ Text[ spanish ] = "Conversin de las mtricas de fuente";
+ Text[ italian ] = "Conversione dei font di metrica";
+ Text[ danish ] = "Konverterer skrifttypemetrikkerne";
+ Text[ swedish ] = "Konvertering av teckensnittsmetriker";
+ Text[ polish ] = "Konwersja metryk czcionek";
+ Text[ portuguese_brazilian ] = "Converting font metrics";
+ Text[ japanese ] = "̫د̕ϊ";
+ Text[ chinese_simplified ] = "ת";
+ Text[ greek ] = " ";
+ Text[ korean ] = "۲øƮ ȯ";
+ Text[ chinese_traditional ] = "ഫr׶q";
+ Text[ arabic ] = " ";
+ Text[ turkish ] = "Yaztipi metriklerini dntr";
+};
+
+
+ModalDialog RID_PPDIMPORT_DLG
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 265 , 225 ) ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Text = "Treiberinstallation" ;
+ Text [ English ] = "Driver installation" ;
+
+ GroupBox RID_PPDIMP_GROUP_PATH
+ {
+ Pos = MAP_APPFONT( 5, 5 );
+ Size = MAP_APPFONT( 200, 50 );
+ Text = "Treiberverzeichnis";
+ Text [ English ] = "Driver directory";
+ Text[ english_us ] = "Driver directory";
+ Text[ portuguese ] = "Directrio do controlador";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Driver directory";
+ Text[ french ] = "Rpertoire du pilote";
+ Text[ spanish ] = "Directorio de controladores";
+ Text[ italian ] = "Cartella driver";
+ Text[ danish ] = "Driver directory";
+ Text[ swedish ] = "Drivrutinskatalog";
+ Text[ polish ] = "Katalog sterownikw";
+ Text[ portuguese_brazilian ] = "Driver directory";
+ Text[ japanese ] = "ײިڸ";
+ Text[ korean ] = "̹丮";
+ Text[ chinese_simplified ] = "Ŀ¼";
+ Text[ chinese_traditional ] = "Xʵ{ؿ";
+ Text[ turkish ] = "Driver directory";
+ Text[ arabic ] = " ";
+ };
+ FixedText RID_PPDIMP_TXT_PATH
+ {
+ Pos = MAP_APPFONT( 10, 33 );
+ Size = MAP_APPFONT( 190, 8 );
+ Text = "Bitte whlen Sie das Verzeichnis mit den Treiberdateien aus.";
+ Text [ English ] = "Please select the driver directory.";
+ Text[ english_us ] = "Please select the driver directory.";
+ Text[ portuguese ] = "Seleccione o directrio contendo os ficheiros do controlador.";
+ Text[ russian ] = " .";
+ Text[ greek ] = " .";
+ Text[ dutch ] = "Selecteer de driver directory.";
+ Text[ french ] = "Slectionnez le rpertoire contenant les fichiers du pilote.";
+ Text[ spanish ] = "Seleccione el directorio con los archivos de controlador.";
+ Text[ italian ] = "Seleziona la cartella con i file del driver";
+ Text[ danish ] = "Please select the driver directory.";
+ Text[ swedish ] = "Vlj katalogen med drivrutinsfiler.";
+ Text[ polish ] = "Naley wybra katalog z plikami sterownikw.";
+ Text[ portuguese_brazilian ] = "Please select the driver directory.";
+ Text[ japanese ] = "ײ̧ق̂ިڸ؂IĂB";
+ Text[ korean ] = "̹ϡ丮Ͻʽÿ.";
+ Text[ chinese_simplified ] = "ѡĿ¼";
+ Text[ chinese_traditional ] = "пܤ@ӧtXʵ{ؿC";
+ Text[ turkish ] = "Please select the driver directory.";
+ Text[ arabic ] = " .";
+ };
+ ComboBox RID_PPDIMP_LB_PATH
+ {
+ Dropdown = TRUE;
+ Border = TRUE;
+ Sort = TRUE;
+
+ Pos = MAP_APPFONT( 10, 15 );
+ Size = MAP_APPFONT( 130, 80 );
+ };
+ PushButton RID_PPDIMP_BTN_SEARCH
+ {
+ Pos = MAP_APPFONT( 145, 15 );
+ Size = MAP_APPFONT( 50, 14 );
+ Text = "~Durchsuchen...";
+ Text [ English ] = "~Search...";
+ Text[ english_us ] = "Browse...";
+ Text[ portuguese ] = "~Pesquisar...";
+ Text[ russian ] = "~...";
+ Text[ greek ] = "...";
+ Text[ dutch ] = "~Doorzoeken...";
+ Text[ french ] = "~Parcourir...";
+ Text[ spanish ] = "~Examinar...";
+ Text[ italian ] = "Sfoglia...";
+ Text[ danish ] = "~Search...";
+ Text[ swedish ] = "~Genomsk...";
+ Text[ polish ] = "Przegldaj...";
+ Text[ portuguese_brazilian ] = "~Search...";
+ Text[ japanese ] = "(~S)...";
+ Text[ korean ] = "ã...";
+ Text[ chinese_simplified ] = "Ѱ(~S)...";
+ Text[ chinese_traditional ] = "jM(~S)...";
+ Text[ turkish ] = "~Search...";
+ Text[ arabic ] = "...";
+ };
+
+ GroupBox RID_PPDIMP_GROUP_DRIVER
+ {
+ Pos = MAP_APPFONT( 5, 60 );
+ Size = MAP_APPFONT( 200, 160 );
+ Text = "Treiberauswahl";
+ Text [ English ] = "Installable drivers";
+ Text[ english_us ] = "Installable drivers";
+ Text[ portuguese ] = "Controladores disponveis";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Beschikbare drivers";
+ Text[ french ] = "Pilotes disponibles";
+ Text[ spanish ] = "Seleccin de controlador";
+ Text[ italian ] = "Selezione driver";
+ Text[ danish ] = "Installable drivers";
+ Text[ swedish ] = "Drivrutinsurval";
+ Text[ polish ] = "Wybr sterownikw";
+ Text[ portuguese_brazilian ] = "Installable drivers";
+ Text[ japanese ] = "ײނ̑I";
+ Text[ korean ] = "̹";
+ Text[ chinese_simplified ] = "ѡ";
+ Text[ chinese_traditional ] = "Xʵ{";
+ Text[ turkish ] = "Installable drivers";
+ Text[ arabic ] = " ";
+ };
+ MultiListBox RID_PPDIMP_LB_DRIVER
+ {
+ Border = TRUE;
+ Sort = TRUE;
+ SimpleMode = TRUE;
+ AutoHScroll = TRUE;
+ Pos = MAP_APPFONT( 10, 70 );
+ Size = MAP_APPFONT( 190, 120 );
+ };
+ FixedText RID_PPDIMP_TXT_DRIVER
+ {
+ Pos = MAP_APPFONT( 10, 195 );
+ Size = MAP_APPFONT( 190, 60 );
+ WordBreak = TRUE;
+ Text = "Bitte whlen Sie die gewnschten Treiber aus und besttigen mit der Schaltflche \"%s\".";
+ Text [ English ] = "Please select the drivers to install and press \"%s\".";
+ Text[ english_us ] = "Please select the drivers to install and press \"%s\".";
+ Text[ portuguese ] = "Seleccione os controladores desejados e confirme com o boto \"%s\".";
+ Text[ russian ] = " \"%s\".";
+ Text[ greek ] = " \"%s\".";
+ Text[ dutch ] = "Selecteer de gewenste drivers en druk op de knop \"%s\".";
+ Text[ french ] = "Slectionnez les pilotes et validez avec le bouton \"%s\".";
+ Text[ spanish ] = "Elija los controladores deseados y confrmelo con el botn \"%s\".";
+ Text[ italian ] = "Selezionate i driver e confermate con il pulsante \"%s\".";
+ Text[ danish ] = "Please select the drivers to install and press \"%s\".";
+ Text[ swedish ] = "Vlj drivrutiner och bekrfta med kommandoknappen \"%s\".";
+ Text[ polish ] = "Naley wybra dany sterownik i potwierdzi wybr klikniciem przycisku \"%s\".";
+ Text[ portuguese_brazilian ] = "Please select the drivers to install and press \"%s\".";
+ Text[ japanese ] = "ײނIāAm%sn݂ĂB";
+ Text[ korean ] = "ϴ¡̹ѡ \"%s\"ưȮϽʽÿ.";
+ Text[ chinese_simplified ] = "ѡҪװ֮ť \"%s\" ";
+ Text[ chinese_traditional ] = "襤nw˪Xʵ{s \"%s\" C";
+ Text[ turkish ] = "Please select the drivers to install and press \"%s\".";
+ Text[ arabic ] = " \"%s\" .";
+ };
+ String RID_PPDIMP_STR_LOADINGPPD
+ {
+ Text = "Suche nach Treibern";
+ Text [ English ] = "Searching for drivers";
+ Text[ english_us ] = "Searching for drivers";
+ Text[ portuguese ] = "Procurar controladores";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Bezig met zoeken naar drivers";
+ Text[ french ] = "Recherche de pilotes";
+ Text[ spanish ] = "Bsqueda de controladores";
+ Text[ italian ] = "Cerca i driver";
+ Text[ danish ] = "Searching for drivers";
+ Text[ swedish ] = "Skning efter drivrutiner";
+ Text[ polish ] = "Wyszukiwanie sterownikw";
+ Text[ portuguese_brazilian ] = "Searching for drivers";
+ Text[ japanese ] = "ײނTĂ܂";
+ Text[ korean ] = "̹˻";
+ Text[ chinese_simplified ] = "Ѱ";
+ Text[ chinese_traditional ] = "jMXʵ{";
+ Text[ turkish ] = "Searching for drivers";
+ Text[ arabic ] = " ";
+ };
+ OKButton RID_PPDIMP_BTN_OK
+ {
+ DefButton = TRUE;
+ Pos = MAP_APPFONT( 210, 10 );
+ Size = MAP_APPFONT( 50, 14 );
+ };
+ CancelButton RID_PPDIMP_BTN_CANCEL
+ {
+ Pos = MAP_APPFONT( 210, 29 );
+ Size = MAP_APPFONT( 50, 14 );
+ };
+
+ Text[ english_us ] = "Driver Installation";
+ Text[ portuguese ] = "Instalao de controlador";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Driver installatie";
+ Text[ french ] = "Installation du pilote";
+ Text[ spanish ] = "Instalacin de controlador";
+ Text[ italian ] = "Installazione driver";
+ Text[ danish ] = "Driver installation";
+ Text[ swedish ] = "Drivrutinsinstallation";
+ Text[ polish ] = "Instalacja sterownika";
+ Text[ portuguese_brazilian ] = "Driver installation";
+ Text[ japanese ] = "ײނ̲ݽİ";
+ Text[ korean ] = "̹ġ";
+ Text[ chinese_simplified ] = "װ";
+ Text[ chinese_traditional ] = "wXʵ{";
+ Text[ turkish ] = "Driver installation";
+ Text[ arabic ] = " ";
+};
+
+String RID_QUERY_REMOVEDRIVER
+{
+ Text = "Wollen Sie den Treiber \"%s\" wirklich entfernen ?";
+ Text [ English ] = "Do you really want to remove the driver \"%s\" ?";
+ Text[ english_us ] = "Do you really want to remove the driver \"%s\"?";
+ Text[ portuguese ] = "Eliminar este controlador?";
+ Text[ russian ] = " \"%s\"?";
+ Text[ greek ] = " ;";
+ Text[ dutch ] = "Wilt u driver \"%s\" werkelijk verwijderen ?";
+ Text[ french ] = "Voulez-vous vraiment supprimer le pilote \"%s\" ?";
+ Text[ spanish ] = "Desea realmente eliminar el controlador \"%s\"?";
+ Text[ italian ] = "Volete davvero rimuovere il driver \"%s\"?";
+ Text[ danish ] = "Do you really want to remove this driver ?";
+ Text[ swedish ] = "Vill du verkligen ta bort drivrutinen \"%s\"?";
+ Text[ polish ] = "Na pewno usun sterownik \"%s\"?";
+ Text[ portuguese_brazilian ] = "Do you really want to remove this driver ?";
+ Text[ japanese ] = "{ײ \"%s\" 폜ĂłB";
+ Text[ korean ] = "̡̹Ͻðڽϱ ?";
+ Text[ chinese_simplified ] = "Ҫɾ \"%s\" ";
+ Text[ chinese_traditional ] = "unXʵ{ \"%s\" H";
+ Text[ turkish ] = "Do you really want to remove this driver ?";
+ Text[ arabic ] = " \"%s\"";
+};
+
+String RID_QUERY_REMOVEPRINTER
+{
+ Text = "Wollen Sie diesen Drucker wirklich entfernen ?";
+ Text [ English ] = "Do you really want to remove this printer ?";
+ Text[ english_us ] = "Do you really want to remove this printer ?";
+ Text[ portuguese ] = "Eliminar esta impressora?";
+ Text[ russian ] = " ?";
+ Text[ greek ] = " ;";
+ Text[ dutch ] = "Wilt u deze printer werkelijk verwijderen ?";
+ Text[ french ] = "Voulez-vous vraiment supprimer cette imprimante ?";
+ Text[ spanish ] = "Desea realmente eliminar esta impresora?";
+ Text[ italian ] = "Volete davvero rimuovere la stampante?";
+ Text[ danish ] = "Do you really want to remove this printer ?";
+ Text[ swedish ] = "Vill du verkligen ta bort den hr skrivaren ?";
+ Text[ polish ] = "Na pewno usun t drukark ?";
+ Text[ portuguese_brazilian ] = "Do you really want to remove this printer ?";
+ Text[ japanese ] = "{ɂ폜ĂłB";
+ Text[ korean ] = "̡͸Ͻðڽϱ ?";
+ Text[ chinese_simplified ] = "ҪƳӡ";
+ Text[ chinese_traditional ] = "unoӦLH";
+ Text[ turkish ] = "Do you really want to remove this printer ?";
+ Text[ arabic ] = " ";
+};
+
+String RID_QUERY_REMOVEFONTFROMLIST
+{
+ Text = "Wollen Sie die ausgewhlten Schriften wirklich entfernen ?";
+ Text [ English ] = "Do you really want to remove the selected fonts ?";
+ Text[ english_us ] = "Do you really want to remove the selected fonts ?";
+ Text[ portuguese ] = "Eliminar os tipos de letra seleccionados?";
+ Text[ russian ] = " ?";
+ Text[ greek ] = " ;";
+ Text[ dutch ] = "Wilt u de geselecteerde lettertypen werkelijk verwijderen ?";
+ Text[ french ] = "Voulez-vous vraiment supprimer les polices slectionnes ?";
+ Text[ spanish ] = "Desea realmente eliminar las fuentes seleccionadas?";
+ Text[ italian ] = "Volete davvero rimuovere i font selezionati?";
+ Text[ danish ] = "Do you really want to remove the selected fonts ?";
+ Text[ swedish ] = "Vill du verkligen ta bort de markerade teckensnitten ?";
+ Text[ polish ] = "Na pewno usun zaznaczone czcionki ?";
+ Text[ portuguese_brazilian ] = "Do you really want to remove the selected fonts ?";
+ Text[ japanese ] = "{ɑItHg폜ĂłB";
+ Text[ korean ] = "Ͻš۲ Ͻðڽϱ ?";
+ Text[ chinese_simplified ] = "Ҫɾѡе壿";
+ Text[ chinese_traditional ] = "unR襤rH";
+ Text[ turkish ] = "Do you really want to remove the selected fonts ?";
+ Text[ arabic ] = " ɿ";
+};
+
+String RID_QUERY_DRIVERUSED
+{
+ Text = "Es gibt noch Drucker, die den Treiber \"%s\" benutzen. Wollen Sie ihn wirklich entfernen ? Die entsprechenden Drucker werden dann ebenfalls entfernt.";
+ Text [ English ] = "The driver \"%s\" is used by configured printers. Do you relly want to remove it ? The corresponding printers will be removed also.";
+ Text[ english_us ] = "There are still printers using the driver \"%s\". Do you really want to remove it? The corresponding printers will also be removed.";
+ Text[ portuguese ] = "Existem ainda impressoras a utilizar este controlador. Ao remov-lo estar tambm a remover as respectivas impressoras. Continuar?";
+ Text[ russian ] = " , . ? .";
+ Text[ greek ] = " , . ; .";
+ Text[ dutch ] = "Driver \"%s\" is nog in gebruik voor enkele printers. Wilt u hem werkelijk verwijderen? De desbetreffende printers worden dan eveneens verwijderd.";
+ Text[ french ] = "D'autres imprimantes utilisent le pilote \"%s\". Voulez-vous vraiment le supprimer ? Ceci entranera galement la suppression des imprimantes correspondantes.";
+ Text[ spanish ] = "Existen an impresoras que usan el controlador \"%s\". Desea realmente eliminarlo? Tambin se eliminarn las impresoras correspondientes.";
+ Text[ italian ] = "Ci sono ancora stampanti che utilizzano il driver \"%s\". Volete ugualmente rimuoverlo? Le stampanti corrispondenti verranno cos rimosse.";
+ Text[ danish ] = "This driver is used by configured printers. Do you relly want to remove it ? The corresponding printers will be removed also.";
+ Text[ swedish ] = "Det finns fortfarande skrivare som anvnder drivrutinen \"%s\". Vill du verkligen ta bort den? D tas ven motsvarande skrivare bort.";
+ Text[ polish ] = "Ze sterownika \"%s\" korzystaj jeszcze inne drukarki. Czy na pewno go usun? Jeli tak, to razem z nim usunite zostan rwnie drukarki.";
+ Text[ portuguese_brazilian ] = "This driver is used by configured printers. Do you relly want to remove it ? The corresponding printers will be removed also.";
+ Text[ japanese ] = "܂ײ \"%s\" gpĂ܂Bײނ폜Ă܂܂񂩁B폜Ă܂܂B";
+ Text[ korean ] = "̡̹ϴ¡Ͱֽϴ. ̡̹ Ͻðڽϱ ? ش硡͵ŵ˴ϴ.";
+ Text[ chinese_simplified ] = "һЩʹ \"%s\" ĴӡҪɾһƳصĴӡ";
+ Text[ chinese_traditional ] = "٦sb@Ǩϥ \"%s\" Xʵ{LCunRoXʵ{Ho˷|@_LC";
+ Text[ turkish ] = "This driver is used by configured printers. Do you relly want to remove it ? The corresponding printers will be removed also.";
+ Text[ arabic ] = " \"%s\". .";
+};
+
+String RID_ERR_REMOVEDEFAULTDRIVER
+{
+ Text = "Der Treiber \"%s\" wird von Ihrem Standarddrucker verwendet. Deshalb kann er nicht entfernt werden.";
+ Text [ English ] = "The driver \"%s\" is used by your standard printer. Therefore it cannot be removed.";
+ Text[ english_us ] = "The driver \"%s\" is used by your default printer. Therefore, it cannot be removed.";
+ Text[ portuguese ] = "Este controlador utilizado pela impressora padro, sendo portanto impossvel remov-lo.";
+ Text[ russian ] = " \"%s\" . .";
+ Text[ greek ] = " .";
+ Text[ dutch ] = "Driver \"%s\" kan niet worden verwijderd daar deze wordt gebruikt voor uw standaardprinter.";
+ Text[ french ] = "Votre imprimante par dfaut utilise le pilote \"%s\". Impossible de le supprimer.";
+ Text[ spanish ] = "No se puede eliminar el controlador \"%s\" porque lo usa su impresora estndar.";
+ Text[ italian ] = "Questo driver utilizzato dalla vostra stampante standard, per questo non pu essere eliminato.";
+ Text[ danish ] = "This driver is used by your standard printer. Therefore it cannot be removed.";
+ Text[ swedish ] = "Drivrutinen \"%s\" anvnds av din standardskrivare. Drfr gr det inte att ta bort den.";
+ Text[ polish ] = "Sterownika \"%s\" nie mona usun, poniewa korzysta z niego drukarka domylna uytkownika.";
+ Text[ portuguese_brazilian ] = "This driver is used by your standard printer. Therefore it cannot be removed.";
+ Text[ japanese ] = "ײ \"%s\" ͕WɎgpĂ邽߁A폜͂ł܂B";
+ Text[ korean ] = "̡̹¡ǡ⺻Ϳء˴ϴ. 󼭡ҡϴ٣";
+ Text[ chinese_simplified ] = "趨Ĭϴӡʹ \"%s\" ޷Ƴ";
+ Text[ chinese_traditional ] = "zq{LϥγoXʵ{ \"%s\" C]LkRoXʵ{C";
+ Text[ turkish ] = "This driver is used by your standard printer. Therefore it cannot be removed.";
+ Text[ arabic ] = " \"%s\" ɡ .";
+};
+
+String RID_ERR_PRINTERNOTREMOVEABLE
+{
+ Text = "Der Drucker %s kann nicht entfernt werden.";
+ Text [ English ] = "The printer %s cannot be removed.";
+ Text[ english_us ] = "The printer %s cannot be removed.";
+ Text[ portuguese ] = "Impossvel remover a impressora %s.";
+ Text[ russian ] = " %s .";
+ Text[ greek ] = " %s.";
+ Text[ dutch ] = "Printer %s kan niet worden verwijderd.";
+ Text[ french ] = "Impossible de supprimer l'imprimante %s.";
+ Text[ spanish ] = "No se puede eliminar la impresora %s.";
+ Text[ italian ] = "Non possibile rimuovere la stampante %s.";
+ Text[ danish ] = "The printer %s cannot be removed.";
+ Text[ swedish ] = "Det gr inte att ta bort skrivaren %s.";
+ Text[ polish ] = "Nie mona usun drukarki %s.";
+ Text[ portuguese_brazilian ] = "The printer %s cannot be removed.";
+ Text[ japanese ] = " %s ͍폜ł܂B";
+ Text[ korean ] = "%s ʹ¡Ҽϴ.";
+ Text[ chinese_simplified ] = "޷Ƴӡ %s ";
+ Text[ chinese_traditional ] = "LkL %s C";
+ Text[ turkish ] = "The printer %s cannot be removed.";
+ Text[ arabic ] = " %s.";
+};
+
+String RID_TXT_PRINTERALREADYEXISTS
+{
+ Text = "Es existiert bereits ein Drucker mit dem Namen \"%s\". Dieser Drucker wird nicht importiert.";
+ Text [ English ] = "A printer with the name \"%s\" already exists. This printer will not be imported.";
+ Text[ english_us ] = "A printer named \"%s\" already exists. This printer will not be imported.";
+ Text[ portuguese ] = "A impressora com o nome \"%s\" j existe. Esta no ser importada.";
+ Text[ russian ] = " \"%s\" . .";
+ Text[ greek ] = " \"%s\". .";
+ Text[ dutch ] = "Deze printer wordt niet gemporteerd daar er reeds een printer met de naam \"%s\" voorkomt in uw systeem.";
+ Text[ french ] = "Une imprimante nomme \"%s\" existe dj. Cette imprimante ne va pas tre importe.";
+ Text[ spanish ] = "Ya existe una impresora con el nombre \"%s\". Esta impresora no se importa.";
+ Text[ italian ] = "Una stampante dal nome \"%s\" esiste gi. La stampante non verr importata.";
+ Text[ danish ] = "A printer with the name \"%s\" already exists. This printer will not be imported.";
+ Text[ swedish ] = "Det finns redan en skrivare som heter \"%s\". Den hr skrivaren importeras inte.";
+ Text[ polish ] = "Istnieje ju drukarka o nazwie \"%s\". Drukarka ta nie zostanie importowana.";
+ Text[ portuguese_brazilian ] = "A printer with the name \"%s\" already exists. This printer will not be imported.";
+ Text[ japanese ] = "u%sv̖Ołɂ܂B Ͳ߰Ă܂B";
+ Text[ korean ] = "\"%s\" ̸ǡʹ¡̡̹մϴ. ̡ʹ¡鿩üϴ.";
+ Text[ chinese_simplified ] = "Ѿһͬ \"%s\" ӡ˲ӡ";
+ Text[ chinese_traditional ] = "wgsb@ӦPW \"%s\" LC]W[oӳ]ơC";
+ Text[ turkish ] = "A printer with the name \"%s\" already exists. This printer will not be imported.";
+ Text[ arabic ] = " \"%s\". .";
+};
+
+String RID_TXT_PRINTERWITHOUTCOMMAND
+{
+ Text = "Der Drucker \"%s\" ist unvollstndig konfiguriert und kann daher nicht importiert werden.";
+ Text [ English ] = "The printer \"%s\" has no valid configuration and therefore cannot be imported.";
+ Text[ english_us ] = "The printer \"%s\" has no valid configuration and, therefore, cannot be imported.";
+ Text[ portuguese ] = "A configurao da impressora \"%s\" no est completa, no podendo portanto ser importada.";
+ Text[ russian ] = " \"%s\" . .";
+ Text[ greek ] = " \"%s\" .";
+ Text[ dutch ] = "Printer \"%s\" kan niet worden gemporteerd daar deze geen geldige configuratie heeft.";
+ Text[ french ] = "L'imprimante \"%s\" n'a pas t correctement configure et ne peut donc pas tre importe.";
+ Text[ spanish ] = "La impresora \"%s\" no est correctamente configurada, por lo que no se puede importar.";
+ Text[ italian ] = "La stampante \"%s\" ha una configuraziopne non valida e per questo non pu essere importata.";
+ Text[ danish ] = "The printer \"%s\" has no valid configuration and therefore cannot be imported.";
+ Text[ swedish ] = "Det gr inte att importera skrivaren \"%s\" eftersom den inte r fullstndigt konfigurerad.";
+ Text[ polish ] = "Drukarki \"%s\" nie mona importowa, poniewa nie zostaa cakowicie skonfigurowana.";
+ Text[ portuguese_brazilian ] = "The printer \"%s\" has no valid configuration and therefore cannot be imported.";
+ Text[ japanese ] = "u%svݒ肳ĂȂ߁A߰Ăł܂B";
+ Text[ korean ] = "\"%s\" ʹ¡Ϻϰԡʾҽϴ٣󼭡鿩áϴ";
+ Text[ chinese_simplified ] = "ӡ \"%s\" ò޷ӡ";
+ Text[ chinese_traditional ] = "L \"%s\" tmC]LkW[oӳ]ơC";
+ Text[ turkish ] = "The printer \"%s\" has no valid configuration and therefore cannot be imported.";
+ Text[ arabic ] = " \"%s\" .";
+};
+
+String RID_TXT_DRIVERDOESNOTEXIST
+{
+ Text = "Der Treiber fr den Drucker \"%s1\" (%s2) ist nicht installiert. Daher kann der Drucker nicht importiert werden.";
+ Text [ English ] = "The driver for the printer \"%s1\" (%s2) is not installed. Therefore the printer cannot be imported.";
+ Text[ english_us ] = "The driver for the printer \"%s1\" (%s2) is not installed. Therefore the printer cannot be imported.";
+ Text[ portuguese ] = "O controlador para a impressora \"%s1\" (%s2) no est instalado, sendo portanto impossvel importar a impressora.";
+ Text[ russian ] = " \"%s1\" (%s2) . .";
+ Text[ greek ] = " \"%s1\" (%s2) . .";
+ Text[ dutch ] = "Printer \"%s1\" (%s2) kon niet worden gemporteerd daar er geen driver voor deze printer is genstalleerd.";
+ Text[ french ] = "Le pilote pour l'imprimante \"%s1\" (%s2) n'est pas install. Impossible d'importer l'imprimante !";
+ Text[ spanish ] = "No est instalado el controlador para la impresora \"%s1\" (%s2), por lo que no se puede importar la impresora.";
+ Text[ italian ] = "Il driver della stampante \"%s1\" (%s2) non installato, per questo la stampante non pu essere importata.";
+ Text[ danish ] = "The driver for the printer \"%s1\" (%s2) is not installed. Therefore the printer cannot be imported.";
+ Text[ swedish ] = "Drivrutinen fr skrivaren \"%s1\" (%s2) r inte installerad. Drfr gr det inte att importera skrivaren.";
+ Text[ polish ] = "Import drukarki \"%s1\" (%s2) nie jest moliwy, poniewa nie zainstlowano dla niej sterownika.";
+ Text[ portuguese_brazilian ] = "The driver for the printer \"%s1\" (%s2) is not installed. Therefore the printer cannot be imported.";
+ Text[ japanese ] = "u%s1v(%s2) ɕKvײނݽİقĂ܂BͲ߰Ăł܂B";
+ Text[ korean ] = "%s1\" (%s2)ǡ̹¡ġʾҽϴ٣󼭡 ʹ¡鿩üϴ.";
+ Text[ chinese_simplified ] = "ӡ \"%s1\" (%s2) ûаװá޷ӡ";
+ Text[ chinese_traditional ] = "L \"%s1\" (%s2) һݪXʵ{Sw˦nC]LkW[oӳ]ơC";
+ Text[ turkish ] = "The driver for the printer \"%s1\" (%s2) is not installed. Therefore the printer cannot be imported.";
+ Text[ arabic ] = " \"%s1\" (%s2) . .";
+};
+
+String RID_TXT_PRINTERADDFAILED
+{
+ Text = "Der Drucker \"%s\" konnte nicht erzeugt werden.";
+ Text = "The printer \"%s\" could not be added.";
+};
+
+ModalDialog RID_ADD_PRINTER_DIALOG
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 240 , 165 ) ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Text = "Drucker hinzufgen" ;
+ Text [ English ] = "Add printer" ;
+
+ FixedLine RID_ADDP_LINE
+ {
+ Pos = MAP_APPFONT( 5, 140 );
+ Size = MAP_APPFONT( 230, 2 );
+ };
+
+ OKButton RID_ADDP_BTN_FINISH
+ {
+ Pos = MAP_APPFONT( 185, 145 );
+ Size = MAP_APPFONT( 50, 15 );
+ Text = "~Fertig stellen";
+ Text [english] = "~Finish";
+ Text[ english_us ] = "~Finish";
+ Text[ portuguese ] = "~Finish";
+ Text[ russian ] = "~";
+ Text[ greek ] = "~Finish";
+ Text[ dutch ] = "~Voltooien";
+ Text[ french ] = "~Crer";
+ Text[ spanish ] = "~Crear";
+ Text[ italian ] = "~Crea";
+ Text[ danish ] = "~Finish";
+ Text[ swedish ] = "~Frdigstll";
+ Text[ polish ] = "~Utwrz";
+ Text[ portuguese_brazilian ] = "~Finish";
+ Text[ japanese ] = "";
+ Text[ korean ] = "~Finish";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "";
+ Text[ turkish ] = "~Finish";
+ Text[ arabic ] = "";
+ };
+ CancelButton RID_ADDP_BTN_CANCEL
+ {
+ Pos = MAP_APPFONT( 5, 145 );
+ Size = MAP_APPFONT( 50, 15 );
+ };
+ PushButton RID_ADDP_BTN_NEXT
+ {
+ Pos = MAP_APPFONT( 130, 145 );
+ Size = MAP_APPFONT( 50, 15 );
+ Text = "~Weiter >>";
+ Text [english] = "~Next >>";
+ Text[ english_us ] = "~Next >>";
+ Text[ portuguese ] = "~Next >>";
+ Text[ russian ] = "~ >>";
+ Text[ greek ] = "~Next >>";
+ Text[ dutch ] = "~Next >>";
+ Text[ french ] = "~Suivant >>";
+ Text[ spanish ] = "~Avanzar >>";
+ Text[ italian ] = "~Avanti >>";
+ Text[ danish ] = "~Next >>";
+ Text[ swedish ] = "N~sta >>";
+ Text[ polish ] = "Dalej >>";
+ Text[ portuguese_brazilian ] = "~Next >>";
+ Text[ japanese ] = " >>";
+ Text[ korean ] = "~Next >>";
+ Text[ chinese_simplified ] = " >>";
+ Text[ chinese_traditional ] = "~ >>";
+ Text[ turkish ] = "~Next >>";
+ Text[ arabic ] = " <<";
+ };
+ PushButton RID_ADDP_BTN_PREV
+ {
+ Pos = MAP_APPFONT( 75, 145 );
+ Size = MAP_APPFONT( 50, 15 );
+ Text = "<< ~Zurck";
+ Text [english] = "<< ~Back";
+ Text[ english_us ] = "<< ~Back";
+ Text[ portuguese ] = "<< ~Back";
+ Text[ russian ] = "<< ~";
+ Text[ greek ] = "<< ~Back";
+ Text[ dutch ] = "<< ~Vorige";
+ Text[ french ] = "<< ~Prcdent";
+ Text[ spanish ] = "<< ~Regresar";
+ Text[ italian ] = "<<~ Indietro";
+ Text[ danish ] = "<< ~Back";
+ Text[ swedish ] = "<< Till~baka";
+ Text[ polish ] = "<< Wstecz";
+ Text[ portuguese_brazilian ] = "<< ~Back";
+ Text[ japanese ] = "<< ߂";
+ Text[ korean ] = "<< ~Back";
+ Text[ chinese_simplified ] = "<< ";
+ Text[ chinese_traditional ] = "<< ^";
+ Text[ turkish ] = "<< ~Back";
+ Text[ arabic ] = ">> ";
+ };
+ Text[ english_us ] = "Add Printer";
+ Text[ portuguese ] = "Add printer";
+ Text[ russian ] = " ";
+ Text[ greek ] = "Add printer";
+ Text[ dutch ] = "~Nieuwe printer toevoegen";
+ Text[ french ] = "Ajouter une imprimante";
+ Text[ spanish ] = "Aadir impresora";
+ Text[ italian ] = "Aggiungi stampante";
+ Text[ danish ] = "Add printer";
+ Text[ swedish ] = "Lgg till skrivare";
+ Text[ polish ] = "Dodaj drukark";
+ Text[ portuguese_brazilian ] = "Add printer";
+ Text[ japanese ] = "̒lj";
+ Text[ korean ] = "Add printer";
+ Text[ chinese_simplified ] = "ӡ";
+ Text[ chinese_traditional ] = "W[L";
+ Text[ turkish ] = "Add printer";
+ Text[ arabic ] = " ";
+};
+
+TabPage RID_ADDP_PAGE_CHOOSEDRIVER
+{
+ Hide = TRUE;
+ Size = MAP_APPFONT( 240, 140 );
+ FixedText RID_ADDP_CHDRV_TXT_DRIVER
+ {
+ Pos = MAP_APPFONT( 5, 5 );
+ Size = MAP_APPFONT( 230, 8 );
+ Text = "Bitte whlen Sie einen passenden Treiber aus";
+ Text [english] = "Please select an auspicous driver";
+ Text[ english_us ] = "Please select a suitable driver";
+ Text[ portuguese ] = "Please select an auspicous driver";
+ Text[ russian ] = ", , ";
+ Text[ greek ] = "Please select an auspicous driver";
+ Text[ dutch ] = "Kies een passende driver";
+ Text[ french ] = "Slectionnez un pilote appropri.";
+ Text[ spanish ] = "Seleccione un controlador adecuado";
+ Text[ italian ] = "Selezionate un driver adatto";
+ Text[ danish ] = "Please select an auspicous driver";
+ Text[ swedish ] = "Vlj en passande drivrutin";
+ Text[ polish ] = "Wybierz odpowiedni sterownik";
+ Text[ portuguese_brazilian ] = "Please select an auspicous driver";
+ Text[ japanese ] = "K؂ײނIĂB";
+ Text[ korean ] = "Please select an auspicous driver";
+ Text[ chinese_simplified ] = "ѡһʵ";
+ Text[ chinese_traditional ] = "пܤ@ӦXAXʵ{C";
+ Text[ turkish ] = "Please select an auspicous driver";
+ Text[ arabic ] = " ";
+ };
+ ListBox RID_ADDP_CHDRV_BOX_DRIVER
+ {
+ Pos = MAP_APPFONT( 5, 15 );
+ Size = MAP_APPFONT( 175, 120 );
+ Border = TRUE;
+ Sort = TRUE;
+ };
+ PushButton RID_ADDP_CHDRV_BTN_ADD
+ {
+ Pos = MAP_APPFONT( 185, 15 );
+ Size = MAP_APPFONT( 50, 15 );
+ Text = "~Importieren...";
+ Text [english] = "~Import...";
+ Text[ english_us ] = "~Import...";
+ Text[ portuguese ] = "~Import...";
+ Text[ russian ] = "~...";
+ Text[ greek ] = "~Import...";
+ Text[ dutch ] = "~Importeren...";
+ Text[ french ] = "~Importer...";
+ Text[ spanish ] = "~Importar...";
+ Text[ italian ] = "Im~porta...";
+ Text[ danish ] = "~Import...";
+ Text[ swedish ] = "~Importera...";
+ Text[ polish ] = "Importuj..";
+ Text[ portuguese_brazilian ] = "~Import...";
+ Text[ japanese ] = "߰...";
+ Text[ korean ] = "~Import...";
+ Text[ chinese_simplified ] = "...";
+ Text[ chinese_traditional ] = "פJ...";
+ Text[ turkish ] = "~Import...";
+ Text[ arabic ] = "...";
+ };
+ PushButton RID_ADDP_CHDRV_BTN_REMOVE
+ {
+ Pos = MAP_APPFONT( 185, 35 );
+ Size = MAP_APPFONT( 50, 15 );
+ Text = "~Lschen";
+ Text [english] = "~Delete";
+ Text[ english_us ] = "~Delete";
+ Text[ portuguese ] = "~Delete";
+ Text[ russian ] = "~";
+ Text[ greek ] = "~Delete";
+ Text[ dutch ] = "~Wissen";
+ Text[ french ] = "~Supprimer";
+ Text[ spanish ] = "~Eliminar";
+ Text[ italian ] = "Elimina";
+ Text[ danish ] = "~Delete";
+ Text[ swedish ] = "~Radera";
+ Text[ polish ] = "Usu";
+ Text[ portuguese_brazilian ] = "~Delete";
+ Text[ japanese ] = "폜";
+ Text[ korean ] = "~Delete";
+ Text[ chinese_simplified ] = "Ƴ";
+ Text[ chinese_traditional ] = "R";
+ Text[ turkish ] = "~Delete";
+ Text[ arabic ] = "";
+ };
+ String RID_ADDP_CHDRV_STR_REMOVE
+ {
+ Text = "Treiber lschen";
+ Text [english] = "Delete driver";
+ Text[ english_us ] = "Delete driver";
+ Text[ portuguese ] = "Delete driver";
+ Text[ russian ] = " ";
+ Text[ greek ] = "Delete driver";
+ Text[ dutch ] = "Driver wissen";
+ Text[ french ] = "Supprimer le pilote";
+ Text[ spanish ] = "Eliminar controlador";
+ Text[ italian ] = "Elimina driver";
+ Text[ danish ] = "Delete driver";
+ Text[ swedish ] = "Radera drivrutin";
+ Text[ polish ] = "Delete driver";
+ Text[ portuguese_brazilian ] = "Delete driver";
+ Text[ japanese ] = "ײނ̍폜";
+ Text[ korean ] = "Delete driver";
+ Text[ chinese_simplified ] = "ɾ";
+ Text[ chinese_traditional ] = "Xʵ{";
+ Text[ turkish ] = "Delete driver";
+ Text[ arabic ] = " ";
+ };
+};
+
+TabPage RID_ADDP_PAGE_CHOOSEDEV
+{
+ Hide = TRUE;
+ Size = MAP_APPFONT( 240, 140 );
+ FixedText RID_ADDP_CHDEV_TXT_OVER
+ {
+ Pos = MAP_APPFONT( 40, 35 );
+ Size = MAP_APPFONT( 220, 8 );
+ Text = "Mchten Sie";
+ Text [english] = "Do you want to";
+ Text[ english_us ] = "Do you want to";
+ Text[ portuguese ] = "Do you want to";
+ Text[ russian ] = " ";
+ Text[ greek ] = "Do you want to";
+ Text[ dutch ] = "Wilt u";
+ Text[ french ] = "Que souhaitez-vous faire ?";
+ Text[ spanish ] = "Desea";
+ Text[ italian ] = "Volete";
+ Text[ danish ] = "Do you want to";
+ Text[ swedish ] = "Vill du";
+ Text[ polish ] = "Czy";
+ Text[ portuguese_brazilian ] = "Do you want to";
+ Text[ japanese ] = "޲̒lj";
+ Text[ korean ] = "Do you want to";
+ Text[ chinese_simplified ] = "Ҫ";
+ Text[ chinese_traditional ] = "nQ";
+ Text[ turkish ] = "Do you want to";
+ Text[ arabic ] = " ";
+ };
+ RadioButton RID_ADDP_CHDEV_BTN_PRINTER
+ {
+ Pos = MAP_APPFONT ( 40, 50 );
+ Size = MAP_APPFONT( 200, 10 );
+ Text = "einen ~Drucker anlegen";
+ Text [english] = "add a ~printer";
+ Text[ english_us ] = "Add a ~printer";
+ Text[ portuguese ] = "add a ~printer";
+ Text[ russian ] = " ";
+ Text[ greek ] = "add a ~printer";
+ Text[ dutch ] = "een ~printer definiren";
+ Text[ french ] = "Ajouter une ~imprimante";
+ Text[ spanish ] = "aadir una ~impresora";
+ Text[ italian ] = "Aggiungi una nuova stampante";
+ Text[ danish ] = "add a ~printer";
+ Text[ swedish ] = "Skapa en s~krivare";
+ Text[ polish ] = "Docz drukark";
+ Text[ portuguese_brazilian ] = "add a ~printer";
+ Text[ japanese ] = "̒lj";
+ Text[ korean ] = "add a ~printer";
+ Text[ chinese_simplified ] = "һӡ";
+ Text[ chinese_traditional ] = "sW@xL";
+ Text[ turkish ] = "add a ~printer";
+ Text[ arabic ] = " ";
+ };
+ RadioButton RID_ADDP_CHDEV_BTN_FAX
+ {
+ Pos = MAP_APPFONT ( 40, 60 );
+ Size = MAP_APPFONT( 200, 10 );
+ Text = "ein Fa~x einrichten";
+ Text [english] = "add a fa~x";
+ Text[ english_us ] = "Add a fa~x";
+ Text[ portuguese ] = "add a fa~x";
+ Text[ russian ] = " ";
+ Text[ greek ] = "add a fa~x";
+ Text[ dutch ] = "een fa~x inrichten";
+ Text[ french ] = "Ajouter un priphrique fa~x";
+ Text[ spanish ] = "aadir un fa~x";
+ Text[ italian ] = "Aggingi un fa~x";
+ Text[ danish ] = "add a fa~x";
+ Text[ swedish ] = "Lgg till en fa~x";
+ Text[ polish ] = "Docz faks";
+ Text[ portuguese_brazilian ] = "add a fa~x";
+ Text[ japanese ] = "Fa~x ̒lj";
+ Text[ korean ] = "add a fa~x";
+ Text[ chinese_simplified ] = "һ豸";
+ Text[ chinese_traditional ] = "]m@xǯu";
+ Text[ turkish ] = "add a fa~x";
+ Text[ arabic ] = " ";
+ };
+ RadioButton RID_ADDP_CHDEV_BTN_PDF
+ {
+ Pos = MAP_APPFONT ( 40, 70 );
+ Size = MAP_APPFONT( 200, 10 );
+ Text = "einen ~PDF-Konverter anlegen";
+ Text [english] = "add a P~DF converter";
+ Text[ english_us ] = "Add a P~DF converter";
+ Text[ portuguese ] = "add a P~DF printer";
+ Text[ russian ] = " P~DF";
+ Text[ greek ] = "add a P~DF printer";
+ Text[ dutch ] = "een P~DF-converter definiren";
+ Text[ french ] = "Ajouter un convertisseur P~DF";
+ Text[ spanish ] = "aadir un convertidor P~DF";
+ Text[ italian ] = "Aggiungi un convertitore ~PDF";
+ Text[ danish ] = "add a P~DF printer";
+ Text[ swedish ] = "Skapa en ~PDF-konverterare";
+ Text[ polish ] = "Docz drukark PDF";
+ Text[ portuguese_brazilian ] = "add a P~DF printer";
+ Text[ japanese ] = "P~DF ް̒lj";
+ Text[ korean ] = "add a P~DF printer";
+ Text[ chinese_simplified ] = "һ PDF ת";
+ Text[ chinese_traditional ] = "sW PDF ഫ";
+ Text[ turkish ] = "add a P~DF printer";
+ Text[ arabic ] = " PDF";
+ };
+ RadioButton RID_ADDP_CHDEV_BTN_OLD
+ {
+ Pos = MAP_APPFONT ( 40, 80 );
+ Size = MAP_APPFONT( 200, 10 );
+ Text = "Drucker aus einer StarOffice Installation ~importieren";
+ Text [english] = "~import printers from a StarOffice installation";
+ Text[ english_us ] = "~Import printers from a StarOffice installation";
+ Text[ portuguese ] = "~import printers from a StarOffice installation";
+ Text[ russian ] = "~ StarOffice";
+ Text[ greek ] = "~import printers from a StarOffice installation";
+ Text[ dutch ] = "~printers uit een StarOffice installatie importeren";
+ Text[ french ] = "~Importer une ou des imprimantes depuis une installation StarOffice";
+ Text[ spanish ] = "~Importar impresora desde una instalacin StarOffice";
+ Text[ italian ] = "~Importa le stampanti da un'installazione StarOffice";
+ Text[ danish ] = "~import printers from a StarOffice installation";
+ Text[ swedish ] = "~Importera skrivare frn en StarOffice-installation";
+ Text[ polish ] = "Importuj drukark z zainstalowanego programu StarOffice";
+ Text[ portuguese_brazilian ] = "~import printers from a StarOffice installation";
+ Text[ japanese ] = "StarSuite ̲ݽİق߰";
+ Text[ korean ] = "~import printers from a StarOffice installation";
+ Text[ chinese_simplified ] = " StarSuite װһӡ";
+ Text[ chinese_traditional ] = "q StarSuite w˵{פJL";
+ Text[ turkish ] = "~import printers from a StarOffice installation";
+ Text[ arabic ] = " StarOffice";
+ };
+};
+
+TabPage RID_ADDP_PAGE_NAME
+{
+ Hide = TRUE;
+ Size = MAP_APPFONT( 240, 140 );
+ FixedText RID_ADDP_NAME_TXT_NAME
+ {
+ Pos = MAP_APPFONT( 40, 35 );
+ Size = MAP_APPFONT( 220, 8 );
+ Text = "Bitte geben Sie einen Namen fr den Drucker ein";
+ Text [english] = "Please enter a name for the printer";
+ Text[ english_us ] = "Please enter a name for the printer";
+ Text[ portuguese ] = "Please enter a name for the printer";
+ Text[ russian ] = ", , ";
+ Text[ greek ] = "Please enter a name for the printer";
+ Text[ dutch ] = "Geef een printernaam aan";
+ Text[ french ] = "Spcifiez un nom pour l'imprimante.";
+ Text[ spanish ] = "Introduzca un nombre para la impresora";
+ Text[ italian ] = "Indicate un nome per la stampante";
+ Text[ danish ] = "Please enter a name for the printer";
+ Text[ swedish ] = "Ange ett namn fr skrivaren";
+ Text[ polish ] = "Podaj nazw drukarki";
+ Text[ portuguese_brazilian ] = "Please enter a name for the printer";
+ Text[ japanese ] = "̖O͂ĂB";
+ Text[ korean ] = "Please enter a name for the printer";
+ Text[ chinese_simplified ] = "һӡơ";
+ Text[ chinese_traditional ] = "бzJ@ӦLW١C";
+ Text[ turkish ] = "Please enter a name for the printer";
+ Text[ arabic ] = " ";
+ };
+ FixedText RID_ADDP_NAME_TXT_FAXNAME
+ {
+ Pos = MAP_APPFONT( 40, 35 );
+ Size = MAP_APPFONT( 220, 8 );
+ Text = "Bitte geben Sie einen Namen fr das Faxgert ein";
+ Text [english] = "Please enter a name for the fax device";
+ Text[ english_us ] = "Please enter a name for the fax device";
+ Text[ portuguese ] = "Please enter a name for the fax device";
+ Text[ russian ] = ", , ";
+ Text[ greek ] = "Please enter a name for the fax device";
+ Text[ dutch ] = "Geef een naam aan voor het faxapparaat";
+ Text[ french ] = "Spcifiez un nom pour le priphrique fax.";
+ Text[ spanish ] = "Introduzca un nombre para el dispositivo de fax";
+ Text[ italian ] = "Indicate il nome del fax:";
+ Text[ danish ] = "Please enter a name for the fax device";
+ Text[ swedish ] = "Ange ett namn fr faxen";
+ Text[ polish ] = "Podaj nazw faksu";
+ Text[ portuguese_brazilian ] = "Please enter a name for the fax device";
+ Text[ japanese ] = "Fax @̖O͂ĂB";
+ Text[ korean ] = "Please enter a name for the fax device";
+ Text[ chinese_simplified ] = "һ豸ơ";
+ Text[ chinese_traditional ] = "бzJ@ӶǯuW١C";
+ Text[ turkish ] = "Please enter a name for the fax device";
+ Text[ arabic ] = " ";
+ };
+ FixedText RID_ADDP_NAME_TXT_PDFNAME
+ {
+ Pos = MAP_APPFONT( 40, 35 );
+ Size = MAP_APPFONT( 220, 8 );
+ Text = "Bitte geben Sie einen Namen fr den PDF-Konverter ein";
+ Text [english] = "Please enter a name for the PDF converter";
+ Text[ english_us ] = "Please enter a name for the PDF converter";
+ Text[ portuguese ] = "Please enter a name for the PDF printer";
+ Text[ russian ] = ", , PDF";
+ Text[ greek ] = "Please enter a name for the PDF printer";
+ Text[ dutch ] = "Geef een naam aan voor de PDF-converter";
+ Text[ french ] = "Spcifiez un nom pour le convertisseur PDF.";
+ Text[ spanish ] = "Introduzca un nombre para el convertidor PDF";
+ Text[ italian ] = "Indicate il nome della stampante PDF";
+ Text[ danish ] = "Please enter a name for the PDF printer";
+ Text[ swedish ] = "Ange ett namn fr PDF-konverteraren";
+ Text[ polish ] = "Podaj nazw drukarki PDF";
+ Text[ portuguese_brazilian ] = "Please enter a name for the PDF printer";
+ Text[ japanese ] = "PDF ް̖O͂ĂB";
+ Text[ korean ] = "Please enter a name for the PDF printer";
+ Text[ chinese_simplified ] = "һ PDF תơ";
+ Text[ chinese_traditional ] = "бzJ@ PDF ഫW١C";
+ Text[ turkish ] = "Please enter a name for the PDF printer";
+ Text[ arabic ] = " PDF";
+ };
+ Edit RID_ADDP_NAME_EDT_NAME
+ {
+ Pos = MAP_APPFONT( 40, 45 );
+ Size = MAP_APPFONT( 160, 12 );
+ Border = TRUE;
+ };
+ Edit RID_ADDP_NAME_EDT_FAXNAME
+ {
+ Pos = MAP_APPFONT( 40, 45 );
+ Size = MAP_APPFONT( 160, 12 );
+ Border = TRUE;
+ Text = "Faxdrucker";
+ Text [english] = "Fax printer";
+ Text[ english_us ] = "Fax printer";
+ Text[ portuguese ] = "Fax printer";
+ Text[ russian ] = "-";
+ Text[ greek ] = "Fax printer";
+ Text[ dutch ] = "Fax printer";
+ Text[ french ] = "Imprimante fax";
+ Text[ spanish ] = "Impresora de fax";
+ Text[ italian ] = "Stampante Fax";
+ Text[ danish ] = "Fax printer";
+ Text[ swedish ] = "Faxskrivare";
+ Text[ polish ] = "Drukarka faksowa";
+ Text[ portuguese_brazilian ] = "Fax printer";
+ Text[ japanese ] = "Fax ";
+ Text[ korean ] = "Fax printer";
+ Text[ chinese_simplified ] = "ӡ";
+ Text[ chinese_traditional ] = "ǯu";
+ Text[ turkish ] = "Fax printer";
+ Text[ arabic ] = " ";
+ };
+ Edit RID_ADDP_NAME_EDT_PDFNAME
+ {
+ Pos = MAP_APPFONT( 40, 45 );
+ Size = MAP_APPFONT( 160, 12 );
+ Border = TRUE;
+ Text = "PDF-Konverter";
+ Text [english] = "PDF converter";
+ Text[ english_us ] = "PDF converter";
+ Text[ portuguese ] = "PDF printer";
+ Text[ russian ] = " PDF";
+ Text[ greek ] = "PDF printer";
+ Text[ dutch ] = "PDF-converter";
+ Text[ french ] = "Convertisseur PDF";
+ Text[ spanish ] = "Convertidor PDF";
+ Text[ italian ] = "Convertitore PDF";
+ Text[ danish ] = "PDF printer";
+ Text[ swedish ] = "PDF-konverterare";
+ Text[ polish ] = "Drukarka PDF";
+ Text[ portuguese_brazilian ] = "PDF printer";
+ Text[ japanese ] = "PDF ް";
+ Text[ korean ] = "PDF printer";
+ Text[ chinese_simplified ] = "PDF ת";
+ Text[ chinese_traditional ] = "PDF ഫ";
+ Text[ turkish ] = "PDF printer";
+ Text[ arabic ] = "PDF ";
+ };
+ CheckBox RID_ADDP_NAME_BOX_DEFAULT
+ {
+ Pos = MAP_APPFONT( 40, 60 );
+ Size = MAP_APPFONT( 160, 12 );
+ Text = "Als ~Standarddrucker verwenden";
+ Text [english] = "~Use as default printer";
+ Text[ english_us ] = "~Use as default printer";
+ Text[ portuguese ] = "~Set as default printer";
+ Text[ russian ] = " ";
+ Text[ greek ] = "~Set as default printer";
+ Text[ dutch ] = "Standaardprinter";
+ Text[ french ] = "Utiliser comme imprimante par ~dfaut";
+ Text[ spanish ] = "Definir como ~impresora estndar";
+ Text[ italian ] = "Imposta come stampante standard";
+ Text[ danish ] = "~Set as default printer";
+ Text[ swedish ] = "Anvnd som ~standardskrivare";
+ Text[ polish ] = "Ustaw jako drukark domyln";
+ Text[ portuguese_brazilian ] = "~Set as default printer";
+ Text[ japanese ] = "WƂĎgp";
+ Text[ korean ] = "~Set as default printer";
+ Text[ chinese_simplified ] = "趨ĬϵĴӡ";
+ Text[ chinese_traditional ] = "]wq{L";
+ Text[ turkish ] = "~Set as default printer";
+ Text[ arabic ] = " ";
+ };
+ CheckBox RID_ADDP_NAME_BOX_FAXSWALLOW
+ {
+ Pos = MAP_APPFONT( 40, 60 );
+ Size = MAP_APPFONT( 160, 12 );
+ Text = "~Faxnummer aus der Ausgabe entfernen";
+ Text [english] = "~fax number will be removed from output";
+ };
+};
+
+TabPage RID_ADDP_PAGE_COMMAND
+{
+ Hide = TRUE;
+ Size = MAP_APPFONT( 240, 140 );
+ FixedText RID_ADDP_CMD_TXT_COMMAND
+ {
+ Pos = MAP_APPFONT( 10, 10 );
+ Size = MAP_APPFONT( 165, 24 );
+ WordBreak = TRUE;
+ Text = "Geben Sie bitte eine Kommandozeile ein, mit der dieses Gert angesprochend werden kann";
+ Text [english] = "Please enter a command line appropriate for this device";
+ Text[ english_us ] = "Please enter a command line appropriate for this device.";
+ Text[ portuguese ] = "Please enter a command line appropriate for this device";
+ Text[ russian ] = ", , , .";
+ Text[ greek ] = "Please enter a command line appropriate for this device";
+ Text[ dutch ] = "Geef een commandoregel aan, waarmee dit apparaat kan worden opgeroepen";
+ Text[ french ] = "Saisissez une ligne de commande permettant de contacter ce priphrique.";
+ Text[ spanish ] = "Introduzca una lnea de comando para comunicarse con este dispositivo.";
+ Text[ italian ] = "Indicate una riga di comando per collegarvi alla periferica";
+ Text[ danish ] = "Please enter a command line appropriate for this device";
+ Text[ swedish ] = "Ange en kommandorad som r lmplig fr den hr enheten";
+ Text[ polish ] = "Podaj wiersz polece, za pomoc ktrego uaktywnione zostanie dane urzdzienie.";
+ Text[ portuguese_brazilian ] = "Please enter a command line appropriate for this device";
+ Text[ japanese ] = "ި޲쓮ލs͂ĂB";
+ Text[ korean ] = "Please enter a command line appropriate for this device";
+ Text[ chinese_simplified ] = "һܹ豸";
+ Text[ chinese_traditional ] = "бzJ@ӯեγoӳ]ƪOC";
+ Text[ turkish ] = "Please enter a command line appropriate for this device";
+ Text[ arabic ] = " ";
+ };
+ ComboBox RID_ADDP_CMD_BOX_COMMAND
+ {
+ Pos = MAP_APPFONT( 10, 30);
+ Size = MAP_APPFONT( 220, 105 );
+ Border = TRUE;
+ };
+ ComboBox RID_ADDP_CMD_BOX_PDFCOMMAND
+ {
+ Pos = MAP_APPFONT( 10, 30);
+ Size = MAP_APPFONT( 220, 80 );
+ Border = TRUE;
+ };
+ FixedText RID_ADDP_CMD_TXT_PDFDIR
+ {
+ Pos = MAP_APPFONT( 10, 115 );
+ Size = MAP_APPFONT( 220, 8 );
+ Text = "PDF Zielverzeichnis :";
+ Text [ english ] = "PDF target directory :";
+ Text[ english_us ] = "PDF target directory :";
+ Text[ portuguese ] = "PDF target directory :";
+ Text[ russian ] = " PDF :";
+ Text[ greek ] = "PDF target directory :";
+ Text[ dutch ] = "PDF doeldirectory :";
+ Text[ french ] = "Rpertoire cible PDF :";
+ Text[ spanish ] = "Directorio destino PDF:";
+ Text[ italian ] = "Cartella destinazione PDF :";
+ Text[ danish ] = "PDF target directory :";
+ Text[ swedish ] = "PDF-mlkatalog :";
+ Text[ polish ] = "PDF target directory :";
+ Text[ portuguese_brazilian ] = "PDF target directory :";
+ Text[ japanese ] = "PDF ޯިڸ:";
+ Text[ korean ] = "PDF target directory :";
+ Text[ chinese_simplified ] = "PDF ĿĿ¼";
+ Text[ chinese_traditional ] = "PDF ؼХؿG";
+ Text[ turkish ] = "PDF target directory :";
+ Text[ arabic ] = " PDF :";
+ };
+ Edit RID_ADDP_CMD_EDT_PDFDIR
+ {
+ Border = TRUE;
+ Pos = MAP_APPFONT( 10, 124 );
+ Size = MAP_APPFONT( 190, 12 );
+ };
+ PushButton RID_ADDP_CMD_BTN_PDFDIR
+ {
+ Pos = MAP_APPFONT( 205, 124 );
+ Size = MAP_APPFONT( 25, 12 );
+ Text = "...";
+ };
+ PushButton RID_ADDP_CMD_BTN_HELP
+ {
+ Pos = MAP_APPFONT( 180, 10 );
+ Size = MAP_APPFONT( 50, 15 );
+ Text = "~Hilfe";
+ Text [english] = "~Help";
+ Text[ english_us ] = "~Help";
+ Text[ portuguese ] = "~Help";
+ Text[ russian ] = "~";
+ Text[ greek ] = "~Help";
+ Text[ dutch ] = "~Help";
+ Text[ french ] = "~Aide";
+ Text[ spanish ] = "~Ayuda";
+ Text[ italian ] = "~?";
+ Text[ danish ] = "~Help";
+ Text[ swedish ] = "~Hjlp";
+ Text[ polish ] = "~Pomoc";
+ Text[ portuguese_brazilian ] = "~Help";
+ Text[ japanese ] = "";
+ Text[ korean ] = "~Help";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "";
+ Text[ turkish ] = "~Help";
+ Text[ arabic ] = "";
+ };
+ String RID_ADDP_CMD_STR_PDFHELP
+ {
+ Text = "Die Kommandozeile bei PDF Konvertern wird wie folgt verarbeitet: bei jedem gedruckten Dokument wird in der Kommandozeile jeweils \"(TMP)\" durch eine temporre Datei und \"(OUTFILE)\" durch die zu erzeugende PDF Datei ersetzt. Wenn \"(TMP)\" in der Kommandozeile vorkommt wird der PostScript-code in einer Datei bergeben, andernfalls ber die Standardeingabe (d.h. als Pipe)." ;
+ Text [ English ] = "The command line for PDF converters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ english_us ] = "The command line for PDF converters is executed as follows: for each document printed, \"(TMP)\" in the command line is replaced by a temporary file and \"(OUTFILE)\" in the command line is replaced by the target PDF file name. If \"(TMP)\" is in the command line, the PostScript code will be supplied via a file, otherwise via standard input (i.e. as a pipe).";
+ Text[ portuguese ] = "The command line for PDF filters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ russian ] = " PDF : \"(TMP)\" , \"(OUTFILE)\" - PDF, . \"(TMP)\", PostScript , (.. pipe).";
+ Text[ greek ] = "The command line for PDF filters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ dutch ] = "De commandoregel voor PDF-converters wordt als volgt uitgevoerd: bij ieder afgedrukt document wordt de variabele \"(TMP)\" in de commandoregel vervangen door een tijdelijk bestand en de variabele \"(OUTFILE)\" door het aan te leggen bestand. Als er \"(TMP)\" staat in de commandoregel wordt de PostScript-code in een bestand opgeslagen, in het andere geval via de standaardinvoer (bijv. als Pipe) doorgegeven.";
+ Text[ french ] = "Traitement de la ligne de commande pour les convertisseurs PDF : pour chaque document imprim, \"(TMP)\" est remplac par un fichier temporaire et \"(OUTFILE)\" par le fichier PDF gnrer. Si \"(TMP)\" apparat dans la ligne de commande, le code PostScript est transmis dans un fichier ; en cas contraire, il est transmis via l'entre par dfaut (c'est--dire comme tube (pipe)).";
+ Text[ spanish ] = "La lnea de comandos en convertidores PDF se tratar de esta forma: con cada documento que se imprima se sustituir en la lnea de comandos \"(TMP)\" por un archivo temporal y \"(OUTFILE)\" por el archivo PDF que se cree. Si \"(TMP)\" aparece en la lnea de comandos, el cdigo PostScript se transferir en un archivo, de lo contrario, a travs de una entrada estndar, o sea, como pipe.";
+ Text[ italian ] = "La riga di comando nei convertitori PDF viene modificata come segue: per ogni documento stampato viene sostituito rispettivamente il file \"(TMP)\" da un file temporaneo e \"(OUTFILE)\" da un un file PDF. Se \"(TMP)\" appare nella riga comandi, il codice PostScript verr trasmesso a un file, altrimenti verr trasemsso come immissione standard (cio come pipe).";
+ Text[ danish ] = "The command line for PDF filters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ swedish ] = "Kommandoraden fr PDF-konverterare bearbetas p fljande stt: p varje utskrivet dokument erstts \"(TMP)\" och \"(OUTFILE)\" i kommandoraden av en temporr fil resp. av PDF-filen som ska skapas. Om \"(TMP)\" frekommer i kommandoraden verfrs PostScript-koden i en fil, i annat fall via standardinmatningen (d.v.s. som pipe).";
+ Text[ polish ] = "The command line for PDF filters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ portuguese_brazilian ] = "The command line for PDF filters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ japanese ] = "PDF ްł̺ލŝ͎悤Ɏs܂: ޷Ă邽тɁAލs \"(TMP)\" ͈ꎞ̧قŁA\"(OUTFILE)\" ͍쐬 PDF ̧قŒu܂Bލs \"(TMP)\" ƁAPostScript ނ̧قɓǂݍ܂܂BłȂꍇ́AWH̓́A‚܂߲ײݏs܂B";
+ Text[ korean ] = "The command line for PDF filters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ chinese_simplified ] = "PDF תʽ£ӡÿĵʱָ֮зֱһʱļ \"(TMP)\" һĿ PDF ļ \"(OUTFILE)\" \"(TMP)\" Ѿ֮УPostScript ͻᱻ뵽һļ֮ͻһ׼( Pipe)";
+ Text[ chinese_traditional ] = "PDF ഫOBz覡pUGCLCӤɫO椧OΤ@ӼȮɮרӴN \"(TMP)\" MΤ@ӥؼ PDF ɮצW٨ӴN \"(OUTFILE)\" CpG \"(TMP)\" wgsbO椧APostScript NXN|QǻJ@ɮסAϤAN|O@ӼзǿJ(@ Pipe)C";
+ Text[ turkish ] = "The command line for PDF filters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ arabic ] = " PDF : ϡ \"(TMP)\" \"(OUTFILE)\" PDF . \"(TMP)\" ѡ PostScript ݡ ߡ ( Pipe).";
+ };
+ String RID_ADDP_CMD_STR_FAXHELP
+ {
+ Text = "Die Kommandozeile bei Faxgerten wird wie folgt verarbeitet: bei jedem gesendeten Fax wird in der Kommandozeile jeweils \"(TMP)\" durch eine temporre Datei und \"(PHONE)\" durch die Faxnummer ersetzt. Wenn \"(TMP)\" in der Kommandozeile vorkommt wird der PostScript-code in einer Datei bergeben, andernfalls ber die Standardeingabe (d.h. als Pipe)." ;
+ Text [ English ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ english_us ] = "The command line for fax devices is executed as follows: for each fax sent, \"(TMP)\" in the command line is replaced by a temporary file and \"(PHONE)\" in the command line is replaced by the fax number. If \"(TMP)\" appears in the command line, the PostScript code will be supplied via a file, otherwise it is passed as standard input (i.e. as a pipe).";
+ Text[ portuguese ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ russian ] = " : \"(TMP)\" , \"(PHONE)\" - . \"(TMP)\", PostScript , (.. pipe).";
+ Text[ greek ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ dutch ] = "De commandoregel voor fax wordt als volgt uitgevoerd: op iedere fax wordt bij het verzenden de variabele \"(TMP)\" in de commandoregel vervangen door een tijdelijk bestand en de variabele \"(PHONE)\" door het faxnummer. Als er \"(TMP)\" staat in de commandoregel wordt de PostScript-code in een bestand opgeslagen, in het andere geval via de standaardinvoer (bijv. als Pipe) doorgegeven.";
+ Text[ french ] = "Traitement de la ligne de commande pour les priphriques fax : pour chaque envoi de fax, \"(TMP)\" est remplac par un fichier temporaire et \"(PHONE)\" par le numro de fax. Si \"(TMP)\" apparat dans la ligne de commande, le code PostScript est transmis dans un fichier ; en cas contraire, il est transmis via l'entre par dfaut (c'est--dire comme tube (pipe)).";
+ Text[ spanish ] = "La lnea de comando en dispositivos de fax se ejecutar de esta forma: Para cada fax enviado se sustituir en la fila de comando \"(TMP)\" por un archivo temporal y \"(PHONE)\" por un nmero de fax. Si \"(TMP)\" aparece en la fila de comando se transmitir el cdigo PostScript a un archivo; en caso contrario se har mediante entrada estndar (es decir, como pipe).";
+ Text[ italian ] = "La riga comandi degli apparecchi fax verr impostata come segue: per ogni fax inviato ogni \"(TMP)\" della riga comandi verr sostituito da un file temporaneo e \"(PHONE)\" sar sostituito dal numero di fax. Se \"(TMP)\" appare nella riga comandi, il codice PostScript verr trasmesso a un file, altrimenti verr trasemsso come immissione standard (cio come pipe).";
+ Text[ danish ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ swedish ] = "Kommandoraden fr faxar bearbetas p fljande stt: p varje fax som skickas erstts \"(TMP)\" och \"(PHONE)\" i kommandoraden av en temporr fil resp. av faxnumret. Om \"(TMP)\" frekommer i kommandoraden verfrs PostScript-koden i en fil, i annat fall via standardinmatningen (d.v.s som pipe).";
+ Text[ polish ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ portuguese_brazilian ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ japanese ] = "Fax @ł̺ލŝ͎悤Ɏs܂: Fax M邽тɁAލs \"(TMP)\" ͈ꎞ̧قŁA\"(PHONE)\" ̧ԍŒu܂Bލs \"(TMP)\" ƁAPostScript ނ̧قɓǂݍ܂܂BłȂꍇ́AWH̓́A‚܂߲ײݏs܂B";
+ Text[ korean ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ chinese_simplified ] = "Ĵʽ£ķʱͨһʱļ\"(TMP)\" ô \"(PHONE)\" к \"(TMP)\" PostScript Դͻתһļͻᵱ׼뷽ʽ( Pipe)ݸС";
+ Text[ chinese_traditional ] = "ǯu涵OBz覡pUGHoǯuɳqLOΤ@ӼȮɮ״N\"(TMP)\" AζǯuXN \"(PHONE)\" CpGOt \"(TMP)\" APostScript NXN|ഫ@ɮסA_hN|@ЭJ覡(@ pipe)ǻOC";
+ Text[ turkish ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ arabic ] = " : ӡ \"(TMP)\" \"(PHONE)\" . \"(TMP)\" ѡ PostScript ݡ ߡ ( Pipe).";
+ };
+};
+
+TabPage RID_ADDP_PAGE_OLDPRINTERS
+{
+ Hide = TRUE;
+ Size = MAP_APPFONT( 240, 140 );
+ FixedText RID_ADDP_OLD_TXT_PRINTERS
+ {
+ Pos = MAP_APPFONT( 10, 10 );
+ Size = MAP_APPFONT( 165, 25 );
+ WordBreak = TRUE;
+ Text = "Diese Drucker knnen importiert werden. Bitte entfernen Sie diejenigen, die Sie nicht importieren mchten.";
+ Text [english] = "These printers can be imported. Please remove the ones you do not want to import.";
+ Text[ english_us ] = "These printers can be imported. Please remove the ones you do not want to import.";
+ Text[ portuguese ] = "These printers can be imported. Please remove the ones you do not want to import.";
+ Text[ russian ] = " . , .";
+ Text[ greek ] = "These printers can be imported. Please remove the ones you do not want to import.";
+ Text[ dutch ] = "Deze printers kunnen worden gemporteerd. Verwijder de printers die u niet wilt importeren.";
+ Text[ french ] = "Vous pouvez importer ces imprimantes. Supprimez celles que vous ne souhaitez pas importer.";
+ Text[ spanish ] = "Estas impresoras se pueden importar. Elimine las que no desee importar.";
+ Text[ italian ] = " possibile importare queste stampanti. Eliminate quelle che non volete importare.";
+ Text[ danish ] = "These printers can be imported. Please remove the ones you do not want to import.";
+ Text[ swedish ] = "De hr skrivarna kan importeras. Ta bort de som du inte vill importera.";
+ Text[ polish ] = "Dane drukarki mona importowa. Usu te, ktre nie maj by importowane.";
+ Text[ portuguese_brazilian ] = "These printers can be imported. Please remove the ones you do not want to import.";
+ Text[ japanese ] = "Ͳ߰Ăł܂B߰ĂȂ͍̂폜ĂB";
+ Text[ korean ] = "These printers can be imported. Please remove the ones you do not want to import.";
+ Text[ chinese_simplified ] = "ܹӡƳҪӡ";
+ Text[ chinese_traditional ] = "פJoǦLCбzݭnפJ]ơC";
+ Text[ turkish ] = "These printers can be imported. Please remove the ones you do not want to import.";
+ Text[ arabic ] = " . .";
+ };
+ MultiListBox RID_ADDP_OLD_BOX_PRINTERS
+ {
+ Pos = MAP_APPFONT( 10, 35 );
+ Size = MAP_APPFONT( 165, 100 );
+ Border = TRUE;
+ };
+ PushButton RID_ADDP_OLD_BTN_REMOVE
+ {
+ Pos = MAP_APPFONT( 180, 35 );
+ Size = MAP_APPFONT( 50, 15 );
+ Text = "~Entfernen";
+ Text [english] = "~Remove";
+ Text[ english_us ] = "~Remove";
+ Text[ portuguese ] = "~Remove";
+ Text[ russian ] = "";
+ Text[ greek ] = "~Remove";
+ Text[ dutch ] = "~Verwijderen";
+ Text[ french ] = "~Supprimer";
+ Text[ spanish ] = "~Eliminar";
+ Text[ italian ] = "~Rimuovi";
+ Text[ danish ] = "~Remove";
+ Text[ swedish ] = "~Ta bort";
+ Text[ polish ] = "Usu";
+ Text[ portuguese_brazilian ] = "~Remove";
+ Text[ japanese ] = "폜";
+ Text[ korean ] = "~Remove";
+ Text[ chinese_simplified ] = "Ƴ";
+ Text[ chinese_traditional ] = "R";
+ Text[ turkish ] = "~Remove";
+ Text[ arabic ] = "";
+ };
+ PushButton RID_ADDP_OLD_BTN_RESTORE
+ {
+ Pos = MAP_APPFONT( 180, 55 );
+ Size = MAP_APPFONT( 50, 15 );
+ Text = "~Zurcknehmen";
+ Text [english] = "~Undo";
+ Text[ english_us ] = "~Undo";
+ Text[ portuguese ] = "~Undo";
+ Text[ russian ] = "~";
+ Text[ greek ] = "~Undo";
+ Text[ dutch ] = "~Ongedaan maken";
+ Text[ french ] = "~Restaurer";
+ Text[ spanish ] = "~Deshacer";
+ Text[ italian ] = "~Cancella";
+ Text[ danish ] = "~Undo";
+ Text[ swedish ] = "~ngra";
+ Text[ polish ] = "~Cofnij";
+ Text[ portuguese_brazilian ] = "~Undo";
+ Text[ japanese ] = "ɖ߂";
+ Text[ korean ] = "~Undo";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "_";
+ Text[ turkish ] = "~Undo";
+ Text[ arabic ] = "";
+ };
+};
+
+TabPage RID_ADDP_PAGE_FAXDRIVER
+{
+ Hide = TRUE;
+ Size = MAP_APPFONT( 240, 140 );
+ FixedText RID_ADDP_FAXDRV_TXT_DRIVER
+ {
+ Pos = MAP_APPFONT( 40, 40 );
+ Size = MAP_APPFONT( 160, 19 );
+ WordBreak = TRUE;
+ Text = "Fr dieses Faxgert soll folgender Treiber verwendet werden:";
+ Text [english] = "Use the following driver for this fax device:";
+ Text[ english_us ] = "Use the following driver for this fax device:";
+ Text[ portuguese ] = "Use the following driver for this fax device:";
+ Text[ russian ] = " :";
+ Text[ greek ] = "Use the following driver for this fax device:";
+ Text[ dutch ] = "Voor dit faxapparaat moet u de volgende driver gebruiken:";
+ Text[ french ] = "Pilote utiliser pour le priphrique fax :";
+ Text[ spanish ] = "Para este dispositivo de fax se debe usar el siguiente controlador:";
+ Text[ italian ] = "Per questo fax utilizzate il driver seguente:";
+ Text[ danish ] = "Use the following driver for this fax device:";
+ Text[ swedish ] = "Anvnd fljande drivrutin fr den hr faxen:";
+ Text[ polish ] = "Dany faks ma korzysta z nastpujcego sterownika:";
+ Text[ portuguese_brazilian ] = "Use the following driver for this fax device:";
+ Text[ japanese ] = " Fax @ɂ͎ײނgpł܂:";
+ Text[ korean ] = "Use the following driver for this fax device:";
+ Text[ chinese_simplified ] = "豸ʹµ";
+ Text[ chinese_traditional ] = "пܥHUΩoӶǯuXʵ{G";
+ Text[ turkish ] = "Use the following driver for this fax device:";
+ Text[ arabic ] = " :";
+ };
+ RadioButton RID_ADDP_FAXDRV_BTN_DEFAULT
+ {
+ Pos = MAP_APPFONT( 40,60 );
+ Size = MAP_APPFONT( 160, 10 );
+ Text = "der Standardtreiber";
+ Text [english] = "the default driver";
+ Text[ english_us ] = "The default driver";
+ Text[ portuguese ] = "the default driver";
+ Text[ russian ] = " ";
+ Text[ greek ] = "the default driver";
+ Text[ dutch ] = "de standaarddriver";
+ Text[ french ] = "Pilote par dfaut";
+ Text[ spanish ] = "el controlador estndar";
+ Text[ italian ] = "Driver standard";
+ Text[ danish ] = "the default driver";
+ Text[ swedish ] = "Standarddrivrutinen";
+ Text[ polish ] = "Drukarka domylna";
+ Text[ portuguese_brazilian ] = "the default driver";
+ Text[ japanese ] = "Wײ";
+ Text[ korean ] = "the default driver";
+ Text[ chinese_simplified ] = "Ĭϵ";
+ Text[ chinese_traditional ] = "q{Xʵ{";
+ Text[ turkish ] = "the default driver";
+ Text[ arabic ] = " ";
+ };
+ RadioButton RID_ADDP_FAXDRV_BTN_SELECT
+ {
+ Pos = MAP_APPFONT( 40, 70 );
+ Size = MAP_APPFONT( 160,24 );
+ Text = "ein spezifischer Treiber, um die Formatierung einem anderen Drucker anzugleichen";
+ Text [ english ] = "a specific driver to format identical to a certain printer";
+ Text[ english_us ] = "A specific driver, to adapt the format to another printer";
+ Text[ portuguese ] = "a specific driver to format identical to a certain printer";
+ Text[ russian ] = " ";
+ Text[ greek ] = "a specific driver to format identical to a certain printer";
+ Text[ dutch ] = "een speciale driver voor het aanpassen van de opmaakattributen aan een andere printer";
+ Text[ french ] = "Pilote spcifique afin d'adapter le formatage une autre imprimante";
+ Text[ spanish ] = "Un controlador especfico para adaptar el formato con otra impresora";
+ Text[ italian ] = "un driver specifico per adattare la formattazione a un'altra stamapante";
+ Text[ danish ] = "a specific driver to format identical to a certain printer";
+ Text[ swedish ] = "En specifik drivrutin fr att anpassa formateringen till en annan skrivare";
+ Text[ polish ] = "Specjalny sterownik do przejcia formatw przez inn drukark";
+ Text[ portuguese_brazilian ] = "a specific driver to format identical to a certain printer";
+ Text[ japanese ] = "قɏݒ𓯊";
+ Text[ korean ] = "a specific driver to format identical to a certain printer";
+ Text[ chinese_simplified ] = "һӡʽ";
+ Text[ chinese_traditional ] = "Ω@ӨLL榡SXʵ{";
+ Text[ turkish ] = "a specific driver to format identical to a certain printer";
+ Text[ arabic ] = " .";
+ };
+};
+
+TabPage RID_ADDP_PAGE_PDFDRIVER
+{
+ Hide = TRUE;
+ Size = MAP_APPFONT( 240, 140 );
+ FixedText RID_ADDP_PDFDRV_TXT_DRIVER
+ {
+ Pos = MAP_APPFONT( 40, 40 );
+ Size = MAP_APPFONT( 160, 19 );
+ WordBreak = TRUE;
+ Text = "Fr diesen PDF-Konverter soll folgender Treiber verwendet werden:";
+ Text [english] = "Use the following driver for this PDF converter:";
+ Text[ english_us ] = "Use the following driver for this PDF converter:";
+ Text[ portuguese ] = "Use the following driver for this PDF printer:";
+ Text[ russian ] = " PDF :";
+ Text[ greek ] = "Use the following driver for this PDF printer:";
+ Text[ dutch ] = "Voor deze PDF-converter moet u de volgende driver gebruiken:";
+ Text[ french ] = "Pilote utiliser pour le convertisseur PDF :";
+ Text[ spanish ] = "Use el siguiente controlador para este convertidor PDF:";
+ Text[ italian ] = "Per questo convertitore PDF utilizzate il seguente driver:";
+ Text[ danish ] = "Use the following driver for this PDF printer:";
+ Text[ swedish ] = "Anvnd fljande drivrutin fr den hr PDF-konverteraren:";
+ Text[ polish ] = "Dana drukarka PDF ma korzysta z nastpujcego sterownika:";
+ Text[ portuguese_brazilian ] = "Use the following driver for this PDF printer:";
+ Text[ japanese ] = " PDF ްɂ͎ײނgpł܂:";
+ Text[ korean ] = "Use the following driver for this PDF printer:";
+ Text[ chinese_simplified ] = " PDF תʹµ";
+ Text[ chinese_traditional ] = "пܥHUΩo PDF ഫXʵ{G";
+ Text[ turkish ] = "Use the following driver for this PDF printer:";
+ Text[ arabic ] = " PDF :";
+ };
+ RadioButton RID_ADDP_PDFDRV_BTN_DEFAULT
+ {
+ Pos = MAP_APPFONT( 40,60 );
+ Size = MAP_APPFONT( 160, 10 );
+ Text = "der Standardtreiber";
+ Text [english] = "the default driver";
+ Text[ english_us ] = "The default driver";
+ Text[ portuguese ] = "the default driver";
+ Text[ russian ] = " ";
+ Text[ greek ] = "the default driver";
+ Text[ dutch ] = "de standaarddriver";
+ Text[ french ] = "Pilote par dfaut";
+ Text[ spanish ] = "el controlador estndar";
+ Text[ italian ] = "Driver standard";
+ Text[ danish ] = "the default driver";
+ Text[ swedish ] = "Standarddrivrutinen";
+ Text[ polish ] = "Drukarka domylna";
+ Text[ portuguese_brazilian ] = "the default driver";
+ Text[ japanese ] = "Wײ";
+ Text[ korean ] = "the default driver";
+ Text[ chinese_simplified ] = "Ĭϵ";
+ Text[ chinese_traditional ] = "q{Xʵ{";
+ Text[ turkish ] = "the default driver";
+ Text[ arabic ] = " ";
+ };
+ RadioButton RID_ADDP_PDFDRV_BTN_DIST
+ {
+ Pos = MAP_APPFONT( 40,70 );
+ Size = MAP_APPFONT( 160, 10 );
+ Text = "der Adobe Distiller(tm) Treiber";
+ Text [english] = "the Adobe Distiller(tm) driver";
+ Text[ english_us ] = "The Adobe Distiller(tm) driver";
+ Text[ portuguese ] = "the Adobe Distiller(tm) driver";
+ Text[ russian ] = " Adobe Distiller(tm)";
+ Text[ greek ] = "the Adobe Distiller(tm) driver";
+ Text[ dutch ] = "de Adobe Distiller(tm) driver";
+ Text[ french ] = "Pilote Adobe Distiller(tm)";
+ Text[ spanish ] = "El controlador Adobe Distiller(tm)";
+ Text[ italian ] = "Driver Adobe Distiller(tm)";
+ Text[ danish ] = "the Adobe Distiller(tm) driver";
+ Text[ swedish ] = "Drivrutinen Adobe Distiller(tm)";
+ Text[ polish ] = "Sterownik Adobe Distiller(tm)";
+ Text[ portuguese_brazilian ] = "the Adobe Distiller(tm) driver";
+ Text[ japanese ] = "Adobe Distiller(tm) ײ";
+ Text[ korean ] = "the Adobe Distiller(tm) driver";
+ Text[ chinese_simplified ] = "Adobe Distiller(tm) ";
+ Text[ chinese_traditional ] = "Adobe Distiller(tm) Xʵ{";
+ Text[ turkish ] = "the Adobe Distiller(tm) driver";
+ Text[ arabic ] = " Adobe Distiller(tm)";
+ };
+ RadioButton RID_ADDP_PDFDRV_BTN_SELECT
+ {
+ Pos = MAP_APPFONT( 40, 80 );
+ Size = MAP_APPFONT( 160,24 );
+ Text = "ein spezifischer Treiber, um die Formatierung einem anderen Drucker anzugleichen";
+ Text [ english ] = "a specific driver to format identical to a certain printer";
+ Text[ english_us ] = "A specific driver, to adapt the format to another printer";
+ Text[ portuguese ] = "a specific driver to format identical to a certain printer";
+ Text[ russian ] = " ";
+ Text[ greek ] = "a specific driver to format identical to a certain printer";
+ Text[ dutch ] = "een speciale driver voor het aanpassen van de opmaakattributen aan een andere printer";
+ Text[ french ] = "Pilote spcifique afin d'adapter le formatage une autre imprimante";
+ Text[ spanish ] = "Un controlador especfico para adaptar el formato a otra impresora";
+ Text[ italian ] = "un driver specifico per adattare la formattazione a un'altra stampante";
+ Text[ danish ] = "a specific driver to format identical to a certain printer";
+ Text[ swedish ] = "En specifik drivrutin fr att anpassa formateringen till en annan skrivare";
+ Text[ polish ] = "Specjalny sterownik do przejcia formatw przez inn drukark.";
+ Text[ portuguese_brazilian ] = "a specific driver to format identical to a certain printer";
+ Text[ japanese ] = "قɏݒ𓯊ײ";
+ Text[ korean ] = "a specific driver to format identical to a certain printer";
+ Text[ chinese_simplified ] = "һӡʽ";
+ Text[ chinese_traditional ] = "Ω@ӨLL榡SXʵ{";
+ Text[ turkish ] = "a specific driver to format identical to a certain printer";
+ Text[ arabic ] = " ";
+ };
+};
diff --git a/padmin/source/pamain.cxx b/padmin/source/pamain.cxx
new file mode 100644
index 000000000000..fab4b692d209
--- /dev/null
+++ b/padmin/source/pamain.cxx
@@ -0,0 +1,160 @@
+/*************************************************************************
+ *
+ * $RCSfile: pamain.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56: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 <stdio.h>
+#include <unistd.h>
+
+#ifndef _SV_SVAPP_HXX
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _SV_WRKWIN_HXX
+#include <vcl/wrkwin.hxx>
+#endif
+#ifndef _VCL_UNOWRAP_HXX
+#include <vcl/unowrap.hxx>
+#endif
+#ifndef _PAD_PADIALOG_HXX_
+#include <padialog.hxx>
+#endif
+#ifndef _PAD_HELPER_HXX_
+#include <helper.hxx>
+#endif
+
+#ifndef _CPPUHELPER_SERVICEFACTORY_HXX_
+#include <cppuhelper/servicefactory.hxx>
+#endif
+
+#ifndef _COMPHELPER_PROCESSFACTORY_HXX_
+#include <comphelper/processfactory.hxx>
+#endif
+
+using namespace padmin;
+using namespace rtl;
+using namespace cppu;
+using namespace com::sun::star::uno;
+using namespace com::sun::star::lang;
+using namespace comphelper;
+
+// -----------------------------------------------------------------------
+
+class MyApp : public Application
+{
+public:
+ void Main();
+ virtual USHORT Exception( USHORT nError );
+};
+
+MyApp aMyApp;
+
+
+// -----------------------------------------------------------------------
+
+USHORT MyApp::Exception( USHORT nError )
+{
+ switch( nError & EXC_MAJORTYPE )
+ {
+ case EXC_RSCNOTLOADED:
+ Abort( String::CreateFromAscii( "Error: could not load language resources.\nPlease check your installation.\n" ) );
+ break;
+ }
+ return 0;
+}
+
+void MyApp::Main()
+{
+ PADialog* pPADialog;
+
+ //-------------------------------------------------
+ // create the global service-manager
+ //-------------------------------------------------
+
+ OUString aReadRdbName( Application::GetAppFileName() );
+ int nLastSlash = aReadRdbName.lastIndexOf( '/' );
+ if( nLastSlash >= 0 )
+ aReadRdbName = aReadRdbName.copy( 0, nLastSlash+1 );
+ else
+ aReadRdbName = OUString();
+ aReadRdbName += OUString::createFromAscii( "applicat.rdb" );
+
+ OUString aWriteRdbName( OUString::createFromAscii( "/tmp/padmin" ) );
+ aWriteRdbName += OUString::valueOf( (sal_Int32)getpid() );
+ aWriteRdbName += OUString::createFromAscii( ".rdb" );
+
+#ifdef DEBUG
+ printf( "using write registry %s\n", OUStringToOString( aWriteRdbName, RTL_TEXTENCODING_ISO_8859_1 ).getStr() );
+ printf( "using read registry %s\n", OUStringToOString( aReadRdbName, RTL_TEXTENCODING_ISO_8859_1 ).getStr() );
+#endif
+ Reference< XMultiServiceFactory > xFactory( createRegistryServiceFactory( aWriteRdbName, aReadRdbName ) );
+ if( xFactory.is() )
+ setProcessServiceFactory( xFactory );
+#ifdef DEBUG
+ else
+ fprintf( stderr, "could not create service factory\n" );
+#endif
+
+ pPADialog = PADialog::Create( NULL , FALSE );
+ Application::SetDisplayName( pPADialog->GetText() );
+ pPADialog->Execute();
+ delete pPADialog;
+
+ OString aTmp( OUStringToOString( aWriteRdbName, RTL_TEXTENCODING_ISO_8859_1 ) );
+ unlink( aTmp.getStr() );
+}
diff --git a/padmin/source/progress.cxx b/padmin/source/progress.cxx
new file mode 100644
index 000000000000..c719064e210d
--- /dev/null
+++ b/padmin/source/progress.cxx
@@ -0,0 +1,152 @@
+/*************************************************************************
+ *
+ * $RCSfile: progress.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56: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 <ctype.h>
+#include <stdio.h>
+
+#ifndef _STRING_HXX
+#include <tools/string.hxx>
+#endif
+#ifndef _STREAM_HXX
+#include <tools/stream.hxx>
+#endif
+#ifndef _LIST_HXX
+#include <tools/list.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX
+#include <vcl/svapp.hxx>
+#endif
+
+#ifndef _PAD_PROGRESS_HXX_
+#include <progress.hxx>
+#endif
+#ifndef _PAD_HELPER_HXX_
+#include <helper.hxx>
+#endif
+#ifndef _PAD_PADIALOG_HRC_
+#include <padialog.hrc>
+#endif
+
+using namespace padmin;
+
+ProgressDialog::ProgressDialog( Window* pParent,
+ BOOL bCancelable,
+ int nMin, int nMax ) :
+ ModelessDialog( pParent, PaResId( RID_PROGRESS_DLG ) ),
+ maCancelButton( this, PaResId( RID_PROGRESS_BTN_CANCEL ) ),
+ maOperation( this, PaResId( RID_PROGRESS_OPERATION_TXT ) ),
+ maFilename( this, PaResId( RID_PROGRESS_FILENAME_TXT ) ),
+ maProgressTxt( this, PaResId( RID_PROGRESS_PROGRESS_TXT ) ),
+ maProgressBar( this, PaResId( RID_PROGRESS_STATUSBAR ) ),
+ mnMin( nMin ),
+ mnMax( nMax ),
+ mbCanceled( FALSE )
+{
+ if( ! bCancelable )
+ {
+ Point aPos = maProgressBar.GetPosPixel();
+ Size aSize = maProgressBar.GetSizePixel();
+ Size aMySize = GetOutputSizePixel();
+ aMySize.Height() = aPos.Y() + aSize.Height() + 5;
+ SetOutputSizePixel( aMySize );
+ }
+ else
+ maCancelButton.SetClickHdl( LINK( this, ProgressDialog, ClickBtnHdl ) );
+ FreeResource();
+}
+
+ProgressDialog::~ProgressDialog()
+{
+}
+
+void ProgressDialog::startOperation( const String& rOperation )
+{
+ maOperation.SetText( rOperation );
+ maProgressBar.SetValue( 0 );
+ mbCanceled = FALSE;
+ if( ! IsVisible() )
+ Show( TRUE );
+}
+
+void ProgressDialog::setValue( int nValue )
+{
+ maProgressBar.SetValue( nValue * 100 / ( mnMax - mnMin ) );
+ Application::Reschedule();
+}
+
+void ProgressDialog::setFilename( const String& rFilename )
+{
+ maFilename.SetText( rFilename );
+ maFilename.Update();
+ Flush();
+}
+
+IMPL_LINK( ProgressDialog, ClickBtnHdl, Button*, pButton )
+{
+ if( pButton == &maCancelButton )
+ {
+ mbCanceled = TRUE;
+ }
+ return 0;
+}
diff --git a/padmin/source/progress.hxx b/padmin/source/progress.hxx
new file mode 100644
index 000000000000..df7b9b1ab22a
--- /dev/null
+++ b/padmin/source/progress.hxx
@@ -0,0 +1,107 @@
+/*************************************************************************
+ *
+ * $RCSfile: progress.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56: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 _PAD_PROGRESS_HXX_
+#define _PAD_PROGRESS_HXX_
+
+#ifndef _SV_DIALOG_HXX
+#include <vcl/dialog.hxx>
+#endif
+#ifndef _SV_FIXED_HXX
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX
+#include <vcl/button.hxx>
+#endif
+#ifndef _PRGSBAR_HXX
+#include <prgsbar.hxx>
+#endif
+
+namespace padmin {
+
+ class ProgressDialog : public ModelessDialog
+ {
+ FixedText maOperation;
+ FixedText maFilename;
+ FixedText maProgressTxt;
+ CancelButton maCancelButton;
+ ::padmin::ProgressBar maProgressBar;
+
+ int mnMax, mnMin;
+ BOOL mbCanceled;
+
+ public:
+ ProgressDialog( Window*, BOOL bCancelable = TRUE, int nMin = 0, int nMax = 100 );
+ ~ProgressDialog();
+
+ DECL_LINK( ClickBtnHdl, Button* );
+
+ void setValue( int nValue );
+ void setRange( int nMin, int nMax ) { mnMin = nMin; mnMax = nMax; }
+ void startOperation( const String& );
+ void setFilename( const String& );
+
+ BOOL isCanceled() { return mbCanceled; }
+ };
+
+} // namespace
+
+#endif
diff --git a/padmin/source/prtsetup.cxx b/padmin/source/prtsetup.cxx
new file mode 100644
index 000000000000..11411f2e93d3
--- /dev/null
+++ b/padmin/source/prtsetup.cxx
@@ -0,0 +1,757 @@
+/*************************************************************************
+ *
+ * $RCSfile: prtsetup.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56: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 _PSPRINT_FONTMANAGER_HXX_
+#include <psprint/fontmanager.hxx>
+#endif
+#ifndef _PAD_PRTSETUP_HXX_
+#include <prtsetup.hxx>
+#endif
+#ifndef _PAD_HELPER_HXX_
+#include <helper.hxx> // for PaResId
+#endif
+#ifndef _PAD_RTSETUP_HRC_
+#include <rtsetup.hrc>
+#endif
+#ifndef _PAD_COMMANDDLG_HXX_
+#include <cmddlg.hxx>
+#endif
+
+#define LSCAPE_STRING String( RTL_CONSTASCII_USTRINGPARAM( "Landscape" ) )
+#define PORTRAIT_STRING String( RTL_CONSTASCII_USTRINGPARAM( "Portrait" ) )
+
+using namespace rtl;
+using namespace psp;
+using namespace padmin;
+
+void RTSDialog::insertAllPPDValues( ListBox& rBox, const PPDKey* pKey )
+{
+ if( ! pKey )
+ return;
+
+ const PPDValue* pValue = NULL;
+ USHORT nPos = 0;
+ String aOptionText;
+
+ for( int i = 0; i < pKey->countValues(); i++ )
+ {
+ pValue = pKey->getValue( i );
+ aOptionText = pValue->m_aOptionTranslation.Len() ? pValue->m_aOptionTranslation : pValue->m_aOption;
+
+ if( m_aJobData.m_aContext.checkConstraints( pKey, pValue ) )
+ {
+ if( rBox.GetEntryPos( (void*)pValue ) == LISTBOX_ENTRY_NOTFOUND )
+ {
+ nPos = rBox.InsertEntry( aOptionText, LISTBOX_APPEND );
+ rBox.SetEntryData( nPos, (void*)pValue );
+ }
+ }
+ else
+ {
+ if( ( nPos = rBox.GetEntryPos( (void*)pValue ) ) != LISTBOX_ENTRY_NOTFOUND )
+ rBox.RemoveEntry( nPos );
+ }
+ }
+ pValue = m_aJobData.m_aContext.getValue( pKey );
+ if( pValue )
+ {
+ if( ( nPos = rBox.GetEntryPos( (void*)pValue ) ) != LISTBOX_ENTRY_NOTFOUND )
+ rBox.SelectEntryPos( nPos );
+ }
+ else
+ rBox.SelectEntry( m_aInvalidString );
+}
+
+// --------------------------------------------------------------------------
+
+/*
+ * RTSDialog
+ */
+
+RTSDialog::RTSDialog( const PrinterInfo& rJobData, const String& rPrinter, bool bAllPages, Window* pParent ) :
+ TabDialog( pParent, PaResId( RID_RTS_RTSDIALOG ) ),
+ m_aTabControl( this, PaResId( RID_RTS_RTSDIALOG_TABCONTROL ) ),
+
+ m_aJobData( rJobData ),
+ m_aPrinter( rPrinter ),
+ m_aOKButton( this ),
+ m_aCancelButton( this ),
+
+ m_aInvalidString( PaResId( RID_RTS_RTSDIALOG_INVALID_TXT ) ),
+ m_aFromDriverString( PaResId( RID_RTS_RTSDIALOG_FROMDRIVER_TXT ) ),
+
+ m_pPaperPage( NULL ),
+ m_pDevicePage( NULL ),
+ m_pOtherPage( NULL ),
+ m_pFontSubstPage( NULL ),
+ m_pCommandPage( NULL )
+{
+ FreeResource();
+ rtl_TextEncoding aEncoding = gsl_getSystemTextEncoding();
+
+ String aTitle( GetText() );
+ aTitle.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "%s" ) ), m_aJobData.m_aPrinterName );
+ SetText( aTitle );
+
+ if( ! bAllPages )
+ {
+ m_aTabControl.RemovePage( RID_RTS_OTHERPAGE );
+ m_aTabControl.RemovePage( RID_RTS_FONTSUBSTPAGE );
+ m_aTabControl.RemovePage( RID_RTS_COMMANDPAGE );
+ }
+
+ m_aTabControl.SetActivatePageHdl( LINK( this, RTSDialog, ActivatePage ) );
+ m_aOKButton.SetClickHdl( LINK( this, RTSDialog, ClickButton ) );
+ m_aCancelButton.SetClickHdl( LINK( this, RTSDialog, ClickButton ) );
+ ActivatePage( &m_aTabControl );
+
+ m_aOKButton.Show();
+ m_aCancelButton.Show();
+}
+
+// --------------------------------------------------------------------------
+
+RTSDialog::~RTSDialog()
+{
+ if( m_pPaperPage )
+ delete m_pPaperPage;
+ if( m_pDevicePage )
+ delete m_pDevicePage;
+ if( m_pOtherPage )
+ delete m_pOtherPage;
+ if( m_pFontSubstPage )
+ delete m_pFontSubstPage;
+ if( m_pCommandPage )
+ delete m_pCommandPage;
+}
+
+// --------------------------------------------------------------------------
+
+String RTSDialog::getPaperSize()
+{
+ String aRet;
+ const PPDKey* pKey = m_aJobData.m_pParser->getKey( String::CreateFromAscii( "PageSize" ) );
+ if( pKey )
+ {
+ const PPDValue* pValue = m_aJobData.m_aContext.getValue( pKey );
+ aRet = pValue->m_aOption;
+ }
+ return aRet;
+}
+
+// --------------------------------------------------------------------------
+
+IMPL_LINK( RTSDialog, ActivatePage, TabControl*, pTabCtrl )
+{
+ if( pTabCtrl != &m_aTabControl )
+ return 0;
+
+ USHORT nId = m_aTabControl.GetCurPageId();
+
+ if ( ! m_aTabControl.GetTabPage( nId ) )
+ {
+ TabPage *pPage = NULL;
+ if( nId == RID_RTS_PAPERPAGE )
+ pPage = m_pPaperPage = new RTSPaperPage( this );
+ else if( nId == RID_RTS_DEVICEPAGE )
+ pPage = m_pDevicePage = new RTSDevicePage( this );
+ else if( nId == RID_RTS_OTHERPAGE )
+ pPage = m_pOtherPage = new RTSOtherPage( this );
+ else if( nId == RID_RTS_FONTSUBSTPAGE )
+ pPage = m_pFontSubstPage = new RTSFontSubstPage( this );
+ else if( nId == RID_RTS_COMMANDPAGE )
+ pPage = m_pCommandPage = new RTSCommandPage( this );
+ if( pPage )
+ m_aTabControl.SetTabPage( nId, pPage );
+ }
+ else
+ {
+ switch( nId )
+ {
+ case RID_RTS_PAPERPAGE: m_pPaperPage->update();break;
+ case RID_RTS_DEVICEPAGE: m_pDevicePage->update();break;
+ default: break;
+ }
+ }
+
+ return 0;
+}
+
+// --------------------------------------------------------------------------
+
+IMPL_LINK( RTSDialog, ClickButton, Button*, pButton )
+{
+ if( pButton == &m_aOKButton )
+ {
+ // refresh the changed values
+ if( m_pPaperPage )
+ {
+ // scale
+ m_aJobData.m_nScale = m_pPaperPage->getScale();
+ // orientation
+ m_aJobData.m_eOrientation = m_pPaperPage->getOrientation().Equals( LSCAPE_STRING ) ? orientation::Landscape : orientation::Portrait;
+ }
+ if( m_pDevicePage )
+ {
+ m_aJobData.m_nColorDepth = m_pDevicePage->getDepth();
+ m_aJobData.m_nColorDevice = m_pDevicePage->getColorDevice();
+ m_aJobData.m_nPSLevel = m_pDevicePage->getLevel();
+ }
+ if( m_pOtherPage )
+ // write other settings
+ m_pOtherPage->save();
+ if( m_pCommandPage )
+ // write command settings
+ m_pCommandPage->save();
+
+ EndDialog( 1 );
+ }
+ else if( pButton == &m_aCancelButton )
+ EndDialog( 0 );
+
+ return 0;
+}
+
+// --------------------------------------------------------------------------
+
+/*
+ * RTSPaperPage
+ */
+
+RTSPaperPage::RTSPaperPage( RTSDialog* pParent ) :
+ TabPage( & pParent->m_aTabControl, PaResId( RID_RTS_PAPERPAGE ) ),
+
+ m_pParent( pParent ),
+
+ m_aPaperText( this, PaResId( RID_RTS_PAPER_PAPER_TXT ) ),
+ m_aPaperBox( this, PaResId( RID_RTS_PAPER_PAPER_BOX ) ),
+ m_aOrientText( this, PaResId( RID_RTS_PAPER_ORIENTATION_TXT ) ),
+ m_aOrientBox( this, PaResId( RID_RTS_PAPER_ORIENTATION_BOX ) ),
+ m_aDuplexText( this, PaResId( RID_RTS_PAPER_DUPLEX_TXT ) ),
+ m_aDuplexBox( this, PaResId( RID_RTS_PAPER_DUPLEX_BOX ) ),
+ m_aSlotText( this, PaResId( RID_RTS_PAPER_SLOT_TXT ) ),
+ m_aSlotBox( this, PaResId( RID_RTS_PAPER_SLOT_BOX ) ),
+ m_aScaleText( this, PaResId( RID_RTS_PAPER_SCALE_TXT ) ),
+ m_aScaleBox( this, PaResId( RID_RTS_PAPER_SCALE_BOX ) )
+{
+ m_aPaperBox.SetSelectHdl( LINK( this, RTSPaperPage, SelectHdl ) );
+ m_aOrientBox.SetSelectHdl( LINK( this, RTSPaperPage, SelectHdl ) );
+ m_aDuplexBox.SetSelectHdl( LINK( this, RTSPaperPage, SelectHdl ) );
+ m_aSlotBox.SetSelectHdl( LINK( this, RTSPaperPage, SelectHdl ) );
+ m_aScaleBox.SetMin( 1, FUNIT_PERCENT );
+ m_aScaleBox.SetMax( 10000, FUNIT_PERCENT );
+ m_aScaleBox.SetUnit( FUNIT_PERCENT );
+
+ FreeResource();
+
+ USHORT nPos = 0;
+
+ m_aOrientBox.InsertEntry( PORTRAIT_STRING );
+ m_aOrientBox.InsertEntry( LSCAPE_STRING );
+ // duplex
+ nPos = m_aDuplexBox.InsertEntry( m_pParent->m_aInvalidString );
+ m_aDuplexBox.SetEntryData( nPos, NULL );
+
+ // paper does not have an invalid entry
+
+ // input slots
+ nPos = m_aSlotBox.InsertEntry( m_pParent->m_aInvalidString );
+ m_aSlotBox.SetEntryData( nPos, NULL );
+
+ // scale
+ m_aScaleBox.SetValue( m_pParent->m_aJobData.m_nScale );
+
+ update();
+}
+
+// --------------------------------------------------------------------------
+
+RTSPaperPage::~RTSPaperPage()
+{
+}
+
+// --------------------------------------------------------------------------
+
+void RTSPaperPage::update()
+{
+ const PPDKey* pKey = NULL;
+
+ // orientation
+ m_aOrientBox.SelectEntry(
+ m_pParent->m_aJobData.m_eOrientation == orientation::Landscape
+ ? LSCAPE_STRING : PORTRAIT_STRING );
+
+ // duplex
+ if( pKey = m_pParent->m_aJobData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "Duplex" ) ) ) )
+ m_pParent->insertAllPPDValues( m_aDuplexBox, pKey );
+ else
+ m_aDuplexBox.Enable( FALSE );
+
+ // paper
+ if( pKey = m_pParent->m_aJobData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "PageSize" ) ) ) )
+ m_pParent->insertAllPPDValues( m_aPaperBox, pKey );
+ else
+ m_aPaperBox.Enable( FALSE );
+
+ // input slots
+ if( pKey = m_pParent->m_aJobData.m_pParser->getKey( String::CreateFromAscii( "InputSlot" ) ) )
+ m_pParent->insertAllPPDValues( m_aSlotBox, pKey );
+ else
+ m_aSlotBox.Enable( FALSE );
+}
+
+// --------------------------------------------------------------------------
+
+IMPL_LINK( RTSPaperPage, SelectHdl, ListBox*, pBox )
+{
+ const PPDKey* pKey = NULL;
+ if( pBox == &m_aPaperBox )
+ pKey = m_pParent->m_aJobData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "PageSize" ) ) );
+ else if( pBox == &m_aDuplexBox )
+ pKey = m_pParent->m_aJobData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "Duplex" ) ) );
+ else if( pBox == &m_aSlotBox )
+ pKey = m_pParent->m_aJobData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "InputSlot" ) ) );
+ else if( pBox == &m_aOrientBox )
+ {
+ m_pParent->m_aJobData.m_eOrientation = m_aOrientBox.GetSelectEntry().Equals( LSCAPE_STRING ) ? orientation::Landscape : orientation::Portrait;
+ }
+ if( pKey )
+ {
+ PPDValue* pValue =
+ (PPDValue*)pBox->GetEntryData( pBox->GetSelectEntryPos() );
+ m_pParent->m_aJobData.m_aContext.setValue( pKey, pValue );
+ update();
+ }
+ return 0;
+}
+
+// --------------------------------------------------------------------------
+
+/*
+ * RTSDevicePage
+ */
+
+RTSDevicePage::RTSDevicePage( RTSDialog* pParent ) :
+ TabPage( & pParent->m_aTabControl, PaResId( RID_RTS_DEVICEPAGE ) ),
+
+ m_pParent( pParent ),
+
+ m_aSpaceColor( PaResId( RID_RTS_DEVICE_COLOR_TXT ) ),
+ m_aSpaceGray( PaResId( RID_RTS_DEVICE_GRAY_TXT ) ),
+ m_aPPDKeyText( this, PaResId( RID_RTS_DEVICE_PPDKEY_TXT ) ),
+ m_aPPDKeyBox( this, PaResId( RID_RTS_DEVICE_PPDKEY_BOX ) ),
+ m_aPPDValueText( this, PaResId( RID_RTS_DEVICE_PPDVALUE_TXT ) ),
+ m_aPPDValueBox( this, PaResId( RID_RTS_DEVICE_PPDVALUE_BOX ) ),
+ m_aLevelText( this, PaResId( RID_RTS_DEVICE_LEVEL_TXT ) ),
+ m_aLevelBox( this, PaResId( RID_RTS_DEVICE_LEVEL_BOX ) ),
+ m_aSpaceText( this, PaResId( RID_RTS_DEVICE_SPACE_TXT ) ),
+ m_aSpaceBox( this, PaResId( RID_RTS_DEVICE_SPACE_BOX ) ),
+ m_aDepthText( this, PaResId( RID_RTS_DEVICE_DEPTH_TXT ) ),
+ m_aDepthBox( this, PaResId( RID_RTS_DEVICE_DEPTH_BOX ) )
+{
+ FreeResource();
+
+ m_aPPDKeyBox.SetSelectHdl( LINK( this, RTSDevicePage, SelectHdl ) );
+ m_aPPDValueBox.SetSelectHdl( LINK( this, RTSDevicePage, SelectHdl ) );
+
+ m_aSpaceBox.InsertEntry( m_pParent->m_aFromDriverString );
+ m_aSpaceBox.InsertEntry( m_aSpaceColor );
+ m_aSpaceBox.InsertEntry( m_aSpaceGray );
+ switch( m_pParent->m_aJobData.m_nColorDevice )
+ {
+ case -1: m_aSpaceBox.SelectEntry( m_aSpaceGray );break;
+ case 0: m_aSpaceBox.SelectEntry( m_pParent->m_aFromDriverString );break;
+ case 1: m_aSpaceBox.SelectEntry( m_aSpaceColor );break;
+ }
+
+ m_aLevelBox.InsertEntry( m_pParent->m_aFromDriverString );
+ m_aLevelBox.InsertEntry( String( RTL_CONSTASCII_USTRINGPARAM( "1" ) ) );
+ m_aLevelBox.InsertEntry( String( RTL_CONSTASCII_USTRINGPARAM( "2" ) ) );
+ if( m_pParent->m_aJobData.m_nPSLevel == 0 )
+ m_aLevelBox.SelectEntry( m_pParent->m_aFromDriverString );
+ else
+ m_aLevelBox.SelectEntry( String::CreateFromInt32( m_pParent->m_aJobData.m_nPSLevel ) );
+
+ m_aDepthBox.SelectEntry( String::CreateFromInt32( m_pParent->m_aJobData.m_nColorDepth ) );
+
+ // fill ppd boxes
+ for( int i = 0; i < m_pParent->m_aJobData.m_pParser->getKeys(); i++ )
+ {
+ const PPDKey* pKey = m_pParent->m_aJobData.m_pParser->getKey( i );
+ if( pKey->isUIKey() &&
+ ! pKey->getKey().EqualsAscii( "PageSize" ) &&
+ ! pKey->getKey().EqualsAscii( "InputSlot" ) &&
+ ! pKey->getKey().EqualsAscii( "PageRegion" ) &&
+ ! pKey->getKey().EqualsAscii( "Duplex" )
+ )
+ {
+ USHORT nPos =
+ m_aPPDKeyBox.InsertEntry( pKey->getUITranslation().Len() ? pKey->getUITranslation() : pKey->getKey() );
+ m_aPPDKeyBox.SetEntryData( nPos, (void*)pKey );
+ }
+ }
+}
+
+// --------------------------------------------------------------------------
+
+RTSDevicePage::~RTSDevicePage()
+{
+}
+
+// --------------------------------------------------------------------------
+
+void RTSDevicePage::update()
+{
+}
+
+// ------------------------------------------------------------------
+
+IMPL_LINK( RTSDevicePage, SelectHdl, ListBox*, pBox )
+{
+ if( pBox == &m_aPPDKeyBox )
+ {
+ const PPDKey* pKey = (PPDKey*)m_aPPDKeyBox.GetEntryData( m_aPPDKeyBox.GetSelectEntryPos() );
+ FillValueBox( pKey );
+ }
+ else if( pBox == &m_aPPDValueBox )
+ {
+ const PPDKey* pKey = (PPDKey*)m_aPPDKeyBox.GetEntryData( m_aPPDKeyBox.GetSelectEntryPos() );
+ const PPDValue* pValue = (PPDValue*)m_aPPDValueBox.GetEntryData( m_aPPDValueBox.GetSelectEntryPos() );
+ if( pKey && pValue )
+ {
+ m_pParent->m_aJobData.m_aContext.setValue( pKey, pValue );
+ FillValueBox( pKey );
+ }
+ }
+ return 0;
+}
+
+// ------------------------------------------------------------------
+
+void RTSDevicePage::FillValueBox( const PPDKey* pKey )
+{
+ m_aPPDValueBox.Clear();
+
+ if( ! pKey )
+ return;
+
+ const PPDValue* pValue = NULL;
+ for( int i = 0; i < pKey->countValues(); i++ )
+ {
+ pValue = pKey->getValue( i );
+ if( m_pParent->m_aJobData.m_aContext.checkConstraints( pKey, pValue ) )
+ {
+ USHORT nPos =
+ m_aPPDValueBox.InsertEntry( pValue->m_aOptionTranslation.Len() ? pValue->m_aOptionTranslation : pValue->m_aOption );
+ m_aPPDValueBox.SetEntryData( nPos, (void*)pValue );
+ }
+ }
+ pValue = m_pParent->m_aJobData.m_aContext.getValue( pKey );
+ m_aPPDValueBox.SelectEntryPos( m_aPPDValueBox.GetEntryPos( (void*)pValue ) );
+}
+
+// --------------------------------------------------------------------------
+
+/*
+ * RTSOtherPage
+ */
+
+RTSOtherPage::RTSOtherPage( RTSDialog* pParent ) :
+ TabPage( &pParent->m_aTabControl, PaResId( RID_RTS_OTHERPAGE ) ),
+ m_pParent( pParent ),
+ m_aDefaultBtn( this, PaResId( RID_RTS_OTHER_DEFAULT_BTN ) ),
+ m_aLeftLB( this, PaResId( RID_RTS_OTHER_LEFTMARGIN_BOX ) ),
+ m_aRightLB( this, PaResId( RID_RTS_OTHER_RIGHTMARGIN_BOX ) ),
+ m_aTopLB( this, PaResId( RID_RTS_OTHER_TOPMARGIN_BOX ) ),
+ m_aBottomLB( this, PaResId( RID_RTS_OTHER_BOTTOMMARGIN_BOX ) ),
+ m_aLeftTxt( this, PaResId( RID_RTS_OTHER_LEFTMARGIN_TXT ) ),
+ m_aRightTxt( this, PaResId( RID_RTS_OTHER_RIGHTMARGIN_TXT ) ),
+ m_aTopTxt( this, PaResId( RID_RTS_OTHER_TOPMARGIN_TXT ) ),
+ m_aBottomTxt( this, PaResId( RID_RTS_OTHER_BOTTOMMARGIN_TXT ) ),
+ m_aCommentTxt( this, PaResId( RID_RTS_OTHER_COMMENT_TXT ) ),
+ m_aCommentEdt( this, PaResId( RID_RTS_OTHER_COMMENT_EDT ) )
+{
+ FreeResource();
+
+ m_aTopLB.EnableEmptyFieldValue( TRUE );
+ m_aBottomLB.EnableEmptyFieldValue( TRUE );
+ m_aLeftLB.EnableEmptyFieldValue( TRUE );
+ m_aRightLB.EnableEmptyFieldValue( TRUE );
+
+ m_aDefaultBtn.SetClickHdl( LINK( this, RTSOtherPage, ClickBtnHdl ) );
+
+ initValues();
+}
+
+// ------------------------------------------------------------------
+
+RTSOtherPage::~RTSOtherPage()
+{
+}
+
+// ------------------------------------------------------------------
+
+void RTSOtherPage::initValues()
+{
+ m_nMarginLeft = m_pParent->m_aJobData.m_nLeftMarginAdjust;
+ m_nMarginRight = m_pParent->m_aJobData.m_nRightMarginAdjust;
+ m_nMarginTop = m_pParent->m_aJobData.m_nTopMarginAdjust;
+ m_nMarginBottom = m_pParent->m_aJobData.m_nBottomMarginAdjust;
+
+ m_aLeftLB.SetValue( m_nMarginLeft );
+ m_aRightLB.SetValue( m_nMarginRight );
+ m_aTopLB.SetValue( m_nMarginTop );
+ m_aBottomLB.SetValue( m_nMarginBottom );
+ m_aCommentEdt.SetText( m_pParent->m_aJobData.m_aComment );
+}
+
+// ------------------------------------------------------------------
+
+void RTSOtherPage::save()
+{
+ m_nMarginLeft = m_pParent->m_aJobData.m_nLeftMarginAdjust = m_aLeftLB.GetValue();
+ m_nMarginRight = m_pParent->m_aJobData.m_nRightMarginAdjust = m_aRightLB.GetValue();
+ m_nMarginTop = m_pParent->m_aJobData.m_nTopMarginAdjust = m_aTopLB.GetValue();
+ m_nMarginBottom = m_pParent->m_aJobData.m_nBottomMarginAdjust = m_aBottomLB.GetValue();
+ m_pParent->m_aJobData.m_aComment = m_aCommentEdt.GetText();
+}
+
+// ------------------------------------------------------------------
+
+IMPL_LINK( RTSOtherPage, ClickBtnHdl, Button*, pButton )
+{
+ if( pButton == &m_aDefaultBtn )
+ {
+ m_nMarginBottom = m_nMarginTop = m_nMarginRight = m_nMarginLeft = 0;
+ m_pParent->m_aJobData.m_nLeftMarginAdjust =
+ m_pParent->m_aJobData.m_nRightMarginAdjust =
+ m_pParent->m_aJobData.m_nTopMarginAdjust =
+ m_pParent->m_aJobData.m_nBottomMarginAdjust = 0;
+
+ initValues();
+ }
+ return 0;
+}
+
+// ------------------------------------------------------------------
+
+/*
+ * RTSFontSubstPage
+ */
+
+RTSFontSubstPage::RTSFontSubstPage( RTSDialog* pParent ) :
+ TabPage( &pParent->m_aTabControl, PaResId( RID_RTS_FONTSUBSTPAGE ) ),
+ m_pParent( pParent ),
+ m_aSubstitutionsText( this, PaResId( RID_RTS_FS_SUBST_TXT ) ),
+ m_aSubstitutionsBox( this, PaResId( RID_RTS_FS_SUBST_BOX ) ),
+ m_aFromFontText( this, PaResId( RID_RTS_FS_FROM_TXT ) ),
+ m_aFromFontBox( this, PaResId( RID_RTS_FS_FROM_BOX ) ),
+ m_aToFontText( this, PaResId( RID_RTS_FS_TO_TXT ) ),
+ m_aToFontBox( this, PaResId( RID_RTS_FS_TO_BOX ) ),
+ m_aAddButton( this, PaResId( RID_RTS_FS_ADD_BTN ) ),
+ m_aRemoveButton( this, PaResId( RID_RTS_FS_REMOVE_BTN ) ),
+ m_aEnableBox( this, PaResId( RID_RTS_FS_ENABLE_BTN ) )
+{
+ FreeResource();
+
+ // fill to box
+ PrintFontManager& rFontManager = PrintFontManager::get();
+ ::std::list< FastPrintFontInfo > aFonts;
+ rFontManager.getFontListWithFastInfo( aFonts, m_pParent->m_aJobData.m_pParser );
+ ::std::list< FastPrintFontInfo >::const_iterator it;
+ ::std::hash_map< OUString, int, OUStringHash > aToMap, aFromMap;
+ for( it = aFonts.begin(); it != aFonts.end(); ++it )
+ {
+ if( it->m_eType == fonttype::Builtin )
+ {
+ if( aToMap.find( it->m_aFamilyName ) == aToMap.end() )
+ {
+ m_aToFontBox.InsertEntry( it->m_aFamilyName );
+ aToMap[ it->m_aFamilyName ] = 1;
+ }
+ }
+ else
+ {
+ if( aFromMap.find( it->m_aFamilyName ) == aFromMap.end() )
+ {
+ m_aFromFontBox.InsertEntry( it->m_aFamilyName );
+ aFromMap[ it->m_aFamilyName ] = 1;
+ }
+ }
+ }
+
+ m_aEnableBox.Check( m_pParent->m_aJobData.m_bPerformFontSubstitution );
+ m_aRemoveButton.Enable( FALSE );
+ if( ! m_pParent->m_aJobData.m_bPerformFontSubstitution )
+ {
+ m_aSubstitutionsBox.Enable( FALSE );
+ m_aSubstitutionsText.Enable( FALSE );
+ m_aAddButton.Enable( FALSE );
+ m_aToFontBox.Enable( FALSE );
+ m_aToFontText.Enable( FALSE );
+ m_aFromFontBox.Enable( FALSE );
+ m_aFromFontText.Enable( FALSE );
+ }
+
+ update();
+
+ m_aAddButton.SetClickHdl( LINK( this, RTSFontSubstPage, ClickBtnHdl ) );
+ m_aRemoveButton.SetClickHdl( LINK( this, RTSFontSubstPage, ClickBtnHdl ) );
+ m_aEnableBox.SetClickHdl( LINK( this, RTSFontSubstPage, ClickBtnHdl ) );
+ m_aSubstitutionsBox.SetSelectHdl( LINK( this, RTSFontSubstPage, SelectHdl ) );
+ m_aSubstitutionsBox.setDelPressedLink( LINK( this, RTSFontSubstPage, DelPressedHdl ) );
+}
+
+RTSFontSubstPage::~RTSFontSubstPage()
+{
+}
+
+void RTSFontSubstPage::update()
+{
+ m_aSubstitutionsBox.Clear();
+ m_aRemoveButton.Enable( FALSE );
+ // fill substitutions box
+ ::std::hash_map< OUString, OUString, OUStringHash >::const_iterator it;
+ for( it = m_pParent->m_aJobData.m_aFontSubstitutes.begin();
+ it != m_pParent->m_aJobData.m_aFontSubstitutes.end(); ++it )
+ {
+ String aEntry( it->first );
+ aEntry.AppendAscii( " -> " );
+ aEntry.Append( String( it->second ) );
+ m_aSubstitutionsBox.InsertEntry( aEntry );
+ }
+}
+
+IMPL_LINK( RTSFontSubstPage, DelPressedHdl, ListBox*, pBox )
+{
+ if( pBox == &m_aSubstitutionsBox &&
+ m_aRemoveButton.IsEnabled() )
+ ClickBtnHdl( &m_aRemoveButton );
+ return 0;
+}
+
+IMPL_LINK( RTSFontSubstPage, SelectHdl, ListBox*, pBox )
+{
+ if( pBox == &m_aSubstitutionsBox )
+ {
+ m_aRemoveButton.Enable( m_aSubstitutionsBox.GetSelectEntryCount() && m_pParent->m_aJobData.m_bPerformFontSubstitution );
+ }
+ return 0;
+}
+
+IMPL_LINK( RTSFontSubstPage, ClickBtnHdl, Button*, pButton )
+{
+ if( pButton == &m_aAddButton )
+ {
+ m_pParent->m_aJobData.m_aFontSubstitutes[ m_aFromFontBox.GetText() ] = m_aToFontBox.GetSelectEntry();
+ update();
+ }
+ else if( pButton == &m_aRemoveButton )
+ {
+ for( int i = 0; i < m_aSubstitutionsBox.GetSelectEntryCount(); i++ )
+ {
+ String aEntry( m_aSubstitutionsBox.GetSelectEntry( i ) );
+ USHORT nPos = aEntry.SearchAscii( " -> " );
+ aEntry.Erase( nPos );
+ m_pParent->m_aJobData.m_aFontSubstitutes.erase( aEntry );
+ }
+ update();
+ }
+ else if( pButton == &m_aEnableBox )
+ {
+ m_pParent->m_aJobData.m_bPerformFontSubstitution = m_aEnableBox.IsChecked() ? true : false;
+ m_aSubstitutionsBox.Enable( m_pParent->m_aJobData.m_bPerformFontSubstitution );
+ m_aSubstitutionsText.Enable( m_pParent->m_aJobData.m_bPerformFontSubstitution );
+ m_aAddButton.Enable( m_pParent->m_aJobData.m_bPerformFontSubstitution );
+ m_aRemoveButton.Enable( m_aSubstitutionsBox.GetSelectEntryCount() && m_pParent->m_aJobData.m_bPerformFontSubstitution );
+ m_aToFontBox.Enable( m_pParent->m_aJobData.m_bPerformFontSubstitution );
+ m_aToFontText.Enable( m_pParent->m_aJobData.m_bPerformFontSubstitution );
+ m_aFromFontBox.Enable( m_pParent->m_aJobData.m_bPerformFontSubstitution );
+ m_aFromFontText.Enable( m_pParent->m_aJobData.m_bPerformFontSubstitution );
+ }
+ return 0;
+}
+
+
+
+extern "C" {
+
+ int Sal_SetupPrinterDriver( ::psp::PrinterInfo& rJobData )
+ {
+ int nRet = 0;
+ RTSDialog aDialog( rJobData, rJobData.m_aPrinterName, false );
+
+ if( aDialog.Execute() )
+ {
+ rJobData = aDialog.getSetup();
+ nRet = 1;
+ }
+
+ return nRet;
+ }
+
+ int Sal_queryFaxNumber( String& rNumber )
+ {
+ QueryString aQuery( NULL, String( PaResId( RID_TXT_QUERYFAXNUMBER ) ), rNumber );
+ return aQuery.Execute();
+ }
+
+} // extern "C"
diff --git a/padmin/source/prtsetup.hxx b/padmin/source/prtsetup.hxx
new file mode 100644
index 000000000000..82c7cdef8a14
--- /dev/null
+++ b/padmin/source/prtsetup.hxx
@@ -0,0 +1,280 @@
+/*************************************************************************
+ *
+ * $RCSfile: prtsetup.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56: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 _PAD_PRTSETUP_HXX_
+#define _PAD_PRTSETUP_HXX_
+
+#ifndef _LINK_HXX
+#include <tools/link.hxx>
+#endif
+#ifndef _SV_TABDLG_HXX
+#include <vcl/tabdlg.hxx>
+#endif
+#ifndef _SV_TABPAGE_HXX
+#include <vcl/tabpage.hxx>
+#endif
+#ifndef _SV_TABCTRL_HXX
+#include <vcl/tabctrl.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_FIXED_HXX
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_FIELD_HXX
+#include <vcl/field.hxx>
+#endif
+#ifndef _SV_COMBOBOX_HXX
+#include <vcl/combobox.hxx>
+#endif
+#ifndef _PSPPRINT_PPDPARSER_HXX_
+#include <psprint/ppdparser.hxx>
+#endif
+#ifndef _PSPRINT_PRINTERINFOMANAGER_HXX_
+#include <psprint/printerinfomanager.hxx>
+#endif
+#ifndef _PAD_HELPER_HXX_
+#include <helper.hxx>
+#endif
+
+namespace padmin {
+
+class RTSPaperPage;
+class RTSDevicePage;
+class RTSOtherPage;
+class RTSFontSubstPage;
+class RTSCommandPage;
+
+class RTSDialog : public TabDialog
+{
+ friend class RTSPaperPage;
+ friend class RTSDevicePage;
+ friend class RTSOtherPage;
+ friend class RTSFontSubstPage;
+ friend class RTSCommandPage;
+
+ ::psp::PrinterInfo m_aJobData;
+ String m_aPrinter;
+
+ // controls
+ TabControl m_aTabControl;
+ OKButton m_aOKButton;
+ CancelButton m_aCancelButton;
+
+ // pages
+ RTSPaperPage* m_pPaperPage;
+ RTSDevicePage* m_pDevicePage;
+ RTSOtherPage* m_pOtherPage;
+ RTSFontSubstPage* m_pFontSubstPage;
+ RTSCommandPage* m_pCommandPage;
+
+ // some resources
+ String m_aInvalidString;
+ String m_aFromDriverString;
+
+ DECL_LINK( ActivatePage, TabControl* );
+ DECL_LINK( ClickButton, Button* );
+
+ // helper functions
+ void insertAllPPDValues( ListBox&, const ::psp::PPDKey* );
+
+ String getPaperSize();
+public:
+ RTSDialog( const ::psp::PrinterInfo& rJobData, const String& rPrinter, bool bAllPages, Window* pParent = NULL );
+ ~RTSDialog();
+
+ const ::psp::PrinterInfo& getSetup() const { return m_aJobData; }
+};
+
+class RTSPaperPage : public TabPage
+{
+ RTSDialog* m_pParent;
+
+ FixedText m_aPaperText;
+ ListBox m_aPaperBox;
+
+ FixedText m_aOrientText;
+ ListBox m_aOrientBox;
+
+ FixedText m_aDuplexText;
+ ListBox m_aDuplexBox;
+
+ FixedText m_aSlotText;
+ ListBox m_aSlotBox;
+
+ FixedText m_aScaleText;
+ MetricField m_aScaleBox;
+
+ DECL_LINK( SelectHdl, ListBox* );
+public:
+ RTSPaperPage( RTSDialog* );
+ ~RTSPaperPage();
+
+ void update();
+
+ ULONG getScale() { return m_aScaleBox.GetValue(); }
+ String getOrientation() { return m_aOrientBox.GetSelectEntry(); }
+};
+
+class RTSDevicePage : public TabPage
+{
+ RTSDialog* m_pParent;
+
+ String m_aSpaceColor;
+ String m_aSpaceGray;
+
+ FixedText m_aPPDKeyText;
+ ListBox m_aPPDKeyBox;
+
+ FixedText m_aPPDValueText;
+ ListBox m_aPPDValueBox;
+
+ FixedText m_aLevelText;
+ ListBox m_aLevelBox;
+
+ FixedText m_aSpaceText;
+ ListBox m_aSpaceBox;
+
+ FixedText m_aDepthText;
+ ListBox m_aDepthBox;
+
+ void FillValueBox( const ::psp::PPDKey* );
+
+ DECL_LINK( SelectHdl, ListBox* );
+public:
+ RTSDevicePage( RTSDialog* );
+ ~RTSDevicePage();
+
+ void update();
+
+ ULONG getLevel() { return m_aLevelBox.GetSelectEntry().ToInt32(); }
+ ULONG getDepth() { return m_aDepthBox.GetSelectEntry().ToInt32(); }
+ ULONG getColorDevice()
+ {
+ String aSpace( m_aSpaceBox.GetSelectEntry() );
+ return aSpace == m_aSpaceColor ? 1 : ( aSpace == m_aSpaceGray ? -1 : 0 );
+ }
+};
+
+class RTSOtherPage : public TabPage
+{
+ RTSDialog* m_pParent;
+
+ ULONG m_nMarginLeft;
+ ULONG m_nMarginTop;
+ ULONG m_nMarginRight;
+ ULONG m_nMarginBottom;
+
+ FixedText m_aLeftTxt;
+ MetricField m_aLeftLB;
+ FixedText m_aTopTxt;
+ MetricField m_aTopLB;
+ FixedText m_aRightTxt;
+ MetricField m_aRightLB;
+ FixedText m_aBottomTxt;
+ MetricField m_aBottomLB;
+ FixedText m_aCommentTxt;
+ Edit m_aCommentEdt;
+ PushButton m_aDefaultBtn;
+
+ void initValues();
+
+ DECL_LINK( ClickBtnHdl, Button *);
+
+public:
+ RTSOtherPage( RTSDialog* );
+ ~RTSOtherPage();
+
+ void save();
+};
+
+class RTSFontSubstPage : public TabPage
+{
+ RTSDialog* m_pParent;
+
+ FixedText m_aSubstitutionsText;
+ DelMultiListBox m_aSubstitutionsBox;
+ FixedText m_aFromFontText;
+ ComboBox m_aFromFontBox;
+ FixedText m_aToFontText;
+ ListBox m_aToFontBox;
+
+ PushButton m_aAddButton;
+ PushButton m_aRemoveButton;
+ CheckBox m_aEnableBox;
+
+ DECL_LINK( ClickBtnHdl, Button* );
+ DECL_LINK( SelectHdl, ListBox* );
+ DECL_LINK( DelPressedHdl, ListBox* );
+
+ void update();
+public:
+ RTSFontSubstPage( RTSDialog* );
+ ~RTSFontSubstPage();
+};
+
+} // namespace
+
+#endif // _PAD_PRTSETUP_HXX
diff --git a/padmin/source/rtsetup.hrc b/padmin/source/rtsetup.hrc
new file mode 100644
index 000000000000..8f711a64e056
--- /dev/null
+++ b/padmin/source/rtsetup.hrc
@@ -0,0 +1,144 @@
+/*************************************************************************
+ *
+ * $RCSfile: rtsetup.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56:38 $
+ *
+ * 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 _PAD_RTSETUP_HRC_
+#define _PAD_RTSETUP_HRC_
+
+#define RID_RTS_RTSDIALOG 4001
+#define RID_RTS_RTSDIALOG_INVALID_TXT 1
+#define RID_RTS_RTSDIALOG_FROMDRIVER_TXT 2
+#define RID_RTS_RTSDIALOG_TABCONTROL 3
+
+#define RID_RTS_OTHERPAGE 4002
+#define RID_RTS_OTHER_LEFTMARGIN_TXT 1
+#define RID_RTS_OTHER_LEFTMARGIN_BOX 2
+#define RID_RTS_OTHER_TOPMARGIN_TXT 3
+#define RID_RTS_OTHER_TOPMARGIN_BOX 4
+#define RID_RTS_OTHER_RIGHTMARGIN_TXT 5
+#define RID_RTS_OTHER_RIGHTMARGIN_BOX 6
+#define RID_RTS_OTHER_BOTTOMMARGIN_TXT 7
+#define RID_RTS_OTHER_BOTTOMMARGIN_BOX 8
+#define RID_RTS_OTHER_COMMENT_TXT 9
+#define RID_RTS_OTHER_COMMENT_EDT 10
+#define RID_RTS_OTHER_DEFAULT_BTN 11
+
+#define RID_RTS_DEVICEPAGE 4003
+#define RID_RTS_DEVICE_COLOR_TXT 1
+#define RID_RTS_DEVICE_GRAY_TXT 2
+#define RID_RTS_DEVICE_PPDKEY_TXT 3
+#define RID_RTS_DEVICE_PPDKEY_BOX 4
+#define RID_RTS_DEVICE_PPDVALUE_TXT 5
+#define RID_RTS_DEVICE_PPDVALUE_BOX 6
+#define RID_RTS_DEVICE_LEVEL_TXT 7
+#define RID_RTS_DEVICE_LEVEL_BOX 8
+#define RID_RTS_DEVICE_SPACE_TXT 9
+#define RID_RTS_DEVICE_SPACE_BOX 10
+#define RID_RTS_DEVICE_DEPTH_TXT 11
+#define RID_RTS_DEVICE_DEPTH_BOX 12
+#define RID_RTS_DEVICE_COMPRESS_BOX 13
+
+#define RID_RTS_PAPERPAGE 4004
+#define RID_RTS_PAPER_PAPER_TXT 1
+#define RID_RTS_PAPER_PAPER_BOX 2
+#define RID_RTS_PAPER_ORIENTATION_TXT 3
+#define RID_RTS_PAPER_ORIENTATION_BOX 4
+#define RID_RTS_PAPER_DUPLEX_TXT 5
+#define RID_RTS_PAPER_DUPLEX_BOX 6
+#define RID_RTS_PAPER_SLOT_TXT 7
+#define RID_RTS_PAPER_SLOT_BOX 8
+#define RID_RTS_PAPER_SCALE_TXT 9
+#define RID_RTS_PAPER_SCALE_BOX 10
+
+#define RID_RTS_FONTSUBSTPAGE 4005
+#define RID_RTS_FS_SUBST_TXT 1
+#define RID_RTS_FS_SUBST_BOX 2
+#define RID_RTS_FS_FROM_TXT 3
+#define RID_RTS_FS_FROM_BOX 4
+#define RID_RTS_FS_TO_TXT 5
+#define RID_RTS_FS_TO_BOX 6
+#define RID_RTS_FS_ADD_BTN 7
+#define RID_RTS_FS_REMOVE_BTN 8
+#define RID_RTS_FS_ENABLE_BTN 9
+
+#define RID_RTS_COMMANDPAGE 4006
+#define RID_RTS_CMD_TXT_PRTNAME 1
+#define RID_RTS_CMD_TXT_CONNECT 2
+#define RID_RTS_CMD_GROUP_DEFAULT 3
+#define RID_RTS_CMD_BTN_HELP 4
+#define RID_RTS_CMD_CB_COMMANDS 5
+#define RID_RTS_CMD_GROUP_INSTALL 6
+#define RID_RTS_CMD_TXT_CONFIGURE 7
+#define RID_RTS_CMD_LB_CONFIGURE 8
+#define RID_RTS_CMD_STR_CONFIGURE_PRINTER 9
+#define RID_RTS_CMD_STR_CONFIGURE_FAX 10
+#define RID_RTS_CMD_STR_CONFIGURE_PDF 11
+#define RID_RTS_CMD_STR_PRINTERHELP 12
+#define RID_RTS_CMD_STR_FAXHELP 13
+#define RID_RTS_CMD_STR_PDFHELP 14
+#define RID_RTS_CMD_BTN_REMOVE 15
+#define RID_RTS_CMD_EDT_PDFDIR 16
+#define RID_RTS_CMD_BTN_PDFDIR 17
+#define RID_RTS_CMD_TXT_PDFDIR 18
+#define RID_RTS_CMD_BOX_SWALLOWFAXNO 19
+
+#define RID_TXT_QUERYFAXNUMBER 4007
+
+#endif
diff --git a/padmin/source/rtsetup.src b/padmin/source/rtsetup.src
new file mode 100644
index 000000000000..53285dcace63
--- /dev/null
+++ b/padmin/source/rtsetup.src
@@ -0,0 +1,1419 @@
+/*************************************************************************
+ *
+ * $RCSfile: rtsetup.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: pl $ $Date: 2001-05-08 11:56:39 $
+ *
+ * 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 "rtsetup.hrc"
+
+TabDialog RID_RTS_RTSDIALOG
+{
+ Moveable = TRUE;
+ Closeable = TRUE;
+ SVLook = TRUE;
+ Text = "Einstellungen fr %s" ;
+ Text [ English ] = "Properties of %s" ;
+
+ TabControl RID_RTS_RTSDIALOG_TABCONTROL
+ {
+ OutputSize = TRUE;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = RID_RTS_COMMANDPAGE;
+ Text = "Kommando";
+ Text [ english ] = "Command";
+ Text[ english_us ] = "Command";
+ Text[ portuguese ] = "Command";
+ Text[ russian ] = "";
+ Text[ greek ] = "Command";
+ Text[ dutch ] = "Commando";
+ Text[ french ] = "Commande";
+ Text[ spanish ] = "Comando";
+ Text[ italian ] = "Comando";
+ Text[ danish ] = "Command";
+ Text[ swedish ] = "Kommando";
+ Text[ polish ] = "Polecenie";
+ Text[ portuguese_brazilian ] = "Command";
+ Text[ japanese ] = "";
+ Text[ korean ] = "Command";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "O";
+ Text[ turkish ] = "Command";
+ Text[ arabic ] = "";
+ };
+ PageItem
+ {
+ Identifier = RID_RTS_PAPERPAGE;
+ Text = "Papier";
+ Text [ English ] = "Paper";
+ Text[ english_us ] = "Paper";
+ Text[ portuguese ] = "Papel";
+ Text[ russian ] = "";
+ Text[ greek ] = "";
+ Text[ dutch ] = "Papier";
+ Text[ french ] = "Papier";
+ Text[ spanish ] = "Papel";
+ Text[ italian ] = "Carta";
+ Text[ danish ] = "Paper";
+ Text[ swedish ] = "Papper";
+ Text[ polish ] = "Papier";
+ Text[ portuguese_brazilian ] = "Paper";
+ Text[ japanese ] = "p";
+ Text[ korean ] = "";
+ Text[ chinese_simplified ] = "ֽ";
+ Text[ chinese_traditional ] = "ȱi";
+ Text[ turkish ] = "Paper";
+ Text[ arabic ] = "";
+ };
+ PageItem
+ {
+ Identifier = RID_RTS_DEVICEPAGE;
+ Text = "Gert";
+ Text [ English ] = "Device";
+ Text[ english_us ] = "Device";
+ Text[ portuguese ] = "Perifrico";
+ Text[ russian ] = "";
+ Text[ greek ] = "";
+ Text[ dutch ] = "Apparaat";
+ Text[ french ] = "Priphrique";
+ Text[ spanish ] = "Dispositivo";
+ Text[ italian ] = "Apparecchio";
+ Text[ danish ] = "Device";
+ Text[ swedish ] = "Apparat";
+ Text[ polish ] = "Sprzt";
+ Text[ portuguese_brazilian ] = "Device";
+ Text[ japanese ] = "޲";
+ Text[ korean ] = "ġ";
+ Text[ chinese_simplified ] = "豸";
+ Text[ chinese_traditional ] = "]";
+ Text[ turkish ] = "Device";
+ Text[ arabic ] = "";
+ };
+ PageItem
+ {
+ Identifier = RID_RTS_FONTSUBSTPAGE;
+ Text = "Schriftersetzung";
+ Text [ english ] = "Fontsubstitution";
+ Text[ english_us ] = "Font Replacement";
+ Text[ portuguese ] = "Fontsubstitution";
+ Text[ russian ] = " ";
+ Text[ greek ] = "Fontsubstitution";
+ Text[ dutch ] = "Vervanging van lettertypen";
+ Text[ french ] = "Substitution de police";
+ Text[ spanish ] = "Sustitucin de fuente";
+ Text[ italian ] = "Sostituzione carattere";
+ Text[ danish ] = "Fontsubstitution";
+ Text[ swedish ] = "Teckensnittsersttning";
+ Text[ polish ] = "Zamiana czcionki";
+ Text[ portuguese_brazilian ] = "Fontsubstitution";
+ Text[ japanese ] = "̫Ă̒u";
+ Text[ korean ] = "Fontsubstitution";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "Nr";
+ Text[ turkish ] = "Fontsubstitution";
+ Text[ arabic ] = " ";
+ };
+ PageItem
+ {
+ Identifier = RID_RTS_OTHERPAGE;
+ Text = "Weitere Einstellungen";
+ Text [ English ] = "Other settings";
+ Text[ english_us ] = "Other Settings";
+ Text[ portuguese ] = "Outros parmetros";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Andere instellingen";
+ Text[ french ] = "Autres paramtres";
+ Text[ spanish ] = "Otra configuracin";
+ Text[ italian ] = "Ulteriori impostazioni";
+ Text[ danish ] = "Other settings";
+ Text[ swedish ] = "Fler instllningar";
+ Text[ polish ] = "Dodatkowe ustawienia";
+ Text[ portuguese_brazilian ] = "Other settings";
+ Text[ japanese ] = "̑̐ݒ";
+ Text[ korean ] = "Ÿ";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "L]w";
+ Text[ turkish ] = "Other settings";
+ Text[ arabic ] = " ";
+ };
+ };
+ };
+ String RID_RTS_RTSDIALOG_FROMDRIVER_TXT
+ {
+ Text = "laut Treiber";
+ Text [ English ] = "from driver";
+ Text[ english_us ] = "from driver";
+ Text[ portuguese ] = "a partir do controlador";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "van driver";
+ Text[ french ] = "selon le pilote";
+ Text[ spanish ] = "del controlador";
+ Text[ italian ] = "dal driver";
+ Text[ danish ] = "from driver";
+ Text[ swedish ] = "frn drivrutin";
+ Text[ polish ] = "ze sterownika";
+ Text[ portuguese_brazilian ] = "from driver";
+ Text[ japanese ] = "ײނ";
+ Text[ korean ] = "̹";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "Xʵ{";
+ Text[ turkish ] = "from driver";
+ Text[ arabic ] = " ";
+ };
+ String RID_RTS_RTSDIALOG_INVALID_TXT
+ {
+ Text = "<ignorieren>";
+ Text [ English ] = "<ignore>";
+ Text[ english_us ] = "<ignore>";
+ Text[ portuguese ] = "<ignorar>";
+ Text[ russian ] = "<>";
+ Text[ greek ] = "<>";
+ Text[ dutch ] = "<negeren>";
+ Text[ french ] = "<ignorer>";
+ Text[ spanish ] = "<ignorar>";
+ Text[ italian ] = "<ignora>";
+ Text[ danish ] = "<ignore>";
+ Text[ swedish ] = "<ignorera>";
+ Text[ polish ] = "<ignoruj>";
+ Text[ portuguese_brazilian ] = "<ignore>";
+ Text[ japanese ] = "<>";
+ Text[ korean ] = "<ignore>";
+ Text[ chinese_simplified ] = "<>";
+ Text[ chinese_traditional ] = "<>";
+ Text[ turkish ] = "<ignore>";
+ Text[ arabic ] = "<>";
+ };
+ Text[ english_us ] = "Properties of %s";
+ Text[ portuguese ] = "Propriedades de %s";
+ Text[ russian ] = " %s";
+ Text[ greek ] = " %s";
+ Text[ dutch ] = "Instellingen voor %s";
+ Text[ french ] = "Paramtres pour %s";
+ Text[ spanish ] = "Propiedades para %s";
+ Text[ italian ] = "Propriet di %s";
+ Text[ danish ] = "Properties of %s";
+ Text[ swedish ] = "Instllningar fr %s";
+ Text[ polish ] = "Waciwoci %s";
+ Text[ portuguese_brazilian ] = "Properties of %s";
+ Text[ japanese ] = "%s ̐ݒ";
+ Text[ korean ] = " %sǡ";
+ Text[ chinese_simplified ] = "%s ";
+ Text[ chinese_traditional ] = "%s ݩ";
+ Text[ turkish ] = "Properties of %s";
+ Text[ arabic ] = " %s";
+};
+
+TabPage RID_RTS_PAPERPAGE
+{
+ Hide = TRUE;
+ Size = MAP_APPFONT( 230, 175 );
+ FixedText RID_RTS_PAPER_PAPER_TXT
+ {
+ Pos = MAP_APPFONT( 5, 5 );
+ Size = MAP_APPFONT( 80, 8 );
+ Text = "~Papierformat";
+ Text [ English ] = "~Papersize";
+ Text[ english_us ] = "~Paper size";
+ Text[ portuguese ] = "~Formato do papel";
+ Text[ russian ] = "~ ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "~Papierformaat";
+ Text[ french ] = "Format de ~papier";
+ Text[ spanish ] = "~Formato de papel";
+ Text[ italian ] = "~Formato carta";
+ Text[ danish ] = "~Papersize";
+ Text[ swedish ] = "~Pappersformat";
+ Text[ polish ] = "Format papieru";
+ Text[ portuguese_brazilian ] = "~Papersize";
+ Text[ japanese ] = "p(~P)";
+ Text[ korean ] = "ũ(~P)";
+ Text[ chinese_simplified ] = "ֽŴС(~P)";
+ Text[ chinese_traditional ] = "ȱijp(~P)";
+ Text[ turkish ] = "~Papersize";
+ Text[ arabic ] = " ";
+ };
+ ListBox RID_RTS_PAPER_PAPER_BOX
+ {
+ Border = TRUE;
+ DropDown = TRUE;
+ Pos = MAP_APPFONT( 115, 5 );
+ Size = MAP_APPFONT( 110, 120 );
+ };
+ FixedText RID_RTS_PAPER_ORIENTATION_TXT
+ {
+ Pos = MAP_APPFONT( 5, 20 );
+ Size = MAP_APPFONT( 80, 8 );
+ Text = "~Orientierung";
+ Text [ English ] = "~Orientation";
+ Text[ english_us ] = "~Orientation";
+ Text[ portuguese ] = "~Orientao";
+ Text[ russian ] = "~";
+ Text[ greek ] = "~";
+ Text[ dutch ] = "~Richting";
+ Text[ french ] = "~Orientation";
+ Text[ spanish ] = "~Orientacin";
+ Text[ italian ] = "~Orientamento";
+ Text[ danish ] = "~Orientation";
+ Text[ swedish ] = "~Orientering";
+ Text[ polish ] = "Orientacja";
+ Text[ portuguese_brazilian ] = "~Orientation";
+ Text[ japanese ] = "̌(~O)";
+ Text[ korean ] = "(~O)";
+ Text[ chinese_simplified ] = "ֽ(~O)";
+ Text[ chinese_traditional ] = "iȤV(~O)";
+ Text[ turkish ] = "~Orientation";
+ Text[ arabic ] = "";
+ };
+ ListBox RID_RTS_PAPER_ORIENTATION_BOX
+ {
+ Border = TRUE;
+ DropDown = TRUE;
+ Pos = MAP_APPFONT( 115, 20 );
+ Size = MAP_APPFONT( 110, 120 );
+ };
+ FixedText RID_RTS_PAPER_DUPLEX_TXT
+ {
+ Pos = MAP_APPFONT( 5, 35 );
+ Size = MAP_APPFONT( 80, 8 );
+ Text = "~Duplex";
+ Text [ English ] = "~Duplex";
+ Text[ english_us ] = "~Duplex";
+ Text[ portuguese ] = "~Duplex";
+ Text[ russian ] = "~";
+ Text[ greek ] = "~";
+ Text[ dutch ] = "~Dubbelzijdig";
+ Text[ french ] = "~Duplex";
+ Text[ spanish ] = "~Doble";
+ Text[ italian ] = "Duple~x";
+ Text[ danish ] = "~Duplex";
+ Text[ swedish ] = "~Duplex";
+ Text[ polish ] = "~Dupleks";
+ Text[ portuguese_brazilian ] = "~Duplex";
+ Text[ japanese ] = "ʈ(~D)";
+ Text[ korean ] = "~ߺ";
+ Text[ chinese_simplified ] = "˫(~D)";
+ Text[ chinese_traditional ] = "V(~D)";
+ Text[ turkish ] = "~Duplex";
+ Text[ arabic ] = "";
+ };
+ ListBox RID_RTS_PAPER_DUPLEX_BOX
+ {
+ Border = TRUE;
+ DropDown = TRUE;
+ Pos = MAP_APPFONT( 115, 35 );
+ Size = MAP_APPFONT( 110, 120 );
+ };
+ FixedText RID_RTS_PAPER_SLOT_TXT
+ {
+ Pos = MAP_APPFONT( 5, 50 );
+ Size = MAP_APPFONT( 80, 8 );
+ Text = "Pap~ierschacht";
+ Text [ English ] = "~Input slot";
+ Text[ english_us ] = "~Input slot";
+ Text[ portuguese ] = "~Origem do papel";
+ Text[ russian ] = "~ ";
+ Text[ greek ] = " ~";
+ Text[ dutch ] = "~Papierlade";
+ Text[ french ] = "~Bac d'alimentation";
+ Text[ spanish ] = "~Bandeja de papel";
+ Text[ italian ] = "~Cassetto";
+ Text[ danish ] = "~Input slot";
+ Text[ swedish ] = "Pappersmagas~in";
+ Text[ polish ] = "Zasobnik papieru";
+ Text[ portuguese_brazilian ] = "~Input slot";
+ Text[ japanese ] = "p@(~I)";
+ Text[ korean ] = "(~I)";
+ Text[ chinese_simplified ] = "ֽԴ(~I)";
+ Text[ chinese_traditional ] = "ȱiӷ(~I)";
+ Text[ turkish ] = "~Input slot";
+ Text[ arabic ] = " ";
+ };
+ ListBox RID_RTS_PAPER_SLOT_BOX
+ {
+ Border = TRUE;
+ DropDown = TRUE;
+ Pos = MAP_APPFONT( 115, 50 );
+ Size = MAP_APPFONT( 110, 120 );
+ };
+ FixedText RID_RTS_PAPER_SCALE_TXT
+ {
+ Pos = MAP_APPFONT ( 5 , 65 ) ;
+ Size = MAP_APPFONT ( 80 , 8 ) ;
+ Text = "~Skalierung" ;
+ Text [ English ] = "~Scale" ;
+ Text[ english_us ] = "~Scale";
+ Text[ portuguese ] = "~Escala";
+ Text[ russian ] = "~";
+ Text[ greek ] = "~";
+ Text[ dutch ] = "~Schaal";
+ Text[ french ] = "~chelle";
+ Text[ spanish ] = "~Escala";
+ Text[ italian ] = "Sca~la";
+ Text[ danish ] = "~Scale";
+ Text[ swedish ] = "~Skalning";
+ Text[ polish ] = "Skalowanie";
+ Text[ portuguese_brazilian ] = "~Scale";
+ Text[ japanese ] = "(~S)";
+ Text[ korean ] = "(~S)";
+ Text[ chinese_simplified ] = "ʾ(~S)";
+ Text[ chinese_traditional ] = "ܤ(~S)";
+ Text[ turkish ] = "~Scale";
+ Text[ arabic ] = "";
+ };
+ MetricField RID_RTS_PAPER_SCALE_BOX
+ {
+ Border = TRUE ;
+ Spin = TRUE;
+ Pos = MAP_APPFONT ( 115 , 65 ) ;
+ Size = MAP_APPFONT ( 110 , 12 ) ;
+ };
+};
+
+TabPage RID_RTS_DEVICEPAGE
+{
+ Hide = TRUE;
+ Size = MAP_APPFONT( 230, 175 );
+
+ String RID_RTS_DEVICE_COLOR_TXT
+ {
+ Text = "Farbe";
+ Text[ English ] = "Color";
+ Text[ english_us ] = "Color";
+ Text[ portuguese ] = "Cor";
+ Text[ russian ] = "";
+ Text[ greek ] = "";
+ Text[ dutch ] = "Kleur";
+ Text[ french ] = "Couleur";
+ Text[ spanish ] = "Color";
+ Text[ italian ] = "Colore";
+ Text[ danish ] = "Color";
+ Text[ swedish ] = "Frg";
+ Text[ polish ] = "Kolor";
+ Text[ portuguese_brazilian ] = "Color";
+ Text[ japanese ] = "F";
+ Text[ korean ] = "";
+ Text[ chinese_simplified ] = "ɫ";
+ Text[ chinese_traditional ] = "C";
+ Text[ turkish ] = "Color";
+ Text[ arabic ] = "";
+ };
+ String RID_RTS_DEVICE_GRAY_TXT
+ {
+ Text = "Graustufen";
+ Text[ English ] = "Grayscale";
+ Text[ english_us ] = "Grayscale";
+ Text[ portuguese ] = "Escala de cinzentos";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Grijswaarden";
+ Text[ french ] = "Niveaux de gris";
+ Text[ spanish ] = "Escalas de grises";
+ Text[ italian ] = "Toni di grigio";
+ Text[ danish ] = "Grayscale";
+ Text[ swedish ] = "Grskalor";
+ Text[ polish ] = "Odcienie szaroci";
+ Text[ portuguese_brazilian ] = "Grayscale";
+ Text[ japanese ] = "ڰ";
+ Text[ korean ] = "ȸ";
+ Text[ chinese_simplified ] = "Ҷ";
+ Text[ chinese_traditional ] = "ǫ";
+ Text[ turkish ] = "Grayscale";
+ Text[ arabic ] = " ";
+ };
+
+ FixedText RID_RTS_DEVICE_PPDKEY_TXT
+ {
+ Pos = MAP_APPFONT( 5, 5 );
+ Size = MAP_APPFONT( 85, 8 );
+ Text = "~Option";
+ Text [ English ] = "~Option";
+ Text[ english_us ] = "~Option";
+ Text[ portuguese ] = "~Opo";
+ Text[ russian ] = "~";
+ Text[ greek ] = "~";
+ Text[ dutch ] = "~Optie";
+ Text[ french ] = "~Option";
+ Text[ spanish ] = "~Opcin";
+ Text[ italian ] = "~Opzione";
+ Text[ danish ] = "~Option";
+ Text[ swedish ] = "~Alternativ";
+ Text[ polish ] = "Opcja";
+ Text[ portuguese_brazilian ] = "~Option";
+ Text[ japanese ] = "߼(~O)";
+ Text[ korean ] = "ɼ(~O)";
+ Text[ chinese_simplified ] = "ѡ(~O)";
+ Text[ chinese_traditional ] = "ﶵ(~O)";
+ Text[ turkish ] = "~Option";
+ Text[ arabic ] = "";
+ };
+ ListBox RID_RTS_DEVICE_PPDKEY_BOX
+ {
+ Border = TRUE;
+ Pos = MAP_APPFONT( 5, 14 );
+ Size = MAP_APPFONT( 105, 111 );
+ };
+ FixedText RID_RTS_DEVICE_PPDVALUE_TXT
+ {
+ Pos = MAP_APPFONT( 120, 5 );
+ Size = MAP_APPFONT( 105, 8 );
+ Text = "Aktueller ~Wert";
+ Text [ English ] = "Current ~value";
+ Text[ english_us ] = "Current ~value";
+ Text[ portuguese ] = "~Valor activo";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Actuele ~waarde";
+ Text[ french ] = "~Valeur active";
+ Text[ spanish ] = "~Valor actual";
+ Text[ italian ] = "~Valori attuali";
+ Text[ danish ] = "Current ~value";
+ Text[ swedish ] = "Aktuellt ~vrde";
+ Text[ polish ] = "Aktualna warto";
+ Text[ portuguese_brazilian ] = "Current ~value";
+ Text[ japanese ] = "݂̒l(~V)";
+ Text[ korean ] = "簪(~V)";
+ Text[ chinese_simplified ] = "ǰֵ(~V)";
+ Text[ chinese_traditional ] = "eƭ(~V)";
+ Text[ turkish ] = "Current ~value";
+ Text[ arabic ] = " ";
+ };
+ ListBox RID_RTS_DEVICE_PPDVALUE_BOX
+ {
+ Border = TRUE;
+ Pos = MAP_APPFONT( 120, 14 );
+ Size = MAP_APPFONT( 105, 111 );
+ };
+
+ FixedText RID_RTS_DEVICE_LEVEL_TXT
+ {
+ Pos = MAP_APPFONT( 5, 130 );
+ Size = MAP_APPFONT( 80, 8 );
+ Text = "PostScript ~Level";
+ Text [ English ] = "PostScript ~Level";
+ Text[ english_us ] = "PostScript ~Level";
+ Text[ portuguese ] = "~Nvel PostScript";
+ Text[ russian ] = " PostScript";
+ Text[ greek ] = " PostScript";
+ Text[ dutch ] = "PostScript ~Level";
+ Text[ french ] = "~Niveau PostScript";
+ Text[ spanish ] = "~Nivel PostScript";
+ Text[ italian ] = "Livello PostScript";
+ Text[ danish ] = "PostScript ~Level";
+ Text[ swedish ] = "PostScript-ni~v";
+ Text[ polish ] = "Poziom PostScript";
+ Text[ portuguese_brazilian ] = "PostScript ~Level";
+ Text[ japanese ] = "PostScript (~L)";
+ Text[ korean ] = "ƮũƮl(~L)";
+ Text[ chinese_simplified ] = "PostScript (~L)";
+ Text[ chinese_traditional ] = "PostScript (~L)";
+ Text[ turkish ] = "PostScript ~Level";
+ Text[ arabic ] = " PostScript";
+ };
+ ListBox RID_RTS_DEVICE_LEVEL_BOX
+ {
+ DropDown = TRUE;
+ Pos = MAP_APPFONT( 120, 130 );
+ Size = MAP_APPFONT( 105, 200 );
+ };
+ FixedText RID_RTS_DEVICE_SPACE_TXT
+ {
+ Pos = MAP_APPFONT( 5, 145 );
+ Size = MAP_APPFONT( 100, 8 );
+ Text = "~Farbe";
+ Text [ English ] = "~Color";
+ Text[ english_us ] = "~Color";
+ Text[ portuguese ] = "~Cor";
+ Text[ russian ] = "~";
+ Text[ greek ] = "";
+ Text[ dutch ] = "~Kleur";
+ Text[ french ] = "~Couleur";
+ Text[ spanish ] = "~Color";
+ Text[ italian ] = "~Colo~re";
+ Text[ danish ] = "~Color";
+ Text[ swedish ] = "~Frg";
+ Text[ polish ] = "Kolor";
+ Text[ portuguese_brazilian ] = "~Color";
+ Text[ japanese ] = "F(~C)";
+ Text[ korean ] = "(~C)";
+ Text[ chinese_simplified ] = "ɫ(~C)";
+ Text[ chinese_traditional ] = "C(~C)";
+ Text[ turkish ] = "~Color";
+ Text[ arabic ] = "";
+ };
+ ListBox RID_RTS_DEVICE_SPACE_BOX
+ {
+ DropDown = TRUE;
+ Pos = MAP_APPFONT( 120, 145 );
+ Size = MAP_APPFONT( 105, 200 );
+ };
+ FixedText RID_RTS_DEVICE_DEPTH_TXT
+ {
+ Pos = MAP_APPFONT( 5, 160 );
+ Size = MAP_APPFONT( 80, 8 );
+ Text = "Farb~tiefe";
+ Text [ English ] = "Color ~depth";
+ Text[ english_us ] = "Color ~depth";
+ Text[ portuguese ] = "Profundidade de ~cor";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ~";
+ Text[ dutch ] = "Kleur~diepte";
+ Text[ french ] = "~Profondeur de couleur";
+ Text[ spanish ] = "Prof~undidad de color";
+ Text[ italian ] = "Profondit cro~matica";
+ Text[ danish ] = "Color ~depth";
+ Text[ swedish ] = "Frgdju~p";
+ Text[ polish ] = "Gbia koloru";
+ Text[ portuguese_brazilian ] = "Color ~depth";
+ Text[ japanese ] = "F̐[(~D)";
+ Text[ korean ] = "󡡱(~D)";
+ Text[ chinese_simplified ] = "ɫ(~D)";
+ Text[ chinese_traditional ] = "C`(~D)";
+ Text[ turkish ] = "Color ~depth";
+ Text[ arabic ] = " ";
+ };
+ ListBox RID_RTS_DEVICE_DEPTH_BOX
+ {
+ DropDown = TRUE;
+ Pos = MAP_APPFONT( 120, 160 );
+ Size = MAP_APPFONT( 105, 200 );
+ StringList =
+ {
+ "1";
+ "8";
+ "24";
+ };
+ };
+};
+
+TabPage RID_RTS_FONTSUBSTPAGE
+{
+ Hide = TRUE;
+ Size = MAP_APPFONT( 230, 175 );
+
+ CheckBox RID_RTS_FS_ENABLE_BTN
+ {
+ Pos = MAP_APPFONT( 5, 5 );
+ Size = MAP_APPFONT( 180, 10 );
+ Text = "~Schriftersetzung einschalten";
+ Text [ english ] = "~Enable font substitution";
+ Text[ english_us ] = "~Enable font replacement";
+ Text[ portuguese ] = "~Enable font substitution";
+ Text[ russian ] = "~ ";
+ Text[ greek ] = "~Enable font substitution";
+ Text[ dutch ] = "~Vervanging van lettertype inschakelen";
+ Text[ french ] = "Activer la ~substitution de police";
+ Text[ spanish ] = "~Activar sustitucin de fuente";
+ Text[ italian ] = "~Attiva la sostituzione dei font";
+ Text[ danish ] = "~Enable font substitution";
+ Text[ swedish ] = "Aktivera tecken~snittsersttning";
+ Text[ polish ] = "Uaktywnij zamian czcionek";
+ Text[ portuguese_brazilian ] = "~Enable font substitution";
+ Text[ japanese ] = "̫Ă̒u݂ɂ(~E)";
+ Text[ korean ] = "~Enable font substitution";
+ Text[ chinese_simplified ] = "ʹø(~E)";
+ Text[ chinese_traditional ] = "ϥΥNr(~E)";
+ Text[ turkish ] = "~Enable font substitution";
+ Text[ arabic ] = " ";
+ };
+
+ FixedText RID_RTS_FS_SUBST_TXT
+ {
+ Pos = MAP_APPFONT( 5,20 );
+ Size = MAP_APPFONT( 180, 8 );
+ Text = "Ersetzte S~chriften";
+ Text [ english ] = "Substituted ~fonts";
+ Text[ english_us ] = "Replaced ~fonts";
+ Text[ portuguese ] = "Substituted ~fonts";
+ Text[ russian ] = " ";
+ Text[ greek ] = "Substituted ~fonts";
+ Text[ dutch ] = "~Lettertypen vervangen";
+ Text[ french ] = "Polices su~bstitues";
+ Text[ spanish ] = "~Fuentes sustituidas";
+ Text[ italian ] = "Font sostituiti";
+ Text[ danish ] = "Substituted ~fonts";
+ Text[ swedish ] = "Ersatta te~ckensnitt";
+ Text[ polish ] = "Zamie czcionki";
+ Text[ portuguese_brazilian ] = "Substituted ~fonts";
+ Text[ japanese ] = "u̫(~F)";
+ Text[ korean ] = "Substituted ~fonts";
+ Text[ chinese_simplified ] = "(~F)";
+ Text[ chinese_traditional ] = "nNr(~F)";
+ Text[ turkish ] = "Substituted ~fonts";
+ Text[ arabic ] = " ";
+ };
+ MultiListBox RID_RTS_FS_SUBST_BOX
+ {
+ AutoHScroll = TRUE;
+ Border = TRUE;
+ Sort = TRUE;
+ SimpleMode = TRUE;
+ Pos = MAP_APPFONT( 5, 30 );
+ Size = MAP_APPFONT( 220, 90 );
+ };
+ PushButton RID_RTS_FS_ADD_BTN
+ {
+ Pos = MAP_APPFONT( 5, 125 );
+ Size = MAP_APPFONT( 107, 15 );
+ Text = "~Hinzufgen";
+ Text [ english ] = "~Add";
+ Text[ english_us ] = "~Add";
+ Text[ portuguese ] = "~Add";
+ Text[ russian ] = "~";
+ Text[ greek ] = "~Add";
+ Text[ dutch ] = "~Toevoegen";
+ Text[ french ] = "~Ajouter";
+ Text[ spanish ] = "~Aadir";
+ Text[ italian ] = "A~ggiungi";
+ Text[ danish ] = "~Add";
+ Text[ swedish ] = "~Lgg till";
+ Text[ polish ] = "Dodaj";
+ Text[ portuguese_brazilian ] = "~Add";
+ Text[ japanese ] = "lj(~A)";
+ Text[ korean ] = "~Add";
+ Text[ chinese_simplified ] = "(~A)";
+ Text[ chinese_traditional ] = "[J(~A)";
+ Text[ turkish ] = "~Add";
+ Text[ arabic ] = "";
+ };
+ PushButton RID_RTS_FS_REMOVE_BTN
+ {
+ Pos = MAP_APPFONT( 117, 125 );
+ Size = MAP_APPFONT( 107, 15 );
+ Text = "~Entfernen";
+ Text [ english ] = "~Remove";
+ Text[ english_us ] = "~Remove";
+ Text[ portuguese ] = "~Remove";
+ Text[ russian ] = "~";
+ Text[ greek ] = "~Remove";
+ Text[ dutch ] = "~Verwijderen";
+ Text[ french ] = "~Supprimer";
+ Text[ spanish ] = "~Eliminar";
+ Text[ italian ] = "~Rimuovi";
+ Text[ danish ] = "~Remove";
+ Text[ swedish ] = "Ta ~bort";
+ Text[ polish ] = "Usu";
+ Text[ portuguese_brazilian ] = "~Remove";
+ Text[ japanese ] = "폜(~R)";
+ Text[ korean ] = "~Remove";
+ Text[ chinese_simplified ] = "ɾ(~R)";
+ Text[ chinese_traditional ] = "(~R)";
+ Text[ turkish ] = "~Remove";
+ Text[ arabic ] = "";
+ };
+ FixedText RID_RTS_FS_FROM_TXT
+ {
+ Pos = MAP_APPFONT( 5, 145 );
+ Size = MAP_APPFONT( 107, 8 );
+ Text = "Ersetze Sc~hriftart";
+ Text [ english ] = "~Substitute font";
+ Text[ english_us ] = "Repla~ce font";
+ Text[ portuguese ] = "~Substitute font";
+ Text[ russian ] = "~ ";
+ Text[ greek ] = "~Substitute font";
+ Text[ dutch ] = "~Lettertype vervangen";
+ Text[ french ] = "Substitution de p~olice";
+ Text[ spanish ] = "~Sustituir fuente";
+ Text[ italian ] = "Tipi di carattere sostituiti";
+ Text[ danish ] = "~Substitute font";
+ Text[ swedish ] = "E~rstt teckensnitt";
+ Text[ polish ] = "Zamie czcionk";
+ Text[ portuguese_brazilian ] = "~Substitute font";
+ Text[ japanese ] = "̫Ău(~C)";
+ Text[ korean ] = "Substitute font(~C)";
+ Text[ chinese_simplified ] = "(~C)";
+ Text[ chinese_traditional ] = "Nr(~C)";
+ Text[ turkish ] = "~Substitute font";
+ Text[ arabic ] = " ";
+ };
+ ComboBox RID_RTS_FS_FROM_BOX
+ {
+ Border = TRUE;
+ DropDown = TRUE;
+ Sort = TRUE;
+ Pos = MAP_APPFONT( 5, 155 );
+ Size = MAP_APPFONT( 107, 200 );
+ };
+ FixedText RID_RTS_FS_TO_TXT
+ {
+ Pos = MAP_APPFONT( 117, 145 );
+ Size = MAP_APPFONT( 107, 8 );
+ Text = "durch ~Druckerschriftart";
+ Text [ english ] = "by ~printer font";
+ Text[ english_us ] = "by ~printer font";
+ Text[ portuguese ] = "by ~printer font";
+ Text[ russian ] = " ";
+ Text[ greek ] = "by ~printer font";
+ Text[ dutch ] = "door ~printerlettertype";
+ Text[ french ] = "Par la police d'~imprimante";
+ Text[ spanish ] = "con ~fuente de impresora";
+ Text[ italian ] = "da caratteri della stamapante";
+ Text[ danish ] = "by ~printer font";
+ Text[ swedish ] = "med s~krivarteckensnitt";
+ Text[ polish ] = "na czcionk drukarki";
+ Text[ portuguese_brazilian ] = "by ~printer font";
+ Text[ japanese ] = "p̫Ăɒu(~P)";
+ Text[ korean ] = "by ~printer font";
+ Text[ chinese_simplified ] = "ôӡ塣(~P)";
+ Text[ chinese_traditional ] = "NϥΦCLr(~P)";
+ Text[ turkish ] = "by ~printer font";
+ Text[ arabic ] = " ";
+ };
+ ListBox RID_RTS_FS_TO_BOX
+ {
+ Border = TRUE;
+ DropDown = TRUE;
+ Sort = TRUE;
+ Pos = MAP_APPFONT( 117, 155 );
+ Size = MAP_APPFONT( 107, 200 );
+ };
+};
+
+TabPage RID_RTS_COMMANDPAGE
+{
+ Hide = TRUE;
+ Size = MAP_APPFONT( 230, 175 );
+
+ ComboBox RID_RTS_CMD_CB_COMMANDS
+ {
+ Border = TRUE ;
+ Sort = TRUE ;
+ Pos = MAP_APPFONT ( 11 , 75 ) ;
+ Size = MAP_APPFONT ( 150 , 65 ) ;
+ };
+ GroupBox RID_RTS_CMD_GROUP_INSTALL
+ {
+ Pos = MAP_APPFONT ( 6 , 44 ) ;
+ Size = MAP_APPFONT ( 220 , 127 ) ;
+ Text = "Kommando auswhlen" ;
+ Text [ English ] = "Select command" ;
+ Text[ english_us ] = "Select command";
+ Text[ portuguese ] = "Select command";
+ Text[ russian ] = " ";
+ Text[ greek ] = "Select command";
+ Text[ dutch ] = "Commando selecteren";
+ Text[ french ] = "Slectionner une commande";
+ Text[ spanish ] = "Seleccionar comando";
+ Text[ italian ] = "Seleziona comando";
+ Text[ danish ] = "Select command";
+ Text[ swedish ] = "Vlj kommando";
+ Text[ polish ] = "Wybierz polecenie";
+ Text[ portuguese_brazilian ] = "Select command";
+ Text[ japanese ] = "ނ̑I";
+ Text[ korean ] = "Select command";
+ Text[ chinese_simplified ] = "ѡ";
+ Text[ chinese_traditional ] = "ܫO";
+ Text[ turkish ] = "Select command";
+ Text[ arabic ] = " ";
+ };
+ String RID_RTS_CMD_STR_CONFIGURE_PRINTER
+ {
+ Text = "Drucker";
+ Text [ english ] = "printer";
+ Text[ english_us ] = "Printer";
+ Text[ portuguese ] = "printer";
+ Text[ russian ] = "";
+ Text[ greek ] = "printer";
+ Text[ dutch ] = "printer";
+ Text[ french ] = "Imprimante";
+ Text[ spanish ] = "Impresora";
+ Text[ italian ] = "Stampante";
+ Text[ danish ] = "printer";
+ Text[ swedish ] = "Skrivare";
+ Text[ polish ] = "Drukarka";
+ Text[ portuguese_brazilian ] = "printer";
+ Text[ japanese ] = "";
+ Text[ korean ] = "printer";
+ Text[ chinese_simplified ] = "ӡ";
+ Text[ chinese_traditional ] = "L";
+ Text[ turkish ] = "printer";
+ Text[ arabic ] = "";
+ };
+ String RID_RTS_CMD_STR_CONFIGURE_FAX
+ {
+ Text = "Fax";
+ Text [ english ] = "fax";
+ Text[ english_us ] = "Fax";
+ Text[ portuguese ] = "fax";
+ Text[ russian ] = "";
+ Text[ greek ] = "fax";
+ Text[ dutch ] = "fax";
+ Text[ french ] = "Fax";
+ Text[ spanish ] = "Fax";
+ Text[ italian ] = "Fax";
+ Text[ danish ] = "fax";
+ Text[ swedish ] = "Fax";
+ Text[ polish ] = "Faks";
+ Text[ portuguese_brazilian ] = "fax";
+ Text[ japanese ] = "Fax";
+ Text[ korean ] = "fax";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "ǯu";
+ Text[ turkish ] = "fax";
+ Text[ arabic ] = "";
+ };
+ String RID_RTS_CMD_STR_CONFIGURE_PDF
+ {
+ Text = "PDF-Konverter";
+ Text [ english ] = "PDF converter";
+ Text[ english_us ] = "PDF converter";
+ Text[ portuguese ] = "PDF converter";
+ Text[ russian ] = " PDF";
+ Text[ greek ] = "PDF converter";
+ Text[ dutch ] = "PDF converter";
+ Text[ french ] = "Convertisseur PDF";
+ Text[ spanish ] = "Convertidor PDF";
+ Text[ italian ] = "Convertitore PDF";
+ Text[ danish ] = "PDF converter";
+ Text[ swedish ] = "PDF-konverterare";
+ Text[ polish ] = "Konwerter PDF";
+ Text[ portuguese_brazilian ] = "PDF converter";
+ Text[ japanese ] = "PDF ް";
+ Text[ korean ] = "PDF converter";
+ Text[ chinese_simplified ] = "PDF ת";
+ Text[ chinese_traditional ] = "PDF ഫ";
+ Text[ turkish ] = "PDF converter";
+ Text[ arabic ] = "PDF ";
+ };
+
+ ListBox RID_RTS_CMD_LB_CONFIGURE
+ {
+ DropDown = true;
+ Border = true;
+ Pos = MAP_APPFONT( 101, 56 );
+ Size = MAP_APPFONT( 60, 200 );
+ };
+ FixedText RID_RTS_CMD_TXT_CONFIGURE
+ {
+ Pos = MAP_APPFONT( 11, 56 );
+ Size = MAP_APPFONT( 130, 10 );
+ Text = "~Konfigurieren als :";
+ Text [ english ] = "~Configure as : ";
+ Text[ english_us ] = "Configure as :";
+ Text[ portuguese ] = "Configure as : ";
+ Text[ russian ] = " :";
+ Text[ greek ] = "Configure as : ";
+ Text[ dutch ] = "Configureren als : ";
+ Text[ french ] = "Configurer comme :";
+ Text[ spanish ] = "Configurar como :";
+ Text[ italian ] = "Configura come :";
+ Text[ danish ] = "Configure as : ";
+ Text[ swedish ] = "Konfigurera som :";
+ Text[ polish ] = "Konfiguruj jako :";
+ Text[ portuguese_brazilian ] = "Configure as : ";
+ Text[ japanese ] = "ݒ:";
+ Text[ korean ] = "Configure as : ";
+ Text[ chinese_simplified ] = "óɣ";
+ Text[ chinese_traditional ] = "tmG";
+ Text[ turkish ] = "Configure as : ";
+ Text[ arabic ] = " :";
+ };
+
+ CheckBox RID_RTS_CMD_BOX_SWALLOWFAXNO
+ {
+ Pos = MAP_APPFONT( 11, 146 );
+ Size = MAP_APPFONT( 130, 8 );
+ Text = "~Faxnummer wird aus der Ausgabe entfernt";
+ Text [ english ] = "~fax number will be removed from output";
+ };
+ FixedText RID_RTS_CMD_TXT_PDFDIR
+ {
+ Pos = MAP_APPFONT( 11, 146 );
+ Size = MAP_APPFONT( 130, 8 );
+ Text = "PDF Zielverzeichnis :";
+ Text [ english ] = "PDF target directory :";
+ Text[ english_us ] = "PDF target directory :";
+ Text[ portuguese ] = "PDF target directory :";
+ Text[ russian ] = " PDF :";
+ Text[ greek ] = "PDF target directory :";
+ Text[ dutch ] = "PDF doeldirectory :";
+ Text[ french ] = "Rpertoire cible PDF :";
+ Text[ spanish ] = "Directorio destino PDF :";
+ Text[ italian ] = "Cartella destinazione PDF :";
+ Text[ danish ] = "PDF target directory :";
+ Text[ swedish ] = "PDF-mlkatalog :";
+ Text[ polish ] = "Katalog docelowy PDF :";
+ Text[ portuguese_brazilian ] = "PDF target directory :";
+ Text[ japanese ] = "PDF ޯިڸ:";
+ Text[ korean ] = "PDF target directory :";
+ Text[ chinese_simplified ] = "PDF ĿĿ¼";
+ Text[ chinese_traditional ] = "PDF ؼХؿG";
+ Text[ turkish ] = "PDF target directory :";
+ Text[ arabic ] = " PDF :";
+ };
+ Edit RID_RTS_CMD_EDT_PDFDIR
+ {
+ Border = TRUE;
+ Pos = MAP_APPFONT( 11, 155 );
+ Size = MAP_APPFONT( 130, 12 );
+ };
+ PushButton RID_RTS_CMD_BTN_PDFDIR
+ {
+ Pos = MAP_APPFONT( 146, 155 );
+ Size = MAP_APPFONT( 15, 12 );
+ Text = "...";
+ };
+ FixedText RID_RTS_CMD_TXT_PRTNAME
+ {
+ Pos = MAP_APPFONT ( 11 , 16 ) ;
+ Size = MAP_APPFONT ( 150 , 8 ) ;
+ };
+ FixedText RID_RTS_CMD_TXT_CONNECT
+ {
+ Pos = MAP_APPFONT ( 11 , 26 ) ;
+ Size = MAP_APPFONT ( 150 , 8 ) ;
+ Text = "Kommando: " ;
+ Text [ English ] = "Command: " ;
+ Text[ english_us ] = "Command: ";
+ Text[ portuguese ] = "Command: ";
+ Text[ russian ] = ": ";
+ Text[ greek ] = "Command: ";
+ Text[ dutch ] = "Commando: ";
+ Text[ french ] = "Commande : ";
+ Text[ spanish ] = "Comando: ";
+ Text[ italian ] = "Comando: ";
+ Text[ danish ] = "Command: ";
+ Text[ swedish ] = "Kommando: ";
+ Text[ polish ] = "Polecenie: ";
+ Text[ portuguese_brazilian ] = "Command: ";
+ Text[ japanese ] = ": ";
+ Text[ korean ] = "Command: ";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "OG";
+ Text[ turkish ] = "Command: ";
+ Text[ arabic ] = ":";
+ };
+ GroupBox RID_RTS_CMD_GROUP_DEFAULT
+ {
+ Pos = MAP_APPFONT ( 6 , 6 ) ;
+ Size = MAP_APPFONT ( 220 , 33 ) ;
+ Text = "Drucker" ;
+ Text [ English ] = "Printer" ;
+ Text[ english_us ] = "Printer";
+ Text[ portuguese ] = "Printer";
+ Text[ russian ] = "";
+ Text[ greek ] = "Printer";
+ Text[ dutch ] = "Printer";
+ Text[ french ] = "Imprimante";
+ Text[ spanish ] = "Impresora";
+ Text[ italian ] = "Stampante";
+ Text[ danish ] = "Printer";
+ Text[ swedish ] = "Skrivare";
+ Text[ polish ] = "Drukarka";
+ Text[ portuguese_brazilian ] = "Printer";
+ Text[ japanese ] = "";
+ Text[ korean ] = "Printer";
+ Text[ chinese_simplified ] = "ӡ";
+ Text[ chinese_traditional ] = "L";
+ Text[ turkish ] = "Printer";
+ Text[ arabic ] = "";
+ };
+ PushButton RID_RTS_CMD_BTN_HELP
+ {
+ Pos = MAP_APPFONT( 170, 55 );
+ Size = MAP_APPFONT( 50, 14 );
+ Text = "~Hilfe";
+ Text [ English ] = "~Help";
+ Text[ english_us ] = "~Help";
+ Text[ portuguese ] = "~Help";
+ Text[ russian ] = "~";
+ Text[ greek ] = "~Help";
+ Text[ dutch ] = "~Help";
+ Text[ french ] = "~Aide";
+ Text[ spanish ] = "Ay~uda";
+ Text[ italian ] = "~?";
+ Text[ danish ] = "~Help";
+ Text[ swedish ] = "~Hjlp";
+ Text[ polish ] = "Pomoc";
+ Text[ portuguese_brazilian ] = "~Help";
+ Text[ japanese ] = "(~H)";
+ Text[ korean ] = "~Help";
+ Text[ chinese_simplified ] = "";
+ Text[ chinese_traditional ] = "";
+ Text[ turkish ] = "~Help";
+ Text[ arabic ] = "";
+ };
+ PushButton RID_RTS_CMD_BTN_REMOVE
+ {
+ Pos = MAP_APPFONT( 170, 75 );
+ Size = MAP_APPFONT( 50, 14 );
+ Text = "~Entfernen";
+ Text [ English ] = "~Remove";
+ Text[ english_us ] = "~Remove";
+ Text[ portuguese ] = "~Remove";
+ Text[ russian ] = "~";
+ Text[ greek ] = "~Remove";
+ Text[ dutch ] = "~Verwijderen";
+ Text[ french ] = "~Supprimer";
+ Text[ spanish ] = "~Eliminar";
+ Text[ italian ] = "~Rimuovi";
+ Text[ danish ] = "~Remove";
+ Text[ swedish ] = "~Ta bort";
+ Text[ polish ] = "Usu";
+ Text[ portuguese_brazilian ] = "~Remove";
+ Text[ japanese ] = "폜(~R)";
+ Text[ korean ] = "~Remove";
+ Text[ chinese_simplified ] = "ɾ";
+ Text[ chinese_traditional ] = "";
+ Text[ turkish ] = "~Remove";
+ Text[ arabic ] = "";
+ };
+ String RID_RTS_CMD_STR_PDFHELP
+ {
+ Text = "Die Kommandozeile bei PDF-Konvertern wird wie folgt verarbeitet: bei jedem gedruckten Dokument wird in der Kommandozeile jeweils \"(TMP)\" durch eine temporre Datei und \"(OUTFILE)\" durch die zu erzeugende PDF Datei ersetzt. Wenn \"(TMP)\" in der Kommandozeile vorkommt wird der PostScript-code in einer Datei bergeben, andernfalls ber die Standardeingabe (d.h. als Pipe)." ;
+ Text [ English ] = "The command line for PDF converters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ english_us ] = "The command line for PDF converters is executed as follows: for each document printed, \"(TMP)\" in the command line is replaced by a temporary file and \"(OUTFILE)\" in the command line is replaced by the target PDF file name. If \"(TMP)\" is in the command line, the PostScript code will be supplied via a file, otherwise via standard input (i.e. as a pipe).";
+ Text[ portuguese ] = "The command line for PDF filters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ russian ] = " PDF : \"(TMP)\" , \"(OUTFILE)\" PDF, . \"(TMP)\" , PostScript , ( .. pipe).";
+ Text[ greek ] = "The command line for PDF filters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ dutch ] = "De commandoregel voor PDF-converters wordt als volgt uitgevoerd: bij ieder afgedrukt document wordt de variabele \"(TMP)\" in de commandoregel vervangen door een tijdelijk bestand en de variabele \"(OUTFILE)\" door het aan te leggen bestand. Als er \"(TMP)\" staat in de commandoregel wordt de PostScript-code in een bestand opgeslagen, in het andere geval via de standaardinvoer (bijv. als Pipe) doorgegeven.";
+ Text[ french ] = "Traitement de la ligne de commande pour les convertisseurs PDF : pour chaque document imprim, \"(TMP)\" est remplac par un fichier temporaire et \"(OUTFILE)\" par le fichier PDF gnrer. Si \"(TMP)\" apparat dans la ligne de commande, le code PostScript est transmis dans un fichier ; en cas contraire, il est transmis via l'entre par dfaut (c'est--dire comme tube (pipe)).";
+ Text[ spanish ] = "La fila de comando en convertidores PDF se ejecutar de la siguiente forma: con cada documento que se imprima se sustituir \"(TMP)\" en la lnea de comandos por un archivo temporal y \"(OUTFILE)\" por el archivo PDF que se vaya a crear. Si \"(TMP)\" aparece en la lnea de comando, el cdigo PostScript se transferir en un archivo, si no, a travs de una entrada estndar, o sea, como pipe";
+ Text[ italian ] = "La riga di comando nei convertitori PDF viene modificata come segue: per ogni documento stampato viene sostituito rispettivamente il file \"(TMP)\" da un file temporaneo e \"(OUTFILE)\" da un un file PDF. Se \"(TMP)\" appare nella riga comandi, il codice PostScript verr trasmesso a un file, altrimenti verr trasemsso come immissione standard (cio come pipe).";
+ Text[ danish ] = "The command line for PDF filters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ swedish ] = "Kommandoraden fr PDF-konverterare bearbetas p fljande stt: p varje utskrivet dokument erstts \"(TMP)\" och \"(OUTFILE)\" i kommandoraden av en temporr fil resp. av PDF-filen som ska skapas. Om \"(TMP)\" frekommer i kommandoraden verfrs PostScript-koden i en fil, i annat fall via standardinmatningen (d.v.s. som pipe).";
+ Text[ polish ] = "The command line for PDF filters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ portuguese_brazilian ] = "The command line for PDF filters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ japanese ] = "PDF ްł̺ލŝ͎悤Ɏs܂: ޷Ă邽тɁAލs \"(TMP)\" ͈ꎞ̧قŁA\"(OUTFILE)\" ͍쐬 PDF ̧قɒu܂Bލs \"(TMP)\" ƁAPostScript ނ̧قɓǂݍ܂܂BłȂꍇ́AWH̓́A‚܂߲ײݏs܂B";
+ Text[ korean ] = "The command line for PDF filters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ chinese_simplified ] = "PDF תʽ£ӡÿĵʱָ֮зֱһʱļ \"(TMP)\" һĿ PDF ļ \"(OUTFILE)\" \"(TMP)\" Ѿ֮УPostScript ͻᱻ뵽һļ֮ͻһ׼( Pipe)";
+ Text[ chinese_traditional ] = "PDF ഫOBz覡pUGCLCӤɫO椧OΤ@ӼȮɮרӴN \"(TMP)\" MΤ@ӥؼ PDF ɮצW٨ӴN \"(OUTFILE)\" CpG \"(TMP)\" wgsbO椧APostScript NXN|QǻJ@ɮסAϤAN|O@ӼзǿJ(@ Pipe)C";
+ Text[ turkish ] = "The command line for PDF filters is executed in the following way: on each document printed in the command line \"(TMP)\" will be replaced by a temporary file and \"(OUTFILE)\" by the target PDF file name. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ arabic ] = " PDF : ϡ \"(TMP)\" \"(OUTFILE)\" PDF . \"(TMP)\" ѡ PostScript ݡ ߡ ( Pipe).";
+ };
+ String RID_RTS_CMD_STR_PRINTERHELP
+ {
+ Text = "Die Kommandozeile bei Druckern wird wie folgt verarbeitet: der erzeugte PostScript-code wird der Kommandozeile als Standardeingabe (d.h. als Pipe) bergeben.";
+ Text [ English ] = "The command line for printer devices is executed in the following way: the generated PostScript code will be delivered as standard input (as a pipe) to the command line.";
+ Text[ english_us ] = "The command line for printer devices is executed as follows: the generated PostScript code is supplied as standard input (i.e. as a pipe) to the command line.";
+ Text[ portuguese ] = "The command line for printer devices is executed in the following way: the generated PostScript code will be delivered as standard input (as a pipe) to the command line.";
+ Text[ russian ] = " : PostScript (.. Pipe).";
+ Text[ greek ] = "The command line for printer devices is executed in the following way: the generated PostScript code will be delivered as standard input (as a pipe) to the command line.";
+ Text[ dutch ] = "De commandoregel bij printers wordt als PostScript-code (standaardinvoer ofwel Pipe) verwerkt.";
+ Text[ french ] = "Traitement de la ligne de commande pour les imprimantes : le code PostScript gnr est transmis la ligne de commande comme entre par dfaut (c'est--dire comme tube (pipe)).";
+ Text[ spanish ] = "La lnea de comando en impresoras se ejecutar de esta forma: el cdigo PostScript creado se transmitir a la lnea de comando como entrada estndar (es decir, como pipe).";
+ Text[ italian ] = "La riga comandi nella stampante verr impostata come segue: il codice PostScript creato verr trasmesso alla riga di comando come immissione standard (cio come pipe).";
+ Text[ danish ] = "The command line for printer devices is executed in the following way: the generated PostScript code will be delivered as standard input (as a pipe) to the command line.";
+ Text[ swedish ] = "Kommandoraden fr skrivare bearbetas p fljande stt: den skapade PostScript-koden verfrs som standardinmatning (d.v.s. som pipe) till kommandoraden.";
+ Text[ polish ] = "Wiersz polece przetwarzany jest w trakcie drukowania w nastpujcy sposb: Utworzony kod PostScript przekazany zostanie do wiersza polece jako ustawienie domylnie (tzn. jako potok (pipe)).";
+ Text[ portuguese_brazilian ] = "The command line for printer devices is executed in the following way: the generated PostScript code will be delivered as standard input (as a pipe) to the command line.";
+ Text[ japanese ] = "̺ލŝ͎悤Ɏs܂: 쐬ꂽ PostScript ނ́AލsɕWH̓́A‚܂߲ײݏ܂B";
+ Text[ korean ] = "The command line for printer devices is executed in the following way: the generated PostScript code will be delivered as standard input (as a pipe) to the command line.";
+ Text[ chinese_simplified ] = "ӡĴʽ£ɵ PostScript Դ밴ձ׼( pipe)ʽݸС";
+ Text[ chinese_traditional ] = "L涵ROBz覡pUGͦ PostScript NXӼЭJ(@ pipe)覡eOC";
+ Text[ turkish ] = "The command line for printer devices is executed in the following way: the generated PostScript code will be delivered as standard input (as a pipe) to the command line.";
+ Text[ arabic ] = " : PostScript ǡ ( Pipe).";
+ };
+ String RID_RTS_CMD_STR_FAXHELP
+ {
+ Text = "Die Kommandozeile bei Faxgerten wird wie folgt verarbeitet: bei jedem gesendeten Fax wird in der Kommandozeile jeweils \"(TMP)\" durch eine temporre Datei und \"(PHONE)\" durch die Faxnummer ersetzt. Wenn \"(TMP)\" in der Kommandozeile vorkommt wird der PostScript-code in einer Datei bergeben, andernfalls ber die Standardeingabe (d.h. als Pipe)." ;
+ Text [ English ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ english_us ] = "The command line for fax devices is executed as follows: for each fax sent, \"(TMP)\" in the command line is replaced by a temporary file and \"(PHONE)\" in the command line is replaced by the fax number. If \"(TMP)\" appears in the command line, the PostScript code will be supplied via a file, otherwise it is passed as standard input (i.e. as a pipe).";
+ Text[ portuguese ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ russian ] = " : \"(TMP)\" , \"(PHONE)\" - . \"(TMP)\" , PostScript , (. . pipe).";
+ Text[ greek ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ dutch ] = "De commandoregel voor fax wordt als volgt uitgevoerd: op iedere fax die wordt verzonden wordt de variabele \"(TMP)\" in de commandoregel vervangen door een tijdelijk bestand en de variabele \"(PHONE)\" door het faxnummer. Als er \"(TMP)\" staat in de commandoregel dan wordt de PostScript-code opgenomen in een bestand, zo niet dan als standaardinvoer (d.w.z. als Pipe) behandeld.";
+ Text[ french ] = "Traitement de la ligne de commande pour les priphriques fax : pour chaque envoi de fax, \"(TMP)\" est remplac par un fichier temporaire et \"(PHONE)\" par le numro de fax. Si \"(TMP)\" apparat dans la ligne de commande, le code PostScript est transmis dans un fichier ; en cas contraire, il est transmis via l'entre par dfaut (c'est--dire comme tube (pipe)).";
+ Text[ spanish ] = "La lnea de comando en dispositivos de fax se ejecutar de esta forma: Para cada fax enviado se sustituir en la fila de comando \"(TMP)\" por un archivo temporal y \"(PHONE)\" por un nmero de fax. Si \"(TMP)\" aparece en la fila de comando se transmitir el cdigo PostScript a un archivo; en caso contrario se har mediante entrada estndar (es decir, como pipe).";
+ Text[ italian ] = "La riga comandi degli apparecchi fax verr impostata come segue: per ogni fax inviato ogni \"(TMP)\" della riga comandi verr sostituito da un file temporaneo e \"(PHONE)\" sar sostituito dal numero di fax. Se \"(TMP)\" appare nella riga comandi, il codice PostScript verr trasmesso a un file, altrimenti verr trasemsso come immissione standard (cio come pipe).";
+ Text[ danish ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ swedish ] = "Kommandoraden fr faxar bearbetas p fljande stt: fr varje fax som skickas erstts \"(TMP)\" och \"(PHONE)\" med en temporr fil resp. av faxnumret. Om \"(TMP)\" frekommer i kommandoraden verfrs PostScript-koden i en fil, i annat fall via standardinmatningen (d.v.s. som pipe).";
+ Text[ polish ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ portuguese_brazilian ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ japanese ] = "Fax @̺ލŝ͎悤Ɏs܂: Fax M邽тɁAލs \"(TMP)\" ͈ꎞ̧قŁA\"(PHONE)\" ̧ԍŒu܂B\"(TMP)\" ލsɂƁAPostScript ނ̧قɓǂݍ܂܂BłȂΕWH̓́A‚܂߲ײݏs܂B";
+ Text[ korean ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ chinese_simplified ] = "Ĵʽ£ķʱͨһʱļ\"(TMP)\" ô \"(PHONE)\" к \"(TMP)\" PostScript Դͻתһļͻᵱ׼뷽ʽ( pipe)ݸС";
+ Text[ chinese_traditional ] = "ǯu涵OBz覡pUGHoǯuɳqLOΤ@ӼȮɮ״N\"(TMP)\" AζǯuXN \"(PHONE)\" CpGOt \"(TMP)\" APostScript NXN|ഫ@ɮסA_hN|@ЭJ覡(@ pipe)ǻOC";
+ Text[ turkish ] = "The command line for fax devices is executed in the following way: on each fax sent in the command line \"(TMP)\" will be replaced by a temporary file and \"(PHONE)\" by the fax number. If \"(TMP)\" exists in the command line the PostScript code will be delivered via a temporary file else as standard input (as a pipe).";
+ Text[ arabic ] = " : ӡ \"(TMP)\" \"(PHONE)\" . \"(TMP)\" ѡ PostScript ݡ ߡ ( Pipe).";
+ };
+};
+
+TabPage RID_RTS_OTHERPAGE
+{
+ Hide = TRUE;
+ Size = MAP_APPFONT( 230, 175 );
+
+ FixedText RID_RTS_OTHER_LEFTMARGIN_TXT
+ {
+ Pos = MAP_APPFONT( 5, 5 );
+ Size = MAP_APPFONT( 85, 8 );
+ Text = "~Linke Randkorrektur :" ;
+ Text [ English ] = "~Left margin adjustment :" ;
+ Text[ english_us ] = "~Left margin adjustment :";
+ Text[ portuguese ] = "~Ajuste da margem esquerda:";
+ Text[ russian ] = "~ :";
+ Text[ greek ] = " :";
+ Text[ dutch ] = "~Linker marge :";
+ Text[ french ] = "Correction de la marge ~gauche :";
+ Text[ spanish ] = "~Correccin del margen izquierdo :";
+ Text[ italian ] = "Correggi margine ~sinistro:";
+ Text[ danish ] = "~Left margin adjustment :";
+ Text[ swedish ] = "Vnster margina~lkorrigering :";
+ Text[ polish ] = "Wyrwnanie lewego marginesu :";
+ Text[ portuguese_brazilian ] = "~Left margin adjustment :";
+ Text[ japanese ] = "]̒(~L):";
+ Text[ korean ] = "ʡ顡(~L)";
+ Text[ chinese_simplified ] = "߾(~L)";
+ Text[ chinese_traditional ] = "վ㥪Z(~L)G";
+ Text[ turkish ] = "~Left margin adjustment :";
+ Text[ arabic ] = " :";
+ };
+ MetricField RID_RTS_OTHER_LEFTMARGIN_BOX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 120 , 5 ) ;
+ Size = MAP_APPFONT ( 105 , 12 ) ;
+ StrictFormat = TRUE ;
+ Spin = TRUE;
+ Repeat = TRUE;
+ Unit = FUNIT_MM;
+ DecimalDigits = 2;
+ };
+ FixedText RID_RTS_OTHER_TOPMARGIN_TXT
+ {
+ Pos = MAP_APPFONT( 5, 20 );
+ Size = MAP_APPFONT( 85, 8 );
+ Text = "~Obere Randkorrektur :" ;
+ Text [ English ] = "~Top margin adjustment :" ;
+ Text[ english_us ] = "~Top margin adjustment :";
+ Text[ portuguese ] = "Aju~ste da margem superior:";
+ Text[ russian ] = "~ :";
+ Text[ greek ] = " ~ :";
+ Text[ dutch ] = "~Marge boven :";
+ Text[ french ] = "Correction de la marge ~suprieure :";
+ Text[ spanish ] = "~Correccin del margen superior:";
+ Text[ italian ] = "Correggi margine s~uperiore:";
+ Text[ danish ] = "~Top margin adjustment :";
+ Text[ swedish ] = "vre marginalj~ustering :";
+ Text[ polish ] = "Wyrwnanie grnego marginesu :";
+ Text[ portuguese_brazilian ] = "~Top margin adjustment :";
+ Text[ japanese ] = "]̒(~T):";
+ Text[ korean ] = "顡(~T):";
+ Text[ chinese_simplified ] = "ϱ߾(~T)";
+ Text[ chinese_traditional ] = "վWZ(~T)G";
+ Text[ turkish ] = "~Top margin adjustment :";
+ Text[ arabic ] = " :";
+ };
+ MetricField RID_RTS_OTHER_TOPMARGIN_BOX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 120 , 20 ) ;
+ Size = MAP_APPFONT ( 105 , 12 ) ;
+ StrictFormat = TRUE ;
+ Spin = TRUE;
+ Repeat = TRUE;
+ Unit = FUNIT_MM;
+ DecimalDigits = 2;
+ };
+ FixedText RID_RTS_OTHER_RIGHTMARGIN_TXT
+ {
+ Pos = MAP_APPFONT( 5, 35 );
+ Size = MAP_APPFONT( 85, 8 );
+ Text = "~Rechte Randkorrektur :" ;
+ Text [ English ] = "~Right margin adjustment :" ;
+ Text[ english_us ] = "~Right margin adjustment :";
+ Text[ portuguese ] = "Ajuste ~da margem direita:";
+ Text[ russian ] = "~ :";
+ Text[ greek ] = " ~ :";
+ Text[ dutch ] = "~Rechter marge :";
+ Text[ french ] = "Correction de la marge ~droite :";
+ Text[ spanish ] = "~Correccin del margen derecho:";
+ Text[ italian ] = "Correzione margine ~destro:";
+ Text[ danish ] = "~Right margin adjustment :";
+ Text[ swedish ] = "Hge~r marginalkorrigering :";
+ Text[ polish ] = "Wyrwnanie prawego marginesu :";
+ Text[ portuguese_brazilian ] = "~Right margin adjustment :";
+ Text[ japanese ] = "E]̒(~R):";
+ Text[ korean ] = "~ʡ顡:";
+ Text[ chinese_simplified ] = "ұ߾(~R)";
+ Text[ chinese_traditional ] = "վkZ(~R)G";
+ Text[ turkish ] = "~Right margin adjustment :";
+ Text[ arabic ] = " :";
+ };
+ MetricField RID_RTS_OTHER_RIGHTMARGIN_BOX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 120 , 35 ) ;
+ Size = MAP_APPFONT ( 105 , 12 ) ;
+ StrictFormat = TRUE ;
+ Spin = TRUE;
+ Repeat = TRUE;
+ Unit = FUNIT_MM;
+ DecimalDigits = 2;
+ };
+ FixedText RID_RTS_OTHER_BOTTOMMARGIN_TXT
+ {
+ Pos = MAP_APPFONT( 5, 50 );
+ Size = MAP_APPFONT( 85, 8 );
+ Text = "~Untere Randkorrektur :" ;
+ Text [ English ] = "~Bottom margin adjustment :" ;
+ Text[ english_us ] = "~Bottom margin adjustment :";
+ Text[ portuguese ] = "Ajuste da margem ~inferior:";
+ Text[ russian ] = "~ :";
+ Text[ greek ] = " ~ :";
+ Text[ dutch ] = "M~arge beneden :";
+ Text[ french ] = "Correction de la marge ~infrieure :";
+ Text[ spanish ] = "~Correccin del margen inferior:";
+ Text[ italian ] = "Correggi margine ~inferiore:";
+ Text[ danish ] = "~Bottom margin adjustment :";
+ Text[ swedish ] = "~Undre marginalkorrigering :";
+ Text[ polish ] = "Wyrwnanie dolnego marginesu :";
+ Text[ portuguese_brazilian ] = "~Bottom margin adjustment :";
+ Text[ japanese ] = "]̒(~B):";
+ Text[ korean ] = "Ʒ顡 (~B):";
+ Text[ chinese_simplified ] = "±߾(~B)";
+ Text[ chinese_traditional ] = "վpZ(~B)G";
+ Text[ turkish ] = "~Bottom margin adjustment :";
+ Text[ arabic ] = " :";
+ };
+ MetricField RID_RTS_OTHER_BOTTOMMARGIN_BOX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 120 , 50 ) ;
+ Size = MAP_APPFONT ( 105 , 12 ) ;
+ StrictFormat = TRUE ;
+ Spin = TRUE;
+ Repeat = TRUE;
+ Unit = FUNIT_MM;
+ DecimalDigits = 2;
+ };
+ FixedText RID_RTS_OTHER_COMMENT_TXT
+ {
+ Pos = MAP_APPFONT( 5, 65 );
+ Size = MAP_APPFONT( 85, 8 );
+ Text = "~Kommentar :" ;
+ Text [ English ] = "~Comment :" ;
+ Text[ english_us ] = "~Comment :";
+ Text[ portuguese ] = "~Comentrio:";
+ Text[ russian ] = "~ :";
+ Text[ greek ] = " :";
+ Text[ dutch ] = "~Commentaar :";
+ Text[ french ] = "Co~mmentaire :";
+ Text[ spanish ] = "~Comentario:";
+ Text[ italian ] = "Co~mmento:";
+ Text[ danish ] = "~Comment :";
+ Text[ swedish ] = "~Kommentar :";
+ Text[ polish ] = "Komentarz :";
+ Text[ portuguese_brazilian ] = "~Comment :";
+ Text[ japanese ] = "(~C):";
+ Text[ korean ] = "ּ (~C):";
+ Text[ chinese_simplified ] = "ע(~C)";
+ Text[ chinese_traditional ] = "ƪ`(~C)G";
+ Text[ turkish ] = "~Comment :";
+ Text[ arabic ] = " :";
+ };
+ Edit RID_RTS_OTHER_COMMENT_EDT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 120 , 65 ) ;
+ Size = MAP_APPFONT ( 105 , 12 ) ;
+ };
+ PushButton RID_RTS_OTHER_DEFAULT_BTN
+ {
+ Pos = MAP_APPFONT( 70, 80 );
+ Size = MAP_APPFONT( 100, 15 );
+ Text = "~Standardwerte";
+ Text [ English ] = "~Default values";
+ Text[ english_us ] = "~Default Values";
+ Text[ portuguese ] = "~Valores padro";
+ Text[ russian ] = "~ ";
+ Text[ greek ] = "~ ";
+ Text[ dutch ] = "~Standaardwaarden";
+ Text[ french ] = "~Valeurs par dfaut";
+ Text[ spanish ] = "~Valores estndar";
+ Text[ italian ] = "~Valori standard";
+ Text[ danish ] = "~Default values";
+ Text[ swedish ] = "~Standardvrden";
+ Text[ polish ] = "Wartoci domylne";
+ Text[ portuguese_brazilian ] = "~Default values";
+ Text[ japanese ] = "l(~D)";
+ Text[ korean ] = "~⺻";
+ Text[ chinese_simplified ] = "Ĭֵ(~D)";
+ Text[ chinese_traditional ] = "q{ƭ(~D)";
+ Text[ turkish ] = "~Default values";
+ Text[ arabic ] = " ";
+ };
+};
+
+String RID_TXT_QUERYFAXNUMBER
+{
+ Text = "Bitte geben Sie die Faxnummer ein.";
+ Text [ English ] = "Please enter the fax number.";
+ Text[ english_us ] = "Please enter the fax number.";
+ Text[ portuguese ] = "Indique o nmero de fax.";
+ Text[ russian ] = " .";
+ Text[ greek ] = " Fax.";
+ Text[ dutch ] = "Vul het faxnummer in.";
+ Text[ french ] = "Saisissez le numro de fax.";
+ Text[ spanish ] = "Indique el nmero de fax";
+ Text[ italian ] = "Indicate il numero di fax.";
+ Text[ danish ] = "Please enter the fax number.";
+ Text[ swedish ] = "Ange faxnumret.";
+ Text[ polish ] = "Naley poda numer faksu.";
+ Text[ portuguese_brazilian ] = "Please enter the fax number.";
+ Text[ japanese ] = "Fax ԍ͂ĂB";
+ Text[ korean ] = "ѽȣԷϽʽÿ";
+ Text[ chinese_simplified ] = "봫롣";
+ Text[ chinese_traditional ] = "бzJǯuXC";
+ Text[ turkish ] = "Please enter the fax number.";
+ Text[ arabic ] = " .";
+};