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

move printer setup .ui to svtools and replace .src with it

Change-Id: I8959b08aee2d2974552b8d33c03436973352d599
üst b395637a
...@@ -52,7 +52,6 @@ $(eval $(call gb_SrsTarget_add_files,svt/res,\ ...@@ -52,7 +52,6 @@ $(eval $(call gb_SrsTarget_add_files,svt/res,\
svtools/source/dialogs/addresstemplate.src \ svtools/source/dialogs/addresstemplate.src \
svtools/source/dialogs/filedlg2.src \ svtools/source/dialogs/filedlg2.src \
svtools/source/dialogs/formats.src \ svtools/source/dialogs/formats.src \
svtools/source/dialogs/prnsetup.src \
svtools/source/dialogs/so3res.src \ svtools/source/dialogs/so3res.src \
svtools/source/dialogs/wizardmachine.src \ svtools/source/dialogs/wizardmachine.src \
svtools/source/java/javaerror.src \ svtools/source/java/javaerror.src \
......
...@@ -12,6 +12,7 @@ $(eval $(call gb_UI_UI,svt)) ...@@ -12,6 +12,7 @@ $(eval $(call gb_UI_UI,svt))
$(eval $(call gb_UI_add_uifiles,svt,\ $(eval $(call gb_UI_add_uifiles,svt,\
svtools/uiconfig/ui/graphicexport \ svtools/uiconfig/ui/graphicexport \
svtools/uiconfig/ui/placeedit \ svtools/uiconfig/ui/placeedit \
svtools/uiconfig/ui/printersetupdialog \
svtools/uiconfig/ui/restartdialog \ svtools/uiconfig/ui/restartdialog \
)) ))
......
...@@ -40,23 +40,13 @@ class QueueInfo; ...@@ -40,23 +40,13 @@ class QueueInfo;
class SVT_DLLPUBLIC PrinterSetupDialog : public ModalDialog class SVT_DLLPUBLIC PrinterSetupDialog : public ModalDialog
{ {
private: private:
FixedLine maFlPrinter; ListBox* m_pLbName;
FixedText maFtName; PushButton* m_pBtnProperties;
ListBox maLbName; PushButton* m_pBtnOptions;
PushButton maBtnProperties; FixedText* m_pFiStatus;
PushButton maBtnOptions; FixedText* m_pFiType;
FixedText maFtStatus; FixedText* m_pFiLocation;
FixedInfo maFiStatus; FixedText* m_pFiComment;
FixedText maFtType;
FixedInfo maFiType;
FixedText maFtLocation;
FixedInfo maFiLocation;
FixedText maFtComment;
FixedInfo maFiComment;
FixedLine maFlSepButton;
OKButton maBtnOK;
CancelButton maBtnCancel;
HelpButton maBtnHelp;
AutoTimer maStatusTimer; AutoTimer maStatusTimer;
Printer* mpPrinter; Printer* mpPrinter;
Printer* mpTempPrinter; Printer* mpTempPrinter;
......
...@@ -41,16 +41,16 @@ ...@@ -41,16 +41,16 @@
#define STR_SVT_FILEVIEW_COLUMN_TYPE (RID_SVTOOLS_START + 29) #define STR_SVT_FILEVIEW_COLUMN_TYPE (RID_SVTOOLS_START + 29)
#define STR_FILTERNAME_ALL (RID_SVTOOLS_START + 30) #define STR_FILTERNAME_ALL (RID_SVTOOLS_START + 30)
#define RID_FILEVIEW_CONTEXTMENU (RID_SVTOOLS_START + 31) #define RID_FILEVIEW_CONTEXTMENU (RID_SVTOOLS_START + 31)
#define STR_1BIT_THRESHOLD (RID_SVTOOLS_START + 32) #define STR_SVT_1BIT_THRESHOLD (RID_SVTOOLS_START + 32)
#define STR_1BIT_DITHERED (RID_SVTOOLS_START + 33) #define STR_SVT_1BIT_DITHERED (RID_SVTOOLS_START + 33)
#define STR_4BIT_GRAYSCALE (RID_SVTOOLS_START + 34) #define STR_SVT_4BIT_GRAYSCALE (RID_SVTOOLS_START + 34)
#define STR_4BIT_COLOR_PALETTE (RID_SVTOOLS_START + 35) #define STR_SVT_4BIT_COLOR_PALETTE (RID_SVTOOLS_START + 35)
#define STR_8BIT_GRAYSCALE (RID_SVTOOLS_START + 36) #define STR_SVT_8BIT_GRAYSCALE (RID_SVTOOLS_START + 36)
#define STR_8BIT_COLOR_PALETTE (RID_SVTOOLS_START + 37) #define STR_SVT_8BIT_COLOR_PALETTE (RID_SVTOOLS_START + 37)
#define STR_24BIT_TRUE_COLOR (RID_SVTOOLS_START + 38) #define STR_SVT_24BIT_TRUE_COLOR (RID_SVTOOLS_START + 38)
#define STR_ESTIMATED_SIZE_PIX_1 (RID_SVTOOLS_START + 39) #define STR_SVT_ESTIMATED_SIZE_PIX_1 (RID_SVTOOLS_START + 39)
#define STR_ESTIMATED_SIZE_PIX_2 (RID_SVTOOLS_START + 40) #define STR_SVT_ESTIMATED_SIZE_PIX_2 (RID_SVTOOLS_START + 40)
#define STR_ESTIMATED_SIZE_VEC (RID_SVTOOLS_START + 41) #define STR_SVT_ESTIMATED_SIZE_VEC (RID_SVTOOLS_START + 41)
// doc template dialog // doc template dialog
#define DLG_DOCTEMPLATE (RID_SVTOOLS_START+50) #define DLG_DOCTEMPLATE (RID_SVTOOLS_START+50)
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
#define STR_BASICKEY_FORMAT_CURRENCY (RID_SVTOOLS_START+130) #define STR_BASICKEY_FORMAT_CURRENCY (RID_SVTOOLS_START+130)
#define STR_SVT_PRNDLG_START (RID_SVTOOLS_START+141) #define STR_SVT_PRNDLG_START (RID_SVTOOLS_START+141)
#define DLG_SVT_PRNDLG_PRNSETUPDLG (STR_SVT_PRNDLG_START+0)
#define STR_SVT_PRNDLG_READY (STR_SVT_PRNDLG_START+2) #define STR_SVT_PRNDLG_READY (STR_SVT_PRNDLG_START+2)
#define STR_SVT_PRNDLG_PAUSED (STR_SVT_PRNDLG_START+3) #define STR_SVT_PRNDLG_PAUSED (STR_SVT_PRNDLG_START+3)
#define STR_SVT_PRNDLG_PENDING (STR_SVT_PRNDLG_START+4) #define STR_SVT_PRNDLG_PENDING (STR_SVT_PRNDLG_START+4)
......
...@@ -17,11 +17,10 @@ ...@@ -17,11 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <vcl/print.hxx>
#include <svtools/svtresid.hxx>
#include "prnsetup.hrc"
#include <svtools/prnsetup.hxx> #include <svtools/prnsetup.hxx>
#include <svtools/svtools.hrc>
#include <svtools/svtresid.hxx>
#include <vcl/print.hxx>
// ======================================================================= // =======================================================================
...@@ -217,45 +216,36 @@ XubString ImplPrnDlgGetStatusText( const QueueInfo& rInfo ) ...@@ -217,45 +216,36 @@ XubString ImplPrnDlgGetStatusText( const QueueInfo& rInfo )
// ======================================================================= // =======================================================================
PrinterSetupDialog::PrinterSetupDialog( Window* pWindow ) : PrinterSetupDialog::PrinterSetupDialog(Window* pParent)
ModalDialog ( pWindow, SvtResId( DLG_SVT_PRNDLG_PRNSETUPDLG ) ), : ModalDialog(pParent, "PrinterSetupDialog",
maFlPrinter ( this, SvtResId( FL_PRINTER ) ), "svt/ui/printersetupdialog.ui")
maFtName ( this, SvtResId( FT_NAME ) ),
maLbName ( this, SvtResId( LB_NAMES ) ),
maBtnProperties ( this, SvtResId( BTN_PROPERTIES ) ),
maBtnOptions ( this, SvtResId( BTN_OPTIONS ) ),
maFtStatus ( this, SvtResId( FT_STATUS ) ),
maFiStatus ( this, SvtResId( FI_STATUS ) ),
maFtType ( this, SvtResId( FT_TYPE ) ),
maFiType ( this, SvtResId( FI_TYPE ) ),
maFtLocation ( this, SvtResId( FT_LOCATION ) ),
maFiLocation ( this, SvtResId( FI_LOCATION ) ),
maFtComment ( this, SvtResId( FT_COMMENT ) ),
maFiComment ( this, SvtResId( FI_COMMENT ) ),
maFlSepButton ( this, SvtResId( FL_SEPBUTTON ) ),
maBtnOK ( this, SvtResId( BTN_OK ) ),
maBtnCancel ( this, SvtResId( BTN_CANCEL ) ),
maBtnHelp ( this, SvtResId( BTN_HELP ) )
{ {
FreeResource(); get(m_pLbName, "name");
m_pLbName->SetStyle(m_pLbName->GetStyle() | WB_SORT);
get(m_pBtnProperties, "properties");
get(m_pBtnOptions, "options");
get(m_pFiStatus, "status");
get(m_pFiType, "type");
get(m_pFiLocation, "location");
get(m_pFiComment, "comment");
// show options button only if link is set // show options button only if link is set
maBtnOptions.Hide(); m_pBtnOptions->Hide();
mpPrinter = NULL; mpPrinter = NULL;
mpTempPrinter = NULL; mpTempPrinter = NULL;
maStatusTimer.SetTimeout( IMPL_PRINTDLG_STATUS_UPDATE ); maStatusTimer.SetTimeout( IMPL_PRINTDLG_STATUS_UPDATE );
maStatusTimer.SetTimeoutHdl( LINK( this, PrinterSetupDialog, ImplStatusHdl ) ); maStatusTimer.SetTimeoutHdl( LINK( this, PrinterSetupDialog, ImplStatusHdl ) );
maBtnProperties.SetClickHdl( LINK( this, PrinterSetupDialog, ImplPropertiesHdl ) ); m_pBtnProperties->SetClickHdl( LINK( this, PrinterSetupDialog, ImplPropertiesHdl ) );
maLbName.SetSelectHdl( LINK( this, PrinterSetupDialog, ImplChangePrinterHdl ) ); m_pLbName->SetSelectHdl( LINK( this, PrinterSetupDialog, ImplChangePrinterHdl ) );
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
PrinterSetupDialog::~PrinterSetupDialog() PrinterSetupDialog::~PrinterSetupDialog()
{ {
ImplFreePrnDlgListBox( &maLbName, sal_False ); ImplFreePrnDlgListBox(m_pLbName, sal_False);
delete mpTempPrinter; delete mpTempPrinter;
} }
...@@ -263,27 +253,27 @@ PrinterSetupDialog::~PrinterSetupDialog() ...@@ -263,27 +253,27 @@ PrinterSetupDialog::~PrinterSetupDialog()
void PrinterSetupDialog::SetOptionsHdl( const Link& rLink ) void PrinterSetupDialog::SetOptionsHdl( const Link& rLink )
{ {
maBtnOptions.SetClickHdl( rLink ); m_pBtnOptions->SetClickHdl( rLink );
maBtnOptions.Show( rLink.IsSet() ); m_pBtnOptions->Show( rLink.IsSet() );
} }
void PrinterSetupDialog::ImplSetInfo() void PrinterSetupDialog::ImplSetInfo()
{ {
const QueueInfo* pInfo = Printer::GetQueueInfo(maLbName.GetSelectEntry(), true); const QueueInfo* pInfo = Printer::GetQueueInfo(m_pLbName->GetSelectEntry(), true);
if ( pInfo ) if ( pInfo )
{ {
maFiType.SetText( pInfo->GetDriver() ); m_pFiType->SetText( pInfo->GetDriver() );
maFiLocation.SetText( pInfo->GetLocation() ); m_pFiLocation->SetText( pInfo->GetLocation() );
maFiComment.SetText( pInfo->GetComment() ); m_pFiComment->SetText( pInfo->GetComment() );
maFiStatus.SetText( ImplPrnDlgGetStatusText( *pInfo ) ); m_pFiStatus->SetText( ImplPrnDlgGetStatusText( *pInfo ) );
} }
else else
{ {
XubString aTempStr; XubString aTempStr;
maFiType.SetText( aTempStr ); m_pFiType->SetText( aTempStr );
maFiLocation.SetText( aTempStr ); m_pFiLocation->SetText( aTempStr );
maFiComment.SetText( aTempStr ); m_pFiComment->SetText( aTempStr );
maFiStatus.SetText( aTempStr ); m_pFiStatus->SetText( aTempStr );
} }
} }
...@@ -292,8 +282,8 @@ void PrinterSetupDialog::ImplSetInfo() ...@@ -292,8 +282,8 @@ void PrinterSetupDialog::ImplSetInfo()
IMPL_LINK_NOARG(PrinterSetupDialog, ImplStatusHdl) IMPL_LINK_NOARG(PrinterSetupDialog, ImplStatusHdl)
{ {
QueueInfo aInfo; QueueInfo aInfo;
ImplPrnDlgUpdateQueueInfo( &maLbName, aInfo ); ImplPrnDlgUpdateQueueInfo(m_pLbName, aInfo);
maFiStatus.SetText( ImplPrnDlgGetStatusText( aInfo ) ); m_pFiStatus->SetText( ImplPrnDlgGetStatusText( aInfo ) );
return 0; return 0;
} }
...@@ -313,7 +303,7 @@ IMPL_LINK_NOARG(PrinterSetupDialog, ImplPropertiesHdl) ...@@ -313,7 +303,7 @@ IMPL_LINK_NOARG(PrinterSetupDialog, ImplPropertiesHdl)
IMPL_LINK_NOARG(PrinterSetupDialog, ImplChangePrinterHdl) IMPL_LINK_NOARG(PrinterSetupDialog, ImplChangePrinterHdl)
{ {
mpTempPrinter = ImplPrnDlgListBoxSelect( &maLbName, &maBtnProperties, mpTempPrinter = ImplPrnDlgListBoxSelect(m_pLbName, m_pBtnProperties,
mpPrinter, mpTempPrinter ); mpPrinter, mpTempPrinter );
ImplSetInfo(); ImplSetInfo();
return 0; return 0;
...@@ -341,7 +331,7 @@ void PrinterSetupDialog::DataChanged( const DataChangedEvent& rDCEvt ) ...@@ -341,7 +331,7 @@ void PrinterSetupDialog::DataChanged( const DataChangedEvent& rDCEvt )
pPrn = mpTempPrinter; pPrn = mpTempPrinter;
else else
pPrn = mpPrinter; pPrn = mpPrinter;
ImplFillPrnDlgListBox( pPrn, &maLbName, &maBtnProperties ); ImplFillPrnDlgListBox(pPrn, m_pLbName, m_pBtnProperties);
ImplSetInfo(); ImplSetInfo();
} }
...@@ -360,7 +350,7 @@ short PrinterSetupDialog::Execute() ...@@ -360,7 +350,7 @@ short PrinterSetupDialog::Execute()
Printer::updatePrinters(); Printer::updatePrinters();
ImplFillPrnDlgListBox( mpPrinter, &maLbName, &maBtnProperties ); ImplFillPrnDlgListBox(mpPrinter, m_pLbName, m_pBtnProperties);
ImplSetInfo(); ImplSetInfo();
maStatusTimer.Start(); maStatusTimer.Start();
......
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <svtools/svtools.hrc>
#define FL_PRINTER 1
#define LB_NAMES 2
#define BTN_PROPERTIES 3
#define FT_NAME 4
#define FT_STATUS 5
#define FI_STATUS 6
#define FT_TYPE 7
#define FI_TYPE 8
#define FT_LOCATION 9
#define FI_LOCATION 10
#define FT_COMMENT 11
#define FI_COMMENT 12
#define BTN_OK 13
#define BTN_CANCEL 14
#define BTN_HELP 15
#define FL_SEPBUTTON 16
#define BTN_OPTIONS 17
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "prnsetup.hrc"
String STR_SVT_PRNDLG_READY
{
Text [ en-US ] = "Ready" ;
};
String STR_SVT_PRNDLG_PAUSED
{
Text [ en-US ] = "Paused" ;
};
String STR_SVT_PRNDLG_PENDING
{
Text [ en-US ] = "Pending deletion" ;
};
String STR_SVT_PRNDLG_BUSY
{
Text [ en-US ] = "Busy" ;
};
String STR_SVT_PRNDLG_INITIALIZING
{
Text [ en-US ] = "Initializing" ;
};
String STR_SVT_PRNDLG_WAITING
{
Text [ en-US ] = "Waiting" ;
};
String STR_SVT_PRNDLG_WARMING_UP
{
Text [ en-US ] = "Warming up" ;
};
String STR_SVT_PRNDLG_PROCESSING
{
Text [ en-US ] = "Processing" ;
};
String STR_SVT_PRNDLG_PRINTING
{
Text [ en-US ] = "Printing" ;
};
String STR_SVT_PRNDLG_OFFLINE
{
Text [ en-US ] = "Offline" ;
};
String STR_SVT_PRNDLG_ERROR
{
Text [ en-US ] = "Error" ;
};
String STR_SVT_PRNDLG_SERVER_UNKNOWN
{
Text [ en-US ] = "Unknown Server" ;
};
String STR_SVT_PRNDLG_PAPER_JAM
{
Text [ en-US ] = "Paper jam" ;
};
String STR_SVT_PRNDLG_PAPER_OUT
{
Text [ en-US ] = "Not enough paper" ;
};
String STR_SVT_PRNDLG_MANUAL_FEED
{
Text [ en-US ] = "Manual feed" ;
};
String STR_SVT_PRNDLG_PAPER_PROBLEM
{
Text [ en-US ] = "Paper problem" ;
};
String STR_SVT_PRNDLG_IO_ACTIVE
{
Text [ en-US ] = "I/O active" ;
};
String STR_SVT_PRNDLG_OUTPUT_BIN_FULL
{
Text [ en-US ] = "Output bin full" ;
};
String STR_SVT_PRNDLG_TONER_LOW
{
Text [ en-US ] = "Toner low" ;
};
String STR_SVT_PRNDLG_NO_TONER
{
Text [ en-US ] = "No toner" ;
};
String STR_SVT_PRNDLG_PAGE_PUNT
{
Text [ en-US ] = "Delete Page" ;
};
String STR_SVT_PRNDLG_USER_INTERVENTION
{
Text [ en-US ] = "User intervention necessary" ;
};
String STR_SVT_PRNDLG_OUT_OF_MEMORY
{
Text [ en-US ] = "Insufficient memory" ;
};
String STR_SVT_PRNDLG_DOOR_OPEN
{
Text [ en-US ] = "Cover open" ;
};
String STR_SVT_PRNDLG_POWER_SAVE
{
Text [ en-US ] = "Power save mode" ;
};
String STR_SVT_PRNDLG_DEFPRINTER
{
Text [ en-US ] = "Default printer" ;
};
String STR_SVT_PRNDLG_JOBCOUNT
{
Text [ en-US ] = "%d documents" ;
};
ModalDialog DLG_SVT_PRNDLG_PRNSETUPDLG
{
HelpID = "svtools:ModalDialog:DLG_SVT_PRNDLG_PRNSETUPDLG";
OutputSize = TRUE ;
SVLook = TRUE ;
Moveable = TRUE ;
Size = MAP_APPFONT ( 260 , 104 ) ;
Text [ en-US ] = "Printer Setup" ;
FixedLine FL_PRINTER
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Printer" ;
};
FixedText FT_NAME
{
Pos = MAP_APPFONT ( 12 , 14 ) ;
Size = MAP_APPFONT ( 45 , 10 ) ;
Text [ en-US ] = "~Name" ;
};
ListBox LB_NAMES
{
HelpID = "svtools:ListBox:DLG_SVT_PRNDLG_PRNSETUPDLG:LB_NAMES";
Border = TRUE ;
Pos = MAP_APPFONT ( 60 , 12 ) ;
Size = MAP_APPFONT ( 125 , 80 ) ;
DropDown = TRUE ;
Sort = TRUE ;
};
PushButton BTN_PROPERTIES
{
HelpID = "svtools:PushButton:DLG_SVT_PRNDLG_PRNSETUPDLG:BTN_PROPERTIES";
Pos = MAP_APPFONT ( 188 , 12 ) ;
Size = MAP_APPFONT ( 60 , 14 ) ;
Text [ en-US ] = "Propert~ies..." ;
};
FixedText FT_STATUS
{
Pos = MAP_APPFONT ( 12 , 29 ) ;
Size = MAP_APPFONT ( 45 , 10 ) ;
Text [ en-US ] = "Status" ;
};
FixedText FI_STATUS
{
Pos = MAP_APPFONT ( 60 , 29 ) ;
Size = MAP_APPFONT ( 188 , 10 ) ;
};
FixedText FT_TYPE
{
Pos = MAP_APPFONT ( 12 , 40 ) ;
Size = MAP_APPFONT ( 45 , 10 ) ;
Text [ en-US ] = "Type" ;
};
FixedText FI_TYPE
{
Pos = MAP_APPFONT ( 60 , 40 ) ;
Size = MAP_APPFONT ( 188 , 10 ) ;
};
FixedText FT_LOCATION
{
Pos = MAP_APPFONT ( 12 , 51 ) ;
Size = MAP_APPFONT ( 45 , 10 ) ;
Text [ en-US ] = "Location" ;
};
FixedText FI_LOCATION
{
Pos = MAP_APPFONT ( 60 , 51 ) ;
Size = MAP_APPFONT ( 188 , 10 ) ;
};
FixedText FT_COMMENT
{
Pos = MAP_APPFONT ( 12 , 62 ) ;
Size = MAP_APPFONT ( 45 , 10 ) ;
Text [ en-US ] = "Comment" ;
};
FixedText FI_COMMENT
{
Pos = MAP_APPFONT ( 60 , 62 ) ;
Size = MAP_APPFONT ( 188 , 10 ) ;
};
FixedLine FL_SEPBUTTON
{
Pos = MAP_APPFONT ( 0, 78 );
Size = MAP_APPFONT ( 260, 2 );
};
PushButton BTN_OPTIONS
{
HelpID = "svtools:PushButton:DLG_SVT_PRNDLG_PRNSETUPDLG:BTN_OPTIONS";
Pos = MAP_APPFONT ( 5 , 84 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "~Options..." ;
};
OKButton BTN_OK
{
Pos = MAP_APPFONT ( 95 , 84 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
DefButton = TRUE ;
};
CancelButton BTN_CANCEL
{
Pos = MAP_APPFONT ( 148 , 84 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
};
HelpButton BTN_HELP
{
Pos = MAP_APPFONT ( 204 , 84 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
};
};
...@@ -568,16 +568,16 @@ ExportDialog::ExportDialog(FltCallDialogParameter& rPara, ...@@ -568,16 +568,16 @@ ExportDialog::ExportDialog(FltCallDialogParameter& rPara,
, mxSourceDocument(rxSourceDocument) , mxSourceDocument(rxSourceDocument)
, mpSbCompression(NULL) , mpSbCompression(NULL)
, mpNfCompression(NULL) , mpNfCompression(NULL)
, msEstimatedSizePix1(SVT_RESSTR(STR_ESTIMATED_SIZE_PIX_1)) , msEstimatedSizePix1(SVT_RESSTR(STR_SVT_ESTIMATED_SIZE_PIX_1))
, msEstimatedSizePix2(SVT_RESSTR(STR_ESTIMATED_SIZE_PIX_2)) , msEstimatedSizePix2(SVT_RESSTR(STR_SVT_ESTIMATED_SIZE_PIX_2))
, msEstimatedSizeVec(SVT_RESSTR(STR_ESTIMATED_SIZE_VEC)) , msEstimatedSizeVec(SVT_RESSTR(STR_SVT_ESTIMATED_SIZE_VEC))
, ms1BitTreshold(SVT_RESSTR(STR_1BIT_THRESHOLD)) , ms1BitTreshold(SVT_RESSTR(STR_SVT_1BIT_THRESHOLD))
, ms1BitDithered(SVT_RESSTR(STR_1BIT_DITHERED)) , ms1BitDithered(SVT_RESSTR(STR_SVT_1BIT_DITHERED))
, ms4BitGrayscale(SVT_RESSTR(STR_4BIT_GRAYSCALE)) , ms4BitGrayscale(SVT_RESSTR(STR_SVT_4BIT_GRAYSCALE))
, ms4BitColorPalette(SVT_RESSTR(STR_4BIT_COLOR_PALETTE)) , ms4BitColorPalette(SVT_RESSTR(STR_SVT_4BIT_COLOR_PALETTE))
, ms8BitGrayscale(SVT_RESSTR(STR_8BIT_GRAYSCALE)) , ms8BitGrayscale(SVT_RESSTR(STR_SVT_8BIT_GRAYSCALE))
, ms8BitColorPalette(SVT_RESSTR(STR_8BIT_COLOR_PALETTE)) , ms8BitColorPalette(SVT_RESSTR(STR_SVT_8BIT_COLOR_PALETTE))
, ms24BitColor(SVT_RESSTR(STR_24BIT_TRUE_COLOR)) , ms24BitColor(SVT_RESSTR(STR_SVT_24BIT_TRUE_COLOR))
, maExt(rPara.aFilterExt) , maExt(rPara.aFilterExt)
, mnFormat(FORMAT_UNKNOWN) , mnFormat(FORMAT_UNKNOWN)
, mnMaxFilesizeForRealtimePreview(0) , mnMaxFilesizeForRealtimePreview(0)
......
...@@ -9,44 +9,152 @@ ...@@ -9,44 +9,152 @@
#include "svtools/svtools.hrc" #include "svtools/svtools.hrc"
String STR_1BIT_THRESHOLD String STR_SVT_1BIT_THRESHOLD
{ {
Text [ en-US ] = "1 bit threshold"; Text [ en-US ] = "1 bit threshold";
}; };
String STR_1BIT_DITHERED String STR_SVT_1BIT_DITHERED
{ {
Text [ en-US ] = "1 bit dithered"; Text [ en-US ] = "1 bit dithered";
}; };
String STR_4BIT_GRAYSCALE String STR_SVT_4BIT_GRAYSCALE
{ {
Text [ en-US ] = "4 bit grayscale"; Text [ en-US ] = "4 bit grayscale";
}; };
String STR_4BIT_COLOR_PALETTE String STR_SVT_4BIT_COLOR_PALETTE
{ {
Text [ en-US ] = "4 bit color"; Text [ en-US ] = "4 bit color";
}; };
String STR_8BIT_GRAYSCALE String STR_SVT_8BIT_GRAYSCALE
{ {
Text [ en-US ] = "8 bit grayscale"; Text [ en-US ] = "8 bit grayscale";
}; };
String STR_8BIT_COLOR_PALETTE String STR_SVT_8BIT_COLOR_PALETTE
{ {
Text [ en-US ] = "8 bit color"; Text [ en-US ] = "8 bit color";
}; };
String STR_24BIT_TRUE_COLOR String STR_SVT_24BIT_TRUE_COLOR
{ {
Text [ en-US ] = "24 bit true color"; Text [ en-US ] = "24 bit true color";
}; };
String STR_ESTIMATED_SIZE_PIX_1 String STR_SVT_ESTIMATED_SIZE_PIX_1
{ {
Text [ en-US ] = "The picture needs about %1 KB of memory."; Text [ en-US ] = "The picture needs about %1 KB of memory.";
}; };
String STR_ESTIMATED_SIZE_PIX_2 String STR_SVT_ESTIMATED_SIZE_PIX_2
{ {
Text [ en-US ] = "The picture needs about %1 KB of memory, the file size is %2 KB."; Text [ en-US ] = "The picture needs about %1 KB of memory, the file size is %2 KB.";
}; };
String STR_ESTIMATED_SIZE_VEC String STR_SVT_ESTIMATED_SIZE_VEC
{ {
Text [ en-US ] = "The file size is %1 KB."; Text [ en-US ] = "The file size is %1 KB.";
}; };
String STR_SVT_PRNDLG_READY
{
Text [ en-US ] = "Ready" ;
};
String STR_SVT_PRNDLG_PAUSED
{
Text [ en-US ] = "Paused" ;
};
String STR_SVT_PRNDLG_PENDING
{
Text [ en-US ] = "Pending deletion" ;
};
String STR_SVT_PRNDLG_BUSY
{
Text [ en-US ] = "Busy" ;
};
String STR_SVT_PRNDLG_INITIALIZING
{
Text [ en-US ] = "Initializing" ;
};
String STR_SVT_PRNDLG_WAITING
{
Text [ en-US ] = "Waiting" ;
};
String STR_SVT_PRNDLG_WARMING_UP
{
Text [ en-US ] = "Warming up" ;
};
String STR_SVT_PRNDLG_PROCESSING
{
Text [ en-US ] = "Processing" ;
};
String STR_SVT_PRNDLG_PRINTING
{
Text [ en-US ] = "Printing" ;
};
String STR_SVT_PRNDLG_OFFLINE
{
Text [ en-US ] = "Offline" ;
};
String STR_SVT_PRNDLG_ERROR
{
Text [ en-US ] = "Error" ;
};
String STR_SVT_PRNDLG_SERVER_UNKNOWN
{
Text [ en-US ] = "Unknown Server" ;
};
String STR_SVT_PRNDLG_PAPER_JAM
{
Text [ en-US ] = "Paper jam" ;
};
String STR_SVT_PRNDLG_PAPER_OUT
{
Text [ en-US ] = "Not enough paper" ;
};
String STR_SVT_PRNDLG_MANUAL_FEED
{
Text [ en-US ] = "Manual feed" ;
};
String STR_SVT_PRNDLG_PAPER_PROBLEM
{
Text [ en-US ] = "Paper problem" ;
};
String STR_SVT_PRNDLG_IO_ACTIVE
{
Text [ en-US ] = "I/O active" ;
};
String STR_SVT_PRNDLG_OUTPUT_BIN_FULL
{
Text [ en-US ] = "Output bin full" ;
};
String STR_SVT_PRNDLG_TONER_LOW
{
Text [ en-US ] = "Toner low" ;
};
String STR_SVT_PRNDLG_NO_TONER
{
Text [ en-US ] = "No toner" ;
};
String STR_SVT_PRNDLG_PAGE_PUNT
{
Text [ en-US ] = "Delete Page" ;
};
String STR_SVT_PRNDLG_USER_INTERVENTION
{
Text [ en-US ] = "User intervention necessary" ;
};
String STR_SVT_PRNDLG_OUT_OF_MEMORY
{
Text [ en-US ] = "Insufficient memory" ;
};
String STR_SVT_PRNDLG_DOOR_OPEN
{
Text [ en-US ] = "Cover open" ;
};
String STR_SVT_PRNDLG_POWER_SAVE
{
Text [ en-US ] = "Power save mode" ;
};
String STR_SVT_PRNDLG_DEFPRINTER
{
Text [ en-US ] = "Default printer" ;
};
String STR_SVT_PRNDLG_JOBCOUNT
{
Text [ en-US ] = "%d documents" ;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment