Kaydet (Commit) aee968e3 authored tarafından Caolán McNamara's avatar Caolán McNamara

adapt uipreviewer for ucbhelper change

Change-Id: I60463d107d49ecc78053dd2592fc207164708040
üst 9582aa03
...@@ -10,11 +10,10 @@ ...@@ -10,11 +10,10 @@
#include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XMultiComponentFactory.hpp> #include <com/sun/star/lang/XMultiComponentFactory.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/ucb/UniversalContentBroker.hpp>
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
#include <cppuhelper/bootstrap.hxx> #include <cppuhelper/bootstrap.hxx>
#include <osl/file.hxx> #include <osl/file.hxx>
#include <ucbhelper/configurationkeys.hxx>
#include <ucbhelper/contentbroker.hxx>
#include <vcl/builder.hxx> #include <vcl/builder.hxx>
#include <vcl/dialog.hxx> #include <vcl/dialog.hxx>
#include <vcl/help.hxx> #include <vcl/help.hxx>
...@@ -52,11 +51,10 @@ int UIPreviewApp::Main() ...@@ -52,11 +51,10 @@ int UIPreviewApp::Main()
uno::Reference<lang::XMultiServiceFactory> (xFactory, uno::UNO_QUERY_THROW); uno::Reference<lang::XMultiServiceFactory> (xFactory, uno::UNO_QUERY_THROW);
comphelper::setProcessServiceFactory(xSFactory); comphelper::setProcessServiceFactory(xSFactory);
// Create UCB. // Create UCB (for backwards compatibility, in case some code still uses
uno::Sequence< uno::Any > aArgs(2); // plain createInstance w/o args directly to obtain an instance):
aArgs[ 0 ] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(UCB_CONFIGURATION_KEY1_LOCAL)); ::ucb::UniversalContentBroker::create(
aArgs[ 1 ] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(UCB_CONFIGURATION_KEY2_OFFICE)); comphelper::getProcessComponentContext() );
::ucbhelper::ContentBroker::initialize(xSFactory, aArgs);
// turn on tooltips // turn on tooltips
Help::EnableQuickHelp(); Help::EnableQuickHelp();
...@@ -88,9 +86,6 @@ int UIPreviewApp::Main() ...@@ -88,9 +86,6 @@ int UIPreviewApp::Main()
} }
return false; return false;
::ucbhelper::ContentBroker::deinitialize();
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment