summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkash Shetye <shetyeakash@gmail.com>2013-09-22 15:39:55 +0530
committerAkash Shetye <shetyeakash@gmail.com>2013-09-22 15:39:55 +0530
commit139c74934abe25f2622c0b5b111ade072fad84bd (patch)
tree3e247de63b70e7bf90e17ee02af6d4dc059479ed
parent97a19389c398dc0aab5d520c61d7d4e9aba2cd11 (diff)
Added the Formatting button to the dbnamedlg
Change-Id: Ie204ce8fcbff39932c889f3b1bc652177b939f42
-rw-r--r--sc/source/ui/dbgui/dbnamdlg.cxx9
-rw-r--r--sc/source/ui/inc/dbnamdlg.hrc1
-rw-r--r--sc/source/ui/inc/dbnamdlg.hxx3
-rw-r--r--sc/uiconfig/scalc/ui/definedatabaserangedialog.ui13
4 files changed, 26 insertions, 0 deletions
diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx
index e46ffc430dd2..69447adc6033 100644
--- a/sc/source/ui/dbgui/dbnamdlg.cxx
+++ b/sc/source/ui/dbgui/dbnamdlg.cxx
@@ -142,6 +142,7 @@ ScDbNameDlg::ScDbNameDlg(SfxBindings* pB, SfxChildWindow* pCW, Window* pParent,
get(m_pBtnOk, "ok");
get(m_pBtnCancel, "cancel");
get(m_pBtnAdd, "add");
+ get(m_pBtnFormatting, "formatting");
aStrAdd = m_pBtnAdd->GetText();
aStrModify = get<Window>("modify")->GetText();
get(m_pBtnRemove, "delete");
@@ -178,6 +179,7 @@ void ScDbNameDlg::Init()
m_pBtnCancel->SetClickHdl ( LINK( this, ScDbNameDlg, CancelBtnHdl ) );
m_pBtnAdd->SetClickHdl ( LINK( this, ScDbNameDlg, AddBtnHdl ) );
m_pBtnRemove->SetClickHdl ( LINK( this, ScDbNameDlg, RemoveBtnHdl ) );
+ m_pBtnFormatting->SetClickHdl( LINK( this, ScDbNameDlg, FormattingBtnHdl ) );
m_pEdName->SetModifyHdl ( LINK( this, ScDbNameDlg, NameModifyHdl ) );
m_pEdAssign->SetModifyHdl ( LINK( this, ScDbNameDlg, AssModifyHdl ) );
UpdateNames();
@@ -494,6 +496,13 @@ IMPL_LINK_NOARG(ScDbNameDlg, AddBtnHdl)
return 0;
}
+// ---------------------------------------------------------------------
+
+IMPL_LINK_NOARG(ScDbNameDlg, FormattingBtnHdl)
+{
+ //Invoke the db formatting dialog here
+}
+
namespace {
class FindByName : public ::std::unary_function<ScDBData, bool>
diff --git a/sc/source/ui/inc/dbnamdlg.hrc b/sc/source/ui/inc/dbnamdlg.hrc
index e10abb194a6a..ff99c927417f 100644
--- a/sc/source/ui/inc/dbnamdlg.hrc
+++ b/sc/source/ui/inc/dbnamdlg.hrc
@@ -40,5 +40,6 @@
#define STR_MODIFY 31
#define STR_DB_INVALID 32
#define BTN_MORE 33
+#define BTN_FORMATTING 34
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/inc/dbnamdlg.hxx b/sc/source/ui/inc/dbnamdlg.hxx
index e36b6222ee2b..ec6ac5fbbbc3 100644
--- a/sc/source/ui/inc/dbnamdlg.hxx
+++ b/sc/source/ui/inc/dbnamdlg.hxx
@@ -68,6 +68,7 @@ private:
CancelButton* m_pBtnCancel;
PushButton* m_pBtnAdd;
PushButton* m_pBtnRemove;
+ PushButton* m_pBtnFormatting;
sal_Bool bSaved;
@@ -99,6 +100,8 @@ private:
DECL_LINK( RemoveBtnHdl, void * );
DECL_LINK( NameModifyHdl, void * );
DECL_LINK( AssModifyHdl, void * );
+ DECL_LINK( FormattingBtnHdl, void * );
+
};
diff --git a/sc/uiconfig/scalc/ui/definedatabaserangedialog.ui b/sc/uiconfig/scalc/ui/definedatabaserangedialog.ui
index 4305eaed589e..83522a5557ee 100644
--- a/sc/uiconfig/scalc/ui/definedatabaserangedialog.ui
+++ b/sc/uiconfig/scalc/ui/definedatabaserangedialog.ui
@@ -321,6 +321,19 @@
<property name="position">2</property>
</packing>
</child>
+ <child>
+ <object class="GtkButton" id="formatting">
+ <property name="label">Formatting</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="recieves_default">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="expand">False</property>