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
eda334eb
Kaydet (Commit)
eda334eb
authored
Tem 10, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move Graphic member to the impl class.
Change-Id: Iee58a6c9b7081a2aa00f6f050574a5827840286b
üst
4ce9e4a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
21 deletions
+22
-21
svdoole2.hxx
include/svx/svdoole2.hxx
+0
-2
svdoole2.cxx
svx/source/svdraw/svdoole2.cxx
+22
-19
No files found.
include/svx/svdoole2.hxx
Dosyayı görüntüle @
eda334eb
...
...
@@ -39,7 +39,6 @@ namespace frame { class XModel; }
namespace
svt
{
class
EmbeddedObjectRef
;
}
class
Graphic
;
class
SvxUnoShapeModifyListener
;
class
SdrOle2ObjImpl
;
...
...
@@ -66,7 +65,6 @@ protected:
private
:
SdrOle2ObjImpl
*
mpImpl
;
Graphic
*
pGraphic
;
OUString
aProgName
;
// Due to compatibility at SdrTextObj for now
...
...
svx/source/svdraw/svdoole2.cxx
Dosyayı görüntüle @
eda334eb
...
...
@@ -670,6 +670,7 @@ class SdrOle2ObjImpl
public
:
svt
::
EmbeddedObjectRef
mxObjRef
;
Graphic
*
mpGraphic
;
// TODO/LATER: do we really need this pointer?
GraphicObject
*
pGraphicObject
;
OUString
aPersistName
;
// name of object in persist
...
...
@@ -683,6 +684,7 @@ public:
OUString
maLinkURL
;
SdrOle2ObjImpl
()
:
mpGraphic
(
NULL
),
pGraphicObject
(
NULL
),
pLightClient
(
NULL
),
mbLoadingOLEObjectFailed
(
false
),
...
...
@@ -694,6 +696,7 @@ public:
SdrOle2ObjImpl
(
const
svt
::
EmbeddedObjectRef
&
rObjRef
)
:
mxObjRef
(
rObjRef
),
mpGraphic
(
NULL
),
pGraphicObject
(
NULL
),
pLightClient
(
NULL
),
mbLoadingOLEObjectFailed
(
false
),
...
...
@@ -702,6 +705,12 @@ public:
{
mxObjRef
.
Lock
(
true
);
}
~
SdrOle2ObjImpl
()
{
delete
mpGraphic
;
delete
pGraphicObject
;
}
};
...
...
@@ -750,7 +759,6 @@ TYPEINIT1(SdrOle2Obj,SdrRectObj);
SdrOle2Obj
::
SdrOle2Obj
(
bool
bFrame_
)
:
mpImpl
(
new
SdrOle2ObjImpl
),
pGraphic
(
NULL
),
bFrame
(
bFrame_
),
bInDestruction
(
false
),
mbSuppressSetVisAreaSize
(
false
),
...
...
@@ -763,7 +771,6 @@ SdrOle2Obj::SdrOle2Obj( bool bFrame_ ) :
SdrOle2Obj
::
SdrOle2Obj
(
const
svt
::
EmbeddedObjectRef
&
rNewObjRef
,
const
OUString
&
rNewObjName
,
const
Rectangle
&
rNewRect
,
bool
bFrame_
)
:
SdrRectObj
(
rNewRect
),
mpImpl
(
new
SdrOle2ObjImpl
(
rNewObjRef
)),
pGraphic
(
NULL
),
bFrame
(
bFrame_
),
bInDestruction
(
false
),
mbSuppressSetVisAreaSize
(
false
),
...
...
@@ -799,10 +806,6 @@ SdrOle2Obj::~SdrOle2Obj()
if
(
mpImpl
->
mbConnected
)
Disconnect
();
delete
pGraphic
;
delete
mpImpl
->
pGraphicObject
;
if
(
pModifyListener
)
{
pModifyListener
->
invalidate
();
...
...
@@ -848,18 +851,18 @@ bool SdrOle2Obj::isUiActive() const
void
SdrOle2Obj
::
SetGraphic_Impl
(
const
Graphic
*
pGrf
)
{
if
(
pGraphic
)
if
(
mpImpl
->
mpGraphic
)
{
delete
pGraphic
;
pGraphic
=
NULL
;
delete
mpImpl
->
m
pGraphic
;
mpImpl
->
m
pGraphic
=
NULL
;
delete
mpImpl
->
pGraphicObject
;
mpImpl
->
pGraphicObject
=
NULL
;
}
if
(
pGrf
!=
NULL
)
if
(
pGrf
)
{
pGraphic
=
new
Graphic
(
*
pGrf
);
mpImpl
->
pGraphicObject
=
new
GraphicObject
(
*
pGraphic
);
mpImpl
->
m
pGraphic
=
new
Graphic
(
*
pGrf
);
mpImpl
->
pGraphicObject
=
new
GraphicObject
(
*
mpImpl
->
mpGraphic
);
}
SetChanged
();
...
...
@@ -1510,7 +1513,7 @@ void SdrOle2Obj::SetObjRef( const com::sun::star::uno::Reference < com::sun::sta
if
(
mpImpl
->
mxObjRef
.
is
()
)
{
DELETEZ
(
pGraphic
);
DELETEZ
(
mpImpl
->
mpGraphic
);
if
(
(
mpImpl
->
mxObjRef
->
getStatus
(
GetAspect
()
)
&
embed
::
EmbedMisc
::
EMBED_NEVERRESIZE
)
)
SetResizeProtect
(
true
);
...
...
@@ -1666,16 +1669,16 @@ SdrOle2Obj& SdrOle2Obj::assignFrom(
aProgName
=
rOle2Obj
.
aProgName
;
bFrame
=
rOle2Obj
.
bFrame
;
if
(
rOle2Obj
.
pGraphic
)
if
(
rOle2Obj
.
mpImpl
->
mpGraphic
)
{
if
(
pGraphic
)
if
(
mpImpl
->
mpGraphic
)
{
delete
pGraphic
;
delete
mpImpl
->
m
pGraphic
;
delete
mpImpl
->
pGraphicObject
;
}
pGraphic
=
new
Graphic
(
*
rOle2Obj
.
pGraphic
);
mpImpl
->
pGraphicObject
=
new
GraphicObject
(
*
pGraphic
);
mpImpl
->
mpGraphic
=
new
Graphic
(
*
rOle2Obj
.
mpImpl
->
mpGraphic
);
mpImpl
->
pGraphicObject
=
new
GraphicObject
(
*
mpImpl
->
mpGraphic
);
}
if
(
pModel
&&
rObj
.
GetModel
()
&&
!
IsEmptyPresObj
()
)
...
...
@@ -1905,7 +1908,7 @@ const Graphic* SdrOle2Obj::GetGraphic() const
{
if
(
mpImpl
->
mxObjRef
.
is
()
)
return
mpImpl
->
mxObjRef
.
GetGraphic
();
return
pGraphic
;
return
mpImpl
->
m
pGraphic
;
}
void
SdrOle2Obj
::
GetNewReplacement
()
...
...
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