sc/source/ui/docshell/dataprovider.cxx |    8 ++++++++
 sc/source/ui/inc/dataprovider.hxx      |    2 ++
 sc/uiconfig/scalc/ui/dataprovider.ui   |    2 +-
 3 files changed, 11 insertions(+), 1 deletion(-)

New commits:
commit 4a3016be1b5271affcc9e1f338c463dd727ebe53
Author: Markus Mohrhard <markus.mohrh...@googlemail.com>
Date:   Thu Aug 10 09:37:59 2017 +0200

    external data: add a method to list all data providers
    
    Change-Id: I4bb29288dc16aa8c076a0957ea777e8e7451acf0
    Reviewed-on: https://gerrit.libreoffice.org/40966
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com>

diff --git a/sc/source/ui/docshell/dataprovider.cxx 
b/sc/source/ui/docshell/dataprovider.cxx
index 5839f3d0f4e8..aa6a4dde0e86 100644
--- a/sc/source/ui/docshell/dataprovider.cxx
+++ b/sc/source/ui/docshell/dataprovider.cxx
@@ -403,6 +403,14 @@ std::shared_ptr<DataProvider> 
DataProviderFactory::getDataProvider(ScDocument* p
     return std::shared_ptr<DataProvider>();
 }
 
+std::vector<OUString> DataProviderFactory::getDataProviders()
+{
+    std::vector<OUString> aDataProviders;
+    aDataProviders.push_back("org.libreoffice.calc.csv");
+
+    return aDataProviders;
+}
+
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/inc/dataprovider.hxx 
b/sc/source/ui/inc/dataprovider.hxx
index 8afff1aefc83..659afffe2cd1 100644
--- a/sc/source/ui/inc/dataprovider.hxx
+++ b/sc/source/ui/inc/dataprovider.hxx
@@ -169,6 +169,8 @@ private:
 public:
 
     static std::shared_ptr<DataProvider> getDataProvider(ScDocument* pDoc, 
const OUString& rProvider, const OUString& rURL, const OUString& rID, 
ScDBDataManager* pManager);
+
+    static std::vector<OUString> getDataProviders();
 };
 
 }
diff --git a/sc/uiconfig/scalc/ui/dataprovider.ui 
b/sc/uiconfig/scalc/ui/dataprovider.ui
index c3ff826a63eb..a2a674ead78c 100644
--- a/sc/uiconfig/scalc/ui/dataprovider.ui
+++ b/sc/uiconfig/scalc/ui/dataprovider.ui
@@ -189,7 +189,7 @@
                             </child>
                           </object>
                           <packing>
-                            <property name="expand">False</property>
+                            <property name="expand">True</property>
                             <property name="fill">True</property>
                             <property name="position">1</property>
                           </packing>
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to