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
374d3fbf
Kaydet (Commit)
374d3fbf
authored
Tem 15, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
handle changes to legend checkbox
Change-Id: I3901ce4f7664eb7b8eca50014f5916fd6ccb0854
üst
234ac0e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
ChartElementsPanel.cxx
chart2/source/controller/sidebar/ChartElementsPanel.cxx
+14
-0
No files found.
chart2/source/controller/sidebar/ChartElementsPanel.cxx
Dosyayı görüntüle @
374d3fbf
...
...
@@ -136,6 +136,18 @@ bool isLegendVisible(css::uno::Reference<css::frame::XModel> xModel)
return
false
;
}
void
setLegendVisible
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
,
bool
bVisible
)
{
ChartModel
*
pModel
=
getChartModel
(
xModel
);
if
(
!
pModel
)
return
;
if
(
bVisible
)
LegendHelper
::
showLegend
(
*
pModel
,
comphelper
::
getProcessComponentContext
());
else
LegendHelper
::
hideLegend
(
*
pModel
);
}
bool
isTitleVisisble
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
,
TitleHelper
::
eTitleType
eTitle
)
{
return
TitleHelper
::
getTitle
(
eTitle
,
xModel
).
is
();
...
...
@@ -402,6 +414,8 @@ IMPL_LINK(ChartElementsPanel, CheckBoxHdl, CheckBox*, pCheckBox)
setAxisVisible
(
mxModel
,
AxisType
::
Y_SECOND
,
bChecked
);
else
if
(
pCheckBox
==
mpCB2ndYAxisTitle
.
get
())
setTitleVisible
(
mxModel
,
TitleHelper
::
SECONDARY_Y_AXIS_TITLE
,
bChecked
);
else
if
(
pCheckBox
==
mpCBLegend
.
get
())
setLegendVisible
(
mxModel
,
bChecked
);
return
0
;
}
...
...
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