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
e6323214
Kaydet (Commit)
e6323214
authored
Ock 09, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
endSpool return value is effectively success flag, not job ID
Change-Id: I5b96eeff80ca29f0f8f24ee6da7a2ca76cbb05ce
üst
18915452
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
printerinfomanager.hxx
include/vcl/printerinfomanager.hxx
+2
-2
printerjob.cxx
vcl/generic/print/printerjob.cxx
+1
-1
cupsmgr.hxx
vcl/inc/cupsmgr.hxx
+1
-1
printerinfomanager.cxx
vcl/null/printerinfomanager.cxx
+1
-1
cupsmgr.cxx
vcl/unx/generic/printer/cupsmgr.cxx
+2
-2
printerinfomanager.cxx
vcl/unx/generic/printer/printerinfomanager.cxx
+1
-1
No files found.
include/vcl/printerinfomanager.hxx
Dosyayı görüntüle @
e6323214
...
...
@@ -192,8 +192,8 @@ public:
// close the FILE* returned by startSpool and does the actual spooling
// set bBanner to "false" will attempt to suppress banner printing
// set bBanner to "true" will rely on the system default
// returns
a numerical job id
virtual
int
endSpool
(
const
OUString
&
rPrinterName
,
const
OUString
&
rJobTitle
,
FILE
*
pFile
,
const
JobData
&
rDocumentJobData
,
bool
bBanner
);
// returns
true on success
virtual
bool
endSpool
(
const
OUString
&
rPrinterName
,
const
OUString
&
rJobTitle
,
FILE
*
pFile
,
const
JobData
&
rDocumentJobData
,
bool
bBanner
);
// for spadmin: whether adding or removing a printer is possible
virtual
bool
addOrRemovePossible
()
const
;
...
...
vcl/generic/print/printerjob.cxx
Dosyayı görüntüle @
e6323214
...
...
@@ -530,7 +530,7 @@ PrinterJob::EndJob ()
else
{
PrinterInfoManager
&
rPrinterInfoManager
=
PrinterInfoManager
::
get
();
if
(
0
==
rPrinterInfoManager
.
endSpool
(
m_aLastJobData
.
m_aPrinterName
,
if
(
!
rPrinterInfoManager
.
endSpool
(
m_aLastJobData
.
m_aPrinterName
,
maJobTitle
,
pDestFILE
,
m_aDocumentJobData
,
true
))
{
bSuccess
=
sal_False
;
...
...
vcl/inc/cupsmgr.hxx
Dosyayı görüntüle @
e6323214
...
...
@@ -77,7 +77,7 @@ public:
const
char
*
authenticateUser
(
const
char
*
);
virtual
FILE
*
startSpool
(
const
OUString
&
rPrinterName
,
bool
bQuickCommand
);
virtual
int
endSpool
(
const
OUString
&
rPrinterName
,
const
OUString
&
rJobTitle
,
FILE
*
pFile
,
const
JobData
&
rDocumentJobData
,
bool
bBanner
);
virtual
bool
endSpool
(
const
OUString
&
rPrinterName
,
const
OUString
&
rJobTitle
,
FILE
*
pFile
,
const
JobData
&
rDocumentJobData
,
bool
bBanner
);
virtual
void
setupJobContextData
(
JobData
&
rData
);
/// changes the info about a named printer
...
...
vcl/null/printerinfomanager.cxx
Dosyayı görüntüle @
e6323214
...
...
@@ -142,7 +142,7 @@ FILE* PrinterInfoManager::startSpool( const OUString& /* rPrintername */, bool /
return
NULL
;
}
int
PrinterInfoManager
::
endSpool
(
const
OUString
&
/*rPrintername*/
,
const
OUString
&
/*rJobTitle*/
,
FILE
*
/* pFile */
,
const
JobData
&
/*rDocumentJobData*/
,
bool
/*bBanner*/
)
bool
PrinterInfoManager
::
endSpool
(
const
OUString
&
/*rPrintername*/
,
const
OUString
&
/*rJobTitle*/
,
FILE
*
/* pFile */
,
const
JobData
&
/*rDocumentJobData*/
,
bool
/*bBanner*/
)
{
return
true
;
}
...
...
vcl/unx/generic/printer/cupsmgr.cxx
Dosyayı görüntüle @
e6323214
...
...
@@ -638,7 +638,7 @@ void CUPSManager::getOptionsFromDocumentSetup( const JobData& rJob, bool bBanner
}
}
int
CUPSManager
::
endSpool
(
const
OUString
&
rPrintername
,
const
OUString
&
rJobTitle
,
FILE
*
pFile
,
const
JobData
&
rDocumentJobData
,
bool
bBanner
)
bool
CUPSManager
::
endSpool
(
const
OUString
&
rPrintername
,
const
OUString
&
rJobTitle
,
FILE
*
pFile
,
const
JobData
&
rDocumentJobData
,
bool
bBanner
)
{
OSL_TRACE
(
"endSpool: %s, %s, copy count = %d"
,
OUStringToOString
(
rPrintername
,
RTL_TEXTENCODING_UTF8
).
getStr
(),
...
...
@@ -697,7 +697,7 @@ int CUPSManager::endSpool( const OUString& rPrintername, const OUString& rJobTit
cupsFreeOptions
(
nNumOptions
,
pOptions
);
}
return
nJobID
;
return
nJobID
!=
0
;
}
...
...
vcl/unx/generic/printer/printerinfomanager.cxx
Dosyayı görüntüle @
e6323214
...
...
@@ -966,7 +966,7 @@ FILE* PrinterInfoManager::startSpool( const OUString& rPrintername, bool bQuickC
return
popen
(
aShellCommand
.
getStr
(),
"w"
);
}
int
PrinterInfoManager
::
endSpool
(
const
OUString
&
/*rPrintername*/
,
const
OUString
&
/*rJobTitle*/
,
FILE
*
pFile
,
const
JobData
&
/*rDocumentJobData*/
,
bool
/*bBanner*/
)
bool
PrinterInfoManager
::
endSpool
(
const
OUString
&
/*rPrintername*/
,
const
OUString
&
/*rJobTitle*/
,
FILE
*
pFile
,
const
JobData
&
/*rDocumentJobData*/
,
bool
/*bBanner*/
)
{
return
(
0
==
pclose
(
pFile
));
}
...
...
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