1ff12d537SAndre Fischer /************************************************************** 2ff12d537SAndre Fischer * 3ff12d537SAndre Fischer * Licensed to the Apache Software Foundation (ASF) under one 4ff12d537SAndre Fischer * or more contributor license agreements. See the NOTICE file 5ff12d537SAndre Fischer * distributed with this work for additional information 6ff12d537SAndre Fischer * regarding copyright ownership. The ASF licenses this file 7ff12d537SAndre Fischer * to you under the Apache License, Version 2.0 (the 8ff12d537SAndre Fischer * "License"); you may not use this file except in compliance 9ff12d537SAndre Fischer * with the License. You may obtain a copy of the License at 10ff12d537SAndre Fischer * 11ff12d537SAndre Fischer * http://www.apache.org/licenses/LICENSE-2.0 12ff12d537SAndre Fischer * 13ff12d537SAndre Fischer * Unless required by applicable law or agreed to in writing, 14ff12d537SAndre Fischer * software distributed under the License is distributed on an 15ff12d537SAndre Fischer * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16ff12d537SAndre Fischer * KIND, either express or implied. See the License for the 17ff12d537SAndre Fischer * specific language governing permissions and limitations 18ff12d537SAndre Fischer * under the License. 19ff12d537SAndre Fischer * 20ff12d537SAndre Fischer *************************************************************/ 21ff12d537SAndre Fischer 22ff12d537SAndre Fischer #include "precompiled_sfx2.hxx" 23ff12d537SAndre Fischer 24b9e67834SAndre Fischer #include "sidebar/ControlFactory.hxx" 25ff12d537SAndre Fischer 26ff12d537SAndre Fischer #include "MenuButton.hxx" 27ff12d537SAndre Fischer #include "TabItem.hxx" 28b9e67834SAndre Fischer #include "SidebarToolBox.hxx" 2995a18594SAndre Fischer #include "ToolBoxBackground.hxx" 30b9e67834SAndre Fischer #include <vcl/toolbox.hxx> 31ff12d537SAndre Fischer 32ff12d537SAndre Fischer 33ff12d537SAndre Fischer namespace sfx2 { namespace sidebar { 34ff12d537SAndre Fischer 35ff12d537SAndre Fischer 36ff12d537SAndre Fischer CheckBox* ControlFactory::CreateMenuButton (Window* pParentWindow) 37ff12d537SAndre Fischer { 38ff12d537SAndre Fischer return new MenuButton(pParentWindow); 39ff12d537SAndre Fischer } 40ff12d537SAndre Fischer 41ff12d537SAndre Fischer 42ff12d537SAndre Fischer 43ff12d537SAndre Fischer 44ff12d537SAndre Fischer ImageRadioButton* ControlFactory::CreateTabItem (Window* pParentWindow) 45ff12d537SAndre Fischer { 46ff12d537SAndre Fischer return new TabItem(pParentWindow); 47ff12d537SAndre Fischer } 48ff12d537SAndre Fischer 49ff12d537SAndre Fischer 50b9e67834SAndre Fischer 51b9e67834SAndre Fischer 52b9e67834SAndre Fischer ToolBox* ControlFactory::CreateToolBox ( 53b9e67834SAndre Fischer Window* pParentWindow, 54b9e67834SAndre Fischer const ResId& rResId) 55b9e67834SAndre Fischer { 56*7a32b0c8SAndre Fischer SidebarToolBox* pToolBox = new SidebarToolBox(pParentWindow, rResId); 57*7a32b0c8SAndre Fischer pToolBox->SetBorderWindow(pParentWindow); 5895a18594SAndre Fischer 5995a18594SAndre Fischer pToolBox->Invalidate(); 6095a18594SAndre Fischer 6195a18594SAndre Fischer return pToolBox; 62b9e67834SAndre Fischer } 63b9e67834SAndre Fischer 64*7a32b0c8SAndre Fischer 65*7a32b0c8SAndre Fischer 66*7a32b0c8SAndre Fischer 67*7a32b0c8SAndre Fischer Window* ControlFactory::CreateToolBoxBackground ( 68*7a32b0c8SAndre Fischer Window* pParentWindow) 69*7a32b0c8SAndre Fischer { 70*7a32b0c8SAndre Fischer ToolBoxBackground* pBorderWindow = new ToolBoxBackground(pParentWindow); 71*7a32b0c8SAndre Fischer pBorderWindow->Show(); 72*7a32b0c8SAndre Fischer return pBorderWindow; 73*7a32b0c8SAndre Fischer } 74*7a32b0c8SAndre Fischer 75ff12d537SAndre Fischer } } // end of namespace sfx2::sidebar 76