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
37a4651c
Kaydet (Commit)
37a4651c
authored
Tem 24, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use Orientation enum instead of sal_uInt16 + some bool
Change-Id: I8c0cd02cb339111442a99e8051f585bb0599633a
üst
36e52cbb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
viewsh.hxx
sw/inc/viewsh.hxx
+1
-1
vprint.cxx
sw/source/core/view/vprint.cxx
+2
-2
pview.cxx
sw/source/uibase/uiview/pview.cxx
+1
-1
viewprt.cxx
sw/source/uibase/uiview/viewprt.cxx
+3
-3
No files found.
sw/inc/viewsh.hxx
Dosyayı görüntüle @
37a4651c
...
@@ -351,7 +351,7 @@ public:
...
@@ -351,7 +351,7 @@ public:
static
inline
bool
IsLstEndAction
()
{
return
SwViewShell
::
mbLstAct
;
}
static
inline
bool
IsLstEndAction
()
{
return
SwViewShell
::
mbLstAct
;
}
// Change of all page descriptors.
// Change of all page descriptors.
void
ChgAllPageOrientation
(
sal_uInt16
eOri
);
void
ChgAllPageOrientation
(
Orientation
eOri
);
void
ChgAllPageSize
(
Size
&
rSz
);
void
ChgAllPageSize
(
Size
&
rSz
);
// Printing of one page.
// Printing of one page.
...
...
sw/source/core/view/vprint.cxx
Dosyayı görüntüle @
37a4651c
...
@@ -216,13 +216,13 @@ void SwViewShell::InitPrt( OutputDevice *pOutDev )
...
@@ -216,13 +216,13 @@ void SwViewShell::InitPrt( OutputDevice *pOutDev )
mpOut
=
pOutDev
;
mpOut
=
pOutDev
;
}
}
void
SwViewShell
::
ChgAllPageOrientation
(
sal_uInt16
eOri
)
void
SwViewShell
::
ChgAllPageOrientation
(
Orientation
eOri
)
{
{
OSL_ENSURE
(
mnStartAction
,
"missing an Action"
);
OSL_ENSURE
(
mnStartAction
,
"missing an Action"
);
SET_CURR_SHELL
(
this
);
SET_CURR_SHELL
(
this
);
const
sal_uInt16
nAll
=
GetDoc
()
->
GetPageDescCnt
();
const
sal_uInt16
nAll
=
GetDoc
()
->
GetPageDescCnt
();
bool
bNewOri
=
Orientation
(
eOri
)
==
ORIENTATION_PORTRAIT
?
sal_False
:
sal_True
;
bool
bNewOri
=
eOri
!=
ORIENTATION_PORTRAIT
;
for
(
sal_uInt16
i
=
0
;
i
<
nAll
;
++
i
)
for
(
sal_uInt16
i
=
0
;
i
<
nAll
;
++
i
)
{
{
...
...
sw/source/uibase/uiview/pview.cxx
Dosyayı görüntüle @
37a4651c
...
@@ -1667,7 +1667,7 @@ sal_uInt16 SwPagePreview::SetPrinter( SfxPrinter *pNew, sal_uInt16 nDiffFlags,
...
@@ -1667,7 +1667,7 @@ sal_uInt16 SwPagePreview::SetPrinter( SfxPrinter *pNew, sal_uInt16 nDiffFlags,
{
{
rESh
.
StartAllAction
();
rESh
.
StartAllAction
();
if
(
bChgOri
)
if
(
bChgOri
)
rSh
.
ChgAllPageOrientation
(
sal_uInt16
(
pNew
->
GetOrientation
()
)
);
rSh
.
ChgAllPageOrientation
(
pNew
->
GetOrientation
(
)
);
if
(
bChgSize
)
if
(
bChgSize
)
{
{
Size
aSz
(
SvxPaperInfo
::
GetPaperSize
(
pNew
)
);
Size
aSz
(
SvxPaperInfo
::
GetPaperSize
(
pNew
)
);
...
...
sw/source/uibase/uiview/viewprt.cxx
Dosyayı görüntüle @
37a4651c
...
@@ -121,13 +121,13 @@ sal_uInt16 SwView::SetPrinter(SfxPrinter* pNew, sal_uInt16 nDiffFlags, bool )
...
@@ -121,13 +121,13 @@ sal_uInt16 SwView::SetPrinter(SfxPrinter* pNew, sal_uInt16 nDiffFlags, bool )
if
(
nDiffFlags
&
SFX_PRINTER_OPTIONS
)
if
(
nDiffFlags
&
SFX_PRINTER_OPTIONS
)
::
SetPrinter
(
rSh
.
getIDocumentDeviceAccess
(),
pNew
,
bWeb
);
::
SetPrinter
(
rSh
.
getIDocumentDeviceAccess
(),
pNew
,
bWeb
);
const
bool
bChgOri
=
nDiffFlags
&
SFX_PRINTER_CHG_ORIENTATION
?
sal_True
:
sal_False
;
const
bool
bChgOri
=
nDiffFlags
&
SFX_PRINTER_CHG_ORIENTATION
;
const
bool
bChgSize
=
nDiffFlags
&
SFX_PRINTER_CHG_SIZE
?
sal_True
:
sal_False
;
const
bool
bChgSize
=
nDiffFlags
&
SFX_PRINTER_CHG_SIZE
;
if
(
bChgOri
||
bChgSize
)
if
(
bChgOri
||
bChgSize
)
{
{
rSh
.
StartAllAction
();
rSh
.
StartAllAction
();
if
(
bChgOri
)
if
(
bChgOri
)
rSh
.
ChgAllPageOrientation
(
sal_uInt16
(
pNew
->
GetOrientation
()
)
);
rSh
.
ChgAllPageOrientation
(
pNew
->
GetOrientation
(
)
);
if
(
bChgSize
)
if
(
bChgSize
)
{
{
Size
aSz
(
SvxPaperInfo
::
GetPaperSize
(
pNew
)
);
Size
aSz
(
SvxPaperInfo
::
GetPaperSize
(
pNew
)
);
...
...
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