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
6dbb9564
Kaydet (Commit)
6dbb9564
authored
Tem 15, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
wire title and legend checkboxes
Change-Id: I4c6d5e213f44588cf2d53d9c12ed8033307fd863
üst
1d0696a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
ChartElementsPanel.cxx
chart2/source/controller/sidebar/ChartElementsPanel.cxx
+48
-0
ChartElementsPanel.hxx
chart2/source/controller/sidebar/ChartElementsPanel.hxx
+1
-0
No files found.
chart2/source/controller/sidebar/ChartElementsPanel.cxx
Dosyayı görüntüle @
6dbb9564
...
...
@@ -32,12 +32,58 @@
#include <svl/intitem.hxx>
#include <svl/stritem.hxx>
#include "LegendHelper.hxx"
#include "TitleHelper.hxx"
#include "ChartModel.hxx"
using
namespace
css
;
using
namespace
css
::
uno
;
using
::
sfx2
::
sidebar
::
Theme
;
namespace
chart
{
namespace
sidebar
{
namespace
{
ChartModel
*
getChartModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
{
ChartModel
*
pModel
=
dynamic_cast
<
ChartModel
*>
(
xModel
.
get
());
return
pModel
;
}
bool
isLegendVisible
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
{
ChartModel
*
pModel
=
getChartModel
(
xModel
);
if
(
!
pModel
)
return
false
;
Reference
<
beans
::
XPropertySet
>
xLegendProp
(
LegendHelper
::
getLegend
(
*
pModel
),
uno
::
UNO_QUERY
);
if
(
xLegendProp
.
is
())
{
try
{
bool
bShow
=
false
;
if
(
xLegendProp
->
getPropertyValue
(
"Show"
)
>>=
bShow
)
{
return
bShow
;
}
}
catch
(
const
uno
::
Exception
&
)
{
}
}
return
false
;
}
bool
isTitleVisisble
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
,
TitleHelper
::
eTitleType
eTitle
)
{
return
TitleHelper
::
getTitle
(
eTitle
,
xModel
).
is
();
}
}
ChartElementsPanel
::
ChartElementsPanel
(
vcl
::
Window
*
pParent
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
...
...
@@ -132,6 +178,7 @@ VclPtr<vcl::Window> ChartElementsPanel::Create (
void
ChartElementsPanel
::
DataChanged
(
const
DataChangedEvent
&
)
{
updateData
();
}
void
ChartElementsPanel
::
HandleContextChange
(
...
...
@@ -144,6 +191,7 @@ void ChartElementsPanel::HandleContextChange(
}
maContext
=
rContext
;
updateData
();
}
void
ChartElementsPanel
::
NotifyItemUpdate
(
...
...
chart2/source/controller/sidebar/ChartElementsPanel.hxx
Dosyayı görüntüle @
6dbb9564
...
...
@@ -96,6 +96,7 @@ private:
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
mxModel
;
void
Initialize
();
void
updateData
();
};
}
}
// end of namespace ::chart::sidebar
...
...
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