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
ba397fc6
Kaydet (Commit)
ba397fc6
authored
Nis 17, 2015
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert "WaE: unused variables"
See
3ac15845
. This reverts commit
7bcf9131
. This reverts commit
063aec33
.
üst
d457c25c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
3 deletions
+39
-3
VDiagram.cxx
chart2/source/view/diagram/VDiagram.cxx
+21
-3
dragmt3d.cxx
svx/source/engine3d/dragmt3d.cxx
+5
-0
e3dundo.cxx
svx/source/engine3d/e3dundo.cxx
+4
-0
obj3d.cxx
svx/source/engine3d/obj3d.cxx
+3
-0
scene3d.cxx
svx/source/engine3d/scene3d.cxx
+2
-0
svdundo.cxx
svx/source/svdraw/svdundo.cxx
+4
-0
No files found.
chart2/source/view/diagram/VDiagram.cxx
Dosyayı görüntüle @
ba397fc6
...
@@ -209,6 +209,24 @@ void VDiagram::createShapes_2d()
...
@@ -209,6 +209,24 @@ void VDiagram::createShapes_2d()
adjustPosAndSize_2d
(
m_aAvailablePosIncludingAxes
,
m_aAvailableSizeIncludingAxes
);
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
(
void
lcl_setLightSources
(
const
uno
::
Reference
<
beans
::
XPropertySet
>
&
xSource
,
const
uno
::
Reference
<
beans
::
XPropertySet
>
&
xSource
,
const
uno
::
Reference
<
beans
::
XPropertySet
>
&
xDest
)
const
uno
::
Reference
<
beans
::
XPropertySet
>
&
xDest
)
...
@@ -419,8 +437,7 @@ void VDiagram::adjustAspectRatio3d( const awt::Size& rAvailableSize )
...
@@ -419,8 +437,7 @@ 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
// 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
// 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.
// 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
m_xAspectRatio3D
->
setPropertyValue
(
UNO_NAME_3D_TRANSFORM_MATRIX
,
uno
::
makeAny
(
BaseGFXHelper
::
B3DHomMatrixToHomogenMatrix
(
aResult
))
);
,
uno
::
makeAny
(
BaseGFXHelper
::
B3DHomMatrixToHomogenMatrix
(
aResult
))
);
...
@@ -585,7 +602,7 @@ void VDiagram::createShapes_3d()
...
@@ -585,7 +602,7 @@ void VDiagram::createShapes_3d()
aEffectiveTranformation
.
shearXY
(
m_fYAnglePi
,
-
m_fXAnglePi
);
aEffectiveTranformation
.
shearXY
(
m_fYAnglePi
,
-
m_fXAnglePi
);
//#i98497# 3D charts are rendered with wrong size
//#i98497# 3D charts are rendered with wrong size
E3DModifySceneSnapRectUpdater
aUpdater
(
lcl_getE3dScene
(
m_xOuterGroupShape
));
xDestProp
->
setPropertyValue
(
UNO_NAME_3D_TRANSFORM_MATRIX
,
xDestProp
->
setPropertyValue
(
UNO_NAME_3D_TRANSFORM_MATRIX
,
uno
::
makeAny
(
BaseGFXHelper
::
B3DHomMatrixToHomogenMatrix
(
aEffectiveTranformation
)
)
);
uno
::
makeAny
(
BaseGFXHelper
::
B3DHomMatrixToHomogenMatrix
(
aEffectiveTranformation
)
)
);
}
}
...
@@ -642,6 +659,7 @@ void VDiagram::createShapes_3d()
...
@@ -642,6 +659,7 @@ void VDiagram::createShapes_3d()
::
basegfx
::
B3DHomMatrix
aM
;
::
basegfx
::
B3DHomMatrix
aM
;
aM
.
translate
(
GRID_TO_WALL_DISTANCE
/
fXScale
,
GRID_TO_WALL_DISTANCE
/
fYScale
,
GRID_TO_WALL_DISTANCE
/
fZScale
);
aM
.
translate
(
GRID_TO_WALL_DISTANCE
/
fXScale
,
GRID_TO_WALL_DISTANCE
/
fYScale
,
GRID_TO_WALL_DISTANCE
/
fZScale
);
aM
.
scale
(
fXScale
,
fYScale
,
fZScale
);
aM
.
scale
(
fXScale
,
fYScale
,
fZScale
);
E3DModifySceneSnapRectUpdater
aUpdater
(
lcl_getE3dScene
(
m_xOuterGroupShape
));
xShapeProp
->
setPropertyValue
(
UNO_NAME_3D_TRANSFORM_MATRIX
xShapeProp
->
setPropertyValue
(
UNO_NAME_3D_TRANSFORM_MATRIX
,
uno
::
makeAny
(
BaseGFXHelper
::
B3DHomMatrixToHomogenMatrix
(
aM
))
);
,
uno
::
makeAny
(
BaseGFXHelper
::
B3DHomMatrixToHomogenMatrix
(
aM
))
);
}
}
...
...
svx/source/engine3d/dragmt3d.cxx
Dosyayı görüntüle @
ba397fc6
...
@@ -159,6 +159,7 @@ bool E3dDragMethod::EndSdrDrag(bool /*bCopy*/)
...
@@ -159,6 +159,7 @@ bool E3dDragMethod::EndSdrDrag(bool /*bCopy*/)
for
(
nOb
=
0
;
nOb
<
nCnt
;
nOb
++
)
for
(
nOb
=
0
;
nOb
<
nCnt
;
nOb
++
)
{
{
E3dDragMethodUnit
&
rCandidate
=
maGrp
[
nOb
];
E3dDragMethodUnit
&
rCandidate
=
maGrp
[
nOb
];
E3DModifySceneSnapRectUpdater
aUpdater
(
rCandidate
.
mp3DObj
);
rCandidate
.
mp3DObj
->
SetTransform
(
rCandidate
.
maTransform
);
rCandidate
.
mp3DObj
->
SetTransform
(
rCandidate
.
maTransform
);
if
(
bUndo
)
if
(
bUndo
)
{
{
...
@@ -186,6 +187,7 @@ void E3dDragMethod::CancelSdrDrag()
...
@@ -186,6 +187,7 @@ void E3dDragMethod::CancelSdrDrag()
{
{
// Restore transformation
// Restore transformation
E3dDragMethodUnit
&
rCandidate
=
maGrp
[
nOb
];
E3dDragMethodUnit
&
rCandidate
=
maGrp
[
nOb
];
E3DModifySceneSnapRectUpdater
aUpdater
(
rCandidate
.
mp3DObj
);
rCandidate
.
mp3DObj
->
SetTransform
(
rCandidate
.
maInitTransform
);
rCandidate
.
mp3DObj
->
SetTransform
(
rCandidate
.
maInitTransform
);
}
}
}
}
...
@@ -406,6 +408,7 @@ void E3dDragRotate::MoveSdrDrag(const Point& rPnt)
...
@@ -406,6 +408,7 @@ void E3dDragRotate::MoveSdrDrag(const Point& rPnt)
if
(
mbMoveFull
)
if
(
mbMoveFull
)
{
{
E3DModifySceneSnapRectUpdater
aUpdater
(
rCandidate
.
mp3DObj
);
rCandidate
.
mp3DObj
->
SetTransform
(
rCandidate
.
maTransform
);
rCandidate
.
mp3DObj
->
SetTransform
(
rCandidate
.
maTransform
);
}
}
else
else
...
@@ -555,6 +558,7 @@ void E3dDragMove::MoveSdrDrag(const Point& rPnt)
...
@@ -555,6 +558,7 @@ void E3dDragMove::MoveSdrDrag(const Point& rPnt)
if
(
mbMoveFull
)
if
(
mbMoveFull
)
{
{
E3DModifySceneSnapRectUpdater
aUpdater
(
rCandidate
.
mp3DObj
);
rCandidate
.
mp3DObj
->
SetTransform
(
rCandidate
.
maTransform
);
rCandidate
.
mp3DObj
->
SetTransform
(
rCandidate
.
maTransform
);
}
}
else
else
...
@@ -673,6 +677,7 @@ void E3dDragMove::MoveSdrDrag(const Point& rPnt)
...
@@ -673,6 +677,7 @@ void E3dDragMove::MoveSdrDrag(const Point& rPnt)
if
(
mbMoveFull
)
if
(
mbMoveFull
)
{
{
E3DModifySceneSnapRectUpdater
aUpdater
(
rCandidate
.
mp3DObj
);
rCandidate
.
mp3DObj
->
SetTransform
(
rCandidate
.
maTransform
);
rCandidate
.
mp3DObj
->
SetTransform
(
rCandidate
.
maTransform
);
}
}
else
else
...
...
svx/source/engine3d/e3dundo.cxx
Dosyayı görüntüle @
ba397fc6
...
@@ -49,6 +49,7 @@ E3dRotateUndoAction::~E3dRotateUndoAction ()
...
@@ -49,6 +49,7 @@ E3dRotateUndoAction::~E3dRotateUndoAction ()
void
E3dRotateUndoAction
::
Undo
()
void
E3dRotateUndoAction
::
Undo
()
{
{
E3DModifySceneSnapRectUpdater
aUpdater
(
pMy3DObj
);
pMy3DObj
->
SetTransform
(
aMyOldRotation
);
pMy3DObj
->
SetTransform
(
aMyOldRotation
);
}
}
...
@@ -56,6 +57,7 @@ void E3dRotateUndoAction::Undo ()
...
@@ -56,6 +57,7 @@ void E3dRotateUndoAction::Undo ()
void
E3dRotateUndoAction
::
Redo
()
void
E3dRotateUndoAction
::
Redo
()
{
{
E3DModifySceneSnapRectUpdater
aUpdater
(
pMy3DObj
);
pMy3DObj
->
SetTransform
(
aMyNewRotation
);
pMy3DObj
->
SetTransform
(
aMyNewRotation
);
}
}
...
@@ -81,11 +83,13 @@ E3dAttributesUndoAction::~E3dAttributesUndoAction()
...
@@ -81,11 +83,13 @@ E3dAttributesUndoAction::~E3dAttributesUndoAction()
void
E3dAttributesUndoAction
::
Undo
()
void
E3dAttributesUndoAction
::
Undo
()
{
{
E3DModifySceneSnapRectUpdater
aUpdater
(
pObject
);
pObject
->
SetMergedItemSetAndBroadcast
(
aOldSet
);
pObject
->
SetMergedItemSetAndBroadcast
(
aOldSet
);
}
}
void
E3dAttributesUndoAction
::
Redo
()
void
E3dAttributesUndoAction
::
Redo
()
{
{
E3DModifySceneSnapRectUpdater
aUpdater
(
pObject
);
pObject
->
SetMergedItemSetAndBroadcast
(
aNewSet
);
pObject
->
SetMergedItemSetAndBroadcast
(
aNewSet
);
}
}
...
...
svx/source/engine3d/obj3d.cxx
Dosyayı görüntüle @
ba397fc6
...
@@ -374,6 +374,7 @@ void E3dObject::NbcResize(const Point& rRef, const Fraction& xFact, const Fracti
...
@@ -374,6 +374,7 @@ void E3dObject::NbcResize(const Point& rRef, const Fraction& xFact, const Fracti
basegfx
::
B3DHomMatrix
mObjTrans
(
GetTransform
());
basegfx
::
B3DHomMatrix
mObjTrans
(
GetTransform
());
mObjTrans
*=
mTrans
;
mObjTrans
*=
mTrans
;
E3DModifySceneSnapRectUpdater
aUpdater
(
this
);
SetTransform
(
mObjTrans
);
SetTransform
(
mObjTrans
);
}
}
}
}
...
@@ -426,6 +427,7 @@ void E3dObject::NbcMove(const Size& rSize)
...
@@ -426,6 +427,7 @@ void E3dObject::NbcMove(const Size& rSize)
basegfx
::
B3DHomMatrix
aTranslate
;
basegfx
::
B3DHomMatrix
aTranslate
;
aTranslate
.
translate
(
aMove
.
getX
()
-
aPos
.
getX
(),
aMove
.
getY
()
-
aPos
.
getY
(),
aMove
.
getZ
()
-
aPos
.
getZ
());
aTranslate
.
translate
(
aMove
.
getX
()
-
aPos
.
getX
(),
aMove
.
getY
()
-
aPos
.
getY
(),
aMove
.
getZ
()
-
aPos
.
getZ
());
E3DModifySceneSnapRectUpdater
aUpdater
(
pScene
);
SetTransform
(
aTranslate
*
GetTransform
());
SetTransform
(
aTranslate
*
GetTransform
());
}
}
}
}
...
@@ -737,6 +739,7 @@ void E3dObject::SaveGeoData(SdrObjGeoData& rGeo) const
...
@@ -737,6 +739,7 @@ void E3dObject::SaveGeoData(SdrObjGeoData& rGeo) const
void
E3dObject
::
RestGeoData
(
const
SdrObjGeoData
&
rGeo
)
void
E3dObject
::
RestGeoData
(
const
SdrObjGeoData
&
rGeo
)
{
{
maLocalBoundVol
=
static_cast
<
const
E3DObjGeoData
&>
(
rGeo
).
maLocalBoundVol
;
maLocalBoundVol
=
static_cast
<
const
E3DObjGeoData
&>
(
rGeo
).
maLocalBoundVol
;
E3DModifySceneSnapRectUpdater
aUpdater
(
this
);
NbcSetTransform
(
static_cast
<
const
E3DObjGeoData
&>
(
rGeo
).
maTransformation
);
NbcSetTransform
(
static_cast
<
const
E3DObjGeoData
&>
(
rGeo
).
maTransformation
);
SdrAttrObj
::
RestGeoData
(
rGeo
);
SdrAttrObj
::
RestGeoData
(
rGeo
);
}
}
...
...
svx/source/engine3d/scene3d.cxx
Dosyayı görüntüle @
ba397fc6
...
@@ -397,6 +397,8 @@ E3dScene* E3dScene::GetScene() const
...
@@ -397,6 +397,8 @@ E3dScene* E3dScene::GetScene() const
void
E3dScene
::
removeAllNonSelectedObjects
()
void
E3dScene
::
removeAllNonSelectedObjects
()
{
{
E3DModifySceneSnapRectUpdater
aUpdater
(
this
);
for
(
size_t
a
=
0
;
a
<
maSubList
.
GetObjCount
();
++
a
)
for
(
size_t
a
=
0
;
a
<
maSubList
.
GetObjCount
();
++
a
)
{
{
SdrObject
*
pObj
=
maSubList
.
GetObj
(
a
);
SdrObject
*
pObj
=
maSubList
.
GetObj
(
a
);
...
...
svx/source/svdraw/svdundo.cxx
Dosyayı görüntüle @
ba397fc6
...
@@ -322,6 +322,7 @@ SdrUndoAttrObj::~SdrUndoAttrObj()
...
@@ -322,6 +322,7 @@ SdrUndoAttrObj::~SdrUndoAttrObj()
void
SdrUndoAttrObj
::
Undo
()
void
SdrUndoAttrObj
::
Undo
()
{
{
E3DModifySceneSnapRectUpdater
aUpdater
(
pObj
);
bool
bIs3DScene
(
pObj
&&
pObj
->
ISA
(
E3dScene
));
bool
bIs3DScene
(
pObj
&&
pObj
->
ISA
(
E3dScene
));
// Trigger PageChangeCall
// Trigger PageChangeCall
...
@@ -428,6 +429,7 @@ void SdrUndoAttrObj::Undo()
...
@@ -428,6 +429,7 @@ void SdrUndoAttrObj::Undo()
void
SdrUndoAttrObj
::
Redo
()
void
SdrUndoAttrObj
::
Redo
()
{
{
E3DModifySceneSnapRectUpdater
aUpdater
(
pObj
);
bool
bIs3DScene
(
pObj
&&
pObj
->
ISA
(
E3dScene
));
bool
bIs3DScene
(
pObj
&&
pObj
->
ISA
(
E3dScene
));
if
(
!
pUndoGroup
||
bIs3DScene
)
if
(
!
pUndoGroup
||
bIs3DScene
)
...
@@ -741,6 +743,7 @@ void SdrUndoRemoveObj::Undo()
...
@@ -741,6 +743,7 @@ void SdrUndoRemoveObj::Undo()
aOwnerAnchorPos
=
pObjList
->
GetOwnerObj
()
->
GetAnchorPos
();
aOwnerAnchorPos
=
pObjList
->
GetOwnerObj
()
->
GetAnchorPos
();
}
}
E3DModifySceneSnapRectUpdater
aUpdater
(
pObjList
->
GetOwnerObj
());
SdrInsertReason
aReason
(
SDRREASON_UNDO
);
SdrInsertReason
aReason
(
SDRREASON_UNDO
);
pObjList
->
InsertObject
(
pObj
,
nOrdNum
,
&
aReason
);
pObjList
->
InsertObject
(
pObj
,
nOrdNum
,
&
aReason
);
...
@@ -758,6 +761,7 @@ void SdrUndoRemoveObj::Redo()
...
@@ -758,6 +761,7 @@ void SdrUndoRemoveObj::Redo()
if
(
pObj
->
IsInserted
())
if
(
pObj
->
IsInserted
())
{
{
ImplUnmarkObject
(
pObj
);
ImplUnmarkObject
(
pObj
);
E3DModifySceneSnapRectUpdater
aUpdater
(
pObj
);
pObjList
->
RemoveObject
(
nOrdNum
);
pObjList
->
RemoveObject
(
nOrdNum
);
}
}
...
...
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