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
a47a5ed0
Kaydet (Commit)
a47a5ed0
authored
Eki 23, 2011
tarafından
Ivan Timofeev
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
always explicitly handle empty string of ranges
üst
3d5caa7c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
14 deletions
+4
-14
doc.cxx
sw/source/core/doc/doc.cxx
+4
-2
multisel.hxx
tools/inc/tools/multisel.hxx
+0
-2
multisel.cxx
tools/source/memtools/multisel.cxx
+0
-10
No files found.
sw/source/core/doc/doc.cxx
Dosyayı görüntüle @
a47a5ed0
...
@@ -1584,13 +1584,15 @@ void SwDoc::CalculatePagePairsForProspectPrinting(
...
@@ -1584,13 +1584,15 @@ void SwDoc::CalculatePagePairsForProspectPrinting(
rValidPagesSet
.
clear
();
rValidPagesSet
.
clear
();
rValidStartFrms
.
clear
();
rValidStartFrms
.
clear
();
rtl
::
OUString
aPageRange
=
rOptions
.
getStringValue
(
"PageRange"
,
rtl
::
OUString
()
)
;
rtl
::
OUString
aPageRange
;
// PageContent :
// PageContent :
// 0 -> print all pages (default if aPageRange is empty)
// 0 -> print all pages (default if aPageRange is empty)
// 1 -> print range according to PageRange
// 1 -> print range according to PageRange
// 2 -> print selection
// 2 -> print selection
const
sal_Int32
nContent
=
rOptions
.
getIntValue
(
"PrintContent"
,
0
);
const
sal_Int32
nContent
=
rOptions
.
getIntValue
(
"PrintContent"
,
0
);
if
(
0
==
nContent
)
if
(
nContent
==
1
)
aPageRange
=
rOptions
.
getStringValue
(
"PageRange"
,
rtl
::
OUString
()
);
if
(
aPageRange
.
getLength
()
==
0
)
// empty string -> print all
{
{
// set page range to print to 'all pages'
// set page range to print to 'all pages'
aPageRange
=
OUString
::
valueOf
(
(
sal_Int32
)
1
);
aPageRange
=
OUString
::
valueOf
(
(
sal_Int32
)
1
);
...
...
tools/inc/tools/multisel.hxx
Dosyayı görüntüle @
a47a5ed0
...
@@ -191,8 +191,6 @@ public:
...
@@ -191,8 +191,6 @@ public:
- the string "-" means the sequence i_nMinNumber to i_nMaxNumber
- the string "-" means the sequence i_nMinNumber to i_nMaxNumber
- single number that doesn't fit in [i_nMinNumber,i_nMaxNumber] will be ignored
- single number that doesn't fit in [i_nMinNumber,i_nMaxNumber] will be ignored
- range that doesn't fit in [i_nMinNumber,i_nMaxNumber] will be adjusted
- range that doesn't fit in [i_nMinNumber,i_nMaxNumber] will be adjusted
- an empty string as input is valid and will result in the range [min,max] if given
or an empty vector, if not
*/
*/
static
bool
getRangesFromString
(
const
rtl
::
OUString
&
i_rPageRange
,
static
bool
getRangesFromString
(
const
rtl
::
OUString
&
i_rPageRange
,
std
::
vector
<
sal_Int32
>&
o_rPageVector
,
std
::
vector
<
sal_Int32
>&
o_rPageVector
,
...
...
tools/source/memtools/multisel.cxx
Dosyayı görüntüle @
a47a5ed0
...
@@ -831,16 +831,6 @@ bool StringRangeEnumerator::setRange( const rtl::OUString& i_rNewRange, bool i_b
...
@@ -831,16 +831,6 @@ bool StringRangeEnumerator::setRange( const rtl::OUString& i_rNewRange, bool i_b
mnCount
=
0
;
mnCount
=
0
;
maSequence
.
clear
();
maSequence
.
clear
();
// we love special cases
if
(
i_rNewRange
.
getLength
()
==
0
)
{
if
(
mnMin
>=
0
&&
mnMax
>=
0
)
{
insertRange
(
mnMin
,
mnMax
,
mnMin
!=
mnMax
,
!
i_bStrict
);
}
return
true
;
}
const
sal_Unicode
*
pInput
=
i_rNewRange
.
getStr
();
const
sal_Unicode
*
pInput
=
i_rNewRange
.
getStr
();
rtl
::
OUStringBuffer
aNumberBuf
(
16
);
rtl
::
OUStringBuffer
aNumberBuf
(
16
);
std
::
vector
<
sal_Int32
>
aNumbers
;
std
::
vector
<
sal_Int32
>
aNumbers
;
...
...
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