summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-11-16 02:45:50 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-11-23 06:25:31 +0100
commit8fd3c3ac9eb1c29b2afcd61a5d34d56b6c821f10 (patch)
tree0b2ce0dab2c26bc44e8b3b511800363796cfb5f5 /sc/inc
parent668a71065fa5fe6929e6367998b04a20eb8230c5 (diff)
ManageNames: add menu and dialog for Add Name
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/sc.hrc2
-rw-r--r--sc/inc/scabstdlg.hxx9
-rw-r--r--sc/inc/sccommands.h1
3 files changed, 11 insertions, 1 deletions
diff --git a/sc/inc/sc.hrc b/sc/inc/sc.hrc
index 020f7e89c3c5..2edba1e9d9f5 100644
--- a/sc/inc/sc.hrc
+++ b/sc/inc/sc.hrc
@@ -349,6 +349,7 @@
#define FID_USE_NAME (INSERT_MENU_START + 13)
#define FID_APPLY_NAME (INSERT_MENU_START + 14)
#define FID_INS_TABLE_EXT (INSERT_MENU_START + 15)
+#define FID_ADD_NAME (INSERT_MENU_START + 16)
#define SID_INSERT_CLIPART (INSERT_MENU_START + 17) //!!! should come from Svx
#define FID_INS_CELLSDOWN (INSERT_MENU_START + 18)
#define FID_INS_CELLSRIGHT (INSERT_MENU_START + 19)
@@ -1106,6 +1107,7 @@
#define RID_SCDLG_NAMES_PASTE (SC_DIALOGS_START + 72)
#define RID_SCDLG_NAMES_CREATE (SC_DIALOGS_START + 73)
#define RID_SCDLG_NAMES_APPLY (SC_DIALOGS_START + 74) //NYI
+#define RID_SCDLG_NAMES_DEFINE (SC_DIALOGS_START + 75)
#define RID_SCDLG_CHAR (SC_DIALOGS_START + 76)
#define RID_SCDLG_PARAGRAPH (SC_DIALOGS_START + 77)
diff --git a/sc/inc/scabstdlg.hxx b/sc/inc/scabstdlg.hxx
index babe95662360..74182c2e8c69 100644
--- a/sc/inc/scabstdlg.hxx
+++ b/sc/inc/scabstdlg.hxx
@@ -221,7 +221,7 @@ public:
virtual void EnableRenameTable (sal_Bool bFlag=true) = 0;
};
-class AbstractScNameCreateDlg : public VclAbstractDialog //add for ScNameCreateDlg
+class AbstractScNameCreateDlg : public VclAbstractDialog // Manage Name Dialog
{
public:
virtual sal_uInt16 GetFlags() const = 0;
@@ -233,6 +233,11 @@ public:
virtual String GetSelectedName() const = 0;
};
+class AbstractScNameAddDlg : public VclAbstractDialog // Define Name Dialog
+{
+public:
+};
+
class AbstractScPivotFilterDlg : public VclAbstractDialog //add for ScPivotFilterDlg
{
public:
@@ -419,6 +424,8 @@ public:
virtual AbstractScNamePasteDlg * CreateScNamePasteDlg ( Window * pParent, const ScRangeName* pList, //add for ScNamePasteDlg
const ScRangeName* pLocalList, int nId , bool bInsList=true ) = 0;
+ virtual AbstractScNameAddDlg* CreateScNameAddDlg ( Window* pParent, int nId) = 0;
+
virtual AbstractScPivotFilterDlg * CreateScPivotFilterDlg ( Window* pParent, //add for ScPivotFilterDlg
const SfxItemSet& rArgSet, sal_uInt16 nSourceTab , int nId ) = 0;
diff --git a/sc/inc/sccommands.h b/sc/inc/sccommands.h
index e65dad73837b..97cbee299e8c 100644
--- a/sc/inc/sccommands.h
+++ b/sc/inc/sccommands.h
@@ -36,6 +36,7 @@
#define CMD_FID_TAB_APPEND ".uno:Add"
#define CMD_SID_CHART_ADDSOURCE ".uno:AddChartData"
#define CMD_SID_ADD_IN_MANAGER ".uno:AddInManager"
+#define CMD_FID_ADD_NAME ".uno:AddName"
#define CMD_SID_ADD_PRINTAREA ".uno:AddPrintArea"
#define CMD_SID_RANGE_ADDRESS ".uno:Address"
#define CMD_FID_ADJUST_PRINTZOOM ".uno:AdjustPrintZoom"