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
5a7a4325
Kaydet (Commit)
5a7a4325
authored
Kas 10, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
editeng: boost::ptr_vector->std::vector<std::unique_ptr>
Change-Id: I2b4cdb3809de0e9c69253d2cd05714e15fdc8913
üst
05b9c892
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
29 deletions
+28
-29
editobj.cxx
editeng/source/editeng/editobj.cxx
+25
-25
editobj2.hxx
editeng/source/editeng/editobj2.hxx
+1
-2
fieldupdater.cxx
editeng/source/editeng/fieldupdater.cxx
+1
-1
impedit4.cxx
editeng/source/editeng/impedit4.cxx
+1
-1
No files found.
editeng/source/editeng/editobj.cxx
Dosyayı görüntüle @
5a7a4325
...
@@ -500,7 +500,7 @@ void EditTextObjectImpl::ObjectInDestruction(const SfxItemPool& rSfxItemPool)
...
@@ -500,7 +500,7 @@ void EditTextObjectImpl::ObjectInDestruction(const SfxItemPool& rSfxItemPool)
aReplaced
.
reserve
(
aContents
.
size
());
aReplaced
.
reserve
(
aContents
.
size
());
ContentInfosType
::
const_iterator
it
=
aContents
.
begin
(),
itEnd
=
aContents
.
end
();
ContentInfosType
::
const_iterator
it
=
aContents
.
begin
(),
itEnd
=
aContents
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
for
(;
it
!=
itEnd
;
++
it
)
aReplaced
.
push_back
(
new
ContentInfo
(
*
it
,
*
pNewPool
));
aReplaced
.
push_back
(
std
::
unique_ptr
<
ContentInfo
>
(
new
ContentInfo
(
*
it
->
get
(),
*
pNewPool
)
));
aReplaced
.
swap
(
aContents
);
aReplaced
.
swap
(
aContents
);
// set local variables
// set local variables
...
@@ -612,7 +612,7 @@ EditTextObjectImpl::EditTextObjectImpl( EditTextObject* pFront, const EditTextOb
...
@@ -612,7 +612,7 @@ EditTextObjectImpl::EditTextObjectImpl( EditTextObject* pFront, const EditTextOb
aContents
.
reserve
(
r
.
aContents
.
size
());
aContents
.
reserve
(
r
.
aContents
.
size
());
ContentInfosType
::
const_iterator
it
=
r
.
aContents
.
begin
(),
itEnd
=
r
.
aContents
.
end
();
ContentInfosType
::
const_iterator
it
=
r
.
aContents
.
begin
(),
itEnd
=
r
.
aContents
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
for
(;
it
!=
itEnd
;
++
it
)
aContents
.
push_back
(
new
ContentInfo
(
*
it
,
*
pPool
));
aContents
.
push_back
(
std
::
unique_ptr
<
ContentInfo
>
(
new
ContentInfo
(
*
it
->
get
(),
*
pPool
)
));
}
}
EditTextObjectImpl
::~
EditTextObjectImpl
()
EditTextObjectImpl
::~
EditTextObjectImpl
()
...
@@ -644,7 +644,7 @@ void EditTextObjectImpl::NormalizeString( svl::SharedStringPool& rPool )
...
@@ -644,7 +644,7 @@ void EditTextObjectImpl::NormalizeString( svl::SharedStringPool& rPool )
ContentInfosType
::
iterator
it
=
aContents
.
begin
(),
itEnd
=
aContents
.
end
();
ContentInfosType
::
iterator
it
=
aContents
.
begin
(),
itEnd
=
aContents
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
for
(;
it
!=
itEnd
;
++
it
)
{
{
ContentInfo
&
rInfo
=
*
it
;
ContentInfo
&
rInfo
=
*
it
->
get
()
;
rInfo
.
NormalizeString
(
rPool
);
rInfo
.
NormalizeString
(
rPool
);
}
}
}
}
...
@@ -656,7 +656,7 @@ std::vector<svl::SharedString> EditTextObjectImpl::GetSharedStrings() const
...
@@ -656,7 +656,7 @@ std::vector<svl::SharedString> EditTextObjectImpl::GetSharedStrings() const
ContentInfosType
::
const_iterator
it
=
aContents
.
begin
(),
itEnd
=
aContents
.
end
();
ContentInfosType
::
const_iterator
it
=
aContents
.
begin
(),
itEnd
=
aContents
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
for
(;
it
!=
itEnd
;
++
it
)
{
{
const
ContentInfo
&
rInfo
=
*
it
;
const
ContentInfo
&
rInfo
=
*
it
->
get
()
;
aSSs
.
push_back
(
rInfo
.
GetSharedString
());
aSSs
.
push_back
(
rInfo
.
GetSharedString
());
}
}
return
aSSs
;
return
aSSs
;
...
@@ -693,8 +693,8 @@ void EditTextObjectImpl::DestroyAttrib( XEditAttribute* pAttr )
...
@@ -693,8 +693,8 @@ void EditTextObjectImpl::DestroyAttrib( XEditAttribute* pAttr )
ContentInfo
*
EditTextObjectImpl
::
CreateAndInsertContent
()
ContentInfo
*
EditTextObjectImpl
::
CreateAndInsertContent
()
{
{
aContents
.
push_back
(
new
ContentInfo
(
*
pPool
));
aContents
.
push_back
(
std
::
unique_ptr
<
ContentInfo
>
(
new
ContentInfo
(
*
pPool
)
));
return
&
aContents
.
back
();
return
aContents
.
back
().
get
();
}
}
sal_Int32
EditTextObjectImpl
::
GetParagraphCount
()
const
sal_Int32
EditTextObjectImpl
::
GetParagraphCount
()
const
...
@@ -713,7 +713,7 @@ OUString EditTextObjectImpl::GetText(sal_Int32 nPara) const
...
@@ -713,7 +713,7 @@ OUString EditTextObjectImpl::GetText(sal_Int32 nPara) const
if
(
nPara
<
0
||
static_cast
<
size_t
>
(
nPara
)
>=
aContents
.
size
())
if
(
nPara
<
0
||
static_cast
<
size_t
>
(
nPara
)
>=
aContents
.
size
())
return
OUString
();
return
OUString
();
return
aContents
[
nPara
]
.
GetText
();
return
aContents
[
nPara
]
->
GetText
();
}
}
void
EditTextObjectImpl
::
ClearPortionInfo
()
void
EditTextObjectImpl
::
ClearPortionInfo
()
...
@@ -730,7 +730,7 @@ bool EditTextObjectImpl::HasOnlineSpellErrors() const
...
@@ -730,7 +730,7 @@ bool EditTextObjectImpl::HasOnlineSpellErrors() const
ContentInfosType
::
const_iterator
it
=
aContents
.
begin
(),
itEnd
=
aContents
.
end
();
ContentInfosType
::
const_iterator
it
=
aContents
.
begin
(),
itEnd
=
aContents
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
for
(;
it
!=
itEnd
;
++
it
)
{
{
if
(
it
->
GetWrongList
()
&&
!
it
->
GetWrongList
()
->
empty
()
)
if
(
(
*
it
)
->
GetWrongList
()
&&
!
(
*
it
)
->
GetWrongList
()
->
empty
()
)
return
true
;
return
true
;
}
}
return
false
;
return
false
;
...
@@ -742,7 +742,7 @@ void EditTextObjectImpl::GetCharAttribs( sal_Int32 nPara, std::vector<EECharAttr
...
@@ -742,7 +742,7 @@ void EditTextObjectImpl::GetCharAttribs( sal_Int32 nPara, std::vector<EECharAttr
return
;
return
;
rLst
.
clear
();
rLst
.
clear
();
const
ContentInfo
&
rC
=
aContents
[
nPara
]
;
const
ContentInfo
&
rC
=
*
aContents
[
nPara
].
get
()
;
for
(
size_t
nAttr
=
0
;
nAttr
<
rC
.
aAttribs
.
size
();
++
nAttr
)
for
(
size_t
nAttr
=
0
;
nAttr
<
rC
.
aAttribs
.
size
();
++
nAttr
)
{
{
const
XEditAttribute
&
rAttr
=
*
rC
.
aAttribs
[
nAttr
].
get
();
const
XEditAttribute
&
rAttr
=
*
rC
.
aAttribs
[
nAttr
].
get
();
...
@@ -764,7 +764,7 @@ const SvxFieldItem* EditTextObjectImpl::GetField() const
...
@@ -764,7 +764,7 @@ const SvxFieldItem* EditTextObjectImpl::GetField() const
{
{
if
(
aContents
.
size
()
==
1
)
if
(
aContents
.
size
()
==
1
)
{
{
const
ContentInfo
&
rC
=
aContents
[
0
]
;
const
ContentInfo
&
rC
=
*
aContents
[
0
].
get
()
;
if
(
rC
.
GetText
().
getLength
()
==
1
)
if
(
rC
.
GetText
().
getLength
()
==
1
)
{
{
size_t
nAttribs
=
rC
.
aAttribs
.
size
();
size_t
nAttribs
=
rC
.
aAttribs
.
size
();
...
@@ -784,7 +784,7 @@ const SvxFieldData* EditTextObjectImpl::GetFieldData(sal_Int32 nPara, size_t nPo
...
@@ -784,7 +784,7 @@ const SvxFieldData* EditTextObjectImpl::GetFieldData(sal_Int32 nPara, size_t nPo
if
(
nPara
<
0
||
static_cast
<
size_t
>
(
nPara
)
>=
aContents
.
size
())
if
(
nPara
<
0
||
static_cast
<
size_t
>
(
nPara
)
>=
aContents
.
size
())
return
nullptr
;
return
nullptr
;
const
ContentInfo
&
rC
=
aContents
[
nPara
]
;
const
ContentInfo
&
rC
=
*
aContents
[
nPara
].
get
()
;
if
(
nPos
>=
rC
.
aAttribs
.
size
())
if
(
nPos
>=
rC
.
aAttribs
.
size
())
// URL position is out-of-bound.
// URL position is out-of-bound.
return
nullptr
;
return
nullptr
;
...
@@ -819,7 +819,7 @@ bool EditTextObjectImpl::HasField( sal_Int32 nType ) const
...
@@ -819,7 +819,7 @@ bool EditTextObjectImpl::HasField( sal_Int32 nType ) const
size_t
nParagraphs
=
aContents
.
size
();
size_t
nParagraphs
=
aContents
.
size
();
for
(
size_t
nPara
=
0
;
nPara
<
nParagraphs
;
++
nPara
)
for
(
size_t
nPara
=
0
;
nPara
<
nParagraphs
;
++
nPara
)
{
{
const
ContentInfo
&
rC
=
aContents
[
nPara
]
;
const
ContentInfo
&
rC
=
*
aContents
[
nPara
].
get
()
;
size_t
nAttrs
=
rC
.
aAttribs
.
size
();
size_t
nAttrs
=
rC
.
aAttribs
.
size
();
for
(
size_t
nAttr
=
0
;
nAttr
<
nAttrs
;
++
nAttr
)
for
(
size_t
nAttr
=
0
;
nAttr
<
nAttrs
;
++
nAttr
)
{
{
...
@@ -841,7 +841,7 @@ bool EditTextObjectImpl::HasField( sal_Int32 nType ) const
...
@@ -841,7 +841,7 @@ bool EditTextObjectImpl::HasField( sal_Int32 nType ) const
const
SfxItemSet
&
EditTextObjectImpl
::
GetParaAttribs
(
sal_Int32
nPara
)
const
const
SfxItemSet
&
EditTextObjectImpl
::
GetParaAttribs
(
sal_Int32
nPara
)
const
{
{
const
ContentInfo
&
rC
=
aContents
[
nPara
]
;
const
ContentInfo
&
rC
=
*
aContents
[
nPara
].
get
()
;
return
rC
.
GetParaAttribs
();
return
rC
.
GetParaAttribs
();
}
}
...
@@ -851,7 +851,7 @@ bool EditTextObjectImpl::RemoveCharAttribs( sal_uInt16 _nWhich )
...
@@ -851,7 +851,7 @@ bool EditTextObjectImpl::RemoveCharAttribs( sal_uInt16 _nWhich )
for
(
size_t
nPara
=
aContents
.
size
();
nPara
;
)
for
(
size_t
nPara
=
aContents
.
size
();
nPara
;
)
{
{
ContentInfo
&
rC
=
aContents
[
--
nPara
]
;
ContentInfo
&
rC
=
*
aContents
[
--
nPara
].
get
()
;
for
(
size_t
nAttr
=
rC
.
aAttribs
.
size
();
nAttr
;
)
for
(
size_t
nAttr
=
rC
.
aAttribs
.
size
();
nAttr
;
)
{
{
...
@@ -907,7 +907,7 @@ void EditTextObjectImpl::GetAllSections( std::vector<editeng::Section>& rAttrs )
...
@@ -907,7 +907,7 @@ void EditTextObjectImpl::GetAllSections( std::vector<editeng::Section>& rAttrs )
// First pass: determine section borders for each paragraph.
// First pass: determine section borders for each paragraph.
for
(
size_t
nPara
=
0
;
nPara
<
aContents
.
size
();
++
nPara
)
for
(
size_t
nPara
=
0
;
nPara
<
aContents
.
size
();
++
nPara
)
{
{
const
ContentInfo
&
rC
=
aContents
[
nPara
]
;
const
ContentInfo
&
rC
=
*
aContents
[
nPara
].
get
()
;
SectionBordersType
&
rBorders
=
aParaBorders
[
nPara
];
SectionBordersType
&
rBorders
=
aParaBorders
[
nPara
];
rBorders
.
push_back
(
0
);
rBorders
.
push_back
(
0
);
rBorders
.
push_back
(
rC
.
GetText
().
getLength
());
rBorders
.
push_back
(
rC
.
GetText
().
getLength
());
...
@@ -967,7 +967,7 @@ void EditTextObjectImpl::GetAllSections( std::vector<editeng::Section>& rAttrs )
...
@@ -967,7 +967,7 @@ void EditTextObjectImpl::GetAllSections( std::vector<editeng::Section>& rAttrs )
std
::
vector
<
editeng
::
Section
>::
iterator
itAttr
=
aAttrs
.
begin
();
std
::
vector
<
editeng
::
Section
>::
iterator
itAttr
=
aAttrs
.
begin
();
for
(
sal_Int32
nPara
=
0
;
nPara
<
(
sal_Int32
)
aContents
.
size
();
++
nPara
)
for
(
sal_Int32
nPara
=
0
;
nPara
<
(
sal_Int32
)
aContents
.
size
();
++
nPara
)
{
{
const
ContentInfo
&
rC
=
aContents
[
nPara
]
;
const
ContentInfo
&
rC
=
*
aContents
[
nPara
].
get
()
;
itAttr
=
std
::
find_if
(
itAttr
,
aAttrs
.
end
(),
FindByParagraph
(
nPara
));
itAttr
=
std
::
find_if
(
itAttr
,
aAttrs
.
end
(),
FindByParagraph
(
nPara
));
if
(
itAttr
==
aAttrs
.
end
())
if
(
itAttr
==
aAttrs
.
end
())
...
@@ -1024,7 +1024,7 @@ void EditTextObjectImpl::GetStyleSheet(sal_Int32 nPara, OUString& rName, SfxStyl
...
@@ -1024,7 +1024,7 @@ void EditTextObjectImpl::GetStyleSheet(sal_Int32 nPara, OUString& rName, SfxStyl
if
(
nPara
<
0
||
static_cast
<
size_t
>
(
nPara
)
>=
aContents
.
size
())
if
(
nPara
<
0
||
static_cast
<
size_t
>
(
nPara
)
>=
aContents
.
size
())
return
;
return
;
const
ContentInfo
&
rC
=
aContents
[
nPara
]
;
const
ContentInfo
&
rC
=
*
aContents
[
nPara
].
get
()
;
rName
=
rC
.
GetStyle
();
rName
=
rC
.
GetStyle
();
rFamily
=
rC
.
GetFamily
();
rFamily
=
rC
.
GetFamily
();
}
}
...
@@ -1034,7 +1034,7 @@ void EditTextObjectImpl::SetStyleSheet(sal_Int32 nPara, const OUString& rName, c
...
@@ -1034,7 +1034,7 @@ void EditTextObjectImpl::SetStyleSheet(sal_Int32 nPara, const OUString& rName, c
if
(
nPara
<
0
||
static_cast
<
size_t
>
(
nPara
)
>=
aContents
.
size
())
if
(
nPara
<
0
||
static_cast
<
size_t
>
(
nPara
)
>=
aContents
.
size
())
return
;
return
;
ContentInfo
&
rC
=
aContents
[
nPara
]
;
ContentInfo
&
rC
=
*
aContents
[
nPara
].
get
()
;
rC
.
GetStyle
()
=
rName
;
rC
.
GetStyle
()
=
rName
;
rC
.
GetFamily
()
=
rFamily
;
rC
.
GetFamily
()
=
rFamily
;
}
}
...
@@ -1048,7 +1048,7 @@ bool EditTextObjectImpl::ImpChangeStyleSheets(
...
@@ -1048,7 +1048,7 @@ bool EditTextObjectImpl::ImpChangeStyleSheets(
for
(
size_t
nPara
=
0
;
nPara
<
nParagraphs
;
++
nPara
)
for
(
size_t
nPara
=
0
;
nPara
<
nParagraphs
;
++
nPara
)
{
{
ContentInfo
&
rC
=
aContents
[
nPara
]
;
ContentInfo
&
rC
=
*
aContents
[
nPara
].
get
()
;
if
(
rC
.
GetFamily
()
==
eOldFamily
)
if
(
rC
.
GetFamily
()
==
eOldFamily
)
{
{
if
(
rC
.
GetStyle
()
==
rOldName
)
if
(
rC
.
GetStyle
()
==
rOldName
)
...
@@ -1127,7 +1127,7 @@ void EditTextObjectImpl::StoreData( SvStream& rOStream ) const
...
@@ -1127,7 +1127,7 @@ void EditTextObjectImpl::StoreData( SvStream& rOStream ) const
// The individual paragraphs ...
// The individual paragraphs ...
for
(
size_t
nPara
=
0
;
nPara
<
nParagraphs_Stream
;
++
nPara
)
for
(
size_t
nPara
=
0
;
nPara
<
nParagraphs_Stream
;
++
nPara
)
{
{
const
ContentInfo
&
rC
=
aContents
[
nPara
]
;
const
ContentInfo
&
rC
=
*
aContents
[
nPara
].
get
()
;
// Text...
// Text...
OStringBuffer
aBuffer
(
OUStringToOString
(
rC
.
GetText
(),
eEncoding
));
OStringBuffer
aBuffer
(
OUStringToOString
(
rC
.
GetText
(),
eEncoding
));
...
@@ -1249,7 +1249,7 @@ void EditTextObjectImpl::StoreData( SvStream& rOStream ) const
...
@@ -1249,7 +1249,7 @@ void EditTextObjectImpl::StoreData( SvStream& rOStream ) const
{
{
for
(
size_t
nPara
=
0
;
nPara
<
nParagraphs_Stream
;
nPara
++
)
for
(
size_t
nPara
=
0
;
nPara
<
nParagraphs_Stream
;
nPara
++
)
{
{
const
ContentInfo
&
rC
=
aContents
[
nPara
]
;
const
ContentInfo
&
rC
=
*
aContents
[
nPara
].
get
()
;
sal_uInt16
nL
=
rC
.
GetText
().
getLength
();
sal_uInt16
nL
=
rC
.
GetText
().
getLength
();
rOStream
.
WriteUInt16
(
nL
);
rOStream
.
WriteUInt16
(
nL
);
rOStream
.
Write
(
rC
.
GetText
().
getStr
(),
nL
*
sizeof
(
sal_Unicode
));
rOStream
.
Write
(
rC
.
GetText
().
getStr
(),
nL
*
sizeof
(
sal_Unicode
));
...
@@ -1508,7 +1508,7 @@ void EditTextObjectImpl::CreateData( SvStream& rIStream )
...
@@ -1508,7 +1508,7 @@ void EditTextObjectImpl::CreateData( SvStream& rIStream )
{
{
for
(
sal_uInt16
nPara
=
0
;
nPara
<
nParagraphs
;
++
nPara
)
for
(
sal_uInt16
nPara
=
0
;
nPara
<
nParagraphs
;
++
nPara
)
{
{
ContentInfo
&
rC
=
aContents
[
nPara
]
;
ContentInfo
&
rC
=
*
aContents
[
nPara
].
get
()
;
sal_uInt16
nL
(
0
);
sal_uInt16
nL
(
0
);
// Text
// Text
...
@@ -1557,7 +1557,7 @@ void EditTextObjectImpl::CreateData( SvStream& rIStream )
...
@@ -1557,7 +1557,7 @@ void EditTextObjectImpl::CreateData( SvStream& rIStream )
{
{
for
(
size_t
i
=
0
,
n
=
aContents
.
size
();
i
<
n
;
++
i
)
for
(
size_t
i
=
0
,
n
=
aContents
.
size
();
i
<
n
;
++
i
)
{
{
ContentInfo
&
rC
=
aContents
[
i
]
;
ContentInfo
&
rC
=
*
aContents
[
i
].
get
()
;
const
SvxLRSpaceItem
&
rLRSpace
=
static_cast
<
const
SvxLRSpaceItem
&>
(
rC
.
GetParaAttribs
().
Get
(
EE_PARA_LRSPACE
));
const
SvxLRSpaceItem
&
rLRSpace
=
static_cast
<
const
SvxLRSpaceItem
&>
(
rC
.
GetParaAttribs
().
Get
(
EE_PARA_LRSPACE
));
if
(
rLRSpace
.
GetTextLeft
()
&&
(
rC
.
GetParaAttribs
().
GetItemState
(
EE_PARA_TABS
)
==
SfxItemState
::
SET
)
)
if
(
rLRSpace
.
GetTextLeft
()
&&
(
rC
.
GetParaAttribs
().
GetItemState
(
EE_PARA_TABS
)
==
SfxItemState
::
SET
)
)
{
{
...
@@ -1607,8 +1607,8 @@ bool EditTextObjectImpl::isWrongListEqual(const EditTextObjectImpl& rCompare) co
...
@@ -1607,8 +1607,8 @@ bool EditTextObjectImpl::isWrongListEqual(const EditTextObjectImpl& rCompare) co
for
(
size_t
i
=
0
,
n
=
aContents
.
size
();
i
<
n
;
++
i
)
for
(
size_t
i
=
0
,
n
=
aContents
.
size
();
i
<
n
;
++
i
)
{
{
const
ContentInfo
&
rCandA
=
aContents
[
i
]
;
const
ContentInfo
&
rCandA
=
*
aContents
[
i
].
get
()
;
const
ContentInfo
&
rCandB
=
rCompare
.
aContents
[
i
]
;
const
ContentInfo
&
rCandB
=
*
rCompare
.
aContents
[
i
].
get
()
;
if
(
!
rCandA
.
isWrongListEqual
(
rCandB
))
if
(
!
rCandA
.
isWrongListEqual
(
rCandB
))
{
{
...
...
editeng/source/editeng/editobj2.hxx
Dosyayı görüntüle @
5a7a4325
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#include "svl/sharedstring.hxx"
#include "svl/sharedstring.hxx"
#include <svl/languageoptions.hxx>
#include <svl/languageoptions.hxx>
#include <boost/ptr_container/ptr_vector.hpp>
#include <boost/noncopyable.hpp>
#include <boost/noncopyable.hpp>
#include <memory>
#include <memory>
#include <vector>
#include <vector>
...
@@ -177,7 +176,7 @@ public:
...
@@ -177,7 +176,7 @@ public:
class
EditTextObjectImpl
:
boost
::
noncopyable
class
EditTextObjectImpl
:
boost
::
noncopyable
{
{
public
:
public
:
typedef
boost
::
ptr_vector
<
ContentInfo
>
ContentInfosType
;
typedef
std
::
vector
<
std
::
unique_ptr
<
ContentInfo
>
>
ContentInfosType
;
private
:
private
:
EditTextObject
*
mpFront
;
EditTextObject
*
mpFront
;
...
...
editeng/source/editeng/fieldupdater.cxx
Dosyayı görüntüle @
5a7a4325
...
@@ -31,7 +31,7 @@ public:
...
@@ -31,7 +31,7 @@ public:
EditTextObjectImpl
::
ContentInfosType
&
rContents
=
mrObj
.
GetContents
();
EditTextObjectImpl
::
ContentInfosType
&
rContents
=
mrObj
.
GetContents
();
for
(
size_t
i
=
0
;
i
<
rContents
.
size
();
++
i
)
for
(
size_t
i
=
0
;
i
<
rContents
.
size
();
++
i
)
{
{
ContentInfo
&
rContent
=
rContents
[
i
]
;
ContentInfo
&
rContent
=
*
rContents
[
i
].
get
()
;
ContentInfo
::
XEditAttributesType
&
rAttribs
=
rContent
.
GetAttribs
();
ContentInfo
::
XEditAttributesType
&
rAttribs
=
rContent
.
GetAttribs
();
for
(
size_t
j
=
0
;
j
<
rAttribs
.
size
();
++
j
)
for
(
size_t
j
=
0
;
j
<
rAttribs
.
size
();
++
j
)
{
{
...
...
editeng/source/editeng/impedit4.cxx
Dosyayı görüntüle @
5a7a4325
...
@@ -1241,7 +1241,7 @@ EditSelection ImpEditEngine::InsertTextObject( const EditTextObject& rTextObject
...
@@ -1241,7 +1241,7 @@ EditSelection ImpEditEngine::InsertTextObject( const EditTextObject& rTextObject
for
(
sal_Int32
n
=
0
;
n
<
nContents
;
++
n
,
++
nPara
)
for
(
sal_Int32
n
=
0
;
n
<
nContents
;
++
n
,
++
nPara
)
{
{
const
ContentInfo
*
pC
=
&
rTextObject
.
mpImpl
->
GetContents
()[
n
]
;
const
ContentInfo
*
pC
=
rTextObject
.
mpImpl
->
GetContents
()[
n
].
get
()
;
bool
bNewContent
=
aPaM
.
GetNode
()
->
Len
()
==
0
;
bool
bNewContent
=
aPaM
.
GetNode
()
->
Len
()
==
0
;
const
sal_Int32
nStartPos
=
aPaM
.
GetIndex
();
const
sal_Int32
nStartPos
=
aPaM
.
GetIndex
();
...
...
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