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
17afe4ce
Kaydet (Commit)
17afe4ce
authored
Agu 15, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Agu 16, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert maPages field in SdrModel class from Container to std::vector
Change-Id: Id36c3c414429d8f0e16f8e479f9946511b1e377f
üst
ed04025e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
svdmodel.hxx
svx/inc/svx/svdmodel.hxx
+1
-2
svdmodel.cxx
svx/source/svdraw/svdmodel.cxx
+18
-17
No files found.
svx/inc/svx/svdmodel.hxx
Dosyayı görüntüle @
17afe4ce
...
...
@@ -33,7 +33,6 @@
#include <cppuhelper/weakref.hxx>
#include <sot/storage.hxx>
#include <tools/link.hxx>
#include <tools/contnr.hxx>
#include <tools/weakbase.hxx>
#include <vcl/mapmod.hxx>
#include <svl/brdcst.hxx>
...
...
@@ -165,7 +164,7 @@ class SVX_DLLPUBLIC SdrModel : public SfxBroadcaster, public tools::WeakBase< Sd
protected
:
DateTime
aReadDate
;
// Datum des Einstreamens
std
::
vector
<
SdrPage
*>
maMaPag
;
// StammSeiten (Masterpages)
Container
maPages
;
std
::
vector
<
SdrPage
*>
maPages
;
Link
aUndoLink
;
// Link fuer einen NotifyUndo-Handler
Link
aIOProgressLink
;
String
aTablePath
;
...
...
svx/source/svdraw/svdmodel.cxx
Dosyayı görüntüle @
17afe4ce
...
...
@@ -227,7 +227,7 @@ void SdrModel::ImpCtor(SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* _pEmbe
SdrModel
::
SdrModel
(
SfxItemPool
*
pPool
,
::
comphelper
::
IEmbeddedHelper
*
pPers
,
sal_Bool
bLoadRefCounts
)
:
aReadDate
(
DateTime
::
EMPTY
),
maMaPag
(),
maPages
(
1024
,
32
,
32
)
maPages
()
{
#ifdef TIMELOG
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLog
,
"svx"
,
"aw93748"
,
"SdrModel::SdrModel(...)"
);
...
...
@@ -240,7 +240,7 @@ SdrModel::SdrModel(SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* pPers, sal
SdrModel
::
SdrModel
(
const
String
&
rPath
,
SfxItemPool
*
pPool
,
::
comphelper
::
IEmbeddedHelper
*
pPers
,
sal_Bool
bLoadRefCounts
)
:
aReadDate
(
DateTime
::
EMPTY
),
maMaPag
(),
maPages
(
1024
,
32
,
32
),
maPages
(),
aTablePath
(
rPath
)
{
#ifdef TIMELOG
...
...
@@ -254,7 +254,7 @@ SdrModel::SdrModel(const String& rPath, SfxItemPool* pPool, ::comphelper::IEmbed
SdrModel
::
SdrModel
(
SfxItemPool
*
pPool
,
::
comphelper
::
IEmbeddedHelper
*
pPers
,
bool
bUseExtColorTable
,
sal_Bool
bLoadRefCounts
)
:
aReadDate
(
DateTime
::
EMPTY
),
maMaPag
(),
maPages
(
1024
,
32
,
32
)
maPages
()
{
#ifdef TIMELOG
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLog
,
"svx"
,
"aw93748"
,
"SdrModel::SdrModel(...)"
);
...
...
@@ -267,7 +267,7 @@ SdrModel::SdrModel(SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* pPers, boo
SdrModel
::
SdrModel
(
const
String
&
rPath
,
SfxItemPool
*
pPool
,
::
comphelper
::
IEmbeddedHelper
*
pPers
,
bool
bUseExtColorTable
,
sal_Bool
bLoadRefCounts
)
:
aReadDate
(
DateTime
::
EMPTY
),
maMaPag
(),
maPages
(
1024
,
32
,
32
),
maPages
(),
aTablePath
(
rPath
)
{
#ifdef TIMELOG
...
...
@@ -283,7 +283,7 @@ SdrModel::SdrModel(const SdrModel& /*rSrcModel*/):
tools
::
WeakBase
<
SdrModel
>
(),
aReadDate
(
DateTime
::
EMPTY
),
maMaPag
(),
maPages
(
1024
,
32
,
32
)
maPages
()
{
#ifdef TIMELOG
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLog
,
"svx"
,
"aw93748"
,
"SdrModel::SdrModel(...)"
);
...
...
@@ -732,7 +732,7 @@ void SdrModel::ClearModel(sal_Bool bCalledFromDestructor)
{
DeletePage
(
(
sal_uInt16
)
i
);
}
maPages
.
C
lear
();
maPages
.
c
lear
();
PageListChanged
();
// delete all Masterpages
...
...
@@ -1427,11 +1427,10 @@ void SdrModel::RecalcPageNums(bool bMaster)
}
else
{
Container
&
rPL
=
maPages
;
sal_uInt16
nAnz
=
sal_uInt16
(
rPL
.
Count
());
sal_uInt16
nAnz
=
sal_uInt16
(
maPages
.
size
());
sal_uInt16
i
;
for
(
i
=
0
;
i
<
nAnz
;
i
++
)
{
SdrPage
*
pPg
=
(
SdrPage
*
)(
rPL
.
GetObject
(
i
))
;
SdrPage
*
pPg
=
maPages
[
i
]
;
pPg
->
SetPageNum
(
i
);
}
bPagNumsDirty
=
sal_False
;
...
...
@@ -1442,7 +1441,7 @@ void SdrModel::InsertPage(SdrPage* pPage, sal_uInt16 nPos)
{
sal_uInt16
nAnz
=
GetPageCount
();
if
(
nPos
>
nAnz
)
nPos
=
nAnz
;
maPages
.
Insert
(
pPage
,
nPos
);
maPages
.
insert
(
maPages
.
begin
()
+
nPos
,
pPage
);
PageListChanged
();
pPage
->
SetInserted
(
sal_True
);
pPage
->
SetPageNum
(
nPos
);
...
...
@@ -1462,7 +1461,8 @@ void SdrModel::DeletePage(sal_uInt16 nPgNum)
SdrPage
*
SdrModel
::
RemovePage
(
sal_uInt16
nPgNum
)
{
SdrPage
*
pPg
=
(
SdrPage
*
)
maPages
.
Remove
(
nPgNum
);
SdrPage
*
pPg
=
maPages
[
nPgNum
];
maPages
.
erase
(
maPages
.
begin
()
+
nPgNum
);
PageListChanged
();
if
(
pPg
!=
NULL
)
{
pPg
->
SetInserted
(
sal_False
);
...
...
@@ -1477,7 +1477,8 @@ SdrPage* SdrModel::RemovePage(sal_uInt16 nPgNum)
void
SdrModel
::
MovePage
(
sal_uInt16
nPgNum
,
sal_uInt16
nNewPos
)
{
SdrPage
*
pPg
=
(
SdrPage
*
)
maPages
.
Remove
(
nPgNum
);
SdrPage
*
pPg
=
maPages
[
nPgNum
];
maPages
.
erase
(
maPages
.
begin
()
+
nPgNum
);
PageListChanged
();
if
(
pPg
!=
NULL
)
{
pPg
->
SetInserted
(
sal_False
);
...
...
@@ -1986,19 +1987,19 @@ SvxNumType SdrModel::GetPageNumType() const
const
SdrPage
*
SdrModel
::
GetPage
(
sal_uInt16
nPgNum
)
const
{
DBG_ASSERT
(
nPgNum
<
maPages
.
Count
(),
"SdrModel::GetPage: Access out of range (!)"
);
return
(
SdrPage
*
)(
maPages
.
GetObject
(
nPgNum
))
;
DBG_ASSERT
(
nPgNum
<
maPages
.
size
(),
"SdrModel::GetPage: Access out of range (!)"
);
return
maPages
[
nPgNum
]
;
}
SdrPage
*
SdrModel
::
GetPage
(
sal_uInt16
nPgNum
)
{
DBG_ASSERT
(
nPgNum
<
maPages
.
Count
(),
"SdrModel::GetPage: Access out of range (!)"
);
return
(
SdrPage
*
)(
maPages
.
GetObject
(
nPgNum
))
;
DBG_ASSERT
(
nPgNum
<
maPages
.
size
(),
"SdrModel::GetPage: Access out of range (!)"
);
return
maPages
[
nPgNum
]
;
}
sal_uInt16
SdrModel
::
GetPageCount
()
const
{
return
sal_uInt16
(
maPages
.
Count
());
return
sal_uInt16
(
maPages
.
size
());
}
void
SdrModel
::
PageListChanged
()
...
...
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