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
f6f179c5
Kaydet (Commit)
f6f179c5
authored
Mar 27, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Pass the rounded edge property to the diagram object.
Change-Id: I71fa1bf82b879a1da69ca78d53bcf8072bdfa9ae
üst
cea72511
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
17 deletions
+42
-17
DiagramWrapper.cxx
chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
+9
-1
ChartTypeDialogController.cxx
...2/source/controller/dialogs/ChartTypeDialogController.cxx
+8
-8
ChartTypeDialogController.hxx
...2/source/controller/dialogs/ChartTypeDialogController.hxx
+1
-1
tp_ChartType.cxx
chart2/source/controller/dialogs/tp_ChartType.cxx
+12
-2
Diagram.cxx
chart2/source/model/main/Diagram.cxx
+8
-1
GL3DBarChartType.cxx
chart2/source/model/template/GL3DBarChartType.cxx
+4
-4
No files found.
chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
Dosyayı görüntüle @
f6f179c5
...
...
@@ -137,7 +137,9 @@ enum
PROP_DIAGRAM_DATATABLEHBORDER
,
PROP_DIAGRAM_DATATABLEVBORDER
,
PROP_DIAGRAM_DATATABLEOUTLINE
,
PROP_DIAGRAM_EXTERNALDATA
PROP_DIAGRAM_EXTERNALDATA
,
PROP_DIAGRAM_ROUNDED_EDGE
};
void
lcl_AddPropertiesToVector
(
...
...
@@ -444,6 +446,12 @@ void lcl_AddPropertiesToVector(
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
MAYBEVOID
));
rOutProperties
.
push_back
(
Property
(
"RoundedEdge"
,
PROP_DIAGRAM_ROUNDED_EDGE
,
::
getCppuBooleanType
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
MAYBEVOID
));
}
struct
StaticDiagramWrapperPropertyArray_Initializer
...
...
chart2/source/controller/dialogs/ChartTypeDialogController.cxx
Dosyayı görüntüle @
f6f179c5
...
...
@@ -60,7 +60,7 @@ ChartTypeParameter::ChartTypeParameter()
,
nGeometry3D
(
DataPointGeometry3D
::
CUBOID
)
,
eThreeDLookScheme
(
ThreeDLookScheme_Realistic
)
,
bSortByXValues
(
false
)
,
mb
GL
RoundedEdge
(
false
)
,
mbRoundedEdge
(
false
)
{
}
...
...
@@ -80,7 +80,7 @@ ChartTypeParameter::ChartTypeParameter( sal_Int32 SubTypeIndex, bool HasXAxisWit
,
nGeometry3D
(
DataPointGeometry3D
::
CUBOID
)
,
eThreeDLookScheme
(
ThreeDLookScheme_Realistic
)
,
bSortByXValues
(
false
)
,
mb
GL
RoundedEdge
(
false
)
,
mbRoundedEdge
(
false
)
{
}
ChartTypeParameter
::~
ChartTypeParameter
()
...
...
@@ -214,7 +214,7 @@ void ChartTypeDialogController::adjustParameterToMainType( ChartTypeParameter& r
CurveStyle
eCurveStyle
=
rParameter
.
eCurveStyle
;
sal_Int32
nGeometry3D
=
rParameter
.
nGeometry3D
;
bool
bSortByXValues
=
rParameter
.
bSortByXValues
;
bool
b
GLRoundedEdge
=
rParameter
.
mbGL
RoundedEdge
;
bool
b
RoundedEdge
=
rParameter
.
mb
RoundedEdge
;
rParameter
=
(
*
aIter
).
second
;
...
...
@@ -225,7 +225,7 @@ void ChartTypeDialogController::adjustParameterToMainType( ChartTypeParameter& r
rParameter
.
eCurveStyle
=
eCurveStyle
;
rParameter
.
nGeometry3D
=
nGeometry3D
;
rParameter
.
bSortByXValues
=
bSortByXValues
;
rParameter
.
mb
GLRoundedEdge
=
bGL
RoundedEdge
;
rParameter
.
mb
RoundedEdge
=
b
RoundedEdge
;
bFoundSomeMatch
=
true
;
break
;
...
...
@@ -338,11 +338,11 @@ bool ChartTypeDialogController::commitToModel( const ChartTypeParameter& rParame
if
(
rParameter
.
b3DLook
)
ThreeDHelper
::
setScheme
(
xDiagram
,
rParameter
.
eThreeDLookScheme
);
//SortByXValues
uno
::
Reference
<
beans
::
XPropertySet
>
xDiaProp
(
xDiagram
,
uno
::
UNO_QUERY
);
if
(
xDiaProp
.
is
())
{
uno
::
Reference
<
beans
::
XPropertySet
>
xDiaProp
(
xDiagram
,
uno
::
UNO_QUERY
);
if
(
xDiaProp
.
is
()
)
xDiaProp
->
setPropertyValue
(
"SortByXValues"
,
uno
::
makeAny
(
rParameter
.
bSortByXValues
)
);
xDiaProp
->
setPropertyValue
(
"SortByXValues"
,
uno
::
makeAny
(
rParameter
.
bSortByXValues
));
xDiaProp
->
setPropertyValue
(
"RoundedEdge"
,
uno
::
makeAny
(
rParameter
.
mbRoundedEdge
));
}
}
return
false
;
...
...
chart2/source/controller/dialogs/ChartTypeDialogController.hxx
Dosyayı görüntüle @
f6f179c5
...
...
@@ -80,7 +80,7 @@ public:
ThreeDLookScheme
eThreeDLookScheme
;
bool
bSortByXValues
;
bool
mb
GL
RoundedEdge
;
bool
mbRoundedEdge
;
};
typedef
::
comphelper
::
MakeMap
<
OUString
,
ChartTypeParameter
>
tTemplateServiceChartTypeParameterMap
;
...
...
chart2/source/controller/dialogs/tp_ChartType.cxx
Dosyayı görüntüle @
f6f179c5
...
...
@@ -295,6 +295,8 @@ public:
void
fillControls
(
const
ChartTypeParameter
&
rParam
);
void
fillParameter
(
ChartTypeParameter
&
rParam
);
private
:
DECL_LINK
(
SettingChangedHdl
,
void
*
);
private
:
CheckBox
*
m_pCB_RoundedEdge
;
};
...
...
@@ -302,6 +304,7 @@ private:
GL3DResourceGroup
::
GL3DResourceGroup
(
VclBuilderContainer
*
pWindow
)
{
pWindow
->
get
(
m_pCB_RoundedEdge
,
"rounded-edge"
);
m_pCB_RoundedEdge
->
SetToggleHdl
(
LINK
(
this
,
GL3DResourceGroup
,
SettingChangedHdl
)
);
}
void
GL3DResourceGroup
::
showControls
(
bool
bShow
)
...
...
@@ -311,12 +314,19 @@ void GL3DResourceGroup::showControls( bool bShow )
void
GL3DResourceGroup
::
fillControls
(
const
ChartTypeParameter
&
rParam
)
{
m_pCB_RoundedEdge
->
Check
(
rParam
.
mb
GL
RoundedEdge
);
m_pCB_RoundedEdge
->
Check
(
rParam
.
mbRoundedEdge
);
}
void
GL3DResourceGroup
::
fillParameter
(
ChartTypeParameter
&
rParam
)
{
rParam
.
mbGLRoundedEdge
=
m_pCB_RoundedEdge
->
IsChecked
();
rParam
.
mbRoundedEdge
=
m_pCB_RoundedEdge
->
IsChecked
();
}
IMPL_LINK_NOARG
(
GL3DResourceGroup
,
SettingChangedHdl
)
{
if
(
m_pChangeListener
)
m_pChangeListener
->
stateChanged
(
this
);
return
0
;
}
class
SplinePropertiesDialog
:
public
ModalDialog
...
...
chart2/source/model/main/Diagram.cxx
Dosyayı görüntüle @
f6f179c5
...
...
@@ -75,7 +75,8 @@ enum
PROP_DIAGRAM_DATATABLEHBORDER
,
PROP_DIAGRAM_DATATABLEVBORDER
,
PROP_DIAGRAM_DATATABLEOUTLINE
,
PROP_DIAGRAM_EXTERNALDATA
PROP_DIAGRAM_EXTERNALDATA
,
PROP_DIAGRAM_ROUNDED_EDGE
};
void
lcl_AddPropertiesToVector
(
...
...
@@ -197,6 +198,11 @@ void lcl_AddPropertiesToVector(
::
getCppuType
(
reinterpret_cast
<
const
OUString
*
>
(
0
)),
beans
::
PropertyAttribute
::
MAYBEVOID
));
rOutProperties
.
push_back
(
Property
(
"RoundedEdge"
,
PROP_DIAGRAM_ROUNDED_EDGE
,
::
getCppuBooleanType
(),
beans
::
PropertyAttribute
::
MAYBEVOID
));
}
struct
StaticDiagramDefaults_Initializer
...
...
@@ -219,6 +225,7 @@ private:
::
chart
::
PropertyHelper
::
setPropertyValueDefault
(
rOutMap
,
PROP_DIAGRAM_DATATABLEHBORDER
,
false
);
::
chart
::
PropertyHelper
::
setPropertyValueDefault
(
rOutMap
,
PROP_DIAGRAM_DATATABLEVBORDER
,
false
);
::
chart
::
PropertyHelper
::
setPropertyValueDefault
(
rOutMap
,
PROP_DIAGRAM_DATATABLEOUTLINE
,
false
);
::
chart
::
PropertyHelper
::
setPropertyValueDefault
(
rOutMap
,
PROP_DIAGRAM_ROUNDED_EDGE
,
false
);
::
chart
::
PropertyHelper
::
setPropertyValueDefault
<
sal_Int32
>
(
rOutMap
,
PROP_DIAGRAM_STARTING_ANGLE
,
90
);
::
chart
::
PropertyHelper
::
setPropertyValueDefault
<
sal_Int32
>
(
rOutMap
,
PROP_DIAGRAM_3DRELATIVEHEIGHT
,
100
);
::
chart
::
SceneProperties
::
AddDefaultsToMap
(
rOutMap
);
...
...
chart2/source/model/template/GL3DBarChartType.cxx
Dosyayı görüntüle @
f6f179c5
...
...
@@ -22,7 +22,7 @@ namespace {
enum
{
PROP_GL3DCHARTTYPE_ROUNDED_
RECTANGL
E
PROP_GL3DCHARTTYPE_ROUNDED_
EDG
E
};
struct
DefaultsInitializer
...
...
@@ -40,7 +40,7 @@ private:
void
addDefaults
(
tPropertyValueMap
&
rOutMap
)
{
PropertyHelper
::
setPropertyValueDefault
(
rOutMap
,
PROP_GL3DCHARTTYPE_ROUNDED_
RECTANGL
E
,
false
);
PropertyHelper
::
setPropertyValueDefault
(
rOutMap
,
PROP_GL3DCHARTTYPE_ROUNDED_
EDG
E
,
false
);
}
};
...
...
@@ -59,8 +59,8 @@ struct InfoHelperInitializer
uno
::
Sequence
<
beans
::
Property
>
aRet
(
1
);
aRet
[
0
]
=
beans
::
Property
(
"Rounded
Rectangl
e"
,
PROP_GL3DCHARTTYPE_ROUNDED_
RECTANGL
E
,
"Rounded
Edg
e"
,
PROP_GL3DCHARTTYPE_ROUNDED_
EDG
E
,
::
getCppuBooleanType
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
MAYBEDEFAULT
);
...
...
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