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
00754461
Kaydet (Commit)
00754461
authored
Agu 20, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make color button work in chart line sidebar panel
Change-Id: I2148fd9953b283945d2a1bcf24dbc47964b659ae
üst
5cabc2c0
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
5 deletions
+39
-5
ChartAreaPanel.cxx
chart2/source/controller/sidebar/ChartAreaPanel.cxx
+1
-1
ChartColorWrapper.cxx
chart2/source/controller/sidebar/ChartColorWrapper.cxx
+3
-2
ChartColorWrapper.hxx
chart2/source/controller/sidebar/ChartColorWrapper.hxx
+2
-1
ChartLinePanel.cxx
chart2/source/controller/sidebar/ChartLinePanel.cxx
+19
-1
ChartLinePanel.hxx
chart2/source/controller/sidebar/ChartLinePanel.hxx
+2
-0
LinePropertyPanelBase.hxx
include/svx/sidebar/LinePropertyPanelBase.hxx
+10
-0
LinePropertyPanelBase.cxx
svx/source/sidebar/line/LinePropertyPanelBase.cxx
+2
-0
No files found.
chart2/source/controller/sidebar/ChartAreaPanel.cxx
Dosyayı görüntüle @
00754461
...
@@ -247,7 +247,7 @@ ChartAreaPanel::ChartAreaPanel(vcl::Window* pParent,
...
@@ -247,7 +247,7 @@ ChartAreaPanel::ChartAreaPanel(vcl::Window* pParent,
mxSelectionListener
(
new
ChartSidebarSelectionListener
(
this
)),
mxSelectionListener
(
new
ChartSidebarSelectionListener
(
this
)),
mbUpdate
(
true
),
mbUpdate
(
true
),
mbModelValid
(
true
),
mbModelValid
(
true
),
maFillColorWrapper
(
mxModel
,
getColorToolBoxControl
(
mpToolBoxColor
.
get
()))
maFillColorWrapper
(
mxModel
,
getColorToolBoxControl
(
mpToolBoxColor
.
get
())
,
"FillColor"
)
{
{
std
::
vector
<
ObjectType
>
aAcceptedTypes
{
OBJECTTYPE_PAGE
,
OBJECTTYPE_DIAGRAM
,
OBJECTTYPE_DATA_SERIES
,
OBJECTTYPE_TITLE
,
OBJECTTYPE_LEGEND
};
std
::
vector
<
ObjectType
>
aAcceptedTypes
{
OBJECTTYPE_PAGE
,
OBJECTTYPE_DIAGRAM
,
OBJECTTYPE_DATA_SERIES
,
OBJECTTYPE_TITLE
,
OBJECTTYPE_LEGEND
};
mxSelectionListener
->
setAcceptedTypes
(
aAcceptedTypes
);
mxSelectionListener
->
setAcceptedTypes
(
aAcceptedTypes
);
...
...
chart2/source/controller/sidebar/ChartColorWrapper.cxx
Dosyayı görüntüle @
00754461
...
@@ -61,10 +61,11 @@ css::uno::Reference<css::beans::XPropertySet> getPropSet(
...
@@ -61,10 +61,11 @@ css::uno::Reference<css::beans::XPropertySet> getPropSet(
ChartColorWrapper
::
ChartColorWrapper
(
ChartColorWrapper
::
ChartColorWrapper
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
,
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
,
SvxColorToolBoxControl
*
pControl
)
:
SvxColorToolBoxControl
*
pControl
,
const
OUString
&
rName
)
:
mxModel
(
xModel
),
mxModel
(
xModel
),
mpControl
(
pControl
),
mpControl
(
pControl
),
maPropertyName
(
"FillColor"
)
maPropertyName
(
rName
)
{
{
}
}
...
...
chart2/source/controller/sidebar/ChartColorWrapper.hxx
Dosyayı görüntüle @
00754461
...
@@ -23,7 +23,8 @@ private:
...
@@ -23,7 +23,8 @@ private:
public
:
public
:
ChartColorWrapper
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
,
ChartColorWrapper
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
,
SvxColorToolBoxControl
*
pControl
);
SvxColorToolBoxControl
*
pControl
,
const
OUString
&
rPropertyName
);
void
operator
()(
const
OUString
&
rCommand
,
const
Color
&
rColor
);
void
operator
()(
const
OUString
&
rCommand
,
const
Color
&
rColor
);
...
...
chart2/source/controller/sidebar/ChartLinePanel.cxx
Dosyayı görüntüle @
00754461
...
@@ -18,12 +18,22 @@
...
@@ -18,12 +18,22 @@
#include <svx/xlntrit.hxx>
#include <svx/xlntrit.hxx>
#include <svx/unomid.hxx>
#include <svx/unomid.hxx>
#include <svx/tbcontrl.hxx>
#include <sfx2/sidebar/SidebarToolBox.hxx>
#include <com/sun/star/view/XSelectionSupplier.hpp>
#include <com/sun/star/view/XSelectionSupplier.hpp>
namespace
chart
{
namespace
sidebar
{
namespace
chart
{
namespace
sidebar
{
namespace
{
namespace
{
SvxColorToolBoxControl
*
getColorToolBoxControl
(
sfx2
::
sidebar
::
SidebarToolBox
*
pToolBoxColor
)
{
css
::
uno
::
Reference
<
css
::
frame
::
XToolbarController
>
xController
=
pToolBoxColor
->
GetFirstController
();
SvxColorToolBoxControl
*
pToolBoxColorControl
=
dynamic_cast
<
SvxColorToolBoxControl
*>
(
xController
.
get
());
return
pToolBoxColorControl
;
}
OUString
getCID
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
OUString
getCID
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
{
{
css
::
uno
::
Reference
<
css
::
frame
::
XController
>
xController
(
xModel
->
getCurrentController
());
css
::
uno
::
Reference
<
css
::
frame
::
XController
>
xController
(
xModel
->
getCurrentController
());
...
@@ -122,7 +132,8 @@ ChartLinePanel::ChartLinePanel(vcl::Window* pParent,
...
@@ -122,7 +132,8 @@ ChartLinePanel::ChartLinePanel(vcl::Window* pParent,
mxListener
(
new
ChartSidebarModifyListener
(
this
)),
mxListener
(
new
ChartSidebarModifyListener
(
this
)),
mxSelectionListener
(
new
ChartSidebarSelectionListener
(
this
)),
mxSelectionListener
(
new
ChartSidebarSelectionListener
(
this
)),
mbUpdate
(
true
),
mbUpdate
(
true
),
mbModelValid
(
true
)
mbModelValid
(
true
),
maLineColorWrapper
(
mxModel
,
getColorToolBoxControl
(
mpTBColor
.
get
()),
"LineColor"
)
{
{
std
::
vector
<
ObjectType
>
aAcceptedTypes
{
OBJECTTYPE_PAGE
,
OBJECTTYPE_DIAGRAM
,
OBJECTTYPE_DATA_SERIES
,
OBJECTTYPE_TITLE
,
OBJECTTYPE_LEGEND
};
std
::
vector
<
ObjectType
>
aAcceptedTypes
{
OBJECTTYPE_PAGE
,
OBJECTTYPE_DIAGRAM
,
OBJECTTYPE_DATA_SERIES
,
OBJECTTYPE_TITLE
,
OBJECTTYPE_LEGEND
};
mxSelectionListener
->
setAcceptedTypes
(
aAcceptedTypes
);
mxSelectionListener
->
setAcceptedTypes
(
aAcceptedTypes
);
...
@@ -155,6 +166,9 @@ void ChartLinePanel::Initialize()
...
@@ -155,6 +166,9 @@ void ChartLinePanel::Initialize()
if
(
xSelectionSupplier
.
is
())
if
(
xSelectionSupplier
.
is
())
xSelectionSupplier
->
addSelectionChangeListener
(
mxSelectionListener
.
get
());
xSelectionSupplier
->
addSelectionChangeListener
(
mxSelectionListener
.
get
());
SvxColorToolBoxControl
*
pToolBoxColor
=
getColorToolBoxControl
(
mpTBColor
.
get
());
pToolBoxColor
->
setColorSelectFunction
(
maLineColorWrapper
);
setMapUnit
(
SFX_MAPUNIT_100TH_MM
);
setMapUnit
(
SFX_MAPUNIT_100TH_MM
);
updateData
();
updateData
();
}
}
...
@@ -185,6 +199,8 @@ void ChartLinePanel::updateData()
...
@@ -185,6 +199,8 @@ void ChartLinePanel::updateData()
XLineDashItem
aDashItem
;
XLineDashItem
aDashItem
;
aDashItem
.
PutValue
(
aLineDash
,
MID_LINEDASH
);
aDashItem
.
PutValue
(
aLineDash
,
MID_LINEDASH
);
updateLineDash
(
false
,
true
,
&
aDashItem
);
updateLineDash
(
false
,
true
,
&
aDashItem
);
maLineColorWrapper
.
updateData
();
}
}
void
ChartLinePanel
::
modelInvalid
()
void
ChartLinePanel
::
modelInvalid
()
...
@@ -214,6 +230,8 @@ void ChartLinePanel::updateModel(
...
@@ -214,6 +230,8 @@ void ChartLinePanel::updateModel(
mxModel
=
xModel
;
mxModel
=
xModel
;
mbModelValid
=
true
;
mbModelValid
=
true
;
maLineColorWrapper
.
updateModel
(
mxModel
);
css
::
uno
::
Reference
<
css
::
util
::
XModifyBroadcaster
>
xBroadcasterNew
(
mxModel
,
css
::
uno
::
UNO_QUERY_THROW
);
css
::
uno
::
Reference
<
css
::
util
::
XModifyBroadcaster
>
xBroadcasterNew
(
mxModel
,
css
::
uno
::
UNO_QUERY_THROW
);
xBroadcasterNew
->
addModifyListener
(
mxListener
);
xBroadcasterNew
->
addModifyListener
(
mxListener
);
...
...
chart2/source/controller/sidebar/ChartLinePanel.hxx
Dosyayı görüntüle @
00754461
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include "ChartSidebarModifyListener.hxx"
#include "ChartSidebarModifyListener.hxx"
#include "ChartSidebarSelectionListener.hxx"
#include "ChartSidebarSelectionListener.hxx"
#include "ChartColorWrapper.hxx"
class
XFillFloatTransparenceItem
;
class
XFillFloatTransparenceItem
;
class
XFillTransparenceItem
;
class
XFillTransparenceItem
;
...
@@ -96,6 +97,7 @@ private:
...
@@ -96,6 +97,7 @@ private:
bool
mbUpdate
;
bool
mbUpdate
;
bool
mbModelValid
;
bool
mbModelValid
;
ChartColorWrapper
maLineColorWrapper
;
};
};
}
}
// end of namespace svx::sidebar
}
}
// end of namespace svx::sidebar
...
...
include/svx/sidebar/LinePropertyPanelBase.hxx
Dosyayı görüntüle @
00754461
...
@@ -54,6 +54,12 @@ namespace
...
@@ -54,6 +54,12 @@ namespace
}
//end of anonymous namespace
}
//end of anonymous namespace
namespace
sfx2
{
namespace
sidebar
{
class
SidebarToolBox
;
}
}
namespace
svx
namespace
svx
{
{
namespace
sidebar
namespace
sidebar
...
@@ -112,6 +118,10 @@ protected:
...
@@ -112,6 +118,10 @@ protected:
void
setMapUnit
(
SfxMapUnit
eMapUnit
);
void
setMapUnit
(
SfxMapUnit
eMapUnit
);
protected
:
VclPtr
<
sfx2
::
sidebar
::
SidebarToolBox
>
mpTBColor
;
private
:
private
:
//ui controls
//ui controls
VclPtr
<
FixedText
>
mpFTWidth
;
VclPtr
<
FixedText
>
mpFTWidth
;
...
...
svx/source/sidebar/line/LinePropertyPanelBase.cxx
Dosyayı görüntüle @
00754461
...
@@ -165,6 +165,7 @@ LinePropertyPanelBase::LinePropertyPanelBase(
...
@@ -165,6 +165,7 @@ LinePropertyPanelBase::LinePropertyPanelBase(
{
{
get
(
mpFTWidth
,
"widthlabel"
);
get
(
mpFTWidth
,
"widthlabel"
);
get
(
mpTBWidth
,
"width"
);
get
(
mpTBWidth
,
"width"
);
get
(
mpTBColor
,
"color"
);
get
(
mpFTStyle
,
"stylelabel"
);
get
(
mpFTStyle
,
"stylelabel"
);
get
(
mpLBStyle
,
"linestyle"
);
get
(
mpLBStyle
,
"linestyle"
);
get
(
mpFTTransparency
,
"translabel"
);
get
(
mpFTTransparency
,
"translabel"
);
...
@@ -191,6 +192,7 @@ void LinePropertyPanelBase::dispose()
...
@@ -191,6 +192,7 @@ void LinePropertyPanelBase::dispose()
{
{
mpFTWidth
.
clear
();
mpFTWidth
.
clear
();
mpTBWidth
.
clear
();
mpTBWidth
.
clear
();
mpTBColor
.
clear
();
mpFTStyle
.
clear
();
mpFTStyle
.
clear
();
mpLBStyle
.
clear
();
mpLBStyle
.
clear
();
mpFTTransparency
.
clear
();
mpFTTransparency
.
clear
();
...
...
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