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
6503c1c9
Kaydet (Commit)
6503c1c9
authored
Tem 15, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
handle change to grid line checkboxes
Change-Id: Ib39dc1669dfefe82eaefff1608de4fe1d4ef5832
üst
374d3fbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
ChartElementsPanel.cxx
chart2/source/controller/sidebar/ChartElementsPanel.cxx
+24
-0
No files found.
chart2/source/controller/sidebar/ChartElementsPanel.cxx
Dosyayı görüntüle @
6503c1c9
...
...
@@ -183,6 +183,26 @@ bool isGridVisible(css::uno::Reference<css::frame::XModel> xModel, GridType eTyp
return
false
;
}
void
setGridVisible
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
,
GridType
eType
,
bool
bVisible
)
{
Reference
<
chart2
::
XDiagram
>
xDiagram
(
ChartModelHelper
::
findDiagram
(
xModel
));
if
(
xDiagram
.
is
())
{
sal_Int32
nDimensionIndex
=
0
;
if
(
eType
==
GridType
::
HOR_MAJOR
||
eType
==
GridType
::
HOR_MINOR
)
nDimensionIndex
=
1
;
sal_Int32
nCooSysIndex
=
0
;
bool
bMajor
=
(
eType
==
GridType
::
HOR_MAJOR
||
eType
==
GridType
::
VERT_MAJOR
);
if
(
bVisible
)
AxisHelper
::
showGrid
(
nDimensionIndex
,
nCooSysIndex
,
bMajor
,
xDiagram
,
comphelper
::
getProcessComponentContext
());
else
AxisHelper
::
hideGrid
(
nDimensionIndex
,
nCooSysIndex
,
bMajor
,
xDiagram
);
}
}
bool
isAxisVisible
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
,
AxisType
eType
)
{
Reference
<
chart2
::
XDiagram
>
xDiagram
(
ChartModelHelper
::
findDiagram
(
xModel
));
...
...
@@ -416,6 +436,10 @@ IMPL_LINK(ChartElementsPanel, CheckBoxHdl, CheckBox*, pCheckBox)
setTitleVisible
(
mxModel
,
TitleHelper
::
SECONDARY_Y_AXIS_TITLE
,
bChecked
);
else
if
(
pCheckBox
==
mpCBLegend
.
get
())
setLegendVisible
(
mxModel
,
bChecked
);
else
if
(
pCheckBox
==
mpCBGridVertical
.
get
())
setGridVisible
(
mxModel
,
GridType
::
VERT_MAJOR
,
bChecked
);
else
if
(
pCheckBox
==
mpCBGridHorizontal
.
get
())
setGridVisible
(
mxModel
,
GridType
::
HOR_MAJOR
,
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