diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-19 15:15:13 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-20 09:52:09 +0200 |
commit | 4b57be7234ea61aad0a472a56a4f073270933c8e (patch) | |
tree | 2a2fa6f61d114ddc5241e0e5ac31400e101d731e /svtools | |
parent | 23b439a664549e1b43347bc625c267fa3c4f4d3b (diff) |
convert QUEUE_STATUS constants to scoped enum
Change-Id: I672e3a31c97fad91826dff1446d2d098d3d36150
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/dialogs/prnsetup.cxx | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/svtools/source/dialogs/prnsetup.cxx b/svtools/source/dialogs/prnsetup.cxx index 957c64e39d9a..a4c4431d8da9 100644 --- a/svtools/source/dialogs/prnsetup.cxx +++ b/svtools/source/dialogs/prnsetup.cxx @@ -144,7 +144,7 @@ static OUString ImplPrnDlgAddResString(const OUString& rStr, sal_uInt16 nResId) OUString ImplPrnDlgGetStatusText( const QueueInfo& rInfo ) { OUString aStr; - sal_uLong nStatus = rInfo.GetStatus(); + PrintQueueFlags nStatus = rInfo.GetStatus(); // Default-Printer if ( !rInfo.GetPrinterName().isEmpty() && @@ -152,55 +152,55 @@ OUString ImplPrnDlgGetStatusText( const QueueInfo& rInfo ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_DEFPRINTER ); // Status - if ( nStatus & QUEUE_STATUS_READY ) + if ( nStatus & PrintQueueFlags::Ready ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_READY ); - if ( nStatus & QUEUE_STATUS_PAUSED ) + if ( nStatus & PrintQueueFlags::Paused ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_PAUSED ); - if ( nStatus & QUEUE_STATUS_PENDING_DELETION ) + if ( nStatus & PrintQueueFlags::PendingDeletion ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_PENDING ); - if ( nStatus & QUEUE_STATUS_BUSY ) + if ( nStatus & PrintQueueFlags::Busy ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_BUSY ); - if ( nStatus & QUEUE_STATUS_INITIALIZING ) + if ( nStatus & PrintQueueFlags::Initializing ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_INITIALIZING ); - if ( nStatus & QUEUE_STATUS_WAITING ) + if ( nStatus & PrintQueueFlags::Waiting ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_WAITING ); - if ( nStatus & QUEUE_STATUS_WARMING_UP ) + if ( nStatus & PrintQueueFlags::WarmingUp ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_WARMING_UP ); - if ( nStatus & QUEUE_STATUS_PROCESSING ) + if ( nStatus & PrintQueueFlags::Processing ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_PROCESSING ); - if ( nStatus & QUEUE_STATUS_PRINTING ) + if ( nStatus & PrintQueueFlags::Printing ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_PRINTING ); - if ( nStatus & QUEUE_STATUS_OFFLINE ) + if ( nStatus & PrintQueueFlags::Offline ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_OFFLINE ); - if ( nStatus & QUEUE_STATUS_ERROR ) + if ( nStatus & PrintQueueFlags::Error ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_ERROR ); - if ( nStatus & QUEUE_STATUS_SERVER_UNKNOWN ) + if ( nStatus & PrintQueueFlags::StatusUnknown ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_SERVER_UNKNOWN ); - if ( nStatus & QUEUE_STATUS_PAPER_JAM ) + if ( nStatus & PrintQueueFlags::PaperJam ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_PAPER_JAM ); - if ( nStatus & QUEUE_STATUS_PAPER_OUT ) + if ( nStatus & PrintQueueFlags::PaperOut ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_PAPER_OUT ); - if ( nStatus & QUEUE_STATUS_MANUAL_FEED ) + if ( nStatus & PrintQueueFlags::ManualFeed ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_MANUAL_FEED ); - if ( nStatus & QUEUE_STATUS_PAPER_PROBLEM ) + if ( nStatus & PrintQueueFlags::PaperProblem ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_PAPER_PROBLEM ); - if ( nStatus & QUEUE_STATUS_IO_ACTIVE ) + if ( nStatus & PrintQueueFlags::IOActive ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_IO_ACTIVE ); - if ( nStatus & QUEUE_STATUS_OUTPUT_BIN_FULL ) + if ( nStatus & PrintQueueFlags::OutputBinFull ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_OUTPUT_BIN_FULL ); - if ( nStatus & QUEUE_STATUS_TONER_LOW ) + if ( nStatus & PrintQueueFlags::TonerLow ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_TONER_LOW ); - if ( nStatus & QUEUE_STATUS_NO_TONER ) + if ( nStatus & PrintQueueFlags::NoToner ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_NO_TONER ); - if ( nStatus & QUEUE_STATUS_PAGE_PUNT ) + if ( nStatus & PrintQueueFlags::PagePunt ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_PAGE_PUNT ); - if ( nStatus & QUEUE_STATUS_USER_INTERVENTION ) + if ( nStatus & PrintQueueFlags::UserIntervention ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_USER_INTERVENTION ); - if ( nStatus & QUEUE_STATUS_OUT_OF_MEMORY ) + if ( nStatus & PrintQueueFlags::OutOfMemory ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_OUT_OF_MEMORY ); - if ( nStatus & QUEUE_STATUS_DOOR_OPEN ) + if ( nStatus & PrintQueueFlags::DoorOpen ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_DOOR_OPEN ); - if ( nStatus & QUEUE_STATUS_POWER_SAVE ) + if ( nStatus & PrintQueueFlags::PowerSave ) aStr = ImplPrnDlgAddResString( aStr, STR_SVT_PRNDLG_POWER_SAVE ); // Anzahl Jobs |