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
1e9993be
Kaydet (Commit)
1e9993be
authored
Mar 09, 2014
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
Mar 09, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
don't hardcode property mapping, read them from chart2::XChartType
Change-Id: I7889dbddab603d7650d58a04f53e7c5fe38fcce2
üst
caac9026
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
8 deletions
+42
-8
dlg_PropertyMapping.cxx
chart2/source/controller/dialogs/dlg_PropertyMapping.cxx
+6
-5
dlg_PropertyMapping.hxx
chart2/source/controller/dialogs/dlg_PropertyMapping.hxx
+4
-1
tp_DataSource.cxx
chart2/source/controller/dialogs/tp_DataSource.cxx
+5
-1
BubbleChartType.cxx
chart2/source/model/template/BubbleChartType.cxx
+9
-1
BubbleChartType.hxx
chart2/source/model/template/BubbleChartType.hxx
+3
-0
ChartType.cxx
chart2/source/model/template/ChartType.cxx
+6
-0
ChartType.hxx
chart2/source/model/template/ChartType.hxx
+3
-0
XChartType.idl
offapi/com/sun/star/chart2/XChartType.idl
+6
-0
No files found.
chart2/source/controller/dialogs/dlg_PropertyMapping.cxx
Dosyayı görüntüle @
1e9993be
...
...
@@ -9,6 +9,8 @@
#include "dlg_PropertyMapping.hxx"
using
namespace
com
::
sun
::
star
;
namespace
chart
{
namespace
{
...
...
@@ -38,7 +40,7 @@ std::vector<OUString> getEntries()
}
PropertyMappingDlg
::
PropertyMappingDlg
(
Window
*
pParent
)
PropertyMappingDlg
::
PropertyMappingDlg
(
Window
*
pParent
,
uno
::
Reference
<
chart2
::
XChartType
>
xChartType
)
:
ModalDialog
(
pParent
,
"PropertyMappingDialog"
,
"modules/schart/ui/dlg_PropertyMapping.ui"
)
{
...
...
@@ -47,11 +49,10 @@ PropertyMappingDlg::PropertyMappingDlg(Window* pParent)
get
(
mpBtnCancel
,
"cancel"
);
mpMappingTable
->
SetTabs
(
pListBoxTabs
,
MAP_APPFONT
);
std
::
vector
<
OUString
>
aEntries
=
getEntries
();
for
(
std
::
vector
<
OUString
>::
const_iterator
itr
=
aEntries
.
begin
(),
itrEnd
=
aEntries
.
end
();
itr
!=
itrEnd
;
++
itr
)
uno
::
Sequence
<
OUString
>
aPropRoles
=
xChartType
->
getSupportedPropertyRoles
();
for
(
sal_Int32
i
=
0
,
n
=
aPropRoles
.
getLength
();
i
<
n
;
++
i
)
{
mpMappingTable
->
InsertEntry
(
*
itr
);
mpMappingTable
->
InsertEntry
(
aPropRoles
[
i
]
);
}
mpBtnOk
->
SetClickHdl
(
LINK
(
this
,
PropertyMappingDlg
,
OkBtnHdl
)
);
mpBtnCancel
->
SetClickHdl
(
LINK
(
this
,
PropertyMappingDlg
,
CancelBtnHdl
)
);
...
...
chart2/source/controller/dialogs/dlg_PropertyMapping.hxx
Dosyayı görüntüle @
1e9993be
...
...
@@ -14,13 +14,16 @@
#include <vcl/button.hxx>
#include <svtools/svtabbx.hxx>
#include <com/sun/star/chart2/XChartType.hpp>
namespace
chart
{
class
PropertyMappingDlg
:
public
ModalDialog
{
public
:
PropertyMappingDlg
(
Window
*
pParent
);
PropertyMappingDlg
(
Window
*
pParent
,
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
chart2
::
XChartType
>
xChartType
);
OUString
getSelectedEntry
();
...
...
chart2/source/controller/dialogs/tp_DataSource.cxx
Dosyayı görüntüle @
1e9993be
...
...
@@ -761,7 +761,11 @@ IMPL_LINK( DataSourceTabPage, RangeUpdateDataHdl, Edit*, pEdit )
IMPL_LINK_NOARG
(
DataSourceTabPage
,
AddMappingHdl
)
{
PropertyMappingDlg
aDlg
(
this
);
SeriesEntry
*
pSeriesEntry
=
dynamic_cast
<
SeriesEntry
*
>
(
m_pLB_SERIES
->
FirstSelected
());
if
(
!
pSeriesEntry
)
return
0
;
PropertyMappingDlg
aDlg
(
this
,
pSeriesEntry
->
m_xChartType
);
short
aRet
=
aDlg
.
Execute
();
if
(
aRet
==
RET_OK
)
{
...
...
chart2/source/model/template/BubbleChartType.cxx
Dosyayı görüntüle @
1e9993be
...
...
@@ -167,7 +167,6 @@ uno::Sequence< OUString > SAL_CALL BubbleChartType::getSupportedMandatoryRoles()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
uno
::
Sequence
<
OUString
>
aMandRolesSeq
(
4
);
aMandRolesSeq
.
realloc
(
4
);
aMandRolesSeq
[
0
]
=
"label"
;
aMandRolesSeq
[
1
]
=
"values-x"
;
aMandRolesSeq
[
2
]
=
"values-y"
;
...
...
@@ -175,6 +174,15 @@ uno::Sequence< OUString > SAL_CALL BubbleChartType::getSupportedMandatoryRoles()
return
aMandRolesSeq
;
}
uno
::
Sequence
<
OUString
>
SAL_CALL
BubbleChartType
::
getSupportedPropertyRoles
()
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
uno
::
Sequence
<
OUString
>
aPropertyRoles
(
2
);
aPropertyRoles
[
0
]
=
"FillColor"
;
aPropertyRoles
[
1
]
=
"BorderColor"
;
return
aPropertyRoles
;
}
OUString
SAL_CALL
BubbleChartType
::
getRoleOfSequenceForSeriesLabel
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
...
...
chart2/source/model/template/BubbleChartType.hxx
Dosyayı görüntüle @
1e9993be
...
...
@@ -48,6 +48,9 @@ protected:
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedMandatoryRoles
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedPropertyRoles
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
chart2
::
XCoordinateSystem
>
SAL_CALL
createCoordinateSystem
(
::
sal_Int32
DimensionCount
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
...
...
chart2/source/model/template/ChartType.cxx
Dosyayı görüntüle @
1e9993be
...
...
@@ -122,6 +122,12 @@ Sequence< OUString > SAL_CALL ChartType::getSupportedOptionalRoles()
return
Sequence
<
OUString
>
();
}
Sequence
<
OUString
>
SAL_CALL
ChartType
::
getSupportedPropertyRoles
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
return
Sequence
<
OUString
>
();
}
OUString
SAL_CALL
ChartType
::
getRoleOfSequenceForSeriesLabel
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
...
...
chart2/source/model/template/ChartType.hxx
Dosyayı görüntüle @
1e9993be
...
...
@@ -80,6 +80,9 @@ protected:
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
OUString
SAL_CALL
getRoleOfSequenceForSeriesLabel
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedPropertyRoles
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
);
// ____ XDataSeriesContainer ____
virtual
void
SAL_CALL
addDataSeries
(
...
...
offapi/com/sun/star/chart2/XChartType.idl
Dosyayı görüntüle @
1e9993be
...
...
@@ -72,6 +72,12 @@ interface XChartType : com::sun::star::uno::XInterface
*/
sequence
<
string
>
getSupportedOptionalRoles
()
;
/**
Returns
a
sequence
with
supported
property
mapping
roles
.
<
p
>
An
example
for
a
property
mappong
role
is
FillColor
.
</p>
*/
sequence
<
string
>
getSupportedPropertyRoles
()
;
/**
Returns
the
role
of
the
XLabeledDataSequence
of
which
the
label
will
be
taken
to
identify
the
DataSeries
in
dialogs
or
the
legend
.
...
...
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