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
b9daf7ca
Kaydet (Commit)
b9daf7ca
authored
Haz 12, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#735840 Unchecked dynamic_cast
Change-Id: I3c772ec30360103f569b34e7c83f65b469eb5be8
üst
7b832d54
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
drawdoc.hxx
sd/inc/drawdoc.hxx
+5
-2
drawdoc.cxx
sd/source/core/drawdoc.cxx
+6
-1
SlsClipboard.cxx
sd/source/ui/slidesorter/controller/SlsClipboard.cxx
+2
-3
No files found.
sd/inc/drawdoc.hxx
Dosyayı görüntüle @
b9daf7ca
...
@@ -212,9 +212,12 @@ public:
...
@@ -212,9 +212,12 @@ public:
SdDrawDocument
(
DocumentType
eType
,
SfxObjectShell
*
pDocSh
);
SdDrawDocument
(
DocumentType
eType
,
SfxObjectShell
*
pDocSh
);
virtual
~
SdDrawDocument
();
virtual
~
SdDrawDocument
();
virtual
SdrModel
*
AllocModel
()
const
SAL_OVERRIDE
;
SdDrawDocument
*
AllocSdDrawDocument
()
const
;
virtual
SdrPage
*
AllocPage
(
bool
bMasterPage
)
SAL_OVERRIDE
;
virtual
SdrModel
*
AllocModel
()
const
SAL_OVERRIDE
;
//forwards to AllocSdDrawDocument
SdPage
*
AllocSdPage
(
bool
bMasterPage
);
SdPage
*
AllocSdPage
(
bool
bMasterPage
);
virtual
SdrPage
*
AllocPage
(
bool
bMasterPage
)
SAL_OVERRIDE
;
//forwards to AllocSdPage
virtual
bool
IsReadOnly
()
const
SAL_OVERRIDE
;
virtual
bool
IsReadOnly
()
const
SAL_OVERRIDE
;
virtual
void
SetChanged
(
bool
bFlag
=
true
)
SAL_OVERRIDE
;
virtual
void
SetChanged
(
bool
bFlag
=
true
)
SAL_OVERRIDE
;
...
...
sd/source/core/drawdoc.cxx
Dosyayı görüntüle @
b9daf7ca
...
@@ -434,10 +434,15 @@ SdDrawDocument::~SdDrawDocument()
...
@@ -434,10 +434,15 @@ SdDrawDocument::~SdDrawDocument()
mpCharClass
=
NULL
;
mpCharClass
=
NULL
;
}
}
SdrModel
*
SdDrawDocument
::
AllocModel
()
const
{
return
AllocSdDrawDocument
();
}
// This method creates a new document (SdDrawDocument) and returns a pointer to
// This method creates a new document (SdDrawDocument) and returns a pointer to
// said document. The drawing engine uses this method to put the document (or
// said document. The drawing engine uses this method to put the document (or
// parts of it) into the clipboard/DragServer.
// parts of it) into the clipboard/DragServer.
Sd
rModel
*
SdDrawDocument
::
AllocModel
()
const
Sd
DrawDocument
*
SdDrawDocument
::
AllocSdDrawDocument
()
const
{
{
SdDrawDocument
*
pNewModel
=
NULL
;
SdDrawDocument
*
pNewModel
=
NULL
;
...
...
sd/source/ui/slidesorter/controller/SlsClipboard.cxx
Dosyayı görüntüle @
b9daf7ca
...
@@ -467,7 +467,7 @@ void Clipboard::CreateSlideTransferable (
...
@@ -467,7 +467,7 @@ void Clipboard::CreateSlideTransferable (
SD_MOD
()
->
pTransferClip
=
pTransferable
;
SD_MOD
()
->
pTransferClip
=
pTransferable
;
pDocument
->
CreatingDataObj
(
pTransferable
);
pDocument
->
CreatingDataObj
(
pTransferable
);
pTransferable
->
SetWorkDocument
(
dynamic_cast
<
SdDrawDocument
*>
(
pDocument
->
AllocModel
())
);
pTransferable
->
SetWorkDocument
(
pDocument
->
AllocSdDrawDocument
()
);
pDocument
->
CreatingDataObj
(
NULL
);
pDocument
->
CreatingDataObj
(
NULL
);
TransferableObjectDescriptor
aObjDesc
;
TransferableObjectDescriptor
aObjDesc
;
pTransferable
->
GetWorkDocument
()
->
GetDocSh
()
pTransferable
->
GetWorkDocument
()
->
GetDocSh
()
...
@@ -573,8 +573,7 @@ void Clipboard::CreateSlideTransferable (
...
@@ -573,8 +573,7 @@ void Clipboard::CreateSlideTransferable (
new
TransferableData
(
new
TransferableData
(
pSlideSorterViewShell
,
pSlideSorterViewShell
,
aRepresentatives
));
aRepresentatives
));
pTransferable
->
SetWorkDocument
(
dynamic_cast
<
SdDrawDocument
*>
(
pTransferable
->
SetWorkDocument
(
pTreeListBoxTransferable
->
GetSourceDoc
()
->
AllocSdDrawDocument
());
pTreeListBoxTransferable
->
GetSourceDoc
()
->
AllocModel
()));
// pTransferable->SetView(&mrSlideSorter.GetView());
// pTransferable->SetView(&mrSlideSorter.GetView());
// Set page bookmark list.
// Set page bookmark list.
...
...
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