26#include <com/sun/star/frame/XController.hpp>
27#include <com/sun/star/uno/XComponentContext.hpp>
28#include <com/sun/star/container/XNameAccess.hpp>
52 "com.sun.star.drawing.framework.BasicPaneFactory",
53 {
"private:resource/pane/CenterPane",
54 "private:resource/pane/LeftImpressPane",
55 "private:resource/pane/LeftDrawPane" });
57 "com.sun.star.drawing.framework.BasicViewFactory",
58 {
"private:resource/view/ImpressView",
59 "private:resource/view/GraphicView",
60 "private:resource/view/OutlineView",
61 "private:resource/view/NotesView",
62 "private:resource/view/HandoutView",
63 "private:resource/view/SlideSorter",
64 "private:resource/view/PresentationView" });
66 "com.sun.star.drawing.framework.BasicToolBarFactory",
67 {
"private:resource/toolbar/ViewTabBar" });
98 for (
const auto& rResource : aURLs)
101 SAL_INFO(
"sd.fwk", __func__ <<
": " << rResource);
118 SAL_WARN(
"sd.fwk",
"ERROR in ModuleController::InstantiateStartupServices");
135 xFactory.set(iLoadedFactory->second, UNO_QUERY);
140 Reference<uno::XComponentContext> xContext =
141 ::comphelper::getProcessComponentContext();
144 if (iFactory->second ==
"com.sun.star.drawing.framework.BasicPaneFactory")
146 else if (iFactory->second ==
"com.sun.star.drawing.framework.BasicViewFactory")
148 else if (iFactory->second ==
"com.sun.star.drawing.framework.BasicToolBarFactory")
constexpr OUStringLiteral sServiceName
This factory provides the frequently used standard panes private:resource/pane/CenterPane private:res...
Factory for the frequently used standard views of the drawing framework: private:resource/view/ priva...
std::unordered_map< OUString, css::uno::WeakReference< css::uno::XInterface > > maLoadedFactories
ModuleController(const rtl::Reference<::sd::DrawController > &rxController)
void ProcessFactory(const OUString &ServiceName, ::std::vector< OUString > aURLs)
Called for every entry in the ResourceFactories configuration entry.
void InstantiateStartupServices()
Instantiate startup services.
rtl::Reference<::sd::DrawController > mxController
virtual void SAL_CALL requestResource(const OUString &rsResourceURL) override
virtual ~ModuleController() noexcept override
virtual void disposing(std::unique_lock< std::mutex > &) override
std::unordered_map< OUString, OUString > maResourceToFactoryMap
static void install(const rtl::Reference<::sd::DrawController > &rxController)
Reference< XSingleServiceFactory > xFactory
#define SAL_WARN(area, stream)
#define SAL_INFO(area, stream)