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
10cbb13f
Kaydet (Commit)
10cbb13f
authored
Agu 15, 2013
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: If1d8a48e115cd7fbaa0032791275b3b49684d748
üst
7ef72aef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
customshapegeometry.cxx
oox/source/drawingml/customshapegeometry.cxx
+18
-18
No files found.
oox/source/drawingml/customshapegeometry.cxx
Dosyayı görüntüle @
10cbb13f
...
@@ -223,12 +223,12 @@ OUString GetFormulaParameter( const EnhancedCustomShapeParameter& rParameter )
...
@@ -223,12 +223,12 @@ OUString GetFormulaParameter( const EnhancedCustomShapeParameter& rParameter )
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
static
EnhancedCustomShapeParameter
GetAdjCoordinate
(
CustomShapeProperties
&
rCustomShapeProperties
,
const
OUString
&
rValue
,
sal_Bool
bNoSymbols
=
sal_T
rue
)
static
EnhancedCustomShapeParameter
GetAdjCoordinate
(
CustomShapeProperties
&
rCustomShapeProperties
,
const
OUString
&
rValue
,
bool
bNoSymbols
=
t
rue
)
{
{
com
::
sun
::
star
::
drawing
::
EnhancedCustomShapeParameter
aRet
;
com
::
sun
::
star
::
drawing
::
EnhancedCustomShapeParameter
aRet
;
if
(
!
rValue
.
isEmpty
()
)
if
(
!
rValue
.
isEmpty
()
)
{
{
sal_Bool
bConstant
=
sal_T
rue
;
bool
bConstant
=
t
rue
;
sal_Int32
nConstant
=
-
1
;
sal_Int32
nConstant
=
-
1
;
sal_Int32
nIntVal
=
0
;
sal_Int32
nIntVal
=
0
;
...
@@ -387,7 +387,7 @@ static EnhancedCustomShapeParameter GetAdjCoordinate( CustomShapeProperties& rCu
...
@@ -387,7 +387,7 @@ static EnhancedCustomShapeParameter GetAdjCoordinate( CustomShapeProperties& rCu
break
;
break
;
default:
default:
bConstant
=
sal_F
alse
;
bConstant
=
f
alse
;
break
;
break
;
}
}
if
(
bConstant
)
if
(
bConstant
)
...
@@ -488,7 +488,7 @@ static OUString convertToOOEquation( CustomShapeProperties& rCustomShapeProperti
...
@@ -488,7 +488,7 @@ static OUString convertToOOEquation( CustomShapeProperties& rCustomShapeProperti
OUString
sParameters
[
3
];
OUString
sParameters
[
3
];
for
(
i
=
0
;
i
<
nParameters
;
i
++
)
for
(
i
=
0
;
i
<
nParameters
;
i
++
)
sParameters
[
i
]
=
GetFormulaParameter
(
GetAdjCoordinate
(
rCustomShapeProperties
,
aTokens
[
i
+
1
],
sal_F
alse
)
);
sParameters
[
i
]
=
GetFormulaParameter
(
GetAdjCoordinate
(
rCustomShapeProperties
,
aTokens
[
i
+
1
],
f
alse
)
);
const
FormulaCommandHMap
::
const_iterator
aIter
(
pCommandHashMap
->
find
(
aTokens
[
0
]
)
);
const
FormulaCommandHMap
::
const_iterator
aIter
(
pCommandHashMap
->
find
(
aTokens
[
0
]
)
);
if
(
aIter
!=
pCommandHashMap
->
end
()
)
if
(
aIter
!=
pCommandHashMap
->
end
()
)
...
@@ -654,8 +654,8 @@ public:
...
@@ -654,8 +654,8 @@ public:
AdjPoint2DContext
::
AdjPoint2DContext
(
ContextHandler2Helper
&
rParent
,
const
AttributeList
&
rAttribs
,
CustomShapeProperties
&
rCustomShapeProperties
,
EnhancedCustomShapeParameterPair
&
rAdjPoint2D
)
AdjPoint2DContext
::
AdjPoint2DContext
(
ContextHandler2Helper
&
rParent
,
const
AttributeList
&
rAttribs
,
CustomShapeProperties
&
rCustomShapeProperties
,
EnhancedCustomShapeParameterPair
&
rAdjPoint2D
)
:
ContextHandler2
(
rParent
)
:
ContextHandler2
(
rParent
)
{
{
rAdjPoint2D
.
First
=
GetAdjCoordinate
(
rCustomShapeProperties
,
rAttribs
.
getString
(
XML_x
).
get
(),
sal_T
rue
);
rAdjPoint2D
.
First
=
GetAdjCoordinate
(
rCustomShapeProperties
,
rAttribs
.
getString
(
XML_x
).
get
(),
t
rue
);
rAdjPoint2D
.
Second
=
GetAdjCoordinate
(
rCustomShapeProperties
,
rAttribs
.
getString
(
XML_y
).
get
(),
sal_T
rue
);
rAdjPoint2D
.
Second
=
GetAdjCoordinate
(
rCustomShapeProperties
,
rAttribs
.
getString
(
XML_y
).
get
(),
t
rue
);
}
}
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
...
@@ -683,11 +683,11 @@ XYAdjustHandleContext::XYAdjustHandleContext( ContextHandler2Helper& rParent, co
...
@@ -683,11 +683,11 @@ XYAdjustHandleContext::XYAdjustHandleContext( ContextHandler2Helper& rParent, co
}
}
if
(
rAttribs
.
hasAttribute
(
XML_minX
)
)
if
(
rAttribs
.
hasAttribute
(
XML_minX
)
)
{
{
mrAdjustHandle
.
min1
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_minX
,
aEmptyDefault
),
sal_T
rue
);
mrAdjustHandle
.
min1
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_minX
,
aEmptyDefault
),
t
rue
);
}
}
if
(
rAttribs
.
hasAttribute
(
XML_maxX
)
)
if
(
rAttribs
.
hasAttribute
(
XML_maxX
)
)
{
{
mrAdjustHandle
.
max1
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_maxX
,
aEmptyDefault
),
sal_T
rue
);
mrAdjustHandle
.
max1
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_maxX
,
aEmptyDefault
),
t
rue
);
}
}
if
(
rAttribs
.
hasAttribute
(
XML_gdRefY
)
)
if
(
rAttribs
.
hasAttribute
(
XML_gdRefY
)
)
{
{
...
@@ -695,11 +695,11 @@ XYAdjustHandleContext::XYAdjustHandleContext( ContextHandler2Helper& rParent, co
...
@@ -695,11 +695,11 @@ XYAdjustHandleContext::XYAdjustHandleContext( ContextHandler2Helper& rParent, co
}
}
if
(
rAttribs
.
hasAttribute
(
XML_minY
)
)
if
(
rAttribs
.
hasAttribute
(
XML_minY
)
)
{
{
mrAdjustHandle
.
min2
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_minY
,
aEmptyDefault
),
sal_T
rue
);
mrAdjustHandle
.
min2
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_minY
,
aEmptyDefault
),
t
rue
);
}
}
if
(
rAttribs
.
hasAttribute
(
XML_maxY
)
)
if
(
rAttribs
.
hasAttribute
(
XML_maxY
)
)
{
{
mrAdjustHandle
.
max2
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_maxY
,
aEmptyDefault
),
sal_T
rue
);
mrAdjustHandle
.
max2
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_maxY
,
aEmptyDefault
),
t
rue
);
}
}
}
}
...
@@ -735,11 +735,11 @@ PolarAdjustHandleContext::PolarAdjustHandleContext( ContextHandler2Helper& rPare
...
@@ -735,11 +735,11 @@ PolarAdjustHandleContext::PolarAdjustHandleContext( ContextHandler2Helper& rPare
}
}
if
(
rAttribs
.
hasAttribute
(
XML_minR
)
)
if
(
rAttribs
.
hasAttribute
(
XML_minR
)
)
{
{
mrAdjustHandle
.
min1
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_minR
,
aEmptyDefault
),
sal_T
rue
);
mrAdjustHandle
.
min1
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_minR
,
aEmptyDefault
),
t
rue
);
}
}
if
(
rAttribs
.
hasAttribute
(
XML_maxR
)
)
if
(
rAttribs
.
hasAttribute
(
XML_maxR
)
)
{
{
mrAdjustHandle
.
max1
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_maxR
,
aEmptyDefault
),
sal_T
rue
);
mrAdjustHandle
.
max1
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_maxR
,
aEmptyDefault
),
t
rue
);
}
}
if
(
rAttribs
.
hasAttribute
(
XML_gdRefAng
)
)
if
(
rAttribs
.
hasAttribute
(
XML_gdRefAng
)
)
{
{
...
@@ -1079,8 +1079,8 @@ ContextHandlerRef Path2DContext::onCreateContext( sal_Int32 aElementToken,
...
@@ -1079,8 +1079,8 @@ ContextHandlerRef Path2DContext::onCreateContext( sal_Int32 aElementToken,
EnhancedCustomShapeParameterPair
aScale
;
EnhancedCustomShapeParameterPair
aScale
;
EnhancedCustomShapeParameterPair
aAngles
;
EnhancedCustomShapeParameterPair
aAngles
;
aScale
.
First
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_wR
).
get
(),
sal_T
rue
);
aScale
.
First
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_wR
).
get
(),
t
rue
);
aScale
.
Second
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_hR
).
get
(),
sal_T
rue
);
aScale
.
Second
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_hR
).
get
(),
t
rue
);
CustomShapeGuide
aGuide
;
CustomShapeGuide
aGuide
;
sal_Int32
nArcNum
=
mrCustomShapeProperties
.
getArcNum
();
sal_Int32
nArcNum
=
mrCustomShapeProperties
.
getArcNum
();
...
@@ -1212,10 +1212,10 @@ ContextHandlerRef CustomShapeGeometryContext::onCreateContext( sal_Int32 aElemen
...
@@ -1212,10 +1212,10 @@ ContextHandlerRef CustomShapeGeometryContext::onCreateContext( sal_Int32 aElemen
case
A_TOKEN
(
rect
):
// CT_GeomRectList geometry rect list
case
A_TOKEN
(
rect
):
// CT_GeomRectList geometry rect list
{
{
GeomRect
aGeomRect
;
GeomRect
aGeomRect
;
aGeomRect
.
l
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_l
).
get
(),
sal_T
rue
);
aGeomRect
.
l
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_l
).
get
(),
t
rue
);
aGeomRect
.
t
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_t
).
get
(),
sal_T
rue
);
aGeomRect
.
t
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_t
).
get
(),
t
rue
);
aGeomRect
.
r
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_r
).
get
(),
sal_T
rue
);
aGeomRect
.
r
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_r
).
get
(),
t
rue
);
aGeomRect
.
b
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_b
).
get
(),
sal_T
rue
);
aGeomRect
.
b
=
GetAdjCoordinate
(
mrCustomShapeProperties
,
rAttribs
.
getString
(
XML_b
).
get
(),
t
rue
);
mrCustomShapeProperties
.
getTextRect
()
=
aGeomRect
;
mrCustomShapeProperties
.
getTextRect
()
=
aGeomRect
;
}
}
break
;
break
;
...
...
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