PanelFactory.cxx (6cdc6e4f) PanelFactory.cxx (2bdfcea1)
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

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

18 * under the License.
19 *
20 *************************************************************/
21
22#include "sidebar/PanelFactory.hxx"
23
24#include <text/TextPropertyPanel.hxx>
25#include <geometry/AreaPropertyPanel.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

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

18 * under the License.
19 *
20 *************************************************************/
21
22#include "sidebar/PanelFactory.hxx"
23
24#include <text/TextPropertyPanel.hxx>
25#include <geometry/AreaPropertyPanel.hxx>
26#include <geometry/GraphicPropertyPanel.hxx>
26#include <geometry/LinePropertyPanel.hxx>
27#include <geometry/TransformationPropertyPanel.hxx>
28#include <sfx2/sidebar/SidebarPanelBase.hxx>
29#include <sfx2/sfxbasecontroller.hxx>
30#include <toolkit/helper/vclunohelper.hxx>
31#include <vcl/window.hxx>
32#include <rtl/ref.hxx>
33#include <comphelper/namedvaluecollection.hxx>

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

137 {
138 AreaPropertyPanel* pPanel = AreaPropertyPanel::Create(pParentWindow, xFrame, pBindings);
139 xElement = sfx2::sidebar::SidebarPanelBase::Create(
140 rsResourceURL,
141 xFrame,
142 pPanel,
143 ::boost::bind(&AreaPropertyPanel::ShowMenu, pPanel));
144 }
27#include <geometry/LinePropertyPanel.hxx>
28#include <geometry/TransformationPropertyPanel.hxx>
29#include <sfx2/sidebar/SidebarPanelBase.hxx>
30#include <sfx2/sfxbasecontroller.hxx>
31#include <toolkit/helper/vclunohelper.hxx>
32#include <vcl/window.hxx>
33#include <rtl/ref.hxx>
34#include <comphelper/namedvaluecollection.hxx>

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

138 {
139 AreaPropertyPanel* pPanel = AreaPropertyPanel::Create(pParentWindow, xFrame, pBindings);
140 xElement = sfx2::sidebar::SidebarPanelBase::Create(
141 rsResourceURL,
142 xFrame,
143 pPanel,
144 ::boost::bind(&AreaPropertyPanel::ShowMenu, pPanel));
145 }
146 else if (rsResourceURL.endsWithAsciiL("/GraphicPropertyPanel", strlen("/GraphicPropertyPanel")))
147 {
148 GraphicPropertyPanel* pPanel = GraphicPropertyPanel::Create(pParentWindow, xFrame, pBindings);
149 xElement = sfx2::sidebar::SidebarPanelBase::Create(
150 rsResourceURL,
151 xFrame,
152 pPanel,
153 ::boost::function<void(void)>());
154 }
145 else if (rsResourceURL.endsWithAsciiL("/LinePropertyPanel", strlen("/LinePropertyPanel")))
146 {
147 LinePropertyPanel* pPanel = LinePropertyPanel::Create(pParentWindow, xFrame, pBindings);
148 xElement = sfx2::sidebar::SidebarPanelBase::Create(
149 rsResourceURL,
150 xFrame,
151 pPanel,
152 ::boost::bind(&LinePropertyPanel::ShowMenu, pPanel));

--- 17 unchanged lines hidden ---
155 else if (rsResourceURL.endsWithAsciiL("/LinePropertyPanel", strlen("/LinePropertyPanel")))
156 {
157 LinePropertyPanel* pPanel = LinePropertyPanel::Create(pParentWindow, xFrame, pBindings);
158 xElement = sfx2::sidebar::SidebarPanelBase::Create(
159 rsResourceURL,
160 xFrame,
161 pPanel,
162 ::boost::bind(&LinePropertyPanel::ShowMenu, pPanel));

--- 17 unchanged lines hidden ---