summaryrefslogtreecommitdiff
path: root/sc/sdi
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2012-10-08 07:43:59 +0200
committerTomaž Vajngerl <quikee@gmail.com>2012-10-08 07:46:55 +0200
commitcbb0babb679338ddc9910bbdb2676128d0c236f7 (patch)
treed056f57ae394e63ae569675578fec6166a99c5bf /sc/sdi
parentfa30508fd3b2224e76e1ac7c150df9040518e7aa (diff)
fdo#30944 Add popup menu function to charts to export them as a graphic
Add popup menu function "Export as Graphic" to charts to export the chart as a graphic. Currently it works only with raster formats like PNG and JPG but not with vector formats like SVG. Change-Id: Ieeda21ff971f2ad31bab2248e8b509883b5cbcd0
Diffstat (limited to 'sc/sdi')
-rw-r--r--sc/sdi/chartsh.sdi11
-rw-r--r--sc/sdi/scalc.sdi34
2 files changed, 39 insertions, 6 deletions
diff --git a/sc/sdi/chartsh.sdi b/sc/sdi/chartsh.sdi
index c050a7c59b82..ce000437afa4 100644
--- a/sc/sdi/chartsh.sdi
+++ b/sc/sdi/chartsh.sdi
@@ -16,7 +16,16 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
- // ===========================================================================
+interface ChartSelection
+{
+ SID_EXPORT_AS_GRAPHIC
+ [
+ ExecMethod = ExecuteExportAsGraphic;
+ StateMethod = GetExportAsGraphicState;
+ ]
+}
+
shell ScChartShell : ScDrawShell
{
+ import ChartSelection;
}
diff --git a/sc/sdi/scalc.sdi b/sc/sdi/scalc.sdi
index 5b9cda68177d..14fb8cc980ca 100644
--- a/sc/sdi/scalc.sdi
+++ b/sc/sdi/scalc.sdi
@@ -24,7 +24,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-//--------------------------------------------------------------------------
+
SfxVoidItem AcceptChanges FID_CHG_ACCEPT
()
[
@@ -2919,10 +2919,10 @@ SfxVoidItem SolverDialog SID_OPENDLG_OPTSOLVER
Synchron;
/* config: */
- AccelConfig = FALSE,
- MenuConfig = FALSE,
- StatusBarConfig = FALSE,
- ToolBoxConfig = FALSE,
+ AccelConfig = FALSE,
+ MenuConfig = FALSE,
+ StatusBarConfig = FALSE,
+ ToolBoxConfig = FALSE,
GroupId = GID_OPTIONS;
]
@@ -8342,3 +8342,27 @@ SfxVoidItem EnterString SID_ENTER_STRING
ToolBoxConfig = FALSE,
GroupId = GID_INTERN;
]
+
+SfxVoidItem ExportAsGraphic SID_EXPORT_AS_GRAPHIC
+()
+[
+ /* flags: */
+ AutoUpdate = FALSE,
+ Cachable = Cachable,
+ FastCall = FALSE,
+ HasCoreId = FALSE,
+ HasDialog = FALSE,
+ ReadOnlyDoc = TRUE,
+ Toggle = FALSE,
+ Container = FALSE,
+ RecordAbsolute = FALSE,
+ RecordPerSet;
+ Synchron;
+
+ /* config: */
+ AccelConfig = TRUE,
+ MenuConfig = TRUE,
+ StatusBarConfig = FALSE,
+ ToolBoxConfig = TRUE,
+ GroupId = GID_CHART;
+]