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
bb1979b9
Kaydet (Commit)
bb1979b9
authored
Mar 17, 2012
tarafından
Rafael Dominguez
Kaydeden (comit)
Markus Mohrhard
Mar 23, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Allow deleting any chart errorbar and set correct action description.
üst
2713c4bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
11 deletions
+36
-11
ChartController_Tools.cxx
chart2/source/controller/main/ChartController_Tools.cxx
+36
-11
No files found.
chart2/source/controller/main/ChartController_Tools.cxx
Dosyayı görüntüle @
bb1979b9
...
...
@@ -553,17 +553,29 @@ bool ChartController::isObjectDeleteable( const uno::Any& rSelection )
{
OUString
aSelObjCID
(
aSelOID
.
getObjectCID
()
);
ObjectType
aObjectType
(
ObjectIdentifier
::
getObjectType
(
aSelObjCID
));
if
(
(
OBJECTTYPE_TITLE
==
aObjectType
)
||
(
OBJECTTYPE_LEGEND
==
aObjectType
)
)
return
true
;
if
(
(
OBJECTTYPE_DATA_SERIES
==
aObjectType
)
||
(
OBJECTTYPE_LEGEND_ENTRY
==
aObjectType
)
)
return
true
;
if
(
(
OBJECTTYPE_DATA_CURVE_EQUATION
==
aObjectType
)
||
(
OBJECTTYPE_DATA_CURVE
==
aObjectType
)
||
(
OBJECTTYPE_DATA_AVERAGE_LINE
==
aObjectType
)
||
(
OBJECTTYPE_DATA_ERRORS
==
aObjectType
))
return
true
;
if
(
(
OBJECTTYPE_DATA_LABELS
==
aObjectType
)
||
(
OBJECTTYPE_DATA_LABEL
==
aObjectType
)
)
return
true
;
if
(
(
OBJECTTYPE_AXIS
==
aObjectType
)
||
(
OBJECTTYPE_GRID
==
aObjectType
)
||
(
OBJECTTYPE_SUBGRID
==
aObjectType
)
)
switch
(
aObjectType
)
{
case
OBJECTTYPE_TITLE
:
case
OBJECTTYPE_LEGEND
:
case
OBJECTTYPE_DATA_SERIES
:
case
OBJECTTYPE_LEGEND_ENTRY
:
case
OBJECTTYPE_DATA_CURVE_EQUATION
:
case
OBJECTTYPE_DATA_CURVE
:
case
OBJECTTYPE_DATA_AVERAGE_LINE
:
case
OBJECTTYPE_DATA_ERRORS
:
case
OBJECTTYPE_DATA_ERRORS_X
:
case
OBJECTTYPE_DATA_ERRORS_Y
:
case
OBJECTTYPE_DATA_ERRORS_Z
:
case
OBJECTTYPE_DATA_LABELS
:
case
OBJECTTYPE_DATA_LABEL
:
case
OBJECTTYPE_AXIS
:
case
OBJECTTYPE_GRID
:
case
OBJECTTYPE_SUBGRID
:
return
true
;
default
:
break
;
}
}
else
if
(
aSelOID
.
isAdditionalShape
()
)
{
...
...
@@ -714,16 +726,29 @@ bool ChartController::executeDispatch_Delete()
}
case
OBJECTTYPE_DATA_ERRORS
:
case
OBJECTTYPE_DATA_ERRORS_X
:
case
OBJECTTYPE_DATA_ERRORS_Y
:
case
OBJECTTYPE_DATA_ERRORS_Z
:
{
uno
::
Reference
<
beans
::
XPropertySet
>
xErrorBarProp
(
ObjectIdentifier
::
getObjectPropertySet
(
aCID
,
getModel
()
));
if
(
xErrorBarProp
.
is
())
{
sal_Int16
nId
;
if
(
aObjectType
==
OBJECTTYPE_DATA_ERRORS_X
)
nId
=
STR_OBJECT_ERROR_BARS_X
;
else
if
(
aObjectType
==
OBJECTTYPE_DATA_ERRORS_Y
||
aObjectType
==
OBJECTTYPE_DATA_ERRORS
)
nId
=
STR_OBJECT_ERROR_BARS_Y
;
else
nId
=
STR_OBJECT_ERROR_BARS_Z
;
uno
::
Reference
<
frame
::
XModel
>
xModel
(
getModel
()
);
// using assignment for broken gcc 3.3
UndoGuard
aUndoGuard
=
UndoGuard
(
ActionDescriptionProvider
::
createDescription
(
ActionDescriptionProvider
::
DELETE
,
String
(
SchResId
(
STR_OBJECT_ERROR_BARS_Y
))),
ActionDescriptionProvider
::
DELETE
,
String
(
SchResId
(
nId
))),
m_xUndoManager
);
{
ControllerLockGuard
aCtlLockGuard
(
xModel
);
...
...
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