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
a54845ee
Kaydet (Commit)
a54845ee
authored
Haz 28, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
refactor out getCells() in for chart seqs too
Change-Id: I1d18f1b7bdda8d95c2d2dd4256ca05aa0c60d5f4
üst
9ee481cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
18 deletions
+14
-18
unochart.hxx
sw/inc/unochart.hxx
+2
-0
unochart.cxx
sw/source/core/unocore/unochart.cxx
+12
-18
No files found.
sw/inc/unochart.hxx
Dosyayı görüntüle @
a54845ee
...
...
@@ -40,6 +40,7 @@
#include <com/sun/star/util/XModifyBroadcaster.hpp>
#include <com/sun/star/util/XModifyListener.hpp>
#include <com/sun/star/chart/ChartDataRowSource.hpp>
#include <com/sun/star/table/XCell.hpp>
#include <cppuhelper/interfacecontainer.h>
#include <cppuhelper/implbase.hxx>
...
...
@@ -349,6 +350,7 @@ public:
void
FillRangeDesc
(
SwRangeDescriptor
&
rRangeDesc
)
const
;
bool
ExtendTo
(
bool
bExtendCol
,
sal_Int32
nFirstNew
,
sal_Int32
nCount
);
std
::
vector
<
css
::
uno
::
Reference
<
css
::
table
::
XCell
>
>
getCells
();
};
typedef
cppu
::
WeakImplHelper
...
...
sw/source/core/unocore/unochart.cxx
Dosyayı görüntüle @
a54845ee
...
...
@@ -2169,22 +2169,27 @@ uno::Sequence< OUString > SAL_CALL SwChartDataSequence::generateLabel(
return
0
;
}
uno
::
Sequence
<
OUString
>
SAL_CALL
SwChartDataSequence
::
getTextualData
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
std
::
vector
<
css
::
uno
::
Reference
<
css
::
table
::
XCell
>
>
SwChartDataSequence
::
getCells
()
{
SolarMutexGuard
aGuard
;
if
(
bDisposed
)
throw
lang
::
DisposedException
();
SwFrameFormat
*
pTableFormat
=
GetFrameFormat
(
);
auto
pTableFormat
(
GetFrameFormat
()
);
if
(
!
pTableFormat
)
return
{};
SwTable
*
pTable
=
SwTable
::
FindTable
(
pTableFormat
);
auto
pTable
(
SwTable
::
FindTable
(
pTableFormat
)
);
if
(
pTable
->
IsTableComplex
())
return
{};
SwRangeDescriptor
aDesc
;
if
(
!
FillRangeDescriptor
(
aDesc
,
GetCellRangeName
(
*
pTableFormat
,
*
pTableCrsr
)))
return
{};
auto
vCells
(
SwXCellRange
(
pTableCrsr
,
*
pTableFormat
,
aDesc
).
getCells
());
return
SwXCellRange
(
pTableCrsr
,
*
pTableFormat
,
aDesc
).
getCells
();
}
uno
::
Sequence
<
OUString
>
SAL_CALL
SwChartDataSequence
::
getTextualData
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
SolarMutexGuard
aGuard
;
auto
vCells
(
getCells
());
uno
::
Sequence
<
OUString
>
vTextData
(
vCells
.
size
());
std
::
transform
(
vCells
.
begin
(),
vCells
.
end
(),
...
...
@@ -2198,18 +2203,7 @@ uno::Sequence< double > SAL_CALL SwChartDataSequence::getNumericalData()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
SolarMutexGuard
aGuard
;
if
(
bDisposed
)
throw
lang
::
DisposedException
();
SwFrameFormat
*
pTableFormat
=
GetFrameFormat
();
if
(
!
pTableFormat
)
return
{};
SwTable
*
pTable
=
SwTable
::
FindTable
(
pTableFormat
);
if
(
pTable
->
IsTableComplex
())
return
{};
SwRangeDescriptor
aDesc
;
if
(
!
FillRangeDescriptor
(
aDesc
,
GetCellRangeName
(
*
pTableFormat
,
*
pTableCrsr
)))
return
{};
auto
vCells
(
SwXCellRange
(
pTableCrsr
,
*
pTableFormat
,
aDesc
).
getCells
());
auto
vCells
(
getCells
());
uno
::
Sequence
<
double
>
vNumData
(
vCells
.
size
());
std
::
transform
(
vCells
.
begin
(),
vCells
.
end
(),
...
...
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