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
967157a4
Kaydet (Commit)
967157a4
authored
Haz 11, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:unreffun
Change-Id: I3d5ddbca7760a32231ef7fee19b45bca83667ca7
üst
7b72e505
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
41 deletions
+41
-41
chart2export.cxx
chart2/qa/extras/chart2export.cxx
+41
-41
No files found.
chart2/qa/extras/chart2export.cxx
Dosyayı görüntüle @
967157a4
...
...
@@ -50,7 +50,7 @@ public:
void
testShapeFollowedByChart
();
void
testPieChartDataLabels
();
void
testSeriesIdxOrder
();
void
testScatterPlotLabels
();
//
void testScatterPlotLabels();
void
testErrorBarDataRangeODS
();
void
testChartCrash
();
void
testPieChartRotation
();
...
...
@@ -714,46 +714,46 @@ void Chart2ExportTest::testSeriesIdxOrder()
assertXPath
(
pXmlDoc
,
"/c:chartSpace[1]/c:chart[1]/c:plotArea[1]/c:lineChart[1]/c:ser[1]/c:order[1]"
,
"val"
,
"1"
);
}
void
Chart2ExportTest
::
testScatterPlotLabels
()
{
load
(
"/chart2/qa/extras/data/odg/"
,
"scatter-plot-labels.odg"
);
Reference
<
chart2
::
XChartDocument
>
xChartDoc
(
getChartDocFromDrawImpress
(
0
,
0
),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT
(
xChartDoc
.
is
());
Reference
<
chart2
::
XChartType
>
xCT
=
getChartTypeFromDoc
(
xChartDoc
,
0
,
0
);
CPPUNIT_ASSERT
(
xCT
.
is
());
OUString
aLabelRole
=
xCT
->
getRoleOfSequenceForSeriesLabel
();
Reference
<
chart2
::
XDataSeriesContainer
>
xDSCont
(
xCT
,
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT
(
xDSCont
.
is
());
Sequence
<
uno
::
Reference
<
chart2
::
XDataSeries
>
>
aDataSeriesSeq
=
xDSCont
->
getDataSeries
();
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
3
),
aDataSeriesSeq
.
getLength
());
for
(
sal_Int32
i
=
0
;
i
<
aDataSeriesSeq
.
getLength
();
++
i
)
{
uno
::
Reference
<
chart2
::
data
::
XDataSource
>
xDSrc
(
aDataSeriesSeq
[
i
],
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT
(
xDSrc
.
is
());
uno
::
Sequence
<
Reference
<
chart2
::
data
::
XLabeledDataSequence
>
>
aDataSeqs
=
xDSrc
->
getDataSequences
();
for
(
sal_Int32
j
=
0
;
j
<
aDataSeqs
.
getLength
();
++
j
)
{
Reference
<
chart2
::
data
::
XDataSequence
>
xValues
=
aDataSeqs
[
j
]
->
getValues
();
CPPUNIT_ASSERT
(
xValues
.
is
());
Reference
<
beans
::
XPropertySet
>
xPropSet
(
xValues
,
uno
::
UNO_QUERY
);
if
(
!
xPropSet
.
is
())
continue
;
OUString
aRoleName
;
xPropSet
->
getPropertyValue
(
"Role"
)
>>=
aRoleName
;
if
(
aRoleName
==
aLabelRole
)
{
// TODO : Check the data series labels.
}
}
}
CPPUNIT_ASSERT
(
false
);
}
//
void Chart2ExportTest::testScatterPlotLabels()
//
{
//
load("/chart2/qa/extras/data/odg/", "scatter-plot-labels.odg");
//
Reference<chart2::XChartDocument> xChartDoc(getChartDocFromDrawImpress(0, 0), uno::UNO_QUERY);
//
CPPUNIT_ASSERT(xChartDoc.is());
//
//
Reference<chart2::XChartType> xCT = getChartTypeFromDoc(xChartDoc, 0, 0);
//
CPPUNIT_ASSERT(xCT.is());
//
//
OUString aLabelRole = xCT->getRoleOfSequenceForSeriesLabel();
//
//
Reference<chart2::XDataSeriesContainer> xDSCont(xCT, uno::UNO_QUERY);
//
CPPUNIT_ASSERT(xDSCont.is());
//
Sequence<uno::Reference<chart2::XDataSeries> > aDataSeriesSeq = xDSCont->getDataSeries();
//
CPPUNIT_ASSERT_EQUAL(sal_Int32(3), aDataSeriesSeq.getLength());
//
//
for (sal_Int32 i = 0; i < aDataSeriesSeq.getLength(); ++i)
//
{
//
uno::Reference<chart2::data::XDataSource> xDSrc(aDataSeriesSeq[i], uno::UNO_QUERY);
//
CPPUNIT_ASSERT(xDSrc.is());
//
uno::Sequence<Reference<chart2::data::XLabeledDataSequence> > aDataSeqs = xDSrc->getDataSequences();
//
for (sal_Int32 j = 0; j < aDataSeqs.getLength(); ++j)
//
{
//
Reference<chart2::data::XDataSequence> xValues = aDataSeqs[j]->getValues();
//
CPPUNIT_ASSERT(xValues.is());
//
Reference<beans::XPropertySet> xPropSet(xValues, uno::UNO_QUERY);
//
if (!xPropSet.is())
//
continue;
//
//
OUString aRoleName;
//
xPropSet->getPropertyValue("Role") >>= aRoleName;
//
if (aRoleName == aLabelRole)
//
{
//
// TODO : Check the data series labels.
//
}
//
}
//
}
//
//
CPPUNIT_ASSERT(false);
//
}
void
Chart2ExportTest
::
testErrorBarDataRangeODS
()
{
...
...
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