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
d66140be
Kaydet (Commit)
d66140be
authored
Nis 17, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
oox customshapepresetdata: handle RangeXMaximum and a few more properties
Change-Id: I8649866c338055ed7fe7c14f366c69670b538d93
üst
42b30640
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
customshapepresetdata.cxx
oox/source/drawingml/customshapepresetdata.cxx
+15
-9
No files found.
oox/source/drawingml/customshapepresetdata.cxx
Dosyayı görüntüle @
d66140be
...
@@ -305,21 +305,21 @@ void lcl_parseHandleRange(comphelper::SequenceAsVector<beans::PropertyValue>& rH
...
@@ -305,21 +305,21 @@ void lcl_parseHandleRange(comphelper::SequenceAsVector<beans::PropertyValue>& rH
}
}
// Parses a string like: Name = "
RefY
", Handle = (long) 0, Value = (any) { (long) 0 }, State = (com.sun.star.beans.PropertyState) DIRECT_VALUE
// Parses a string like: Name = "
RefY
", Handle = (long) 0, Value = (any) { (long) 0 }, State = (com.sun.star.beans.PropertyState) DIRECT_VALUE
void lcl_parseHandleRef
Y(comphelper::SequenceAsVector<beans::PropertyValue>& rHandle, const OString& rValu
e)
void lcl_parseHandleRef
(comphelper::SequenceAsVector<beans::PropertyValue>& rHandle, const OString& rValue, const OUString& rNam
e)
{
{
static const OString aExpectedPrefix("
Name
=
\
"RefY
\"
, Handle = (long) 0, Value = (any) { (long) "
);
static const OString aExpectedXPrefix("
Name
=
\
"RefX
\"
, Handle = (long) 0, Value = (any) { (long) "
);
if
(
rValue
.
startsWith
(
aExpectedPrefix
))
static
const
OString
aExpectedYPrefix
(
"Name =
\"
RefY
\"
, Handle = (long) 0, Value = (any)
{
(
long
)
");
if (rValue.startsWith(aExpectedXPrefix) || rValue.startsWith(aExpectedYPrefix))
{
{
sal_Int32
nIndex
=
aExpectedPrefix
.
getLength
();
sal_Int32 nIndex = aExpected
X
Prefix.getLength();
beans::PropertyValue aPropertyValue;
beans::PropertyValue aPropertyValue;
aPropertyValue
.
Name
=
"RefY"
;
aPropertyValue.Name =
rName
;
// We only expect a Value here
// We only expect a Value here
aPropertyValue.Value = uno::makeAny(rValue.getToken(0, '}', nIndex).toInt32());
aPropertyValue.Value = uno::makeAny(rValue.getToken(0, '}', nIndex).toInt32());
rHandle.push_back(aPropertyValue);
rHandle.push_back(aPropertyValue);
}
}
else
else
SAL_WARN
(
"oox"
,
"lcl_parseHandleRef
Y
: unexpected value: "
<<
rValue
);
SAL_WARN("
oox
", "
lcl_parseHandleRef
:
unexpected
value
:
" << rValue);
}
}
uno::Sequence<beans::PropertyValue> lcl_parseHandle(const OString& rValue)
uno::Sequence<beans::PropertyValue> lcl_parseHandle(const OString& rValue)
...
@@ -343,14 +343,20 @@ uno::Sequence<beans::PropertyValue> lcl_parseHandle(const OString& rValue)
...
@@ -343,14 +343,20 @@ uno::Sequence<beans::PropertyValue> lcl_parseHandle(const OString& rValue)
OString aToken = rValue.copy(nStart + strlen("
{
"), i - nStart - strlen("
},
"));
OString aToken = rValue.copy(nStart + strlen("
{
"), i - nStart - strlen("
},
"));
if (aToken.startsWith("
Name
=
\
"Position
\"
"
))
if (aToken.startsWith("
Name
=
\
"Position
\"
"
))
lcl_parseHandlePosition
(
aRet
,
aToken
);
lcl_parseHandlePosition
(
aRet
,
aToken
);
else
if
(
aToken
.
startsWith
(
"Name =
\"
RangeXMaximum
\"
"
))
lcl_parseHandleRange
(
aRet
,
aToken
,
"RangeXMaximum"
);
else
if
(
aToken
.
startsWith
(
"Name =
\"
RangeXMinimum
\"
"
))
lcl_parseHandleRange
(
aRet
,
aToken
,
"RangeXMinimum"
);
else
if
(
aToken
.
startsWith
(
"Name =
\"
RangeYMaximum
\"
"
))
else
if
(
aToken
.
startsWith
(
"Name =
\"
RangeYMaximum
\"
"
))
lcl_parseHandleRange
(
aRet
,
aToken
,
"RangeYMaximum"
);
lcl_parseHandleRange
(
aRet
,
aToken
,
"RangeYMaximum"
);
else
if
(
aToken
.
startsWith
(
"Name =
\"
RangeYMinimum
\"
"
))
else
if
(
aToken
.
startsWith
(
"Name =
\"
RangeYMinimum
\"
"
))
lcl_parseHandleRange
(
aRet
,
aToken
,
"RangeYMinimum"
);
lcl_parseHandleRange
(
aRet
,
aToken
,
"RangeYMinimum"
);
else
if
(
aToken
.
startsWith
(
"Name =
\"
RefX
\"
"
))
lcl_parseHandleRef
(
aRet
,
aToken
,
"RefX"
);
else
if
(
aToken
.
startsWith
(
"Name =
\"
RefY
\"
"
))
else
if
(
aToken
.
startsWith
(
"Name =
\"
RefY
\"
"
))
lcl_parseHandleRef
Y
(
aRet
,
aToken
);
lcl_parseHandleRef
(
aRet
,
aToken
,
"RefY"
);
else
else
SAL_WARN
(
"oox"
,
"lcl_parseHandle: unexpected
value: "
<<
rValue
);
SAL_WARN
(
"oox"
,
"lcl_parseHandle: unexpected
token: "
<<
aToken
);
}
}
}
}
}
}
...
...
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