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
5cd8770c
Kaydet (Commit)
5cd8770c
authored
Agu 02, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert XMLFamilyDataList_Impl to boost::ptr_set
Change-Id: I2a23787091828415cf814eb7091f3fa926b5876c
üst
b90a8970
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
44 deletions
+26
-44
unusedcode.easy
unusedcode.easy
+0
-2
impastp1.cxx
xmloff/source/style/impastp1.cxx
+0
-22
impastp2.cxx
xmloff/source/style/impastp2.cxx
+11
-6
impastp3.cxx
xmloff/source/style/impastp3.cxx
+8
-8
impastp4.cxx
xmloff/source/style/impastp4.cxx
+0
-0
impastpl.hxx
xmloff/source/style/impastpl.hxx
+7
-6
No files found.
unusedcode.easy
Dosyayı görüntüle @
5cd8770c
...
...
@@ -51,8 +51,6 @@ VirtualDevice::SetOutputSizePixelScaleOffsetAndBuffer(Size const&, Fraction cons
Window::PostUserEvent(unsigned long&, unsigned long, void*)
X11SalGraphics::SetMask(int&, int&, unsigned int&, unsigned int&, int&, int&, unsigned long)
X509Certificate_NssImpl::getImplementation(com::sun::star::uno::Reference<com::sun::star::uno::XInterface>)
XMLFamilyDataList_Impl::GetPos(XMLFamilyData_Impl const*) const
XMLFamilyDataList_Impl::Remove(XMLFamilyData_Impl*)
XMLFontAutoStylePool_Impl::GetPos(XMLFontAutoStylePoolEntry_Impl const*) const
XMLFontAutoStylePool_Impl::Remove(XMLFontAutoStylePoolEntry_Impl*)
XMLTextListAutoStylePool_Impl::GetPos(XMLTextListAutoStylePoolEntry_Impl const*) const
...
...
xmloff/source/style/impastp1.cxx
Dosyayı görüntüle @
5cd8770c
...
...
@@ -82,26 +82,4 @@ void XMLFamilyData_Impl::ClearEntries()
}
}
///////////////////////////////////////////////////////////////////////////////
//
// friendfunction of class XMLFamilyData_Impl for sorting listelements
//
int
XMLFamilyDataSort_Impl
(
const
XMLFamilyData_Impl
&
r1
,
const
XMLFamilyData_Impl
&
r2
)
{
int
nRet
=
0
;
if
(
r1
.
mnFamily
!=
r2
.
mnFamily
)
nRet
=
(
r1
.
mnFamily
>
r2
.
mnFamily
?
1
:
-
1
);
return
nRet
;
}
///////////////////////////////////////////////////////////////////////////////
//
// Implementation of sorted list of XMLFamilyData_Impl - elements
//
IMPL_CONTAINER_SORT
(
XMLFamilyDataList_Impl
,
XMLFamilyData_Impl
,
XMLFamilyDataSort_Impl
)
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
xmloff/source/style/impastp2.cxx
Dosyayı görüntüle @
5cd8770c
...
...
@@ -44,21 +44,26 @@ using ::rtl::OUStringBuffer;
// ctor class SvXMLAutoStylePoolProperties_Impl
//
SvXMLAutoStylePoolPropertiesP_Impl
::
SvXMLAutoStylePoolPropertiesP_Impl
(
XMLFamilyData_Impl
*
p
FamilyData
,
const
vector
<
XMLPropertyState
>&
rProperties
)
SvXMLAutoStylePoolPropertiesP_Impl
::
SvXMLAutoStylePoolPropertiesP_Impl
(
XMLFamilyData_Impl
&
r
FamilyData
,
const
vector
<
XMLPropertyState
>&
rProperties
)
:
maProperties
(
rProperties
),
mnPos
(
pFamilyData
->
mnCount
)
mnPos
(
rFamilyData
.
mnCount
)
{
// create a name that hasn't been used before. The created name has not
// to be added to the array, because it will never tried again
OUStringBuffer
sBuffer
(
7
);
do
{
pFamilyData
->
mnName
++
;
sBuffer
.
append
(
pFamilyData
->
maStrPrefix
);
sBuffer
.
append
(
OUString
::
valueOf
(
(
sal_Int32
)
pFamilyData
->
mnName
)
);
rFamilyData
.
mnName
++
;
sBuffer
.
append
(
rFamilyData
.
maStrPrefix
);
sBuffer
.
append
(
OUString
::
valueOf
(
(
sal_Int32
)
rFamilyData
.
mnName
)
);
msName
=
sBuffer
.
makeStringAndClear
();
}
while
(
pFamilyData
->
mpNameList
->
find
(
msName
)
!=
pFamilyData
->
mpNameList
->
end
()
);
while
(
rFamilyData
.
mpNameList
->
find
(
msName
)
!=
rFamilyData
.
mpNameList
->
end
()
);
}
bool
operator
<
(
const
XMLFamilyData_Impl
&
r1
,
const
XMLFamilyData_Impl
&
r2
)
{
return
r1
.
mnFamily
<
r2
.
mnFamily
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
xmloff/source/style/impastp3.cxx
Dosyayı görüntüle @
5cd8770c
...
...
@@ -56,7 +56,7 @@ SvXMLAutoStylePoolParentP_Impl::~SvXMLAutoStylePoolParentP_Impl()
// if not added, yet.
//
sal_Bool
SvXMLAutoStylePoolParentP_Impl
::
Add
(
XMLFamilyData_Impl
*
p
FamilyData
,
const
vector
<
XMLPropertyState
>&
rProperties
,
OUString
&
rName
,
bool
bDontSeek
)
sal_Bool
SvXMLAutoStylePoolParentP_Impl
::
Add
(
XMLFamilyData_Impl
&
r
FamilyData
,
const
vector
<
XMLPropertyState
>&
rProperties
,
OUString
&
rName
,
bool
bDontSeek
)
{
sal_Bool
bAdded
=
sal_False
;
SvXMLAutoStylePoolPropertiesP_Impl
*
pProperties
=
0
;
...
...
@@ -75,7 +75,7 @@ sal_Bool SvXMLAutoStylePoolParentP_Impl::Add( XMLFamilyData_Impl* pFamilyData, c
{
break
;
}
else
if
(
!
bDontSeek
&&
pFamilyData
->
mxMapper
->
Equals
(
pIS
->
GetProperties
(),
rProperties
)
)
else
if
(
!
bDontSeek
&&
rFamilyData
.
mxMapper
->
Equals
(
pIS
->
GetProperties
(),
rProperties
)
)
{
pProperties
=
pIS
;
break
;
...
...
@@ -84,7 +84,7 @@ sal_Bool SvXMLAutoStylePoolParentP_Impl::Add( XMLFamilyData_Impl* pFamilyData, c
if
(
!
pProperties
)
{
pProperties
=
new
SvXMLAutoStylePoolPropertiesP_Impl
(
p
FamilyData
,
rProperties
);
pProperties
=
new
SvXMLAutoStylePoolPropertiesP_Impl
(
r
FamilyData
,
rProperties
);
SvXMLAutoStylePoolPropertiesPList_Impl
::
iterator
it
=
maPropertiesList
.
begin
();
::
std
::
advance
(
it
,
i
);
maPropertiesList
.
insert
(
it
,
pProperties
);
...
...
@@ -103,7 +103,7 @@ sal_Bool SvXMLAutoStylePoolParentP_Impl::Add( XMLFamilyData_Impl* pFamilyData, c
// the same properties exists, a new one is added (like with bDontSeek).
//
sal_Bool
SvXMLAutoStylePoolParentP_Impl
::
AddNamed
(
XMLFamilyData_Impl
*
p
FamilyData
,
const
vector
<
XMLPropertyState
>&
rProperties
,
const
OUString
&
rName
)
sal_Bool
SvXMLAutoStylePoolParentP_Impl
::
AddNamed
(
XMLFamilyData_Impl
&
r
FamilyData
,
const
vector
<
XMLPropertyState
>&
rProperties
,
const
OUString
&
rName
)
{
sal_Bool
bAdded
=
sal_False
;
size_t
i
=
0
;
...
...
@@ -123,10 +123,10 @@ sal_Bool SvXMLAutoStylePoolParentP_Impl::AddNamed( XMLFamilyData_Impl* pFamilyDa
}
}
if
(
pFamilyData
->
mpNameList
->
find
(
rName
)
==
pFamilyData
->
mpNameList
->
end
())
if
(
rFamilyData
.
mpNameList
->
find
(
rName
)
==
rFamilyData
.
mpNameList
->
end
())
{
SvXMLAutoStylePoolPropertiesP_Impl
*
pProperties
=
new
SvXMLAutoStylePoolPropertiesP_Impl
(
p
FamilyData
,
rProperties
);
new
SvXMLAutoStylePoolPropertiesP_Impl
(
r
FamilyData
,
rProperties
);
// ignore the generated name
pProperties
->
SetName
(
rName
);
SvXMLAutoStylePoolPropertiesPList_Impl
::
iterator
it
=
maPropertiesList
.
begin
();
...
...
@@ -143,7 +143,7 @@ sal_Bool SvXMLAutoStylePoolParentP_Impl::AddNamed( XMLFamilyData_Impl* pFamilyDa
// Search for a array of XMLPropertyState ( vector< XMLPropertyState > ) in list
//
OUString
SvXMLAutoStylePoolParentP_Impl
::
Find
(
const
XMLFamilyData_Impl
*
p
FamilyData
,
const
vector
<
XMLPropertyState
>&
rProperties
)
const
OUString
SvXMLAutoStylePoolParentP_Impl
::
Find
(
const
XMLFamilyData_Impl
&
r
FamilyData
,
const
vector
<
XMLPropertyState
>&
rProperties
)
const
{
OUString
sName
;
vector
<
XMLPropertyState
>::
size_type
nItems
=
rProperties
.
size
();
...
...
@@ -159,7 +159,7 @@ OUString SvXMLAutoStylePoolParentP_Impl::Find( const XMLFamilyData_Impl* pFamily
{
break
;
}
else
if
(
pFamilyData
->
mxMapper
->
Equals
(
pIS
->
GetProperties
(),
rProperties
)
)
else
if
(
rFamilyData
.
mxMapper
->
Equals
(
pIS
->
GetProperties
(),
rProperties
)
)
{
sName
=
pIS
->
GetName
();
break
;
...
...
xmloff/source/style/impastp4.cxx
Dosyayı görüntüle @
5cd8770c
This diff is collapsed.
Click to expand it.
xmloff/source/style/impastpl.hxx
Dosyayı görüntüle @
5cd8770c
...
...
@@ -29,6 +29,7 @@
#ifndef _XMLOFF_XMLASTPL_IMPL_HXX
#define _XMLOFF_XMLASTPL_IMPL_HXX
#include <boost/ptr_container/ptr_set.hpp>
#include <sal/types.h>
#include <svl/cntnrsrt.hxx>
#include <rtl/ustring.hxx>
...
...
@@ -84,12 +85,12 @@ public:
{}
~
XMLFamilyData_Impl
();
friend
int
XMLFamilyDataSort_Impl
(
const
XMLFamilyData_Impl
&
r1
,
const
XMLFamilyData_Impl
&
r2
);
friend
bool
operator
<
(
const
XMLFamilyData_Impl
&
r1
,
const
XMLFamilyData_Impl
&
r2
);
void
ClearEntries
();
};
DECLARE_CONTAINER_SORT
(
XMLFamilyDataList_Impl
,
XMLFamilyData_Impl
)
typedef
boost
::
ptr_set
<
XMLFamilyData_Impl
>
XMLFamilyDataList_Impl
;
///////////////////////////////////////////////////////////////////////////////
//
...
...
@@ -104,7 +105,7 @@ class SvXMLAutoStylePoolPropertiesP_Impl
public
:
SvXMLAutoStylePoolPropertiesP_Impl
(
XMLFamilyData_Impl
*
p
FamilyData
,
const
::
std
::
vector
<
XMLPropertyState
>&
rProperties
);
SvXMLAutoStylePoolPropertiesP_Impl
(
XMLFamilyData_Impl
&
r
FamilyData
,
const
::
std
::
vector
<
XMLPropertyState
>&
rProperties
);
~
SvXMLAutoStylePoolPropertiesP_Impl
()
{
...
...
@@ -139,11 +140,11 @@ public:
~
SvXMLAutoStylePoolParentP_Impl
();
sal_Bool
Add
(
XMLFamilyData_Impl
*
p
FamilyData
,
const
::
std
::
vector
<
XMLPropertyState
>&
rProperties
,
::
rtl
::
OUString
&
rName
,
bool
bDontSeek
=
false
);
sal_Bool
Add
(
XMLFamilyData_Impl
&
r
FamilyData
,
const
::
std
::
vector
<
XMLPropertyState
>&
rProperties
,
::
rtl
::
OUString
&
rName
,
bool
bDontSeek
=
false
);
sal_Bool
AddNamed
(
XMLFamilyData_Impl
*
p
FamilyData
,
const
::
std
::
vector
<
XMLPropertyState
>&
rProperties
,
const
::
rtl
::
OUString
&
rName
);
sal_Bool
AddNamed
(
XMLFamilyData_Impl
&
r
FamilyData
,
const
::
std
::
vector
<
XMLPropertyState
>&
rProperties
,
const
::
rtl
::
OUString
&
rName
);
::
rtl
::
OUString
Find
(
const
XMLFamilyData_Impl
*
p
FamilyData
,
const
::
std
::
vector
<
XMLPropertyState
>&
rProperties
)
const
;
::
rtl
::
OUString
Find
(
const
XMLFamilyData_Impl
&
r
FamilyData
,
const
::
std
::
vector
<
XMLPropertyState
>&
rProperties
)
const
;
const
::
rtl
::
OUString
&
GetParent
()
const
{
return
msParent
;
}
...
...
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