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
b5c0f852
Kaydet (Commit)
b5c0f852
authored
Tem 23, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
update gradients in sidebar as well
Change-Id: I0dc737c133e905d75fab23457fb86c8d2b724ce8
üst
e4daf8be
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
ChartController.hxx
chart2/source/controller/inc/ChartController.hxx
+3
-0
ChartController.cxx
chart2/source/controller/main/ChartController.cxx
+6
-0
ChartAreaPanel.cxx
chart2/source/controller/sidebar/ChartAreaPanel.cxx
+34
-0
No files found.
chart2/source/controller/inc/ChartController.hxx
Dosyayı görüntüle @
b5c0f852
...
@@ -127,6 +127,7 @@ class ChartWindow;
...
@@ -127,6 +127,7 @@ class ChartWindow;
class
DrawModelWrapper
;
class
DrawModelWrapper
;
class
DrawViewWrapper
;
class
DrawViewWrapper
;
class
ReferenceSizeProvider
;
class
ReferenceSizeProvider
;
class
ViewElementListProvider
;
class
ChartController
:
public
::
cppu
::
WeakImplHelper12
<
class
ChartController
:
public
::
cppu
::
WeakImplHelper12
<
::
com
::
sun
::
star
::
frame
::
XController
//comprehends XComponent (required interface)
::
com
::
sun
::
star
::
frame
::
XController
//comprehends XComponent (required interface)
...
@@ -433,6 +434,8 @@ public:
...
@@ -433,6 +434,8 @@ public:
bool
isShapeContext
()
const
;
bool
isShapeContext
()
const
;
ViewElementListProvider
getViewElementListProvider
();
DECL_LINK
(
NotifyUndoActionHdl
,
SdrUndoAction
*
);
DECL_LINK
(
NotifyUndoActionHdl
,
SdrUndoAction
*
);
public
:
public
:
...
...
chart2/source/controller/main/ChartController.cxx
Dosyayı görüntüle @
b5c0f852
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
#include "DrawCommandDispatch.hxx"
#include "DrawCommandDispatch.hxx"
#include "ShapeController.hxx"
#include "ShapeController.hxx"
#include "UndoActions.hxx"
#include "UndoActions.hxx"
#include "ViewElementListProvider.hxx"
#include <comphelper/InlineContainer.hxx>
#include <comphelper/InlineContainer.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/supportsservice.hxx>
...
@@ -1623,6 +1624,11 @@ void ChartController::impl_initializeAccessible( const uno::Reference< lang::XIn
...
@@ -1623,6 +1624,11 @@ void ChartController::impl_initializeAccessible( const uno::Reference< lang::XIn
;
;
}
}
ViewElementListProvider
ChartController
::
getViewElementListProvider
()
{
return
ViewElementListProvider
(
m_pDrawModelWrapper
.
get
());
}
}
//namespace chart
}
//namespace chart
extern
"C"
SAL_DLLPUBLIC_EXPORT
css
::
uno
::
XInterface
*
SAL_CALL
extern
"C"
SAL_DLLPUBLIC_EXPORT
css
::
uno
::
XInterface
*
SAL_CALL
...
...
chart2/source/controller/sidebar/ChartAreaPanel.cxx
Dosyayı görüntüle @
b5c0f852
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include "ChartAreaPanel.hxx"
#include "ChartAreaPanel.hxx"
#include "ChartController.hxx"
#include "ChartController.hxx"
#include "ViewElementListProvider.hxx"
#include <svx/xfltrit.hxx>
#include <svx/xfltrit.hxx>
#include <svx/xflftrit.hxx>
#include <svx/xflftrit.hxx>
...
@@ -42,6 +43,33 @@ css::uno::Reference<css::beans::XPropertySet> getPropSet(
...
@@ -42,6 +43,33 @@ css::uno::Reference<css::beans::XPropertySet> getPropSet(
return
ObjectIdentifier
::
getObjectPropertySet
(
aCID
,
xModel
);
return
ObjectIdentifier
::
getObjectPropertySet
(
aCID
,
xModel
);
}
}
XGradient
getXGradientForName
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
,
const
OUString
&
rName
)
{
css
::
uno
::
Reference
<
css
::
frame
::
XController
>
xController
=
xModel
->
getCurrentController
();
if
(
!
xController
.
is
())
return
XGradient
();
ChartController
*
pController
=
dynamic_cast
<
ChartController
*>
(
xController
.
get
());
if
(
!
pController
)
return
XGradient
();
ViewElementListProvider
aProvider
=
pController
->
getViewElementListProvider
();
XGradientListRef
aRef
=
aProvider
.
GetGradientList
();
size_t
n
=
aRef
->
Count
();
for
(
size_t
i
=
0
;
i
<
n
;
++
i
)
{
XGradientEntry
*
pGradient
=
aRef
->
GetGradient
(
i
);
if
(
!
pGradient
)
continue
;
if
(
pGradient
->
GetName
()
==
rName
)
return
XGradient
(
pGradient
->
GetGradient
());
}
return
XGradient
();
}
class
PreventUpdate
class
PreventUpdate
{
{
public
:
public
:
...
@@ -215,6 +243,12 @@ void ChartAreaPanel::updateData()
...
@@ -215,6 +243,12 @@ void ChartAreaPanel::updateData()
xPropSet
->
getPropertyValue
(
"Transparency"
)
>>=
nFillTransparence
;
xPropSet
->
getPropertyValue
(
"Transparency"
)
>>=
nFillTransparence
;
SfxUInt16Item
aTransparenceItem
(
0
,
nFillTransparence
);
SfxUInt16Item
aTransparenceItem
(
0
,
nFillTransparence
);
updateFillTransparence
(
false
,
true
,
&
aTransparenceItem
);
updateFillTransparence
(
false
,
true
,
&
aTransparenceItem
);
OUString
aGradientName
;
xPropSet
->
getPropertyValue
(
"GradientName"
)
>>=
aGradientName
;
XGradient
xGradient
=
getXGradientForName
(
mxModel
,
aGradientName
);
XFillGradientItem
aGradientItem
(
aGradientName
,
xGradient
);
updateFillGradient
(
false
,
true
,
&
aGradientItem
);
}
}
void
ChartAreaPanel
::
modelInvalid
()
void
ChartAreaPanel
::
modelInvalid
()
...
...
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