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
cf1aa679
Kaydet (Commit)
cf1aa679
authored
Mar 23, 2005
tarafından
Vladimir Glazounov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS calcuno01 (1.13.234); FILE MERGED
2004/02/12 17:43:45 sab 1.13.234.1: #i22706#; better using of API
üst
255d38d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
19 deletions
+17
-19
txtsecte.cxx
xmloff/source/text/txtsecte.cxx
+17
-19
No files found.
xmloff/source/text/txtsecte.cxx
Dosyayı görüntüle @
cf1aa679
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: txtsecte.cxx,v $
*
* $Revision: 1.1
3
$
* $Revision: 1.1
4
$
*
* last change: $Author:
dvo $ $Date: 2001-11-08 19:17:43
$
* last change: $Author:
vg $ $Date: 2005-03-23 12:42:46
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -183,7 +183,7 @@ Reference<XText> lcl_findXText(const Reference<XTextSection>& rSect)
Reference
<
XTextContent
>
xTextContent
(
rSect
,
UNO_QUERY
);
if
(
xTextContent
.
is
())
{
xText
=
xTextContent
->
getAnchor
()
->
getText
(
);
xText
.
set
(
xTextContent
->
getAnchor
()
->
getText
()
);
}
return
xText
;
...
...
@@ -204,8 +204,7 @@ void XMLTextParagraphExport::exportListAndSectionChange(
{
if
(
xPropSet
->
getPropertySetInfo
()
->
hasPropertyByName
(
sTextSection
))
{
Any
aAny
=
xPropSet
->
getPropertyValue
(
sTextSection
);
aAny
>>=
xNextSection
;
xPropSet
->
getPropertyValue
(
sTextSection
)
>>=
xNextSection
;
}
// else: no current section
}
...
...
@@ -233,9 +232,8 @@ void XMLTextParagraphExport::exportListAndSectionChange(
rPropSetHelper
.
hasProperties
(
xPropSet
->
getPropertySetInfo
()
);
if
(
rPropSetHelper
.
hasProperty
(
nTextSectionId
))
{
Any
aAny
=
rPropSetHelper
.
getValue
(
nTextSectionId
,
xPropSet
,
sal_True
);
aAny
>>=
xNextSection
;
xNextSection
.
set
(
rPropSetHelper
.
getValue
(
nTextSectionId
,
xPropSet
,
sal_True
),
uno
::
UNO_QUERY
);
}
// else: no current section
}
...
...
@@ -264,7 +262,7 @@ void XMLTextParagraphExport::exportListAndSectionChange(
// Build stacks of old and new sections
// Sections on top of mute sections should not be on the stack
vector
<
Reference
<
XTextSection
>
>
aOldStack
;
Reference
<
XTextSection
>
aCurrent
=
rPrevSection
;
Reference
<
XTextSection
>
aCurrent
(
rPrevSection
)
;
while
(
aCurrent
.
is
())
{
// if we have a mute section, ignore all its children
...
...
@@ -273,11 +271,11 @@ void XMLTextParagraphExport::exportListAndSectionChange(
aOldStack
.
clear
();
aOldStack
.
push_back
(
aCurrent
);
aCurrent
=
aCurrent
->
getParentSection
(
);
aCurrent
.
set
(
aCurrent
->
getParentSection
()
);
}
vector
<
Reference
<
XTextSection
>
>
aNewStack
;
aCurrent
=
rNextSection
;
aCurrent
.
set
(
rNextSection
)
;
sal_Bool
bMute
=
sal_False
;
while
(
aCurrent
.
is
())
{
...
...
@@ -290,7 +288,7 @@ void XMLTextParagraphExport::exportListAndSectionChange(
}
aNewStack
.
push_back
(
aCurrent
);
aCurrent
=
aCurrent
->
getParentSection
(
);
aCurrent
.
set
(
aCurrent
->
getParentSection
()
);
}
// compare the two stacks
...
...
@@ -303,16 +301,16 @@ void XMLTextParagraphExport::exportListAndSectionChange(
(
aNew
!=
aNewStack
.
rend
())
&&
(
*
aOld
)
==
(
*
aNew
)
)
{
aOld
++
;
aNew
++
;
++
aOld
;
++
aNew
;
}
// close all elements of aOld ...
// (order: newest to oldest)
if
(
aOld
!=
aOldStack
.
rend
())
{
vector
<
Reference
<
XTextSection
>
>
::
iterator
aOldForward
=
aOldStack
.
begin
();
vector
<
Reference
<
XTextSection
>
>
::
iterator
aOldForward
(
aOldStack
.
begin
()
)
;
while
((
aOldForward
!=
aOldStack
.
end
())
&&
(
*
aOldForward
!=
*
aOld
))
{
...
...
@@ -320,7 +318,7 @@ void XMLTextParagraphExport::exportListAndSectionChange(
pRedlineExport
->
ExportStartOrEndRedline
(
*
aOldForward
,
sal_False
);
pSectionExport
->
ExportSectionEnd
(
*
aOldForward
,
bAutoStyles
);
aOldForward
++
;
++
aOldForward
;
}
if
(
aOldForward
!=
aOldStack
.
end
())
{
...
...
@@ -338,7 +336,7 @@ void XMLTextParagraphExport::exportListAndSectionChange(
if
(
!
bAutoStyles
&&
(
NULL
!=
pRedlineExport
)
)
pRedlineExport
->
ExportStartOrEndRedline
(
*
aNew
,
sal_True
);
pSectionExport
->
ExportSectionStart
(
*
aNew
,
bAutoStyles
);
aNew
++
;
++
aNew
;
}
// start new list
...
...
@@ -353,6 +351,6 @@ void XMLTextParagraphExport::exportListAndSectionChange(
}
// save old section (old numRule gets saved in calling method)
rPrevSection
=
rNextSection
;
rPrevSection
.
set
(
rNextSection
)
;
}
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