diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-09-16 23:25:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-09-17 06:55:42 +0200 |
commit | 14bc5fc0ec652650deb9a41505e97c3b4d3854b2 (patch) | |
tree | a358397972c921349eaefa272c91d65c0fc88681 /unoidl/source/unoidl.cxx | |
parent | 6292bba6debaeb5c1bbbabfb77606296c894ec28 (diff) |
WIP: additional unoidl::Provider that directly reads a single .idl file
Change-Id: Iab795a34a657cb36ced24a1a05f6c21a6c1637aa
Diffstat (limited to 'unoidl/source/unoidl.cxx')
-rw-r--r-- | unoidl/source/unoidl.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unoidl/source/unoidl.cxx b/unoidl/source/unoidl.cxx index 19b8a9cab646..7c3e2e5bb7c5 100644 --- a/unoidl/source/unoidl.cxx +++ b/unoidl/source/unoidl.cxx @@ -20,6 +20,7 @@ #include "unoidl/unoidl.hxx" #include "legacyprovider.hxx" +#include "sourcefileprovider.hxx" #include "sourcetreeprovider.hxx" #include "unoidlprovider.hxx" @@ -117,6 +118,9 @@ rtl::Reference< Provider > loadProvider( return new detail::SourceTreeProvider(manager, uri); } } + if (uri.endsWith(".idl")) { + return new detail::SourceFileProvider(manager, uri); + } try { return new detail::UnoidlProvider(uri); } catch (FileFormatException & e) { |