195a18594SAndre Fischer /************************************************************** 295a18594SAndre Fischer * 395a18594SAndre Fischer * Licensed to the Apache Software Foundation (ASF) under one 495a18594SAndre Fischer * or more contributor license agreements. See the NOTICE file 595a18594SAndre Fischer * distributed with this work for additional information 695a18594SAndre Fischer * regarding copyright ownership. The ASF licenses this file 795a18594SAndre Fischer * to you under the Apache License, Version 2.0 (the 895a18594SAndre Fischer * "License"); you may not use this file except in compliance 995a18594SAndre Fischer * with the License. You may obtain a copy of the License at 1095a18594SAndre Fischer * 1195a18594SAndre Fischer * http://www.apache.org/licenses/LICENSE-2.0 1295a18594SAndre Fischer * 1395a18594SAndre Fischer * Unless required by applicable law or agreed to in writing, 1495a18594SAndre Fischer * software distributed under the License is distributed on an 1595a18594SAndre Fischer * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 1695a18594SAndre Fischer * KIND, either express or implied. See the License for the 1795a18594SAndre Fischer * specific language governing permissions and limitations 1895a18594SAndre Fischer * under the License. 1995a18594SAndre Fischer * 2095a18594SAndre Fischer *************************************************************/ 2195a18594SAndre Fischer 2295a18594SAndre Fischer #ifndef SFX_SIDEBAR_TOOLBOX_BACKGROUND_HXX 2395a18594SAndre Fischer #define SFX_SIDEBAR_TOOLBOX_BACKGROUND_HXX 2495a18594SAndre Fischer 2595a18594SAndre Fischer #include "vcl/window.hxx" 2695a18594SAndre Fischer 2795a18594SAndre Fischer #include <tools/svborder.hxx> 2895a18594SAndre Fischer 2995a18594SAndre Fischer 3095a18594SAndre Fischer class ToolBox; 3195a18594SAndre Fischer 3295a18594SAndre Fischer namespace sfx2 { namespace sidebar { 3395a18594SAndre Fischer 3495a18594SAndre Fischer class ToolBoxBackground 3595a18594SAndre Fischer : public Window 3695a18594SAndre Fischer { 3795a18594SAndre Fischer public: 38*d46a1e42SAndre Fischer ToolBoxBackground ( 39*d46a1e42SAndre Fischer Window* pParentWindow, 40*d46a1e42SAndre Fischer const bool bShowBorder); 4195a18594SAndre Fischer virtual ~ToolBoxBackground (void); 4295a18594SAndre Fischer 4395a18594SAndre Fischer /** Call this method once to 4495a18594SAndre Fischer a) let the ToolBoxBackground object know which ToolBox to 4595a18594SAndre Fischer monitor and 4695a18594SAndre Fischer b) so that position and sizes can be set up. 4795a18594SAndre Fischer @return 4895a18594SAndre Fischer The relative position of the child. 4995a18594SAndre Fischer */ 5095a18594SAndre Fischer Point SetToolBoxChild ( 5195a18594SAndre Fischer ToolBox* pChild, 5295a18594SAndre Fischer long nX, 5395a18594SAndre Fischer long nY, 5495a18594SAndre Fischer long nWidth, 5595a18594SAndre Fischer long nHeight, 5695a18594SAndre Fischer sal_uInt16 nFlags); 5795a18594SAndre Fischer 5895a18594SAndre Fischer virtual void Paint (const Rectangle& rRect); 5995a18594SAndre Fischer virtual void DataChanged (const DataChangedEvent& rEvent); 6095a18594SAndre Fischer 6195a18594SAndre Fischer private: 6295a18594SAndre Fischer SvBorder maPadding; 6395a18594SAndre Fischer 6495a18594SAndre Fischer DECL_LINK(WindowEventHandler, VclWindowEvent*); 6595a18594SAndre Fischer }; 6695a18594SAndre Fischer 6795a18594SAndre Fischer 6895a18594SAndre Fischer } } // end of namespace sfx2::sidebar 6995a18594SAndre Fischer 7095a18594SAndre Fischer #endif 71