1*95a18594SAndre Fischer /************************************************************** 2*95a18594SAndre Fischer * 3*95a18594SAndre Fischer * Licensed to the Apache Software Foundation (ASF) under one 4*95a18594SAndre Fischer * or more contributor license agreements. See the NOTICE file 5*95a18594SAndre Fischer * distributed with this work for additional information 6*95a18594SAndre Fischer * regarding copyright ownership. The ASF licenses this file 7*95a18594SAndre Fischer * to you under the Apache License, Version 2.0 (the 8*95a18594SAndre Fischer * "License"); you may not use this file except in compliance 9*95a18594SAndre Fischer * with the License. You may obtain a copy of the License at 10*95a18594SAndre Fischer * 11*95a18594SAndre Fischer * http://www.apache.org/licenses/LICENSE-2.0 12*95a18594SAndre Fischer * 13*95a18594SAndre Fischer * Unless required by applicable law or agreed to in writing, 14*95a18594SAndre Fischer * software distributed under the License is distributed on an 15*95a18594SAndre Fischer * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*95a18594SAndre Fischer * KIND, either express or implied. See the License for the 17*95a18594SAndre Fischer * specific language governing permissions and limitations 18*95a18594SAndre Fischer * under the License. 19*95a18594SAndre Fischer * 20*95a18594SAndre Fischer *************************************************************/ 21*95a18594SAndre Fischer 22*95a18594SAndre Fischer #ifndef SFX_SIDEBAR_TOOLBOX_BACKGROUND_HXX 23*95a18594SAndre Fischer #define SFX_SIDEBAR_TOOLBOX_BACKGROUND_HXX 24*95a18594SAndre Fischer 25*95a18594SAndre Fischer #include "vcl/window.hxx" 26*95a18594SAndre Fischer 27*95a18594SAndre Fischer #include <tools/svborder.hxx> 28*95a18594SAndre Fischer 29*95a18594SAndre Fischer 30*95a18594SAndre Fischer class ToolBox; 31*95a18594SAndre Fischer 32*95a18594SAndre Fischer namespace sfx2 { namespace sidebar { 33*95a18594SAndre Fischer 34*95a18594SAndre Fischer class ToolBoxBackground 35*95a18594SAndre Fischer : public Window 36*95a18594SAndre Fischer { 37*95a18594SAndre Fischer public: 38*95a18594SAndre Fischer ToolBoxBackground (Window* pParentWindow); 39*95a18594SAndre Fischer virtual ~ToolBoxBackground (void); 40*95a18594SAndre Fischer 41*95a18594SAndre Fischer /** Call this method once to 42*95a18594SAndre Fischer a) let the ToolBoxBackground object know which ToolBox to 43*95a18594SAndre Fischer monitor and 44*95a18594SAndre Fischer b) so that position and sizes can be set up. 45*95a18594SAndre Fischer @return 46*95a18594SAndre Fischer The relative position of the child. 47*95a18594SAndre Fischer */ 48*95a18594SAndre Fischer Point SetToolBoxChild ( 49*95a18594SAndre Fischer ToolBox* pChild, 50*95a18594SAndre Fischer long nX, 51*95a18594SAndre Fischer long nY, 52*95a18594SAndre Fischer long nWidth, 53*95a18594SAndre Fischer long nHeight, 54*95a18594SAndre Fischer sal_uInt16 nFlags); 55*95a18594SAndre Fischer 56*95a18594SAndre Fischer virtual void Paint (const Rectangle& rRect); 57*95a18594SAndre Fischer virtual void DataChanged (const DataChangedEvent& rEvent); 58*95a18594SAndre Fischer 59*95a18594SAndre Fischer private: 60*95a18594SAndre Fischer SvBorder maPadding; 61*95a18594SAndre Fischer 62*95a18594SAndre Fischer DECL_LINK(WindowEventHandler, VclWindowEvent*); 63*95a18594SAndre Fischer }; 64*95a18594SAndre Fischer 65*95a18594SAndre Fischer 66*95a18594SAndre Fischer } } // end of namespace sfx2::sidebar 67*95a18594SAndre Fischer 68*95a18594SAndre Fischer #endif 69