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
0e3bd5c0
Kaydet (Commit)
0e3bd5c0
authored
Nis 02, 2012
tarafından
Rafael Dominguez
Kaydeden (comit)
Markus Mohrhard
Nis 11, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Display correct errorbars columns in chart data browser.
üst
883d20c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
34 deletions
+9
-34
DataBrowserModel.cxx
chart2/source/controller/dialogs/DataBrowserModel.cxx
+8
-33
DataBrowserModel.hxx
chart2/source/controller/dialogs/DataBrowserModel.hxx
+1
-1
No files found.
chart2/source/controller/dialogs/DataBrowserModel.cxx
Dosyayı görüntüle @
0e3bd5c0
...
...
@@ -918,7 +918,10 @@ void DataBrowserModel::updateFromModel()
// add ranges for error bars if present for a series
if
(
StatisticsHelper
::
usesErrorBarRanges
(
aSeries
[
nSeriesIdx
],
/* bYError = */
true
))
addErrorBarRanges
(
aSeries
[
nSeriesIdx
],
nYAxisNumberFormatKey
,
nSeqIdx
,
nHeaderEnd
);
addErrorBarRanges
(
aSeries
[
nSeriesIdx
],
nYAxisNumberFormatKey
,
nSeqIdx
,
nHeaderEnd
,
true
);
if
(
StatisticsHelper
::
usesErrorBarRanges
(
aSeries
[
nSeriesIdx
],
/* bYError = */
false
))
addErrorBarRanges
(
aSeries
[
nSeriesIdx
],
nYAxisNumberFormatKey
,
nSeqIdx
,
nHeaderEnd
,
false
);
m_aHeaders
.
push_back
(
tDataHeader
(
...
...
@@ -942,59 +945,31 @@ void DataBrowserModel::addErrorBarRanges(
const
Reference
<
chart2
::
XDataSeries
>
&
xDataSeries
,
sal_Int32
nNumberFormatKey
,
sal_Int32
&
rInOutSequenceIndex
,
sal_Int32
&
rInOutHeaderEnd
)
sal_Int32
&
rInOutHeaderEnd
,
bool
bYError
)
{
try
{
::
std
::
vector
<
Reference
<
chart2
::
data
::
XLabeledDataSequence
>
>
aSequences
;
// x error bars
// ------------
Reference
<
chart2
::
data
::
XDataSource
>
xErrorSource
(
StatisticsHelper
::
getErrorBars
(
xDataSeries
,
/* bYError = */
false
),
uno
::
UNO_QUERY
);
StatisticsHelper
::
getErrorBars
(
xDataSeries
,
bYError
),
uno
::
UNO_QUERY
);
// positive x error bars
Reference
<
chart2
::
data
::
XLabeledDataSequence
>
xErrorLSequence
(
StatisticsHelper
::
getErrorLabeledDataSequenceFromDataSource
(
xErrorSource
,
/* bPositiveValue = */
true
,
/* bYError = */
false
));
bYError
));
if
(
xErrorLSequence
.
is
())
aSequences
.
push_back
(
xErrorLSequence
);
// negative x error bars
xErrorLSequence
.
set
(
StatisticsHelper
::
getErrorLabeledDataSequenceFromDataSource
(
xErrorSource
,
/* bPositiveValue = */
false
,
/* bYError = */
false
));
if
(
xErrorLSequence
.
is
())
aSequences
.
push_back
(
xErrorLSequence
);
// y error bars
// ------------
xErrorSource
.
set
(
StatisticsHelper
::
getErrorBars
(
xDataSeries
,
/* bYError = */
true
),
uno
::
UNO_QUERY
);
// positive y error bars
xErrorLSequence
.
set
(
StatisticsHelper
::
getErrorLabeledDataSequenceFromDataSource
(
xErrorSource
,
/* bPositiveValue = */
true
,
/* bYError = */
true
));
bYError
));
if
(
xErrorLSequence
.
is
())
aSequences
.
push_back
(
xErrorLSequence
);
// negative y error bars
xErrorLSequence
.
set
(
StatisticsHelper
::
getErrorLabeledDataSequenceFromDataSource
(
xErrorSource
,
/* bPositiveValue = */
false
,
/* bYError = */
true
));
if
(
xErrorLSequence
.
is
())
aSequences
.
push_back
(
xErrorLSequence
);
for
(
::
std
::
vector
<
Reference
<
chart2
::
data
::
XLabeledDataSequence
>
>::
const_iterator
aIt
(
aSequences
.
begin
());
aIt
!=
aSequences
.
end
();
++
aIt
)
{
...
...
chart2/source/controller/dialogs/DataBrowserModel.hxx
Dosyayı görüntüle @
0e3bd5c0
...
...
@@ -159,7 +159,7 @@ private:
::
com
::
sun
::
star
::
chart2
::
XDataSeries
>
&
xDataSeries
,
sal_Int32
nNumberFormatKey
,
sal_Int32
&
rInOutSequenceIndex
,
sal_Int32
&
rInOutHeaderEnd
);
sal_Int32
&
rInOutHeaderEnd
,
bool
bYError
);
sal_Int32
getCategoryColumnCount
();
...
...
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