ResourceManager.cxx (f120fe41) ResourceManager.cxx (54eaaa32)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 8 unchanged lines hidden (view full) ---

17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22#include "precompiled_sfx2.hxx"
23
24#include "ResourceManager.hxx"
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 8 unchanged lines hidden (view full) ---

17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22#include "precompiled_sfx2.hxx"
23
24#include "ResourceManager.hxx"
25#include "Tools.hxx"
26
25#include <unotools/confignode.hxx>
26#include <comphelper/componentcontext.hxx>
27#include <comphelper/processfactory.hxx>
28#include <comphelper/namedvaluecollection.hxx>
29#include <comphelper/types.hxx>
30#include <comphelper/stlunosequence.hxx>
31
32#include <rtl/ustrbuf.hxx>
33#include <tools/diagnose_ex.h>
34
35#include <com/sun/star/frame/XModuleManager.hpp>
36
37#include <map>
38
39
27#include <unotools/confignode.hxx>
28#include <comphelper/componentcontext.hxx>
29#include <comphelper/processfactory.hxx>
30#include <comphelper/namedvaluecollection.hxx>
31#include <comphelper/types.hxx>
32#include <comphelper/stlunosequence.hxx>
33
34#include <rtl/ustrbuf.hxx>
35#include <tools/diagnose_ex.h>
36
37#include <com/sun/star/frame/XModuleManager.hpp>
38
39#include <map>
40
41
40#define A2S(pString) (::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(pString)))
41
42using ::rtl::OUString;
43using namespace css;
44using namespace cssu;
45
46namespace sfx2 { namespace sidebar {
47
48#define gsPrivateResourceToolpanelPrefix "private:resource/toolpanel/"

--- 286 unchanged lines hidden (view full) ---

335 rPanelDescriptor.msImplementationURL = ::comphelper::getString(
336 aPanelNode.getNodeValue("ImplementationURL"));
337 rPanelDescriptor.mnOrderIndex = ::comphelper::getINT32(
338 aPanelNode.getNodeValue("OrderIndex"));
339 rPanelDescriptor.mbWantsCanvas = ::comphelper::getBOOL(
340 aPanelNode.getNodeValue("WantsCanvas"));
341 const OUString sDefaultMenuCommand (::comphelper::getString(
342 aPanelNode.getNodeValue("DefaultMenuCommand")));
42
43using ::rtl::OUString;
44using namespace css;
45using namespace cssu;
46
47namespace sfx2 { namespace sidebar {
48
49#define gsPrivateResourceToolpanelPrefix "private:resource/toolpanel/"

--- 286 unchanged lines hidden (view full) ---

336 rPanelDescriptor.msImplementationURL = ::comphelper::getString(
337 aPanelNode.getNodeValue("ImplementationURL"));
338 rPanelDescriptor.mnOrderIndex = ::comphelper::getINT32(
339 aPanelNode.getNodeValue("OrderIndex"));
340 rPanelDescriptor.mbWantsCanvas = ::comphelper::getBOOL(
341 aPanelNode.getNodeValue("WantsCanvas"));
342 const OUString sDefaultMenuCommand (::comphelper::getString(
343 aPanelNode.getNodeValue("DefaultMenuCommand")));
343
344
344 ReadContextList(
345 aPanelNode,
346 rPanelDescriptor.maContextList,
347 sDefaultMenuCommand);
348 }
349
350 // When there where invalid nodes then we have to adapt the size
351 // of the deck vector.

--- 119 unchanged lines hidden (view full) ---

471 rContextList.AddContextDescription(
472 Context(
473 EnumContext::GetApplicationName(EnumContext::Application_Impress),
474 EnumContext::GetContextName(eContext)),
475 bIsInitiallyVisible,
476 sMenuCommand);
477 }
478 else
345 ReadContextList(
346 aPanelNode,
347 rPanelDescriptor.maContextList,
348 sDefaultMenuCommand);
349 }
350
351 // When there where invalid nodes then we have to adapt the size
352 // of the deck vector.

--- 119 unchanged lines hidden (view full) ---

472 rContextList.AddContextDescription(
473 Context(
474 EnumContext::GetApplicationName(EnumContext::Application_Impress),
475 EnumContext::GetContextName(eContext)),
476 bIsInitiallyVisible,
477 sMenuCommand);
478 }
479 else
480 {
479 rContextList.AddContextDescription(
480 Context(
481 EnumContext::GetApplicationName(eApplication),
482 EnumContext::GetContextName(eContext)),
483 bIsInitiallyVisible,
484 sMenuCommand);
481 rContextList.AddContextDescription(
482 Context(
483 EnumContext::GetApplicationName(eApplication),
484 EnumContext::GetContextName(eContext)),
485 bIsInitiallyVisible,
486 sMenuCommand);
487 }
485 }
486}
487
488
489
490
491void ResourceManager::ReadLegacyAddons (const Reference<frame::XFrame>& rxFrame)
492{

--- 137 unchanged lines hidden ---
488 }
489}
490
491
492
493
494void ResourceManager::ReadLegacyAddons (const Reference<frame::XFrame>& rxFrame)
495{

--- 137 unchanged lines hidden ---