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
c82ed24c
Kaydet (Commit)
c82ed24c
authored
Ock 20, 2012
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
rhbz#746174: also export list restart for non root list
üst
35e8190b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
11 deletions
+21
-11
txtparae.cxx
xmloff/source/text/txtparae.cxx
+21
-11
No files found.
xmloff/source/text/txtparae.cxx
Dosyayı görüntüle @
c82ed24c
...
...
@@ -906,8 +906,8 @@ void XMLTextParagraphExport::exportListChange(
// Thus, for other document types <sListId> is empty.
const
::
rtl
::
OUString
sListId
(
rNextInfo
.
GetListId
()
);
bool
bExportListStyle
(
true
);
bool
bRestartNumberingAtContinued
Root
List
(
false
);
sal_Int
16
nRestartValueForContinuedRoot
List
(
-
1
);
bool
bRestartNumberingAtContinuedList
(
false
);
sal_Int
32
nRestartValueForContinued
List
(
-
1
);
bool
bContinueingPreviousSubList
=
!
bRootListToBeStarted
&&
rNextInfo
.
IsContinueingPreviousSubTree
();
do
{
...
...
@@ -980,9 +980,9 @@ void XMLTextParagraphExport::exportListChange(
(
nListLevelsToBeOpened
!=
1
||
!
rNextInfo
.
HasStartValue
()
)
)
{
bRestartNumberingAtContinued
Root
List
=
true
;
nRestartValueForContinued
Root
List
=
rNextInfo
.
GetListLevelStartValue
();
bRestartNumberingAtContinuedList
=
true
;
nRestartValueForContinuedList
=
rNextInfo
.
GetListLevelStartValue
();
}
}
...
...
@@ -1003,6 +1003,18 @@ void XMLTextParagraphExport::exportListChange(
GetExport
().
AddAttribute
(
XML_NAMESPACE_TEXT
,
XML_STYLE_NAME
,
GetExport
().
EncodeStyleName
(
sListStyleName
)
);
bExportListStyle
=
false
;
}
else
{
// rhbz#746174: also export list restart for non root list
if
(
rNextInfo
.
IsRestart
()
&&
!
rNextInfo
.
HasStartValue
())
{
bRestartNumberingAtContinuedList
=
true
;
nRestartValueForContinuedList
=
rNextInfo
.
GetListLevelStartValue
();
}
}
if
(
bContinueingPreviousSubList
)
...
...
@@ -1030,9 +1042,7 @@ void XMLTextParagraphExport::exportListChange(
// <text:list-header> or <text:list-item>
GetExport
().
CheckAttrList
();
/* Export start value in case of <bRestartNumberingAtContinuedRootList>
at correct list item (#i97309#)
*/
/* Export start value at correct list item (#i97309#) */
if
(
nListLevelsToBeOpened
==
1
)
{
if
(
rNextInfo
.
HasStartValue
()
)
...
...
@@ -1042,14 +1052,14 @@ void XMLTextParagraphExport::exportListChange(
GetExport
().
AddAttribute
(
XML_NAMESPACE_TEXT
,
XML_START_VALUE
,
aBuffer
.
makeStringAndClear
()
);
}
else
if
(
bRestartNumberingAtContinuedRootList
)
else
if
(
bRestartNumberingAtContinuedList
)
{
OUStringBuffer
aBuffer
;
aBuffer
.
append
(
(
sal_Int32
)
nRestartValueForContinuedRoot
List
);
aBuffer
.
append
(
nRestartValueForContinued
List
);
GetExport
().
AddAttribute
(
XML_NAMESPACE_TEXT
,
XML_START_VALUE
,
aBuffer
.
makeStringAndClear
()
);
bRestartNumberingAtContinued
Root
List
=
false
;
bRestartNumberingAtContinuedList
=
false
;
}
}
...
...
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