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
fbabbcef
Kaydet (Commit)
fbabbcef
authored
Tem 13, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Tem 17, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert SV_DECL_PTRARR_SORT(SwHTMLPosFlyFrms) to o3tl::sorted_vector
Change-Id: If745de5e44ffffca27166f3ac6f35877189d50a7
üst
22461ae3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
20 deletions
+14
-20
htmlfly.cxx
sw/source/filter/html/htmlfly.cxx
+7
-10
htmlfly.hxx
sw/source/filter/html/htmlfly.hxx
+4
-7
htmlforw.cxx
sw/source/filter/html/htmlforw.cxx
+2
-2
wrthtml.cxx
sw/source/filter/html/wrthtml.cxx
+1
-1
No files found.
sw/source/filter/html/htmlfly.cxx
Dosyayı görüntüle @
fbabbcef
...
...
@@ -174,8 +174,6 @@ static HTMLOutEvent aIMapEventTable[] =
SV_IMPL_OP_PTRARR_SORT
(
SwHTMLPosFlyFrms
,
SwHTMLPosFlyFrmPtr
)
sal_uInt16
SwHTMLWriter
::
GuessFrmType
(
const
SwFrmFmt
&
rFrmFmt
,
const
SdrObject
*&
rpSdrObj
)
{
...
...
@@ -266,7 +264,7 @@ sal_uInt16 SwHTMLWriter::GuessFrmType( const SwFrmFmt& rFrmFmt,
bEmpty
=
sal_True
;
if
(
pHTMLPosFlyFrms
)
{
for
(
sal_uInt16
i
=
0
;
i
<
pHTMLPosFlyFrms
->
Count
();
i
++
)
for
(
sal_uInt16
i
=
0
;
i
<
pHTMLPosFlyFrms
->
size
();
i
++
)
{
sal_uLong
nIdx
=
(
*
pHTMLPosFlyFrms
)[
i
]
->
GetNdIndex
().
GetIndex
();
...
...
@@ -369,7 +367,7 @@ void SwHTMLWriter::CollectFlyFrms()
SwHTMLPosFlyFrm
*
pNew
=
new
SwHTMLPosFlyFrm
(
**
it
,
pSdrObj
,
nMode
);
pHTMLPosFlyFrms
->
I
nsert
(
pNew
);
pHTMLPosFlyFrms
->
i
nsert
(
pNew
);
}
}
...
...
@@ -389,10 +387,10 @@ sal_Bool SwHTMLWriter::OutFlyFrm( sal_uLong nNdIdx, xub_StrLen nCntntIdx, sal_uI
// suche nach dem Anfang der FlyFrames
sal_uInt16
i
;
for
(
i
=
0
;
i
<
pHTMLPosFlyFrms
->
Count
()
&&
for
(
i
=
0
;
i
<
pHTMLPosFlyFrms
->
size
()
&&
(
*
pHTMLPosFlyFrms
)[
i
]
->
GetNdIndex
().
GetIndex
()
<
nNdIdx
;
i
++
)
;
for
(
;
!
bRestart
&&
i
<
pHTMLPosFlyFrms
->
Count
()
&&
for
(
;
!
bRestart
&&
i
<
pHTMLPosFlyFrms
->
size
()
&&
(
*
pHTMLPosFlyFrms
)[
i
]
->
GetNdIndex
().
GetIndex
()
==
nNdIdx
;
i
++
)
{
SwHTMLPosFlyFrm
*
pPosFly
=
(
*
pHTMLPosFlyFrms
)[
i
];
...
...
@@ -403,9 +401,9 @@ sal_Bool SwHTMLWriter::OutFlyFrm( sal_uLong nNdIdx, xub_StrLen nCntntIdx, sal_uI
// Erst entfernen ist wichtig, weil in tieferen
// Rekursionen evtl. weitere Eintraege oder das
// ganze Array geloscht werden koennte.
pHTMLPosFlyFrms
->
Remove
(
i
,
1
);
pHTMLPosFlyFrms
->
erase
(
i
);
i
--
;
if
(
!
pHTMLPosFlyFrms
->
Count
()
)
if
(
pHTMLPosFlyFrms
->
empty
()
)
{
delete
pHTMLPosFlyFrms
;
pHTMLPosFlyFrms
=
0
;
...
...
@@ -1929,7 +1927,7 @@ SwHTMLPosFlyFrm::SwHTMLPosFlyFrm( const SwPosFlyFrm& rPosFly,
}
}
sal_B
ool
SwHTMLPosFlyFrm
::
operator
<
(
const
SwHTMLPosFlyFrm
&
rFrm
)
const
b
ool
SwHTMLPosFlyFrm
::
operator
<
(
const
SwHTMLPosFlyFrm
&
rFrm
)
const
{
if
(
pNdIdx
->
GetIndex
()
==
rFrm
.
pNdIdx
->
GetIndex
()
)
{
...
...
@@ -1947,5 +1945,4 @@ sal_Bool SwHTMLPosFlyFrm::operator<( const SwHTMLPosFlyFrm& rFrm ) const
return
pNdIdx
->
GetIndex
()
<
rFrm
.
pNdIdx
->
GetIndex
();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/filter/html/htmlfly.hxx
Dosyayı görüntüle @
fbabbcef
...
...
@@ -30,8 +30,7 @@
#define _HTMLFLY_HXX
#include <tools/solar.h>
#include <svl/svarray.hxx>
#include <o3tl/sorted_vector.hxx>
class
SdrObject
;
class
SwFrmFmt
;
...
...
@@ -107,8 +106,8 @@ public:
SwHTMLPosFlyFrm
(
const
SwPosFlyFrm
&
rPosFly
,
const
SdrObject
*
pSdrObj
,
sal_uInt8
nOutMode
);
sal_Bool
operator
==
(
const
SwHTMLPosFlyFrm
&
)
const
{
return
sal_F
alse
;
}
sal_B
ool
operator
<
(
const
SwHTMLPosFlyFrm
&
)
const
;
bool
operator
==
(
const
SwHTMLPosFlyFrm
&
)
const
{
return
f
alse
;
}
b
ool
operator
<
(
const
SwHTMLPosFlyFrm
&
)
const
;
const
SwFrmFmt
&
GetFmt
()
const
{
return
*
pFrmFmt
;
}
const
SdrObject
*
GetSdrObject
()
const
{
return
pSdrObject
;
}
...
...
@@ -128,9 +127,7 @@ public:
sal_uInt8
GetOutCntnr
()
const
{
return
nOutputMode
&
HTML_CNTNR_MASK
;
}
};
typedef
SwHTMLPosFlyFrm
*
SwHTMLPosFlyFrmPtr
;
SV_DECL_PTRARR_SORT
(
SwHTMLPosFlyFrms
,
SwHTMLPosFlyFrmPtr
,
10
)
class
SwHTMLPosFlyFrms
:
public
o3tl
::
sorted_vector
<
SwHTMLPosFlyFrm
*
,
o3tl
::
less_ptr_to
<
SwHTMLPosFlyFrm
>
>
{};
#endif
...
...
sw/source/filter/html/htmlforw.cxx
Dosyayı görüntüle @
fbabbcef
...
...
@@ -1392,9 +1392,9 @@ void SwHTMLWriter::GetControls()
if
(
pHTMLPosFlyFrms
)
{
// die absatz-gebundenen Controls einsammeln
for
(
i
=
0
;
i
<
pHTMLPosFlyFrms
->
Count
();
i
++
)
for
(
i
=
0
;
i
<
pHTMLPosFlyFrms
->
size
();
i
++
)
{
const
SwHTMLPosFlyFrm
*
pPosFlyFrm
=
pHTMLPosFlyFrms
->
GetObject
(
i
)
;
const
SwHTMLPosFlyFrm
*
pPosFlyFrm
=
(
*
pHTMLPosFlyFrms
)[
i
]
;
if
(
HTML_OUT_CONTROL
!=
pPosFlyFrm
->
GetOutFn
()
)
continue
;
...
...
sw/source/filter/html/wrthtml.cxx
Dosyayı görüntüle @
fbabbcef
...
...
@@ -376,7 +376,7 @@ sal_uLong SwHTMLWriter::WriteStream()
OSL_ENSURE
(
!
pHTMLPosFlyFrms
,
"Wurden nicht alle Rahmen ausgegeben"
);
if
(
pHTMLPosFlyFrms
)
{
pHTMLPosFlyFrms
->
DeleteAndDestroy
(
0
,
pHTMLPosFlyFrms
->
Count
()
);
pHTMLPosFlyFrms
->
DeleteAndDestroy
All
(
);
delete
pHTMLPosFlyFrms
;
pHTMLPosFlyFrms
=
0
;
}
...
...
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