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
80016f5f
Kaydet (Commit)
80016f5f
authored
May 01, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
OUString: avoid temporaries and constify
Change-Id: I12762daed58e8006e95cc10c3ba0b1d7564a012e
üst
25b11683
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
printdata.cxx
sw/source/core/view/printdata.cxx
+12
-10
viewimp.cxx
sw/source/core/view/viewimp.cxx
+1
-1
No files found.
sw/source/core/view/printdata.cxx
Dosyayı görüntüle @
80016f5f
...
...
@@ -256,7 +256,7 @@ SwPrintUIOptions::SwPrintUIOptions(
if
(
!
bWeb
)
{
// create subgroup for misc options
m_aUIProperties
[
nIdx
++
].
Value
=
setSubgroupControlOpt
(
"pages"
,
OUString
(
aLocalizedStrings
.
GetString
(
9
)
),
OUString
());
m_aUIProperties
[
nIdx
++
].
Value
=
setSubgroupControlOpt
(
"pages"
,
aLocalizedStrings
.
GetString
(
9
),
OUString
());
// create a bool option for printing automatically inserted blank pages
bDefaultVal
=
rDefaultPrintData
.
IsPrintEmptyPages
();
...
...
@@ -280,12 +280,12 @@ SwPrintUIOptions::SwPrintUIOptions(
vcl
::
PrinterOptionsHelper
::
UIControlOptions
aPrintRangeOpt
;
aPrintRangeOpt
.
maGroupHint
=
"PrintRange"
;
aPrintRangeOpt
.
mbInternalOnly
=
true
;
m_aUIProperties
[
nIdx
++
].
Value
=
setSubgroupControlOpt
(
"printrange"
,
OUString
(
aLocalizedStrings
.
GetString
(
26
)
),
m_aUIProperties
[
nIdx
++
].
Value
=
setSubgroupControlOpt
(
"printrange"
,
aLocalizedStrings
.
GetString
(
26
),
OUString
(),
aPrintRangeOpt
);
// create a choice for the content to create
OUString
aPrintRangeName
(
"PrintContent"
);
const
OUString
aPrintRangeName
(
"PrintContent"
);
uno
::
Sequence
<
OUString
>
aChoices
(
3
);
uno
::
Sequence
<
sal_Bool
>
aChoicesDisabled
(
3
);
uno
::
Sequence
<
OUString
>
aHelpIds
(
3
);
...
...
@@ -316,7 +316,8 @@ SwPrintUIOptions::SwPrintUIOptions(
// print content selection
vcl
::
PrinterOptionsHelper
::
UIControlOptions
aContentsOpt
;
aContentsOpt
.
maGroupHint
=
"JobPage"
;
m_aUIProperties
[
nIdx
++
].
Value
=
setSubgroupControlOpt
(
"extrawriterprintoptions"
,
OUString
(
aLocalizedStrings
.
GetString
(
12
)),
m_aUIProperties
[
nIdx
++
].
Value
=
setSubgroupControlOpt
(
"extrawriterprintoptions"
,
aLocalizedStrings
.
GetString
(
12
),
OUString
(),
aContentsOpt
);
// create a list box for notes content
const
sal_Int16
nPrintPostIts
=
rDefaultPrintData
.
GetPrintPostIts
();
...
...
@@ -329,12 +330,12 @@ SwPrintUIOptions::SwPrintUIOptions(
aHelpIds
.
realloc
(
2
);
aHelpIds
[
0
]
=
".HelpID:vcl:PrintDialog:PrintAnnotationMode:FixedText"
;
aHelpIds
[
1
]
=
".HelpID:vcl:PrintDialog:PrintAnnotationMode:ListBox"
;
vcl
::
PrinterOptionsHelper
::
UIControlOptions
aAnnotOpt
(
OUString
(
"PrintProspect"
)
,
0
,
false
);
vcl
::
PrinterOptionsHelper
::
UIControlOptions
aAnnotOpt
(
"PrintProspect"
,
0
,
false
);
aAnnotOpt
.
mbEnabled
=
bHasPostIts
;
m_aUIProperties
[
nIdx
++
].
Value
=
setChoiceListControlOpt
(
"writercomments"
,
aLocalizedStrings
.
GetString
(
17
),
aHelpIds
,
OUString
(
"PrintAnnotationMode"
)
,
"PrintAnnotationMode"
,
aChoices
,
nPrintPostIts
,
uno
::
Sequence
<
sal_Bool
>
(),
...
...
@@ -346,7 +347,8 @@ SwPrintUIOptions::SwPrintUIOptions(
if
(
!
bWeb
)
{
m_aUIProperties
[
nIdx
++
].
Value
=
setSubgroupControlOpt
(
"pagesides"
,
OUString
(
aLocalizedStrings
.
GetString
(
18
)),
m_aUIProperties
[
nIdx
++
].
Value
=
setSubgroupControlOpt
(
"pagesides"
,
aLocalizedStrings
.
GetString
(
18
),
OUString
(),
aPageSetOpt
);
uno
::
Sequence
<
OUString
>
aRLChoices
(
3
);
aRLChoices
[
0
]
=
aLocalizedStrings
.
GetString
(
19
);
...
...
@@ -375,7 +377,7 @@ SwPrintUIOptions::SwPrintUIOptions(
// create a bool option for brochure
bDefaultVal
=
rDefaultPrintData
.
IsPrintProspect
();
OUString
aBrochurePropertyName
(
"PrintProspect"
);
const
OUString
aBrochurePropertyName
(
"PrintProspect"
);
m_aUIProperties
[
nIdx
++
].
Value
=
setBoolControlOpt
(
"brochure"
,
aLocalizedStrings
.
GetString
(
23
),
".HelpID:vcl:PrintDialog:PrintProspect:CheckBox"
,
aBrochurePropertyName
,
...
...
@@ -399,7 +401,7 @@ SwPrintUIOptions::SwPrintUIOptions(
m_aUIProperties
[
nIdx
++
].
Value
=
setChoiceListControlOpt
(
"scriptdirection"
,
OUString
(),
aBRTLHelpIds
,
OUString
(
"PrintProspectRTL"
)
,
"PrintProspectRTL"
,
aBRTLChoices
,
nBRTLChoice
,
uno
::
Sequence
<
sal_Bool
>
(),
...
...
@@ -482,7 +484,7 @@ bool SwPrintUIOptions::processPropertiesAndCheckFormat( const uno::Sequence< bea
bool
bChanged
=
processProperties
(
i_rNewProp
);
uno
::
Reference
<
awt
::
XDevice
>
xRenderDevice
;
uno
::
Any
aVal
(
getValue
(
OUString
(
"RenderDevice"
)
)
);
uno
::
Any
aVal
(
getValue
(
"RenderDevice"
)
);
aVal
>>=
xRenderDevice
;
OutputDevice
*
pOut
=
0
;
...
...
sw/source/core/view/viewimp.cxx
Dosyayı görüntüle @
80016f5f
...
...
@@ -230,7 +230,7 @@ void SwViewImp::MakeDrawView()
pDrawView
=
new
SwDrawView
(
*
this
,
pIDDMA
->
GetDrawModel
(),
pOutDevForDrawView
);
}
GetDrawView
()
->
SetActiveLayer
(
OUString
(
"Heaven"
)
);
GetDrawView
()
->
SetActiveLayer
(
"Heaven"
);
const
SwViewOption
*
pSwViewOption
=
GetShell
()
->
GetViewOptions
();
Init
(
pSwViewOption
);
...
...
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