summaryrefslogtreecommitdiff
path: root/sc/source/ui/attrdlg
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-03-01 14:08:19 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-03-01 16:15:59 -0500
commita2f7b47b8a92fd216106a95b248809ceb8d69cdd (patch)
tree894f6fdc47aab807b34721f2938f6d548c4b7c87 /sc/source/ui/attrdlg
parentf6abb7c54078be9000516ab7ff5081b1feba3f6c (diff)
Initial change to display named range option in the source dialog.
Diffstat (limited to 'sc/source/ui/attrdlg')
-rw-r--r--sc/source/ui/attrdlg/scdlgfact.cxx19
-rw-r--r--sc/source/ui/attrdlg/scdlgfact.hxx7
2 files changed, 22 insertions, 4 deletions
diff --git a/sc/source/ui/attrdlg/scdlgfact.cxx b/sc/source/ui/attrdlg/scdlgfact.cxx
index 42b6d85a9..407e694a8 100644
--- a/sc/source/ui/attrdlg/scdlgfact.cxx
+++ b/sc/source/ui/attrdlg/scdlgfact.cxx
@@ -250,16 +250,31 @@ void AbstractScDataPilotDatabaseDlg_Impl::GetValues( ScImportSourceDesc& rDesc )
//AbstractScDataPilotSourceTypeDlg_Impl begin
-BOOL AbstractScDataPilotSourceTypeDlg_Impl::IsDatabase() const
+bool AbstractScDataPilotSourceTypeDlg_Impl::IsDatabase() const
{
return pDlg->IsDatabase();
}
-BOOL AbstractScDataPilotSourceTypeDlg_Impl::IsExternal() const
+bool AbstractScDataPilotSourceTypeDlg_Impl::IsExternal() const
{
return pDlg->IsExternal();
}
+bool AbstractScDataPilotSourceTypeDlg_Impl::IsNamedRange() const
+{
+ return pDlg->IsNamedRange();
+}
+
+rtl::OUString AbstractScDataPilotSourceTypeDlg_Impl::GetSelectedNamedRange() const
+{
+ return pDlg->GetSelectedNamedRange();
+}
+
+void AbstractScDataPilotSourceTypeDlg_Impl::SetNamedRanges(const std::vector<rtl::OUString>& rNames)
+{
+ pDlg->SetNamedRanges(rNames);
+}
+
//AbstractScDataPilotSourceTypeDlg_Impl end
diff --git a/sc/source/ui/attrdlg/scdlgfact.hxx b/sc/source/ui/attrdlg/scdlgfact.hxx
index c079eb575..c0ecdad2d 100644
--- a/sc/source/ui/attrdlg/scdlgfact.hxx
+++ b/sc/source/ui/attrdlg/scdlgfact.hxx
@@ -145,8 +145,11 @@ class AbstractScDataPilotDatabaseDlg_Impl :public AbstractScDataPilotDatabaseDl
class AbstractScDataPilotSourceTypeDlg_Impl :public AbstractScDataPilotSourceTypeDlg //add for ScDataPilotSourceTypeDlg
{
DECL_ABSTDLG_BASE(AbstractScDataPilotSourceTypeDlg_Impl, ScDataPilotSourceTypeDlg)
- virtual BOOL IsDatabase() const;
- virtual BOOL IsExternal() const;
+ virtual bool IsDatabase() const;
+ virtual bool IsExternal() const;
+ virtual bool IsNamedRange() const;
+ virtual rtl::OUString GetSelectedNamedRange() const;
+ virtual void SetNamedRanges(const ::std::vector<rtl::OUString>& rNames);
};
class AbstractScDataPilotServiceDlg_Impl : public AbstractScDataPilotServiceDlg //add for ScDataPilotServiceDlg