PanelFactory.cxx (35fa8f12) PanelFactory.cxx (6cdc6e4f)
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

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

135 }
136 else if (rsResourceURL.endsWithAsciiL("/AreaPropertyPanel", strlen("/AreaPropertyPanel")))
137 {
138 AreaPropertyPanel* pPanel = AreaPropertyPanel::Create(pParentWindow, xFrame, pBindings);
139 xElement = sfx2::sidebar::SidebarPanelBase::Create(
140 rsResourceURL,
141 xFrame,
142 pPanel,
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

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

135 }
136 else if (rsResourceURL.endsWithAsciiL("/AreaPropertyPanel", strlen("/AreaPropertyPanel")))
137 {
138 AreaPropertyPanel* pPanel = AreaPropertyPanel::Create(pParentWindow, xFrame, pBindings);
139 xElement = sfx2::sidebar::SidebarPanelBase::Create(
140 rsResourceURL,
141 xFrame,
142 pPanel,
143 ::boost::function<void(void)>());
143 ::boost::bind(&AreaPropertyPanel::ShowMenu, pPanel));
144 }
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,
144 }
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::function<void(void)>());
152 ::boost::bind(&LinePropertyPanel::ShowMenu, pPanel));
153 }
154 else if (rsResourceURL.endsWithAsciiL("/TransformationPropertyPanel", strlen("/TransformationPropertyPanel")))
155 {
153 }
154 else if (rsResourceURL.endsWithAsciiL("/TransformationPropertyPanel", strlen("/TransformationPropertyPanel")))
155 {
156 LinePropertyPanel* pPanel = LinePropertyPanel::Create(pParentWindow, xFrame, pBindings);
156 TransformationPropertyPanel* pPanel = TransformationPropertyPanel::Create(pParentWindow, xFrame, pBindings);
157 xElement = sfx2::sidebar::SidebarPanelBase::Create(
158 rsResourceURL,
159 xFrame,
160 pPanel,
157 xElement = sfx2::sidebar::SidebarPanelBase::Create(
158 rsResourceURL,
159 xFrame,
160 pPanel,
161 ::boost::function<void(void)>());
161 ::boost::bind(&TransformationPropertyPanel::ShowMenu, pPanel));
162 }
163
164 return xElement;
165}
166
167} } // end of namespace svx::sidebar
168
169// eof
162 }
163
164 return xElement;
165}
166
167} } // end of namespace svx::sidebar
168
169// eof