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
e00aa45d
Kaydet (Commit)
e00aa45d
authored
Agu 18, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert SdrObjListKind to scoped enum
Change-Id: I37577e43ad6b9f0843b52cb3667f654abb335677
üst
5252d395
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
19 deletions
+20
-19
svdtypes.hxx
include/svx/svdtypes.hxx
+9
-8
obj3d.cxx
svx/source/engine3d/obj3d.cxx
+1
-1
svdobj.cxx
svx/source/svdraw/svdobj.cxx
+2
-2
svdogrp.cxx
svx/source/svdraw/svdogrp.cxx
+1
-1
svdpage.cxx
svx/source/svdraw/svdpage.cxx
+4
-4
unoshape.cxx
svx/source/unodraw/unoshape.cxx
+3
-3
No files found.
include/svx/svdtypes.hxx
Dosyayı görüntüle @
e00aa45d
...
...
@@ -69,14 +69,15 @@ typedef sal_uInt8 SdrLayerID;
/*
* Page + ObjList
*/
enum
SdrObjListKind
{
SDROBJLIST_UNKNOWN
=
0x00
,
// reine Objektlisten:
SDROBJLIST_GROUPOBJ
=
0x01
,
// Here is space for 12 more types of lists
// Pages:
SDROBJLIST_DRAWPAGE
=
0x10
,
SDROBJLIST_MASTERPAGE
=
0x11
// Here is space for 8 more types of pages
enum
class
SdrObjListKind
{
Unknown
=
0x00
,
// reine Objektlisten:
GroupObj
=
0x01
,
// Here is space for 12 more types of lists
// Pages:
DrawPage
=
0x10
,
MasterPage
=
0x11
// Here is space for 8 more types of pages
};
// reserved for Surrogate
/*
...
...
svx/source/engine3d/obj3d.cxx
Dosyayı görüntüle @
e00aa45d
...
...
@@ -187,7 +187,7 @@ E3dObject::E3dObject()
{
bIs3DObj
=
true
;
maSubList
.
SetOwnerObj
(
this
);
maSubList
.
SetListKind
(
S
DROBJLIST_GROUPOBJ
);
maSubList
.
SetListKind
(
S
drObjListKind
::
GroupObj
);
bClosedObj
=
true
;
}
...
...
svx/source/svdraw/svdobj.cxx
Dosyayı görüntüle @
e00aa45d
...
...
@@ -2737,7 +2737,7 @@ void SdrObject::SendUserCall(SdrUserCallType eUserCall, const Rectangle& rBoundR
{
SdrObject
*
pGroup
=
nullptr
;
if
(
pObjList
&&
pObjList
->
GetListKind
()
==
S
DROBJLIST_GROUPOBJ
)
if
(
pObjList
&&
pObjList
->
GetListKind
()
==
S
drObjListKind
::
GroupObj
)
pGroup
=
pObjList
->
GetOwnerObj
();
if
(
pUserCall
)
...
...
@@ -2789,7 +2789,7 @@ void SdrObject::SendUserCall(SdrUserCallType eUserCall, const Rectangle& rBoundR
}
if
(
pGroup
->
GetObjList
()
&&
pGroup
->
GetObjList
()
->
GetListKind
()
==
S
DROBJLIST_GROUPOBJ
&&
pGroup
->
GetObjList
()
->
GetListKind
()
==
S
drObjListKind
::
GroupObj
&&
pGroup
!=
pObjList
->
GetOwnerObj
()
)
pGroup
=
pObjList
->
GetOwnerObj
();
else
...
...
svx/source/svdraw/svdogrp.cxx
Dosyayı görüntüle @
e00aa45d
...
...
@@ -71,7 +71,7 @@ SdrObjGroup::SdrObjGroup()
{
pSub
=
new
SdrObjList
(
nullptr
,
nullptr
);
pSub
->
SetOwnerObj
(
this
);
pSub
->
SetListKind
(
S
DROBJLIST_GROUPOBJ
);
pSub
->
SetListKind
(
S
drObjListKind
::
GroupObj
);
bClosedObj
=
false
;
}
...
...
svx/source/svdraw/svdpage.cxx
Dosyayı görüntüle @
e00aa45d
...
...
@@ -83,7 +83,7 @@ SdrObjList::SdrObjList(SdrModel* pNewModel, SdrPage* pNewPage, SdrObjList* pNewU
bObjOrdNumsDirty
=
false
;
bRectsDirty
=
false
;
pOwnerObj
=
nullptr
;
eListKind
=
S
DROBJLIST_UNKNOWN
;
eListKind
=
S
drObjListKind
::
Unknown
;
}
SdrObjList
::
SdrObjList
()
:
...
...
@@ -98,7 +98,7 @@ SdrObjList::SdrObjList():
bObjOrdNumsDirty
=
false
;
bRectsDirty
=
false
;
pOwnerObj
=
nullptr
;
eListKind
=
S
DROBJLIST_UNKNOWN
;
eListKind
=
S
drObjListKind
::
Unknown
;
}
SdrObjList
::~
SdrObjList
()
...
...
@@ -1189,7 +1189,7 @@ SdrPage::SdrPage(SdrModel& rNewModel, bool bMasterPage)
mbPageBorderOnlyLeftRight
(
false
)
{
aPrefVisiLayers
.
SetAll
();
eListKind
=
(
bMasterPage
)
?
S
DROBJLIST_MASTERPAGE
:
SDROBJLIST_DRAWPAGE
;
eListKind
=
(
bMasterPage
)
?
S
drObjListKind
::
MasterPage
:
SdrObjListKind
::
DrawPage
;
mpSdrPageProperties
.
reset
(
new
SdrPageProperties
(
*
this
));
}
...
...
@@ -1307,7 +1307,7 @@ void SdrPage::lateInit(const SdrPage& rSrcPage, SdrModel* const pNewModel)
// be careful and correct eListKind, a member of SdrObjList which
// will be changed by the SdrObjList::lateInit before...
eListKind
=
(
mbMaster
)
?
S
DROBJLIST_MASTERPAGE
:
SDROBJLIST_DRAWPAGE
;
eListKind
=
(
mbMaster
)
?
S
drObjListKind
::
MasterPage
:
SdrObjListKind
::
DrawPage
;
}
SdrPage
*
SdrPage
::
Clone
()
const
...
...
svx/source/unodraw/unoshape.cxx
Dosyayı görüntüle @
e00aa45d
...
...
@@ -3748,14 +3748,14 @@ uno::Reference<uno::XInterface> SAL_CALL SvxShape::getParent()
switch
(
pObjList
->
GetListKind
())
{
case
S
DROBJLIST_GROUPOBJ
:
case
S
drObjListKind
:
:
GroupObj
:
if
(
SdrObjGroup
*
pGroup
=
dynamic_cast
<
SdrObjGroup
*>
(
pObjList
->
GetOwnerObj
()))
return
pGroup
->
getUnoShape
();
else
if
(
E3dScene
*
pScene
=
dynamic_cast
<
E3dScene
*>
(
pObjList
->
GetOwnerObj
()))
return
pScene
->
getUnoShape
();
break
;
case
S
DROBJLIST_DRAWPAGE
:
case
S
DROBJLIST_MASTERPAGE
:
case
S
drObjListKind
:
:
DrawPage
:
case
S
drObjListKind
:
:
MasterPage
:
return
dynamic_cast
<
SdrPage
&>
(
*
pObjList
).
getUnoPage
();
default
:
OSL_FAIL
(
"SvxShape::getParent( ): unexpected SdrObjListKind"
);
...
...
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