ScPanelFactory.cxx (facb16e7) | ScPanelFactory.cxx (4e8031e0) |
---|---|
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 --- 11 unchanged lines hidden (view full) --- 20 *************************************************************/ 21 22#include "precompiled_sc.hxx" 23 24#include "ScPanelFactory.hxx" 25 26#include <AlignmentPropertyPanel.hxx> 27#include <CellAppearancePropertyPanel.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 --- 11 unchanged lines hidden (view full) --- 20 *************************************************************/ 21 22#include "precompiled_sc.hxx" 23 24#include "ScPanelFactory.hxx" 25 26#include <AlignmentPropertyPanel.hxx> 27#include <CellAppearancePropertyPanel.hxx> |
28#include <NumberFormatPropertyPanel.hxx> |
|
28 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> 35 --- 82 unchanged lines hidden (view full) --- 118 { 119 AlignmentPropertyPanel* pPanel = AlignmentPropertyPanel::Create( pParentWindow, xFrame, pBindings ); 120 xElement = sfx2::sidebar::SidebarPanelBase::Create( 121 rsResourceURL, 122 xFrame, 123 pPanel, 124 ui::LayoutSize(-1,-1,-1)); 125 } | 29 30#include <sfx2/sidebar/SidebarPanelBase.hxx> 31#include <sfx2/sfxbasecontroller.hxx> 32#include <toolkit/helper/vclunohelper.hxx> 33#include <vcl/window.hxx> 34#include <rtl/ref.hxx> 35#include <comphelper/namedvaluecollection.hxx> 36 --- 82 unchanged lines hidden (view full) --- 119 { 120 AlignmentPropertyPanel* pPanel = AlignmentPropertyPanel::Create( pParentWindow, xFrame, pBindings ); 121 xElement = sfx2::sidebar::SidebarPanelBase::Create( 122 rsResourceURL, 123 xFrame, 124 pPanel, 125 ui::LayoutSize(-1,-1,-1)); 126 } |
126 if (DoesResourceEndWith("/CellAppearancePropertyPanel")) | 127 else if (DoesResourceEndWith("/CellAppearancePropertyPanel")) |
127 { 128 CellAppearancePropertyPanel* pPanel = CellAppearancePropertyPanel::Create( pParentWindow, xFrame, pBindings ); 129 xElement = sfx2::sidebar::SidebarPanelBase::Create( 130 rsResourceURL, 131 xFrame, 132 pPanel, 133 ui::LayoutSize(-1,-1,-1)); 134 } | 128 { 129 CellAppearancePropertyPanel* pPanel = CellAppearancePropertyPanel::Create( pParentWindow, xFrame, pBindings ); 130 xElement = sfx2::sidebar::SidebarPanelBase::Create( 131 rsResourceURL, 132 xFrame, 133 pPanel, 134 ui::LayoutSize(-1,-1,-1)); 135 } |
136 else if (DoesResourceEndWith("/NumberFormatPropertyPanel")) 137 { 138 NumberFormatPropertyPanel* pPanel = NumberFormatPropertyPanel::Create( pParentWindow, xFrame, pBindings ); 139 xElement = sfx2::sidebar::SidebarPanelBase::Create( 140 rsResourceURL, 141 xFrame, 142 pPanel, 143 ui::LayoutSize(-1,-1,-1)); 144 } |
|
135#undef DoesResourceEndWith 136 137 return xElement; 138} 139 140} } // end of namespace sc::sidebar 141 142// eof | 145#undef DoesResourceEndWith 146 147 return xElement; 148} 149 150} } // end of namespace sc::sidebar 151 152// eof |