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
8065e336
Kaydet (Commit)
8065e336
authored
Ock 09, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move the ImplRegisterObj outside ImplSetGraphicManager and rename it
Change-Id: I1eded3ee41787b9a3339e01cf6e1157724bba1a6
üst
f0ab4138
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
grfmgr.hxx
include/svtools/grfmgr.hxx
+1
-4
grfmgr.cxx
svtools/source/graphic/grfmgr.cxx
+9
-6
No files found.
include/svtools/grfmgr.hxx
Dosyayı görüntüle @
8065e336
...
...
@@ -202,10 +202,7 @@ private:
void
SVT_DLLPRIVATE
ImplConstruct
();
void
SVT_DLLPRIVATE
ImplAssignGraphicData
();
void
SVT_DLLPRIVATE
ImplSetGraphicManager
(
const
OString
*
pID
=
nullptr
,
const
GraphicObject
*
pCopyObj
=
nullptr
);
void
SVT_DLLPRIVATE
ImplEnsureGraphicManager
();
void
SVT_DLLPRIVATE
ImplAutoSwapIn
();
bool
SVT_DLLPRIVATE
ImplGetCropParams
(
OutputDevice
*
pOut
,
...
...
svtools/source/graphic/grfmgr.cxx
Dosyayı görüntüle @
8065e336
...
...
@@ -77,7 +77,8 @@ GraphicObject::GraphicObject() :
{
ImplConstruct
();
ImplAssignGraphicData
();
ImplSetGraphicManager
();
ImplEnsureGraphicManager
();
mpMgr
->
ImplRegisterObj
(
*
this
,
maGraphic
,
nullptr
,
nullptr
);
}
GraphicObject
::
GraphicObject
(
const
Graphic
&
rGraphic
)
:
...
...
@@ -87,7 +88,8 @@ GraphicObject::GraphicObject( const Graphic& rGraphic ) :
{
ImplConstruct
();
ImplAssignGraphicData
();
ImplSetGraphicManager
();
ImplEnsureGraphicManager
();
mpMgr
->
ImplRegisterObj
(
*
this
,
maGraphic
,
nullptr
,
nullptr
);
}
GraphicObject
::
GraphicObject
(
const
GraphicObject
&
rGraphicObj
)
:
...
...
@@ -98,7 +100,8 @@ GraphicObject::GraphicObject( const GraphicObject& rGraphicObj ) :
{
ImplConstruct
();
ImplAssignGraphicData
();
ImplSetGraphicManager
(
nullptr
,
&
rGraphicObj
);
ImplEnsureGraphicManager
();
mpMgr
->
ImplRegisterObj
(
*
this
,
maGraphic
,
nullptr
,
&
rGraphicObj
);
if
(
rGraphicObj
.
HasUserData
()
&&
rGraphicObj
.
IsSwappedOut
()
)
SetSwapState
();
}
...
...
@@ -112,7 +115,8 @@ GraphicObject::GraphicObject( const OString& rUniqueID ) :
// assign default properties
ImplAssignGraphicData
();
ImplSetGraphicManager
(
&
rUniqueID
);
ImplEnsureGraphicManager
();
mpMgr
->
ImplRegisterObj
(
*
this
,
maGraphic
,
&
rUniqueID
,
nullptr
);
// update properties
ImplAssignGraphicData
();
...
...
@@ -161,7 +165,7 @@ void GraphicObject::ImplAssignGraphicData()
ImplAfterDataChange
();
}
void
GraphicObject
::
Impl
SetGraphicManager
(
const
OString
*
pID
,
const
GraphicObject
*
pCopyObj
)
void
GraphicObject
::
Impl
EnsureGraphicManager
(
)
{
if
(
!
mpGlobalMgr
)
{
...
...
@@ -187,7 +191,6 @@ void GraphicObject::ImplSetGraphicManager(const OString* pID, const GraphicObjec
}
mpMgr
=
mpGlobalMgr
;
mpMgr
->
ImplRegisterObj
(
*
this
,
maGraphic
,
pID
,
pCopyObj
);
}
void
GraphicObject
::
ImplAutoSwapIn
()
...
...
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