summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver-Rainer Wittmann <orw@apache.org>2013-04-25 13:01:39 +0000
committerMichael Meeks <michael.meeks@suse.com>2013-05-20 11:33:22 +0100
commite6c40f56516d6e03c6a39c4389b421835dc51492 (patch)
treedd7cd96b3acb8103b0974657f3e3e386d5458348
parentf14674e3f1fca1b881412f0429979a5761bfb2d6 (diff)
Resolves: #i122141# introduce missing Char Font dialog Slot
for opening Character Font dialog for Text property panel in Calc (cherry picked from commit 2ec379f0bc8af50ead792677b1f69c61d6903cf3) Change-Id: I07e7affe744efe151c8701e096fde01a52c2d7e0
-rw-r--r--sc/inc/sc.hrc5
-rw-r--r--sc/sdi/cellsh.sdi1
-rw-r--r--sc/sdi/scalc.sdi26
-rw-r--r--sc/source/ui/view/cellsh3.cxx4
4 files changed, 34 insertions, 2 deletions
diff --git a/sc/inc/sc.hrc b/sc/inc/sc.hrc
index c18cbcdc1d5e..6fbe3f0d3f7d 100644
--- a/sc/inc/sc.hrc
+++ b/sc/inc/sc.hrc
@@ -658,8 +658,9 @@
// Sidebar -------------------------------------------------------------
-#define SID_SCGRIDSHOW (SC_SIDEBAR_PROPERTY_BEGIN+1)
-#define SID_NUMBER_TYPE_FORMAT (SC_SIDEBAR_PROPERTY_BEGIN+2)
+#define SID_PROPERTY_PANEL_CELLTEXT_DLG (SC_SIDEBAR_PROPERTY_BEGIN+0)
+#define SID_SCGRIDSHOW (SC_SIDEBAR_PROPERTY_BEGIN+1)
+#define SID_NUMBER_TYPE_FORMAT (SC_SIDEBAR_PROPERTY_BEGIN+2)
// resources
diff --git a/sc/sdi/cellsh.sdi b/sc/sdi/cellsh.sdi
index 4f9fe32f9f60..b889801354e0 100644
--- a/sc/sdi/cellsh.sdi
+++ b/sc/sdi/cellsh.sdi
@@ -87,6 +87,7 @@ interface CellSelection
SID_SELECT_SCENARIO [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
FID_CELL_FORMAT [ ExecMethod = Execute; StateMethod = GetBlockState; ]
SID_ENABLE_HYPHENATION [ ExecMethod = Execute; StateMethod = GetBlockState; ]
+ SID_PROPERTY_PANEL_CELLTEXT_DLG [ ExecMethod = Execute;]
SID_CELL_FORMAT_BORDER [ ExecMethod = Execute; ]
SID_CHAR_DLG_EFFECT [ ExecMethod = Execute; ]
FID_ROW_HEIGHT [ ExecMethod = Execute; StateMethod = GetState; ]
diff --git a/sc/sdi/scalc.sdi b/sc/sdi/scalc.sdi
index 8945ecbefa6e..c9999fe42130 100644
--- a/sc/sdi/scalc.sdi
+++ b/sc/sdi/scalc.sdi
@@ -3495,6 +3495,32 @@ SfxVoidItem Hyphenate SID_ENABLE_HYPHENATION
]
//--------------------------------------------------------------------------
+
+SfxVoidItem CellTextDlg SID_PROPERTY_PANEL_CELLTEXT_DLG
+()
+[
+ /* flags: */
+ AutoUpdate = FALSE,
+ Cachable = Cachable,
+ FastCall = FALSE,
+ HasCoreId = FALSE,
+ HasDialog = TRUE,
+ ReadOnlyDoc = FALSE,
+ Toggle = FALSE,
+ Container = FALSE,
+ RecordAbsolute = FALSE,
+ RecordPerSet;
+ Asynchron;
+
+ /* config: */
+ AccelConfig = FALSE,
+ MenuConfig = FALSE,
+ StatusBarConfig = FALSE,
+ ToolBoxConfig = FALSE,
+ GroupId = GID_OPTIONS;
+]
+
+//--------------------------------------------------------------------------
SfxVoidItem InputLineBlock FID_INPUTLINE_BLOCK
()
[
diff --git a/sc/source/ui/view/cellsh3.cxx b/sc/source/ui/view/cellsh3.cxx
index 81c58f6a6401..58308387de98 100644
--- a/sc/source/ui/view/cellsh3.cxx
+++ b/sc/source/ui/view/cellsh3.cxx
@@ -357,6 +357,10 @@ void ScCellShell::Execute( SfxRequest& rReq )
pTabViewShell->ExecuteCellFormatDlg(rReq, "alignment");
break;
+ case SID_PROPERTY_PANEL_CELLTEXT_DLG:
+ pTabViewShell->ExecuteCellFormatDlg( rReq, "font" );
+ break;
+
case SID_CELL_FORMAT_BORDER:
pTabViewShell->ExecuteCellFormatDlg( rReq, "borders" );
break;