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
8630982a
Kaydet (Commit)
8630982a
authored
Tem 15, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
wire gridlines in chart elements panel
Change-Id: Ibf1e863d6cc469f0fcc42e0a6077cfa104b16ba1
üst
6dbb9564
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
ChartElementsPanel.cxx
chart2/source/controller/sidebar/ChartElementsPanel.cxx
+30
-0
No files found.
chart2/source/controller/sidebar/ChartElementsPanel.cxx
Dosyayı görüntüle @
8630982a
...
@@ -34,6 +34,8 @@
...
@@ -34,6 +34,8 @@
#include "LegendHelper.hxx"
#include "LegendHelper.hxx"
#include "TitleHelper.hxx"
#include "TitleHelper.hxx"
#include "ChartModelHelper.hxx"
#include "AxisHelper.hxx"
#include "ChartModel.hxx"
#include "ChartModel.hxx"
...
@@ -45,6 +47,14 @@ namespace chart { namespace sidebar {
...
@@ -45,6 +47,14 @@ namespace chart { namespace sidebar {
namespace
{
namespace
{
enum
class
GridType
{
VERT_MAJOR
,
VERT_MINOR
,
HOR_MAJOR
,
HOR_MINOR
};
ChartModel
*
getChartModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
ChartModel
*
getChartModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
{
{
ChartModel
*
pModel
=
dynamic_cast
<
ChartModel
*>
(
xModel
.
get
());
ChartModel
*
pModel
=
dynamic_cast
<
ChartModel
*>
(
xModel
.
get
());
...
@@ -82,6 +92,24 @@ bool isTitleVisisble(css::uno::Reference<css::frame::XModel> xModel, TitleHelper
...
@@ -82,6 +92,24 @@ bool isTitleVisisble(css::uno::Reference<css::frame::XModel> xModel, TitleHelper
return
TitleHelper
::
getTitle
(
eTitle
,
xModel
).
is
();
return
TitleHelper
::
getTitle
(
eTitle
,
xModel
).
is
();
}
}
bool
isGridVisible
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
,
GridType
eType
)
{
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
);
bool
bHasGrid
=
AxisHelper
::
isGridShown
(
nDimensionIndex
,
nCooSysIndex
,
bMajor
,
xDiagram
);
return
bHasGrid
;
}
return
false
;
}
}
}
ChartElementsPanel
::
ChartElementsPanel
(
ChartElementsPanel
::
ChartElementsPanel
(
...
@@ -157,6 +185,8 @@ void ChartElementsPanel::updateData()
...
@@ -157,6 +185,8 @@ void ChartElementsPanel::updateData()
mpCBZAxisTitle
->
Check
(
isTitleVisisble
(
mxModel
,
TitleHelper
::
Z_AXIS_TITLE
));
mpCBZAxisTitle
->
Check
(
isTitleVisisble
(
mxModel
,
TitleHelper
::
Z_AXIS_TITLE
));
mpCB2ndXAxisTitle
->
Check
(
isTitleVisisble
(
mxModel
,
TitleHelper
::
SECONDARY_X_AXIS_TITLE
));
mpCB2ndXAxisTitle
->
Check
(
isTitleVisisble
(
mxModel
,
TitleHelper
::
SECONDARY_X_AXIS_TITLE
));
mpCB2ndYAxisTitle
->
Check
(
isTitleVisisble
(
mxModel
,
TitleHelper
::
SECONDARY_Y_AXIS_TITLE
));
mpCB2ndYAxisTitle
->
Check
(
isTitleVisisble
(
mxModel
,
TitleHelper
::
SECONDARY_Y_AXIS_TITLE
));
mpCBGridVertical
->
Check
(
isGridVisible
(
mxModel
,
GridType
::
VERT_MAJOR
));
mpCBGridHorizontal
->
Check
(
isGridVisible
(
mxModel
,
GridType
::
HOR_MAJOR
));
}
}
VclPtr
<
vcl
::
Window
>
ChartElementsPanel
::
Create
(
VclPtr
<
vcl
::
Window
>
ChartElementsPanel
::
Create
(
...
...
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