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
5f86c1f3
Kaydet (Commit)
5f86c1f3
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: Iee1e64d22e799653bc58d6a72c57c55787e45d84
üst
5a7a4325
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
editundo.cxx
editeng/source/editeng/editundo.cxx
+5
-5
editundo.hxx
editeng/source/editeng/editundo.hxx
+3
-2
impedit.hxx
editeng/source/editeng/impedit.hxx
+1
-1
No files found.
editeng/source/editeng/editundo.cxx
Dosyayı görüntüle @
5f86c1f3
...
@@ -501,14 +501,14 @@ EditUndoSetAttribs::EditUndoSetAttribs(EditEngine* pEE, const ESelection& rESel,
...
@@ -501,14 +501,14 @@ EditUndoSetAttribs::EditUndoSetAttribs(EditEngine* pEE, const ESelection& rESel,
namespace
{
namespace
{
struct
RemoveAttribsFromPool
:
std
::
unary_function
<
ContentAttribsInfo
,
void
>
struct
RemoveAttribsFromPool
:
std
::
unary_function
<
std
::
unique_ptr
<
ContentAttribsInfo
>
,
void
>
{
{
SfxItemPool
&
mrPool
;
SfxItemPool
&
mrPool
;
public
:
public
:
explicit
RemoveAttribsFromPool
(
SfxItemPool
&
rPool
)
:
mrPool
(
rPool
)
{}
explicit
RemoveAttribsFromPool
(
SfxItemPool
&
rPool
)
:
mrPool
(
rPool
)
{}
void
operator
()
(
ContentAttribsInfo
&
rInfo
)
void
operator
()
(
std
::
unique_ptr
<
ContentAttribsInfo
>
&
rInfo
)
{
{
rInfo
.
RemoveAllCharAttribsFromPool
(
mrPool
);
rInfo
->
RemoveAllCharAttribsFromPool
(
mrPool
);
}
}
};
};
...
@@ -528,7 +528,7 @@ void EditUndoSetAttribs::Undo()
...
@@ -528,7 +528,7 @@ void EditUndoSetAttribs::Undo()
bool
bFields
=
false
;
bool
bFields
=
false
;
for
(
sal_Int32
nPara
=
aESel
.
nStartPara
;
nPara
<=
aESel
.
nEndPara
;
nPara
++
)
for
(
sal_Int32
nPara
=
aESel
.
nStartPara
;
nPara
<=
aESel
.
nEndPara
;
nPara
++
)
{
{
const
ContentAttribsInfo
&
rInf
=
aPrevAttribs
[
nPara
-
aESel
.
nStartPara
]
;
const
ContentAttribsInfo
&
rInf
=
*
aPrevAttribs
[
nPara
-
aESel
.
nStartPara
].
get
()
;
// first the paragraph attributes ...
// first the paragraph attributes ...
pEE
->
SetParaAttribsOnly
(
nPara
,
rInf
.
GetPrevParaAttribs
());
pEE
->
SetParaAttribsOnly
(
nPara
,
rInf
.
GetPrevParaAttribs
());
...
@@ -568,7 +568,7 @@ void EditUndoSetAttribs::Redo()
...
@@ -568,7 +568,7 @@ void EditUndoSetAttribs::Redo()
void
EditUndoSetAttribs
::
AppendContentInfo
(
ContentAttribsInfo
*
pNew
)
void
EditUndoSetAttribs
::
AppendContentInfo
(
ContentAttribsInfo
*
pNew
)
{
{
aPrevAttribs
.
push_back
(
pNew
);
aPrevAttribs
.
push_back
(
std
::
unique_ptr
<
ContentAttribsInfo
>
(
pNew
)
);
}
}
void
EditUndoSetAttribs
::
ImpSetSelection
(
EditView
*
/*pView*/
)
void
EditUndoSetAttribs
::
ImpSetSelection
(
EditView
*
/*pView*/
)
...
...
editeng/source/editeng/editundo.hxx
Dosyayı görüntüle @
5f86c1f3
...
@@ -23,7 +23,8 @@
...
@@ -23,7 +23,8 @@
#include <editdoc.hxx>
#include <editdoc.hxx>
#include <editeng/editund2.hxx>
#include <editeng/editund2.hxx>
#include <editeng/editdata.hxx>
#include <editeng/editdata.hxx>
#include <boost/ptr_container/ptr_vector.hpp>
#include <vector>
#include <memory>
class
EditEngine
;
class
EditEngine
;
class
EditView
;
class
EditView
;
...
@@ -212,7 +213,7 @@ public:
...
@@ -212,7 +213,7 @@ public:
class
EditUndoSetAttribs
:
public
EditUndo
class
EditUndoSetAttribs
:
public
EditUndo
{
{
private
:
private
:
typedef
boost
::
ptr_vector
<
ContentAttribsInfo
>
InfoArrayType
;
typedef
std
::
vector
<
std
::
unique_ptr
<
ContentAttribsInfo
>
>
InfoArrayType
;
ESelection
aESel
;
ESelection
aESel
;
SfxItemSet
aNewAttribs
;
SfxItemSet
aNewAttribs
;
...
...
editeng/source/editeng/impedit.hxx
Dosyayı görüntüle @
5f86c1f3
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
#include <LibreOfficeKit/LibreOfficeKitTypes.h>
#include <LibreOfficeKit/LibreOfficeKitTypes.h>
#include <boost/noncopyable.hpp>
#include <boost/noncopyable.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#define DEL_LEFT 1
#define DEL_LEFT 1
#define DEL_RIGHT 2
#define DEL_RIGHT 2
...
...
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