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
8387ca68
Kaydet (Commit)
8387ca68
authored
Agu 24, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert CUBE constants to typed_flags_set
Change-Id: I5f0b0e73ab3b4c10fdc9ea2dc817ea2fda8149a7
üst
271bd352
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
8 deletions
+24
-8
cube3d.hxx
include/svx/cube3d.hxx
+19
-5
deflt3d.hxx
include/svx/deflt3d.hxx
+4
-2
deflt3d.cxx
svx/source/engine3d/deflt3d.cxx
+1
-1
No files found.
include/svx/cube3d.hxx
Dosyayı görüntüle @
8387ca68
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include <svx/obj3d.hxx>
#include <svx/obj3d.hxx>
#include <svx/svxdllapi.h>
#include <svx/svxdllapi.h>
#include <o3tl/typed_flags_set.hxx>
/*************************************************************************
/*************************************************************************
|*
|*
...
@@ -36,10 +37,23 @@
...
@@ -36,10 +37,23 @@
|*
|*
\************************************************************************/
\************************************************************************/
enum
{
CUBE_BOTTOM
=
0x0001
,
CUBE_BACK
=
0x0002
,
CUBE_LEFT
=
0x0004
,
enum
class
CubeFaces
CUBE_TOP
=
0x0008
,
CUBE_RIGHT
=
0x0010
,
CUBE_FRONT
=
0x0020
,
{
CUBE_FULL
=
0x003F
,
CUBE_OPEN_TB
=
0x0036
,
CUBE_OPEN_LR
=
0x002B
,
Bottom
=
0x0001
,
CUBE_OPEN_FB
=
0x001D
};
Back
=
0x0002
,
Left
=
0x0004
,
Top
=
0x0008
,
Right
=
0x0010
,
Front
=
0x0020
,
Full
=
Bottom
|
Back
|
Left
|
Top
|
Right
|
Front
,
OpenTopBottom
=
Back
|
Left
|
Right
|
Front
,
OpenLeftRight
=
Bottom
|
Back
|
Top
|
Front
,
OpenFrontBack
=
Bottom
|
Left
|
Top
|
Right
};
namespace
o3tl
{
template
<>
struct
typed_flags
<
CubeFaces
>
:
is_typed_flags
<
CubeFaces
,
0x003f
>
{};
}
class
SAL_WARN_UNUSED
SVX_DLLPUBLIC
E3dCubeObj
:
public
E3dCompoundObject
class
SAL_WARN_UNUSED
SVX_DLLPUBLIC
E3dCubeObj
:
public
E3dCompoundObject
{
{
...
@@ -47,7 +61,7 @@ private:
...
@@ -47,7 +61,7 @@ private:
// Parameter
// Parameter
basegfx
::
B3DPoint
aCubePos
;
basegfx
::
B3DPoint
aCubePos
;
basegfx
::
B3DVector
aCubeSize
;
basegfx
::
B3DVector
aCubeSize
;
sal_uInt16
nSideFlags
;
CubeFaces
nSideFlags
;
// BOOLeans
// BOOLeans
bool
bPosIsCenter
:
1
;
bool
bPosIsCenter
:
1
;
...
...
include/svx/deflt3d.hxx
Dosyayı görüntüle @
8387ca68
...
@@ -25,6 +25,8 @@
...
@@ -25,6 +25,8 @@
#include <svx/svxdllapi.h>
#include <svx/svxdllapi.h>
#include <tools/color.hxx>
#include <tools/color.hxx>
enum
class
CubeFaces
;
/*************************************************************************
/*************************************************************************
|*
|*
|* Class for managing the 3D default attributes
|* Class for managing the 3D default attributes
...
@@ -42,7 +44,7 @@ private:
...
@@ -42,7 +44,7 @@ private:
// Cube object
// Cube object
basegfx
::
B3DPoint
aDefaultCubePos
;
basegfx
::
B3DPoint
aDefaultCubePos
;
basegfx
::
B3DVector
aDefaultCubeSize
;
basegfx
::
B3DVector
aDefaultCubeSize
;
sal_uInt16
nDefaultCubeSideFlags
;
CubeFaces
nDefaultCubeSideFlags
;
bool
bDefaultCubePosIsCenter
;
bool
bDefaultCubePosIsCenter
;
// Sphere object
// Sphere object
...
@@ -81,7 +83,7 @@ public:
...
@@ -81,7 +83,7 @@ public:
// Cube object
// Cube object
const
basegfx
::
B3DPoint
&
GetDefaultCubePos
()
{
return
aDefaultCubePos
;
}
const
basegfx
::
B3DPoint
&
GetDefaultCubePos
()
{
return
aDefaultCubePos
;
}
const
basegfx
::
B3DVector
&
GetDefaultCubeSize
()
{
return
aDefaultCubeSize
;
}
const
basegfx
::
B3DVector
&
GetDefaultCubeSize
()
{
return
aDefaultCubeSize
;
}
sal_uInt16
GetDefaultCubeSideFlags
()
const
{
return
nDefaultCubeSideFlags
;
}
CubeFaces
GetDefaultCubeSideFlags
()
const
{
return
nDefaultCubeSideFlags
;
}
bool
GetDefaultCubePosIsCenter
()
const
{
return
bDefaultCubePosIsCenter
;
}
bool
GetDefaultCubePosIsCenter
()
const
{
return
bDefaultCubePosIsCenter
;
}
// Sphere object
// Sphere object
...
...
svx/source/engine3d/deflt3d.cxx
Dosyayı görüntüle @
8387ca68
...
@@ -40,7 +40,7 @@ void E3dDefaultAttributes::Reset()
...
@@ -40,7 +40,7 @@ void E3dDefaultAttributes::Reset()
// Cube object
// Cube object
aDefaultCubePos
=
basegfx
::
B3DPoint
(
-
500.0
,
-
500.0
,
-
500.0
);
aDefaultCubePos
=
basegfx
::
B3DPoint
(
-
500.0
,
-
500.0
,
-
500.0
);
aDefaultCubeSize
=
basegfx
::
B3DVector
(
1000.0
,
1000.0
,
1000.0
);
aDefaultCubeSize
=
basegfx
::
B3DVector
(
1000.0
,
1000.0
,
1000.0
);
nDefaultCubeSideFlags
=
C
UBE_FULL
;
nDefaultCubeSideFlags
=
C
ubeFaces
::
Full
;
bDefaultCubePosIsCenter
=
false
;
bDefaultCubePosIsCenter
=
false
;
// Sphere object
// Sphere object
...
...
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