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
063aec33
Kaydet (Commit)
063aec33
authored
Nis 17, 2015
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
WaE: unused variables and fallout
Change-Id: If6d68b54aa4fc5744a30521e5fa7caf9d876d975
üst
466d0f2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
21 deletions
+3
-21
VDiagram.cxx
chart2/source/view/diagram/VDiagram.cxx
+3
-21
No files found.
chart2/source/view/diagram/VDiagram.cxx
Dosyayı görüntüle @
063aec33
...
...
@@ -209,24 +209,6 @@ void VDiagram::createShapes_2d()
adjustPosAndSize_2d
(
m_aAvailablePosIncludingAxes
,
m_aAvailableSizeIncludingAxes
);
}
E3dScene
*
lcl_getE3dScene
(
const
uno
::
Reference
<
drawing
::
XShape
>&
xShape
)
{
E3dScene
*
pRet
=
NULL
;
uno
::
Reference
<
lang
::
XUnoTunnel
>
xUnoTunnel
(
xShape
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
lang
::
XTypeProvider
>
xTypeProvider
(
xShape
,
uno
::
UNO_QUERY
);
if
(
xUnoTunnel
.
is
()
&&
xTypeProvider
.
is
())
{
SvxShape
*
pSvxShape
=
reinterpret_cast
<
SvxShape
*>
(
xUnoTunnel
->
getSomething
(
SvxShape
::
getUnoTunnelId
()
));
if
(
pSvxShape
)
{
SdrObject
*
pObj
=
pSvxShape
->
GetSdrObject
();
if
(
pObj
&&
pObj
->
ISA
(
E3dScene
)
)
pRet
=
static_cast
<
E3dScene
*>
(
pObj
);
}
}
return
pRet
;
}
void
lcl_setLightSources
(
const
uno
::
Reference
<
beans
::
XPropertySet
>
&
xSource
,
const
uno
::
Reference
<
beans
::
XPropertySet
>
&
xDest
)
...
...
@@ -437,7 +419,8 @@ void VDiagram::adjustAspectRatio3d( const awt::Size& rAvailableSize )
// To get the 3D aspect ratio's effect on the 2D scene size, the scene's 2D size needs to be adapted to
// 3D content changes here. The tooling class remembers the current 3D transformation stack
// and in its destructor, calculates a new 2D SnapRect for the scene and it's modified 3D geometry.
E3DModifySceneSnapRectUpdater
aUpdater
(
lcl_getE3dScene
(
m_xOuterGroupShape
));
// Unclear whether the above comment refers to an unused variable that was removed, or to the below code
m_xAspectRatio3D
->
setPropertyValue
(
UNO_NAME_3D_TRANSFORM_MATRIX
,
uno
::
makeAny
(
BaseGFXHelper
::
B3DHomMatrixToHomogenMatrix
(
aResult
))
);
...
...
@@ -602,7 +585,7 @@ void VDiagram::createShapes_3d()
aEffectiveTranformation
.
shearXY
(
m_fYAnglePi
,
-
m_fXAnglePi
);
//#i98497# 3D charts are rendered with wrong size
E3DModifySceneSnapRectUpdater
aUpdater
(
lcl_getE3dScene
(
m_xOuterGroupShape
));
xDestProp
->
setPropertyValue
(
UNO_NAME_3D_TRANSFORM_MATRIX
,
uno
::
makeAny
(
BaseGFXHelper
::
B3DHomMatrixToHomogenMatrix
(
aEffectiveTranformation
)
)
);
}
...
...
@@ -659,7 +642,6 @@ void VDiagram::createShapes_3d()
::
basegfx
::
B3DHomMatrix
aM
;
aM
.
translate
(
GRID_TO_WALL_DISTANCE
/
fXScale
,
GRID_TO_WALL_DISTANCE
/
fYScale
,
GRID_TO_WALL_DISTANCE
/
fZScale
);
aM
.
scale
(
fXScale
,
fYScale
,
fZScale
);
E3DModifySceneSnapRectUpdater
aUpdater
(
lcl_getE3dScene
(
m_xOuterGroupShape
));
xShapeProp
->
setPropertyValue
(
UNO_NAME_3D_TRANSFORM_MATRIX
,
uno
::
makeAny
(
BaseGFXHelper
::
B3DHomMatrixToHomogenMatrix
(
aM
))
);
}
...
...
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