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
6485258b
Kaydet (Commit)
6485258b
authored
Haz 25, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Tem 04, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert Svptrarr to std::deque<const SwTxtAttr*>
Change-Id: I527814582214401a1f7dd9c192e6aa96e45f7819
üst
457a537b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
15 deletions
+14
-15
txatritr.hxx
sw/inc/txatritr.hxx
+2
-2
txatritr.cxx
sw/source/core/txtnode/txatritr.cxx
+12
-13
No files found.
sw/inc/txatritr.hxx
Dosyayı görüntüle @
6485258b
...
...
@@ -21,9 +21,9 @@
#include <tools/solar.h>
#include <sal/types.h>
#include <svl/svarray.hxx>
#include <editeng/langitem.hxx>
#include <hintids.hxx>
#include <deque>
class
String
;
class
SwTxtNode
;
...
...
@@ -53,7 +53,7 @@ public:
class
SwTxtAttrIterator
{
SwScriptIterator
aSIter
;
SvPtrarr
aStack
;
std
::
deque
<
const
SwTxtAttr
*>
aStack
;
const
SwTxtNode
&
rTxtNd
;
const
SfxPoolItem
*
pParaItem
,
*
pCurItem
;
xub_StrLen
nChgPos
;
...
...
sw/source/core/txtnode/txatritr.cxx
Dosyayı görüntüle @
6485258b
...
...
@@ -109,25 +109,25 @@ sal_Bool SwTxtAttrIterator::Next()
if
(
nChgPos
<
aSIter
.
GetText
().
Len
()
)
{
bRet
=
sal_True
;
if
(
aStack
.
Count
()
)
if
(
!
aStack
.
empty
()
)
{
do
{
const
SwTxtAttr
*
pHt
=
(
SwTxtAttr
*
)
aStack
[
0
]
;
const
SwTxtAttr
*
pHt
=
aStack
.
front
()
;
sal_uInt16
nEndPos
=
*
pHt
->
GetEnd
();
if
(
nChgPos
>=
nEndPos
)
aStack
.
Remove
(
0
);
aStack
.
pop_front
(
);
else
break
;
}
while
(
aStack
.
Count
()
);
}
while
(
!
aStack
.
empty
()
);
}
if
(
aStack
.
Count
()
)
if
(
!
aStack
.
empty
()
)
{
sal_uInt16
nSavePos
=
nAttrPos
;
SearchNextChg
();
if
(
aStack
.
Count
()
)
if
(
!
aStack
.
empty
()
)
{
const
SwTxtAttr
*
pHt
=
(
SwTxtAttr
*
)
aStack
[
0
]
;
const
SwTxtAttr
*
pHt
=
aStack
.
front
()
;
sal_uInt16
nEndPos
=
*
pHt
->
GetEnd
();
if
(
nChgPos
>=
nEndPos
)
{
...
...
@@ -144,7 +144,7 @@ sal_Bool SwTxtAttrIterator::Next()
else
pCurItem
=
&
pHt
->
GetAttr
();
aStack
.
Remove
(
0
);
aStack
.
pop_front
(
);
}
}
}
...
...
@@ -156,13 +156,12 @@ sal_Bool SwTxtAttrIterator::Next()
void
SwTxtAttrIterator
::
AddToStack
(
const
SwTxtAttr
&
rAttr
)
{
void
*
pAdd
=
(
void
*
)
&
rAttr
;
sal_uInt16
nIns
=
0
,
nEndPos
=
*
rAttr
.
GetEnd
();
for
(
;
nIns
<
aStack
.
Count
();
++
nIns
)
if
(
*
((
SwTxtAttr
*
)
aStack
[
nIns
]
)
->
GetEnd
()
>
nEndPos
)
for
(
;
nIns
<
aStack
.
size
();
++
nIns
)
if
(
*
aStack
[
nIns
]
->
GetEnd
()
>
nEndPos
)
break
;
aStack
.
Insert
(
pAdd
,
nIns
);
aStack
.
insert
(
aStack
.
begin
()
+
nIns
,
&
rAttr
);
}
void
SwTxtAttrIterator
::
SearchNextChg
()
...
...
@@ -175,7 +174,7 @@ void SwTxtAttrIterator::SearchNextChg()
nAttrPos
=
0
;
// must be restart at the beginning, because
// some attributes can start before or inside
// the current scripttype!
aStack
.
Remove
(
0
,
aStack
.
Count
()
);
aStack
.
clear
(
);
}
if
(
!
pParaItem
)
{
...
...
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