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
8796ec9b
Kaydet (Commit)
8796ec9b
authored
Şub 19, 2010
tarafından
Philipp Lohmann [pl]
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ppp02: #i108327# set papertray if necessary
üst
7b10d5c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
print3.cxx
vcl/source/gdi/print3.cxx
+9
-3
No files found.
vcl/source/gdi/print3.cxx
Dosyayı görüntüle @
8796ec9b
...
@@ -175,13 +175,15 @@ public:
...
@@ -175,13 +175,15 @@ public:
// set by user through printer config dialog
// set by user through printer config dialog
// if set, pages are centered and trimmed onto the fixed page
// if set, pages are centered and trimmed onto the fixed page
Size
maFixedPageSize
;
Size
maFixedPageSize
;
sal_Int32
mnDefaultPaperBin
;
ImplPrinterControllerData
()
:
ImplPrinterControllerData
()
:
mbFirstPage
(
sal_True
),
mbFirstPage
(
sal_True
),
mbLastPage
(
sal_False
),
mbLastPage
(
sal_False
),
mbReversePageOrder
(
sal_False
),
mbReversePageOrder
(
sal_False
),
meJobState
(
view
::
PrintableState_JOB_STARTED
),
meJobState
(
view
::
PrintableState_JOB_STARTED
),
mpProgress
(
NULL
)
mpProgress
(
NULL
),
mnDefaultPaperBin
(
-
1
)
{}
{}
~
ImplPrinterControllerData
()
{
delete
mpProgress
;
}
~
ImplPrinterControllerData
()
{
delete
mpProgress
;
}
...
@@ -708,6 +710,7 @@ void PrinterController::setPrinter( const boost::shared_ptr<Printer>& i_rPrinter
...
@@ -708,6 +710,7 @@ void PrinterController::setPrinter( const boost::shared_ptr<Printer>& i_rPrinter
mpImplData
->
mpPrinter
=
i_rPrinter
;
mpImplData
->
mpPrinter
=
i_rPrinter
;
setValue
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Name"
)
),
setValue
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Name"
)
),
makeAny
(
rtl
::
OUString
(
i_rPrinter
->
GetName
()
)
)
);
makeAny
(
rtl
::
OUString
(
i_rPrinter
->
GetName
()
)
)
);
mpImplData
->
mnDefaultPaperBin
=
mpImplData
->
mpPrinter
->
GetPaperBin
();
}
}
bool
PrinterController
::
setupPrinter
(
Window
*
i_pParent
)
bool
PrinterController
::
setupPrinter
(
Window
*
i_pParent
)
...
@@ -743,7 +746,7 @@ PrinterController::PageSize vcl::ImplPrinterControllerData::modifyJobSetup( cons
...
@@ -743,7 +746,7 @@ PrinterController::PageSize vcl::ImplPrinterControllerData::modifyJobSetup( cons
PrinterController
::
PageSize
aPageSize
;
PrinterController
::
PageSize
aPageSize
;
aPageSize
.
aSize
=
mpPrinter
->
GetPaperSize
();
aPageSize
.
aSize
=
mpPrinter
->
GetPaperSize
();
awt
::
Size
aSetSize
,
aIsSize
;
awt
::
Size
aSetSize
,
aIsSize
;
sal_Int32
nPaperBin
=
-
1
;
sal_Int32
nPaperBin
=
mnDefaultPaperBin
;
for
(
sal_Int32
nProperty
=
0
,
nPropertyCount
=
i_rProps
.
getLength
();
nProperty
<
nPropertyCount
;
++
nProperty
)
for
(
sal_Int32
nProperty
=
0
,
nPropertyCount
=
i_rProps
.
getLength
();
nProperty
<
nPropertyCount
;
++
nProperty
)
{
{
if
(
i_rProps
[
nProperty
].
Name
.
equalsAscii
(
"PreferredPageSize"
)
)
if
(
i_rProps
[
nProperty
].
Name
.
equalsAscii
(
"PreferredPageSize"
)
)
...
@@ -762,7 +765,10 @@ PrinterController::PageSize vcl::ImplPrinterControllerData::modifyJobSetup( cons
...
@@ -762,7 +765,10 @@ PrinterController::PageSize vcl::ImplPrinterControllerData::modifyJobSetup( cons
}
}
else
if
(
i_rProps
[
nProperty
].
Name
.
equalsAscii
(
"PrinterPaperTray"
)
)
else
if
(
i_rProps
[
nProperty
].
Name
.
equalsAscii
(
"PrinterPaperTray"
)
)
{
{
i_rProps
[
nProperty
].
Value
>>=
nPaperBin
;
sal_Int32
nBin
=
-
1
;
i_rProps
[
nProperty
].
Value
>>=
nBin
;
if
(
nBin
>=
0
&&
nBin
<
mpPrinter
->
GetPaperBinCount
()
)
nPaperBin
=
nBin
;
}
}
}
}
...
...
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