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
749a0845
Kaydet (Commit)
749a0845
authored
Eki 03, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
don't show area and line panel in pie chart Chart selection, tdf#94320
Change-Id: I0eacedbb3d96a059278bab0ef98a66ed49b827fc
üst
c70c4d20
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
1 deletion
+34
-1
ChartController.cxx
chart2/source/controller/main/ChartController.cxx
+27
-0
EnumContext.hxx
include/sfx2/sidebar/EnumContext.hxx
+1
-0
Sidebar.xcu
officecfg/registry/data/org/openoffice/Office/UI/Sidebar.xcu
+5
-1
EnumContext.cxx
sfx2/source/sidebar/EnumContext.cxx
+1
-0
No files found.
chart2/source/controller/main/ChartController.cxx
Dosyayı görüntüle @
749a0845
...
...
@@ -61,6 +61,8 @@
#include <com/sun/star/document/XUndoManagerSupplier.hpp>
#include <com/sun/star/document/XUndoAction.hpp>
#include <com/sun/star/ui/XSidebar.hpp>
#include <com/sun/star/chart2/XChartTypeContainer.hpp>
#include <com/sun/star/chart2/XCoordinateSystemContainer.hpp>
#include <svx/sidebar/SelectionChangeHandler.hxx>
#include <vcl/msgbox.hxx>
...
...
@@ -298,6 +300,26 @@ bool ChartController::TheModelRef::is() const
return
(
m_pTheModel
!=
0
);
}
namespace
{
css
::
uno
::
Reference
<
css
::
chart2
::
XChartType
>
getChartType
(
css
::
uno
::
Reference
<
css
::
chart2
::
XChartDocument
>
xChartDoc
)
{
Reference
<
chart2
::
XDiagram
>
xDiagram
=
xChartDoc
->
getFirstDiagram
();
Reference
<
chart2
::
XCoordinateSystemContainer
>
xCooSysContainer
(
xDiagram
,
uno
::
UNO_QUERY_THROW
);
Sequence
<
Reference
<
chart2
::
XCoordinateSystem
>
>
xCooSysSequence
(
xCooSysContainer
->
getCoordinateSystems
());
Reference
<
chart2
::
XChartTypeContainer
>
xChartTypeContainer
(
xCooSysSequence
[
0
],
uno
::
UNO_QUERY_THROW
);
Sequence
<
Reference
<
chart2
::
XChartType
>
>
xChartTypeSequence
(
xChartTypeContainer
->
getChartTypes
()
);
return
xChartTypeSequence
[
0
];
}
}
OUString
ChartController
::
GetContextName
()
{
if
(
m_bDisposed
)
...
...
@@ -314,6 +336,8 @@ OUString ChartController::GetContextName()
return
OUString
(
"Chart"
);
ObjectType
eObjectID
=
ObjectIdentifier
::
getObjectType
(
aCID
);
css
::
uno
::
Reference
<
css
::
chart2
::
XChartType
>
xChartType
=
getChartType
(
css
::
uno
::
Reference
<
css
::
chart2
::
XChartDocument
>
(
getModel
(),
uno
::
UNO_QUERY_THROW
));
switch
(
eObjectID
)
{
case
OBJECTTYPE_DATA_SERIES
:
...
...
@@ -327,6 +351,9 @@ OUString ChartController::GetContextName()
return
OUString
(
"Axis"
);
case
OBJECTTYPE_GRID
:
return
OUString
(
"Grid"
);
case
OBJECTTYPE_DIAGRAM
:
if
(
xChartType
->
getChartType
()
==
"com.sun.star.chart2.PieChartType"
)
return
OUString
(
"ChartElements"
);
default
:
break
;
}
...
...
include/sfx2/sidebar/EnumContext.hxx
Dosyayı görüntüle @
749a0845
...
...
@@ -69,6 +69,7 @@ public:
Context_Axis
,
Context_Cell
,
Context_Chart
,
Context_ChartElements
,
Context_Draw
,
Context_DrawLine
,
Context_DrawPage
,
...
...
officecfg/registry/data/org/openoffice/Office/UI/Sidebar.xcu
Dosyayı görüntüle @
749a0845
...
...
@@ -1307,7 +1307,11 @@
</prop>
<prop
oor:name=
"ContextList"
>
<value
oor:separator=
";"
>
Chart, any, visible ;
Chart, Chart, visible ;
Chart, Series, visible ;
Chart, ErrorBar, visible ;
Chart, Axis, visible ;
Chart, Grid, visible ;
</value>
</prop>
<prop
oor:name=
"ImplementationURL"
oor:type=
"xs:string"
>
...
...
sfx2/source/sidebar/EnumContext.cxx
Dosyayı görüntüle @
749a0845
...
...
@@ -179,6 +179,7 @@ void EnumContext::ProvideContextContainers()
AddContext
(
Cell
);
AddContext
(
Chart
);
AddContext
(
Chart
);
AddContext
(
ChartElements
);
AddContext
(
Draw
);
AddContext
(
DrawLine
);
AddContext
(
DrawPage
);
...
...
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