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
cef8eb1f
Kaydet (Commit)
cef8eb1f
authored
Tem 10, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use initializer properly and remove Init().
Change-Id: Ic343ff4ddd51a933ba97971d5a1197f5a25ef772
üst
d8780381
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
40 deletions
+30
-40
svdoole2.hxx
include/svx/svdoole2.hxx
+4
-5
svdoole2.cxx
svx/source/svdraw/svdoole2.cxx
+26
-35
No files found.
include/svx/svdoole2.hxx
Dosyayı görüntüle @
cef8eb1f
...
@@ -59,6 +59,8 @@ protected:
...
@@ -59,6 +59,8 @@ protected:
virtual
sdr
::
properties
::
BaseProperties
*
CreateObjectSpecificProperties
()
SAL_OVERRIDE
;
virtual
sdr
::
properties
::
BaseProperties
*
CreateObjectSpecificProperties
()
SAL_OVERRIDE
;
private
:
private
:
SdrOle2ObjImpl
*
mpImpl
;
svt
::
EmbeddedObjectRef
xObjRef
;
svt
::
EmbeddedObjectRef
xObjRef
;
Graphic
*
pGraphic
;
Graphic
*
pGraphic
;
OUString
aProgName
;
OUString
aProgName
;
...
@@ -71,21 +73,18 @@ private:
...
@@ -71,21 +73,18 @@ private:
mutable
bool
m_bTypeAsked
:
1
;
mutable
bool
m_bTypeAsked
:
1
;
mutable
bool
m_bChart
:
1
;
mutable
bool
m_bChart
:
1
;
SdrOle2ObjImpl
*
mpImpl
;
SvxUnoShapeModifyListener
*
pModifyListener
;
SvxUnoShapeModifyListener
*
pModifyListener
;
private
:
private
:
void
ImpSetVisAreaSize
();
void
ImpSetVisAreaSize
();
void
Init
();
public
:
public
:
OUString
GetStyleString
();
OUString
GetStyleString
();
TYPEINFO_OVERRIDE
();
TYPEINFO_OVERRIDE
();
SdrOle2Obj
(
bool
bFrame_
=
false
);
SdrOle2Obj
(
bool
bFrame_
=
false
);
SdrOle2Obj
(
const
svt
::
EmbeddedObjectRef
&
rNewObjRef
,
const
OUString
&
rNewObjName
,
const
Rectangle
&
rNewRect
,
bool
bFrame_
=
false
);
SdrOle2Obj
(
const
svt
::
EmbeddedObjectRef
&
rNewObjRef
,
const
OUString
&
rNewObjName
,
const
Rectangle
&
rNewRect
,
bool
bFrame_
=
false
);
virtual
~
SdrOle2Obj
();
virtual
~
SdrOle2Obj
();
// access to svt::EmbeddedObjectRef
// access to svt::EmbeddedObjectRef
...
...
svx/source/svdraw/svdoole2.cxx
Dosyayı görüntüle @
cef8eb1f
...
@@ -734,29 +734,35 @@ sdr::contact::ViewContact* SdrOle2Obj::CreateObjectSpecificViewContact()
...
@@ -734,29 +734,35 @@ sdr::contact::ViewContact* SdrOle2Obj::CreateObjectSpecificViewContact()
TYPEINIT1
(
SdrOle2Obj
,
SdrRectObj
);
TYPEINIT1
(
SdrOle2Obj
,
SdrRectObj
);
SdrOle2Obj
::
SdrOle2Obj
(
bool
bFrame_
)
:
m_bTypeAsked
(
false
)
,
m_bChart
(
false
)
{
bInDestruction
=
false
;
mbSuppressSetVisAreaSize
=
false
;
Init
();
bFrame
=
bFrame_
;
}
SdrOle2Obj
::
SdrOle2Obj
(
bool
bFrame_
)
:
mpImpl
(
new
SdrOle2ObjImpl
),
SdrOle2Obj
::
SdrOle2Obj
(
const
svt
::
EmbeddedObjectRef
&
rNewObjRef
,
const
OUString
&
rNewObjName
,
const
Rectangle
&
rNewRect
,
bool
bFrame_
)
pGraphic
(
NULL
),
:
SdrRectObj
(
rNewRect
)
bFrame
(
bFrame_
),
,
xObjRef
(
rNewObjRef
)
bInDestruction
(
false
),
,
m_bTypeAsked
(
false
)
mbSuppressSetVisAreaSize
(
false
),
,
m_bChart
(
false
)
m_bTypeAsked
(
false
),
{
m_bChart
(
false
),
bInDestruction
=
false
;
pModifyListener
(
NULL
)
mbSuppressSetVisAreaSize
=
false
;
{
Init
();
xObjRef
.
Lock
(
true
);
}
SdrOle2Obj
::
SdrOle2Obj
(
const
svt
::
EmbeddedObjectRef
&
rNewObjRef
,
const
OUString
&
rNewObjName
,
const
Rectangle
&
rNewRect
,
bool
bFrame_
)
:
SdrRectObj
(
rNewRect
),
mpImpl
(
new
SdrOle2ObjImpl
),
xObjRef
(
rNewObjRef
),
pGraphic
(
NULL
),
bFrame
(
bFrame_
),
bInDestruction
(
false
),
mbSuppressSetVisAreaSize
(
false
),
m_bTypeAsked
(
false
),
m_bChart
(
false
),
pModifyListener
(
NULL
)
{
xObjRef
.
Lock
(
true
);
mpImpl
->
aPersistName
=
rNewObjName
;
mpImpl
->
aPersistName
=
rNewObjName
;
bFrame
=
bFrame_
;
if
(
xObjRef
.
is
()
&&
(
xObjRef
->
getStatus
(
GetAspect
()
)
&
embed
::
EmbedMisc
::
EMBED_NEVERRESIZE
)
)
if
(
xObjRef
.
is
()
&&
(
xObjRef
->
getStatus
(
GetAspect
()
)
&
embed
::
EmbedMisc
::
EMBED_NEVERRESIZE
)
)
SetResizeProtect
(
true
);
SetResizeProtect
(
true
);
...
@@ -765,21 +771,6 @@ SdrOle2Obj::SdrOle2Obj( const svt::EmbeddedObjectRef& rNewObjRef, const OUStrin
...
@@ -765,21 +771,6 @@ SdrOle2Obj::SdrOle2Obj( const svt::EmbeddedObjectRef& rNewObjRef, const OUStrin
SetClosedObj
(
!
ImplIsMathObj
(
xObjRef
.
GetObject
()
));
SetClosedObj
(
!
ImplIsMathObj
(
xObjRef
.
GetObject
()
));
}
}
void
SdrOle2Obj
::
Init
()
{
mpImpl
=
new
SdrOle2ObjImpl
;
pModifyListener
=
NULL
;
pGraphic
=
NULL
;
mpImpl
->
pGraphicObject
=
NULL
;
mpImpl
->
pLightClient
=
0
;
xObjRef
.
Lock
(
true
);
}
OUString
SdrOle2Obj
::
GetStyleString
()
OUString
SdrOle2Obj
::
GetStyleString
()
{
{
OUString
strStyle
;
OUString
strStyle
;
...
...
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