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
b1b309c9
Kaydet (Commit)
b1b309c9
authored
Mar 29, 2012
tarafından
Rafael Dominguez
Kaydeden (comit)
Luboš Luňák
Nis 13, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace deprecated List for vector in SdTransferable.
üst
77f8397f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
14 deletions
+10
-14
sdxfer.cxx
sd/source/ui/app/sdxfer.cxx
+6
-10
sdxfer.hxx
sd/source/ui/inc/sdxfer.hxx
+4
-4
No files found.
sd/source/ui/app/sdxfer.cxx
Dosyayı görüntüle @
b1b309c9
...
...
@@ -142,9 +142,6 @@ SdTransferable::~SdTransferable()
ObjectReleased
();
for
(
void
*
p
=
maPageBookmarks
.
First
();
p
;
p
=
maPageBookmarks
.
Next
()
)
delete
static_cast
<
String
*
>
(
p
);
if
(
mbOwnView
)
delete
mpSdViewIntern
;
...
...
@@ -712,7 +709,7 @@ void SdTransferable::SetObjectDescriptor( const TransferableObjectDescriptor& rO
// -----------------------------------------------------------------------------
void
SdTransferable
::
SetPageBookmarks
(
const
List
&
rPageBookmarks
,
sal_Bool
bPersistent
)
void
SdTransferable
::
SetPageBookmarks
(
const
std
::
vector
<
rtl
::
OUString
>
&
rPageBookmarks
,
sal_Bool
bPersistent
)
{
if
(
mpSourceDoc
)
{
...
...
@@ -723,20 +720,19 @@ void SdTransferable::SetPageBookmarks( const List& rPageBookmarks, sal_Bool bPer
mpPageDocShell
=
NULL
;
for
(
void
*
p
=
maPageBookmarks
.
First
();
p
;
p
=
maPageBookmarks
.
Next
()
)
delete
static_cast
<
String
*
>
(
p
);
maPageBookmarks
.
clear
();
if
(
bPersistent
)
{
std
::
vector
<
rtl
::
OUString
>
aExchangeList
;
mpSdDrawDocument
->
CreateFirstPages
(
mpSourceDoc
);
mpSdDrawDocument
->
InsertBookmarkAsPage
(
const_cast
<
List
*
>
(
&
rPageBookmarks
),
NULL
,
sal_False
,
sal_True
,
1
,
sal_True
,
mpSourceDoc
->
GetDocSh
(),
sal_True
,
sal_True
,
sal_False
);
mpSdDrawDocument
->
InsertBookmarkAsPage
(
rPageBookmarks
,
aExchangeList
,
sal_False
,
sal_True
,
1
,
sal_True
,
mpSourceDoc
->
GetDocSh
(),
sal_True
,
sal_True
,
sal_False
);
}
else
{
mpPageDocShell
=
mpSourceDoc
->
GetDocSh
();
for
(
sal_uLong
i
=
0
;
i
<
rPageBookmarks
.
Count
();
i
++
)
maPageBookmarks
.
Insert
(
new
String
(
*
static_cast
<
String
*
>
(
rPageBookmarks
.
GetObject
(
i
)
)
),
LIST_APPEND
);
maPageBookmarks
=
rPageBookmarks
;
}
if
(
mpSdViewIntern
&&
mpSdDrawDocument
)
...
...
sd/source/ui/inc/sdxfer.hxx
Dosyayı görüntüle @
b1b309c9
...
...
@@ -76,10 +76,10 @@ public:
sal_Bool
HasSourceDoc
(
const
SdDrawDocument
*
pDoc
)
const
{
return
(
mpSourceDoc
==
pDoc
);
}
void
SetPageBookmarks
(
const
List
&
rPageBookmarks
,
sal_Bool
bPersistent
);
void
SetPageBookmarks
(
const
std
::
vector
<
rtl
::
OUString
>
&
rPageBookmarks
,
sal_Bool
bPersistent
);
sal_Bool
IsPageTransferable
()
const
{
return
mbPageTransferable
;
}
sal_Bool
HasPageBookmarks
()
const
{
return
(
mpPageDocShell
&&
(
maPageBookmarks
.
Count
()
>
0
)
);
}
const
List
&
GetPageBookmarks
()
const
{
return
maPageBookmarks
;
}
sal_Bool
HasPageBookmarks
()
const
{
return
(
mpPageDocShell
&&
(
!
maPageBookmarks
.
empty
()
)
);
}
const
std
::
vector
<
rtl
::
OUString
>&
GetPageBookmarks
()
const
{
return
maPageBookmarks
;
}
::
sd
::
DrawDocShell
*
GetPageDocShell
()
const
{
return
mpPageDocShell
;
}
sal_Bool
SetTableRTF
(
SdDrawDocument
*
,
const
::
com
::
sun
::
star
::
datatransfer
::
DataFlavor
&
);
...
...
@@ -104,7 +104,7 @@ private:
SfxObjectShellRef
maDocShellRef
;
::
sd
::
DrawDocShell
*
mpPageDocShell
;
List
maPageBookmarks
;
std
::
vector
<
rtl
::
OUString
>
maPageBookmarks
;
TransferableDataHelper
*
mpOLEDataHelper
;
TransferableObjectDescriptor
*
mpObjDesc
;
const
::
sd
::
View
*
mpSdView
;
...
...
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