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
1c44b263
Kaydet (Commit)
1c44b263
authored
Nis 09, 2012
tarafından
Muthu Subramanian
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo43752: PPTX import fix affected odp imports.
Related bugs: n#719989, n#719997
üst
161fb178
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
2 deletions
+28
-2
customshapeproperties.cxx
oox/source/drawingml/customshapeproperties.cxx
+1
-0
properties.txt
oox/source/token/properties.txt
+1
-0
EnhancedCustomShape2d.hxx
svx/inc/svx/EnhancedCustomShape2d.hxx
+1
-0
svdoashp.hxx
svx/inc/svx/svdoashp.hxx
+1
-0
EnhancedCustomShape2d.cxx
svx/source/customshapes/EnhancedCustomShape2d.cxx
+5
-0
EnhancedCustomShapeEngine.cxx
svx/source/customshapes/EnhancedCustomShapeEngine.cxx
+8
-2
svdoashp.cxx
svx/source/svdraw/svdoashp.cxx
+11
-0
No files found.
oox/source/drawingml/customshapeproperties.cxx
Dosyayı görüntüle @
1c44b263
...
...
@@ -158,6 +158,7 @@ void CustomShapeProperties::pushToPropSet( const ::oox::core::FilterBase& /* rFi
aPropertyMap
[
PROP_MirroredX
]
<<=
Any
(
mbMirroredX
);
aPropertyMap
[
PROP_MirroredY
]
<<=
Any
(
mbMirroredY
);
aPropertyMap
[
PROP_TextPreRotateAngle
]
<<=
Any
(
mnTextRotateAngle
);
aPropertyMap
[
PROP_IsPostRotateAngle
]
<<=
true
;
// For OpenXML Imports
Sequence
<
PropertyValue
>
aSeq
=
aPropertyMap
.
makePropertyValueSequence
();
aPropSet
.
setProperty
(
PROP_CustomShapeGeometry
,
aSeq
);
...
...
oox/source/token/properties.txt
Dosyayı görüntüle @
1c44b263
...
...
@@ -244,6 +244,7 @@ IsLoaded
IsNumbering
IsOutlineSymbolsSet
IsPlaceholderDependent
IsPostRotateAngle
IsSharedFormula
IsStartOfNewPage
IsTextWrapped
...
...
svx/inc/svx/EnhancedCustomShape2d.hxx
Dosyayı görüntüle @
1c44b263
...
...
@@ -182,6 +182,7 @@ class EnhancedCustomShape2d : public SfxItemSet
sal_Bool
IsFlipVert
()
{
return
bFlipV
;
};
sal_Bool
IsFlipHorz
()
{
return
bFlipH
;
};
sal_Int32
GetRotateAngle
()
{
return
nRotateAngle
;
};
SVX_DLLPUBLIC
bool
IsPostRotate
()
const
;
SVX_DLLPUBLIC
SdrObject
*
CreateLineGeometry
();
SVX_DLLPUBLIC
SdrObject
*
CreateObject
(
sal_Bool
bLineGeometryNeededOnly
);
...
...
svx/inc/svx/svdoashp.hxx
Dosyayı görüntüle @
1c44b263
...
...
@@ -145,6 +145,7 @@ public:
sal_Bool
IsMirroredX
()
const
;
sal_Bool
IsMirroredY
()
const
;
bool
IsPostRotate
()
const
;
void
SetMirroredX
(
const
sal_Bool
bMirroredX
);
void
SetMirroredY
(
const
sal_Bool
bMirroredY
);
...
...
svx/source/customshapes/EnhancedCustomShape2d.cxx
Dosyayı görüntüle @
1c44b263
...
...
@@ -2332,6 +2332,11 @@ void EnhancedCustomShape2d::ApplyGluePoints( SdrObject* pObj )
}
}
bool
EnhancedCustomShape2d
::
IsPostRotate
()
const
{
return
pCustomShapeObj
->
ISA
(
SdrObjCustomShape
)
?
((
SdrObjCustomShape
*
)
pCustomShapeObj
)
->
IsPostRotate
()
:
false
;
}
SdrObject
*
EnhancedCustomShape2d
::
CreateLineGeometry
()
{
return
CreateObject
(
sal_True
);
...
...
svx/source/customshapes/EnhancedCustomShapeEngine.cxx
Dosyayı görüntüle @
1c44b263
...
...
@@ -276,6 +276,7 @@ REF( com::sun::star::drawing::XShape ) SAL_CALL EnhancedCustomShapeEngine::rende
EnhancedCustomShape2d
aCustomShape2d
(
pSdrObjCustomShape
);
sal_Int32
nRotateAngle
=
aCustomShape2d
.
GetRotateAngle
();
bool
bPostRotateAngle
=
aCustomShape2d
.
IsPostRotate
();
sal_Bool
bFlipV
=
aCustomShape2d
.
IsFlipVert
();
sal_Bool
bFlipH
=
aCustomShape2d
.
IsFlipHorz
();
...
...
@@ -315,6 +316,11 @@ REF( com::sun::star::drawing::XShape ) SAL_CALL EnhancedCustomShapeEngine::rende
}
pRenderedShape
->
Shear
(
pSdrObjCustomShape
->
GetSnapRect
().
Center
(),
nShearWink
,
nTan
,
sal_False
);
}
if
(
!
bPostRotateAngle
&&
nRotateAngle
)
{
double
a
=
nRotateAngle
*
F_PI18000
;
pRenderedShape
->
NbcRotate
(
pSdrObjCustomShape
->
GetSnapRect
().
Center
(),
nRotateAngle
,
sin
(
a
),
cos
(
a
)
);
}
if
(
bFlipV
)
{
Point
aLeft
(
aRect
.
Left
(),
(
aRect
.
Top
()
+
aRect
.
Bottom
()
)
>>
1
);
...
...
@@ -327,8 +333,8 @@ REF( com::sun::star::drawing::XShape ) SAL_CALL EnhancedCustomShapeEngine::rende
Point
aBottom
(
aTop
.
X
(),
aTop
.
Y
()
+
1000
);
pRenderedShape
->
NbcMirror
(
aTop
,
aBottom
);
}
//
Note that the rotation needs be done after flipping
if
(
nRotateAngle
)
//
Specifically for pptx imports
if
(
bPostRotateAngle
&&
nRotateAngle
)
{
double
a
=
nRotateAngle
*
F_PI18000
;
pRenderedShape
->
NbcRotate
(
pSdrObjCustomShape
->
GetSnapRect
().
Center
(),
nRotateAngle
,
sin
(
a
),
cos
(
a
)
);
...
...
svx/source/svdraw/svdoashp.cxx
Dosyayı görüntüle @
1c44b263
...
...
@@ -536,6 +536,17 @@ double SdrObjCustomShape::GetObjectRotation() const
return
fObjectRotation
;
}
bool
SdrObjCustomShape
::
IsPostRotate
()
const
{
const
com
::
sun
::
star
::
uno
::
Any
*
pAny
;
bool
bPostRotate
=
false
;
SdrCustomShapeGeometryItem
&
rGeometryItem
=
(
SdrCustomShapeGeometryItem
&
)
GetMergedItem
(
SDRATTR_CUSTOMSHAPE_GEOMETRY
);
pAny
=
rGeometryItem
.
GetPropertyValueByName
(
"IsPostRotateAngle"
);
if
(
pAny
)
*
pAny
>>=
bPostRotate
;
return
bPostRotate
;
}
double
SdrObjCustomShape
::
GetExtraTextRotation
(
const
bool
bPreRotation
)
const
{
const
com
::
sun
::
star
::
uno
::
Any
*
pAny
;
...
...
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