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
ab054346
Kaydet (Commit)
ab054346
authored
Şub 07, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move these typedef's inside the class scope & bool cleanups.
Change-Id: I806453efbc5f7bb18f34593c350b05d74a0bc23b
üst
14b9d7c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
+10
-15
xmlstyle.cxx
xmloff/source/style/xmlstyle.cxx
+10
-15
No files found.
xmloff/source/style/xmlstyle.cxx
Dosyayı görüntüle @
ab054346
...
...
@@ -56,8 +56,6 @@
#include <set>
#include <vector>
using
::
std
::
vector
;
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
container
;
...
...
@@ -254,18 +252,15 @@ struct SvXMLStyleIndexCmp_Impl
}
};
// ---------------------------------------------------------------------
typedef
SvXMLStyleContext
*
SvXMLStyleContextPtr
;
typedef
vector
<
SvXMLStyleContextPtr
>
SvXMLStyleContexts_Impl
;
typedef
std
::
set
<
SvXMLStyleIndex_Impl
,
SvXMLStyleIndexCmp_Impl
>
SvXMLStyleIndices_Impl
;
class
SvXMLStylesContext_Impl
{
SvXMLStyleContexts_Impl
aStyles
;
SvXMLStyleIndices_Impl
*
pIndices
;
sal_Bool
bAutomaticStyle
;
typedef
std
::
vector
<
SvXMLStyleContext
*>
StylesType
;
typedef
std
::
set
<
SvXMLStyleIndex_Impl
,
SvXMLStyleIndexCmp_Impl
>
IndicesType
;
StylesType
aStyles
;
IndicesType
*
pIndices
;
bool
bAutomaticStyle
;
#ifdef DBG_UTIL
sal_uInt32
nIndexCreated
;
...
...
@@ -274,7 +269,7 @@ class SvXMLStylesContext_Impl
void
FlushIndex
()
{
delete
pIndices
;
pIndices
=
0
;
}
public
:
SvXMLStylesContext_Impl
(
sal_B
ool
bAuto
);
SvXMLStylesContext_Impl
(
b
ool
bAuto
);
~
SvXMLStylesContext_Impl
();
size_t
GetStyleCount
()
const
{
return
aStyles
.
size
();
}
...
...
@@ -298,7 +293,7 @@ public:
sal_Bool
IsAutomaticStyle
()
const
{
return
bAutomaticStyle
;
}
};
SvXMLStylesContext_Impl
::
SvXMLStylesContext_Impl
(
sal_B
ool
bAuto
)
:
SvXMLStylesContext_Impl
::
SvXMLStylesContext_Impl
(
b
ool
bAuto
)
:
pIndices
(
0
),
bAutomaticStyle
(
bAuto
)
#ifdef DBG_UTIL
...
...
@@ -351,7 +346,7 @@ const SvXMLStyleContext *SvXMLStylesContext_Impl::FindStyleChildContext( sal_uIn
"Performance warning: sdbcx::Index created multiple times"
);
#endif
((
SvXMLStylesContext_Impl
*
)
this
)
->
pIndices
=
new
SvXMLStyleIndices_Impl
(
aStyles
.
begin
(),
aStyles
.
end
()
);
new
IndicesType
(
aStyles
.
begin
(),
aStyles
.
end
()
);
SAL_WARN_IF
(
pIndices
->
size
()
!=
aStyles
.
size
(),
"xmloff"
,
"Here is a duplicate Style"
);
#ifdef DBG_UTIL
((
SvXMLStylesContext_Impl
*
)
this
)
->
nIndexCreated
++
;
...
...
@@ -361,7 +356,7 @@ const SvXMLStyleContext *SvXMLStylesContext_Impl::FindStyleChildContext( sal_uIn
if
(
pIndices
)
{
SvXMLStyleIndex_Impl
aIndex
(
nFamily
,
rName
);
SvXMLStyleIndices_Impl
::
iterator
aFind
=
pIndices
->
find
(
aIndex
);
IndicesType
::
iterator
aFind
=
pIndices
->
find
(
aIndex
);
if
(
aFind
!=
pIndices
->
end
()
)
pStyle
=
aFind
->
GetStyle
();
}
...
...
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