Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
4b57be72
Kaydet (Commit)
4b57be72
authored
May 19, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert QUEUE_STATUS constants to scoped enum
Change-Id: I672e3a31c97fad91826dff1446d2d098d3d36150
üst
23b439a6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
97 additions
and
87 deletions
+97
-87
print.hxx
include/vcl/print.hxx
+2
-2
prntypes.hxx
include/vcl/prntypes.hxx
+34
-26
prnsetup.cxx
svtools/source/dialogs/prnsetup.cxx
+26
-26
salprn.hxx
vcl/inc/salprn.hxx
+2
-2
print.cxx
vcl/source/gdi/print.cxx
+6
-4
salprn.cxx
vcl/win/source/gdi/salprn.cxx
+27
-27
No files found.
include/vcl/print.hxx
Dosyayı görüntüle @
4b57be72
...
@@ -87,7 +87,7 @@ private:
...
@@ -87,7 +87,7 @@ private:
OUString
maDriver
;
OUString
maDriver
;
OUString
maLocation
;
OUString
maLocation
;
OUString
maComment
;
OUString
maComment
;
sal_uInt32
mnStatus
;
PrintQueueFlags
mnStatus
;
sal_uInt32
mnJobs
;
sal_uInt32
mnJobs
;
public
:
public
:
...
@@ -99,7 +99,7 @@ public:
...
@@ -99,7 +99,7 @@ public:
const
OUString
&
GetDriver
()
const
{
return
maDriver
;
}
const
OUString
&
GetDriver
()
const
{
return
maDriver
;
}
const
OUString
&
GetLocation
()
const
{
return
maLocation
;
}
const
OUString
&
GetLocation
()
const
{
return
maLocation
;
}
const
OUString
&
GetComment
()
const
{
return
maComment
;
}
const
OUString
&
GetComment
()
const
{
return
maComment
;
}
sal_uInt32
GetStatus
()
const
{
return
mnStatus
;
}
PrintQueueFlags
GetStatus
()
const
{
return
mnStatus
;
}
sal_uInt32
GetJobs
()
const
{
return
mnJobs
;
}
sal_uInt32
GetJobs
()
const
{
return
mnJobs
;
}
bool
operator
==
(
const
QueueInfo
&
rInfo
)
const
;
bool
operator
==
(
const
QueueInfo
&
rInfo
)
const
;
...
...
include/vcl/prntypes.hxx
Dosyayı görüntüle @
4b57be72
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include <tools/solar.h>
#include <tools/solar.h>
#include <i18nutil/paper.hxx>
#include <i18nutil/paper.hxx>
#include <o3tl/typed_flags_set.hxx>
// - Duplex Mode -
// - Duplex Mode -
...
@@ -38,32 +39,39 @@ enum Orientation { ORIENTATION_PORTRAIT, ORIENTATION_LANDSCAPE };
...
@@ -38,32 +39,39 @@ enum Orientation { ORIENTATION_PORTRAIT, ORIENTATION_LANDSCAPE };
// - QueueInfo-Types -
// - QueueInfo-Types -
enum
class
PrintQueueFlags
#define QUEUE_STATUS_READY ((sal_uLong)0x00000001)
{
#define QUEUE_STATUS_PAUSED ((sal_uLong)0x00000002)
NONE
=
0x00000000
,
#define QUEUE_STATUS_PENDING_DELETION ((sal_uLong)0x00000004)
Ready
=
0x00000001
,
#define QUEUE_STATUS_BUSY ((sal_uLong)0x00000008)
Paused
=
0x00000002
,
#define QUEUE_STATUS_INITIALIZING ((sal_uLong)0x00000010)
PendingDeletion
=
0x00000004
,
#define QUEUE_STATUS_WAITING ((sal_uLong)0x00000020)
Busy
=
0x00000008
,
#define QUEUE_STATUS_WARMING_UP ((sal_uLong)0x00000040)
Initializing
=
0x00000010
,
#define QUEUE_STATUS_PROCESSING ((sal_uLong)0x00000080)
Waiting
=
0x00000020
,
#define QUEUE_STATUS_PRINTING ((sal_uLong)0x00000100)
WarmingUp
=
0x00000040
,
#define QUEUE_STATUS_OFFLINE ((sal_uLong)0x00000200)
Processing
=
0x00000080
,
#define QUEUE_STATUS_ERROR ((sal_uLong)0x00000400)
Printing
=
0x00000100
,
#define QUEUE_STATUS_SERVER_UNKNOWN ((sal_uLong)0x00000800)
Offline
=
0x00000200
,
#define QUEUE_STATUS_PAPER_JAM ((sal_uLong)0x00001000)
Error
=
0x00000400
,
#define QUEUE_STATUS_PAPER_OUT ((sal_uLong)0x00002000)
StatusUnknown
=
0x00000800
,
#define QUEUE_STATUS_MANUAL_FEED ((sal_uLong)0x00004000)
PaperJam
=
0x00001000
,
#define QUEUE_STATUS_PAPER_PROBLEM ((sal_uLong)0x00008000)
PaperOut
=
0x00002000
,
#define QUEUE_STATUS_IO_ACTIVE ((sal_uLong)0x00010000)
ManualFeed
=
0x00004000
,
#define QUEUE_STATUS_OUTPUT_BIN_FULL ((sal_uLong)0x00020000)
PaperProblem
=
0x00008000
,
#define QUEUE_STATUS_TONER_LOW ((sal_uLong)0x00040000)
IOActive
=
0x00010000
,
#define QUEUE_STATUS_NO_TONER ((sal_uLong)0x00080000)
OutputBinFull
=
0x00020000
,
#define QUEUE_STATUS_PAGE_PUNT ((sal_uLong)0x00100000)
TonerLow
=
0x00040000
,
#define QUEUE_STATUS_USER_INTERVENTION ((sal_uLong)0x00200000)
NoToner
=
0x00080000
,
#define QUEUE_STATUS_OUT_OF_MEMORY ((sal_uLong)0x00400000)
PagePunt
=
0x00100000
,
#define QUEUE_STATUS_DOOR_OPEN ((sal_uLong)0x00800000)
UserIntervention
=
0x00200000
,
#define QUEUE_STATUS_POWER_SAVE ((sal_uLong)0x01000000)
OutOfMemory
=
0x00400000
,
DoorOpen
=
0x00800000
,
PowerSave
=
0x01000000
,
};
namespace
o3tl
{
template
<>
struct
typed_flags
<
PrintQueueFlags
>
:
is_typed_flags
<
PrintQueueFlags
,
0x01ffffff
>
{};
}
#define QUEUE_JOBS_DONTKNOW ((sal_uLong)0xFFFFFFFF)
#define QUEUE_JOBS_DONTKNOW ((sal_uLong)0xFFFFFFFF)
...
...
svtools/source/dialogs/prnsetup.cxx
Dosyayı görüntüle @
4b57be72
...
@@ -144,7 +144,7 @@ static OUString ImplPrnDlgAddResString(const OUString& rStr, sal_uInt16 nResId)
...
@@ -144,7 +144,7 @@ static OUString ImplPrnDlgAddResString(const OUString& rStr, sal_uInt16 nResId)
OUString
ImplPrnDlgGetStatusText
(
const
QueueInfo
&
rInfo
)
OUString
ImplPrnDlgGetStatusText
(
const
QueueInfo
&
rInfo
)
{
{
OUString
aStr
;
OUString
aStr
;
sal_uLong
nStatus
=
rInfo
.
GetStatus
();
PrintQueueFlags
nStatus
=
rInfo
.
GetStatus
();
// Default-Printer
// Default-Printer
if
(
!
rInfo
.
GetPrinterName
().
isEmpty
()
&&
if
(
!
rInfo
.
GetPrinterName
().
isEmpty
()
&&
...
@@ -152,55 +152,55 @@ OUString ImplPrnDlgGetStatusText( const QueueInfo& rInfo )
...
@@ -152,55 +152,55 @@ OUString ImplPrnDlgGetStatusText( const QueueInfo& rInfo )
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_DEFPRINTER
);
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_DEFPRINTER
);
// Status
// Status
if
(
nStatus
&
QUEUE_STATUS_READY
)
if
(
nStatus
&
PrintQueueFlags
::
Ready
)
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_READY
);
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_READY
);
if
(
nStatus
&
QUEUE_STATUS_PAUSED
)
if
(
nStatus
&
PrintQueueFlags
::
Paused
)
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_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
);
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_PENDING
);
if
(
nStatus
&
QUEUE_STATUS_BUSY
)
if
(
nStatus
&
PrintQueueFlags
::
Busy
)
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_BUSY
);
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_BUSY
);
if
(
nStatus
&
QUEUE_STATUS_INITIALIZING
)
if
(
nStatus
&
PrintQueueFlags
::
Initializing
)
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_INITIALIZING
);
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_INITIALIZING
);
if
(
nStatus
&
QUEUE_STATUS_WAITING
)
if
(
nStatus
&
PrintQueueFlags
::
Waiting
)
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_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
);
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_WARMING_UP
);
if
(
nStatus
&
QUEUE_STATUS_PROCESSING
)
if
(
nStatus
&
PrintQueueFlags
::
Processing
)
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_PROCESSING
);
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_PROCESSING
);
if
(
nStatus
&
QUEUE_STATUS_PRINTING
)
if
(
nStatus
&
PrintQueueFlags
::
Printing
)
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_PRINTING
);
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_PRINTING
);
if
(
nStatus
&
QUEUE_STATUS_OFFLINE
)
if
(
nStatus
&
PrintQueueFlags
::
Offline
)
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_OFFLINE
);
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_OFFLINE
);
if
(
nStatus
&
QUEUE_STATUS_ERROR
)
if
(
nStatus
&
PrintQueueFlags
::
Error
)
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
aStr
=
ImplPrnDlgAddResString
(
aStr
,
STR_SVT_PRNDLG_POWER_SAVE
);
// Anzahl Jobs
// Anzahl Jobs
...
...
vcl/inc/salprn.hxx
Dosyayı görüntüle @
4b57be72
...
@@ -39,8 +39,8 @@ struct VCL_PLUGIN_PUBLIC SalPrinterQueueInfo
...
@@ -39,8 +39,8 @@ struct VCL_PLUGIN_PUBLIC SalPrinterQueueInfo
OUString
maDriver
;
OUString
maDriver
;
OUString
maLocation
;
OUString
maLocation
;
OUString
maComment
;
OUString
maComment
;
sal_uLong
mnStatus
;
PrintQueueFlags
mnStatus
;
sal_uLong
mnJobs
;
sal_uLong
mnJobs
;
OUString
*
mpSysData
;
OUString
*
mpSysData
;
SalPrinterQueueInfo
();
SalPrinterQueueInfo
();
...
...
vcl/source/gdi/print.cxx
Dosyayı görüntüle @
4b57be72
...
@@ -358,7 +358,7 @@ bool Printer::HasMirroredGraphics() const
...
@@ -358,7 +358,7 @@ bool Printer::HasMirroredGraphics() const
// QueueInfo
// QueueInfo
QueueInfo
::
QueueInfo
()
QueueInfo
::
QueueInfo
()
{
{
mnStatus
=
0
;
mnStatus
=
PrintQueueFlags
::
NONE
;
mnJobs
=
0
;
mnJobs
=
0
;
}
}
...
@@ -395,7 +395,7 @@ SvStream& WriteQueueInfo( SvStream& rOStream, const QueueInfo& rInfo )
...
@@ -395,7 +395,7 @@ SvStream& WriteQueueInfo( SvStream& rOStream, const QueueInfo& rInfo )
write_uInt16_lenPrefixed_uInt8s_FromOUString
(
rOStream
,
rInfo
.
maDriver
,
RTL_TEXTENCODING_UTF8
);
write_uInt16_lenPrefixed_uInt8s_FromOUString
(
rOStream
,
rInfo
.
maDriver
,
RTL_TEXTENCODING_UTF8
);
write_uInt16_lenPrefixed_uInt8s_FromOUString
(
rOStream
,
rInfo
.
maLocation
,
RTL_TEXTENCODING_UTF8
);
write_uInt16_lenPrefixed_uInt8s_FromOUString
(
rOStream
,
rInfo
.
maLocation
,
RTL_TEXTENCODING_UTF8
);
write_uInt16_lenPrefixed_uInt8s_FromOUString
(
rOStream
,
rInfo
.
maComment
,
RTL_TEXTENCODING_UTF8
);
write_uInt16_lenPrefixed_uInt8s_FromOUString
(
rOStream
,
rInfo
.
maComment
,
RTL_TEXTENCODING_UTF8
);
rOStream
.
WriteUInt32
(
rInfo
.
mnStatus
);
rOStream
.
WriteUInt32
(
static_cast
<
sal_uInt32
>
(
rInfo
.
mnStatus
)
);
rOStream
.
WriteUInt32
(
rInfo
.
mnJobs
);
rOStream
.
WriteUInt32
(
rInfo
.
mnJobs
);
return
rOStream
;
return
rOStream
;
...
@@ -409,7 +409,9 @@ SvStream& ReadQueueInfo( SvStream& rIStream, QueueInfo& rInfo )
...
@@ -409,7 +409,9 @@ SvStream& ReadQueueInfo( SvStream& rIStream, QueueInfo& rInfo )
rInfo
.
maDriver
=
read_uInt16_lenPrefixed_uInt8s_ToOUString
(
rIStream
,
RTL_TEXTENCODING_UTF8
);
rInfo
.
maDriver
=
read_uInt16_lenPrefixed_uInt8s_ToOUString
(
rIStream
,
RTL_TEXTENCODING_UTF8
);
rInfo
.
maLocation
=
read_uInt16_lenPrefixed_uInt8s_ToOUString
(
rIStream
,
RTL_TEXTENCODING_UTF8
);
rInfo
.
maLocation
=
read_uInt16_lenPrefixed_uInt8s_ToOUString
(
rIStream
,
RTL_TEXTENCODING_UTF8
);
rInfo
.
maComment
=
read_uInt16_lenPrefixed_uInt8s_ToOUString
(
rIStream
,
RTL_TEXTENCODING_UTF8
);
rInfo
.
maComment
=
read_uInt16_lenPrefixed_uInt8s_ToOUString
(
rIStream
,
RTL_TEXTENCODING_UTF8
);
rIStream
.
ReadUInt32
(
rInfo
.
mnStatus
);
sal_uInt32
nTmp
;
rIStream
.
ReadUInt32
(
nTmp
);
rInfo
.
mnStatus
=
static_cast
<
PrintQueueFlags
>
(
nTmp
);
rIStream
.
ReadUInt32
(
rInfo
.
mnJobs
);
rIStream
.
ReadUInt32
(
rInfo
.
mnJobs
);
return
rIStream
;
return
rIStream
;
...
@@ -417,7 +419,7 @@ SvStream& ReadQueueInfo( SvStream& rIStream, QueueInfo& rInfo )
...
@@ -417,7 +419,7 @@ SvStream& ReadQueueInfo( SvStream& rIStream, QueueInfo& rInfo )
SalPrinterQueueInfo
::
SalPrinterQueueInfo
()
SalPrinterQueueInfo
::
SalPrinterQueueInfo
()
{
{
mnStatus
=
0
;
mnStatus
=
PrintQueueFlags
::
NONE
;
mnJobs
=
QUEUE_JOBS_DONTKNOW
;
mnJobs
=
QUEUE_JOBS_DONTKNOW
;
mpSysData
=
NULL
;
mpSysData
=
NULL
;
}
}
...
...
vcl/win/source/gdi/salprn.cxx
Dosyayı görüntüle @
4b57be72
...
@@ -100,59 +100,59 @@ static LPDEVMODEW SAL_DEVMODE_W( const ImplJobSetup* pSetupData )
...
@@ -100,59 +100,59 @@ static LPDEVMODEW SAL_DEVMODE_W( const ImplJobSetup* pSetupData )
return
pRet
;
return
pRet
;
}
}
static
sal_uLong
ImplWinQueueStatusToSal
(
DWORD
nWinStatus
)
static
PrintQueueFlags
ImplWinQueueStatusToSal
(
DWORD
nWinStatus
)
{
{
sal_uLong
nStatus
=
0
;
PrintQueueFlags
nStatus
=
PrintQueueFlags
::
NONE
;
if
(
nWinStatus
&
PRINTER_STATUS_PAUSED
)
if
(
nWinStatus
&
PRINTER_STATUS_PAUSED
)
nStatus
|=
QUEUE_STATUS_PAUSED
;
nStatus
|=
PrintQueueFlags
::
Paused
;
if
(
nWinStatus
&
PRINTER_STATUS_ERROR
)
if
(
nWinStatus
&
PRINTER_STATUS_ERROR
)
nStatus
|=
QUEUE_STATUS_ERROR
;
nStatus
|=
PrintQueueFlags
::
Error
;
if
(
nWinStatus
&
PRINTER_STATUS_PENDING_DELETION
)
if
(
nWinStatus
&
PRINTER_STATUS_PENDING_DELETION
)
nStatus
|=
QUEUE_STATUS_PENDING_DELETION
;
nStatus
|=
PrintQueueFlags
::
PendingDeletion
;
if
(
nWinStatus
&
PRINTER_STATUS_PAPER_JAM
)
if
(
nWinStatus
&
PRINTER_STATUS_PAPER_JAM
)
nStatus
|=
QUEUE_STATUS_PAPER_JAM
;
nStatus
|=
PrintQueueFlags
::
PaperJam
;
if
(
nWinStatus
&
PRINTER_STATUS_PAPER_OUT
)
if
(
nWinStatus
&
PRINTER_STATUS_PAPER_OUT
)
nStatus
|=
QUEUE_STATUS_PAPER_OUT
;
nStatus
|=
PrintQueueFlags
::
PaperOut
;
if
(
nWinStatus
&
PRINTER_STATUS_MANUAL_FEED
)
if
(
nWinStatus
&
PRINTER_STATUS_MANUAL_FEED
)
nStatus
|=
QUEUE_STATUS_MANUAL_FEED
;
nStatus
|=
PrintQueueFlags
::
ManualFeed
;
if
(
nWinStatus
&
PRINTER_STATUS_PAPER_PROBLEM
)
if
(
nWinStatus
&
PRINTER_STATUS_PAPER_PROBLEM
)
nStatus
|=
QUEUE_STATUS_PAPER_PROBLEM
;
nStatus
|=
PrintQueueFlags
::
PaperProblem
;
if
(
nWinStatus
&
PRINTER_STATUS_OFFLINE
)
if
(
nWinStatus
&
PRINTER_STATUS_OFFLINE
)
nStatus
|=
QUEUE_STATUS_OFFLINE
;
nStatus
|=
PrintQueueFlags
::
Offline
;
if
(
nWinStatus
&
PRINTER_STATUS_IO_ACTIVE
)
if
(
nWinStatus
&
PRINTER_STATUS_IO_ACTIVE
)
nStatus
|=
QUEUE_STATUS_IO_ACTIVE
;
nStatus
|=
PrintQueueFlags
::
IOActive
;
if
(
nWinStatus
&
PRINTER_STATUS_BUSY
)
if
(
nWinStatus
&
PRINTER_STATUS_BUSY
)
nStatus
|=
QUEUE_STATUS_BUSY
;
nStatus
|=
PrintQueueFlags
::
Busy
;
if
(
nWinStatus
&
PRINTER_STATUS_PRINTING
)
if
(
nWinStatus
&
PRINTER_STATUS_PRINTING
)
nStatus
|=
QUEUE_STATUS_PRINTING
;
nStatus
|=
PrintQueueFlags
::
Printing
;
if
(
nWinStatus
&
PRINTER_STATUS_OUTPUT_BIN_FULL
)
if
(
nWinStatus
&
PRINTER_STATUS_OUTPUT_BIN_FULL
)
nStatus
|=
QUEUE_STATUS_OUTPUT_BIN_FULL
;
nStatus
|=
PrintQueueFlags
::
OutputBinFull
;
if
(
nWinStatus
&
PRINTER_STATUS_WAITING
)
if
(
nWinStatus
&
PRINTER_STATUS_WAITING
)
nStatus
|=
QUEUE_STATUS_WAITING
;
nStatus
|=
PrintQueueFlags
::
Waiting
;
if
(
nWinStatus
&
PRINTER_STATUS_PROCESSING
)
if
(
nWinStatus
&
PRINTER_STATUS_PROCESSING
)
nStatus
|=
QUEUE_STATUS_PROCESSING
;
nStatus
|=
PrintQueueFlags
::
Processing
;
if
(
nWinStatus
&
PRINTER_STATUS_INITIALIZING
)
if
(
nWinStatus
&
PRINTER_STATUS_INITIALIZING
)
nStatus
|=
QUEUE_STATUS_INITIALIZING
;
nStatus
|=
PrintQueueFlags
::
Initializing
;
if
(
nWinStatus
&
PRINTER_STATUS_WARMING_UP
)
if
(
nWinStatus
&
PRINTER_STATUS_WARMING_UP
)
nStatus
|=
QUEUE_STATUS_WARMING_UP
;
nStatus
|=
PrintQueueFlags
::
WarmingUp
;
if
(
nWinStatus
&
PRINTER_STATUS_TONER_LOW
)
if
(
nWinStatus
&
PRINTER_STATUS_TONER_LOW
)
nStatus
|=
QUEUE_STATUS_TONER_LOW
;
nStatus
|=
PrintQueueFlags
::
TonerLow
;
if
(
nWinStatus
&
PRINTER_STATUS_NO_TONER
)
if
(
nWinStatus
&
PRINTER_STATUS_NO_TONER
)
nStatus
|=
QUEUE_STATUS_NO_TONER
;
nStatus
|=
PrintQueueFlags
::
NoToner
;
if
(
nWinStatus
&
PRINTER_STATUS_PAGE_PUNT
)
if
(
nWinStatus
&
PRINTER_STATUS_PAGE_PUNT
)
nStatus
|=
QUEUE_STATUS_PAGE_PUNT
;
nStatus
|=
PrintQueueFlags
::
PagePunt
;
if
(
nWinStatus
&
PRINTER_STATUS_USER_INTERVENTION
)
if
(
nWinStatus
&
PRINTER_STATUS_USER_INTERVENTION
)
nStatus
|=
QUEUE_STATUS_USER_INTERVENTION
;
nStatus
|=
PrintQueueFlags
::
UserIntervention
;
if
(
nWinStatus
&
PRINTER_STATUS_OUT_OF_MEMORY
)
if
(
nWinStatus
&
PRINTER_STATUS_OUT_OF_MEMORY
)
nStatus
|=
QUEUE_STATUS_OUT_OF_MEMORY
;
nStatus
|=
PrintQueueFlags
::
OutOfMemory
;
if
(
nWinStatus
&
PRINTER_STATUS_DOOR_OPEN
)
if
(
nWinStatus
&
PRINTER_STATUS_DOOR_OPEN
)
nStatus
|=
QUEUE_STATUS_DOOR_OPEN
;
nStatus
|=
PrintQueueFlags
::
DoorOpen
;
if
(
nWinStatus
&
PRINTER_STATUS_SERVER_UNKNOWN
)
if
(
nWinStatus
&
PRINTER_STATUS_SERVER_UNKNOWN
)
nStatus
|=
QUEUE_STATUS_SERVER_UNKNOWN
;
nStatus
|=
PrintQueueFlags
::
StatusUnknown
;
if
(
nWinStatus
&
PRINTER_STATUS_POWER_SAVE
)
if
(
nWinStatus
&
PRINTER_STATUS_POWER_SAVE
)
nStatus
|=
QUEUE_STATUS_POWER_SAVE
;
nStatus
|=
PrintQueueFlags
::
PowerSave
;
if
(
!
nStatus
&&
!
(
nWinStatus
&
PRINTER_STATUS_NOT_AVAILABLE
)
)
if
(
!
nStatus
&&
!
(
nWinStatus
&
PRINTER_STATUS_NOT_AVAILABLE
)
)
nStatus
|=
QUEUE_STATUS_READY
;
nStatus
|=
PrintQueueFlags
::
Ready
;
return
nStatus
;
return
nStatus
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment