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 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 #include "precompiled_svx.hxx" 23 24 #include "EmptyPanel.hxx" 25 #include "EmptyPanel.hrc" 26 #include "area/AreaPropertyPanel.hrc" 27 #include "svx/dialogs.hrc" 28 #include "svx/dialmgr.hxx" 29 30 31 namespace svx { namespace sidebar { 32 33 namespace 34 { 35 class SidebarResource : public Resource 36 { 37 public: 38 SidebarResource (const ResId& rResId) : Resource(rResId) {} 39 ~SidebarResource (void) { FreeResource(); } 40 }; 41 } 42 43 44 45 46 EmptyPanel::EmptyPanel (::Window* pParent) 47 : Control(pParent, SVX_RES(RID_SIDEBAR_EMPTY_PANEL)), 48 maMessageControl(this, SVX_RES(FT_MESSAGE)) 49 { 50 maMessageControl.SetPosSizePixel(5,5, 250,15); 51 maMessageControl.SetStyle(WB_WORDBREAK);// | WB_NOMNEMONICS); 52 //maMessageControl.GetStyle() 53 // & ~(WB_NOMULTILINE | WB_PATHELLIPSIS) 54 // | WB_WORDBREAK | WB_NOMNEMONICS); 55 FreeResource(); 56 57 SetBackground(Wallpaper()); 58 59 maMessageControl.Show(); 60 Show(); 61 } 62 63 64 65 66 EmptyPanel::~EmptyPanel (void) 67 { 68 } 69 70 71 72 73 void EmptyPanel::Resize (void) 74 { 75 const Size aSize (GetSizePixel()); 76 maMessageControl.SetSizePixel(aSize); 77 } 78 79 80 } } // end of namespace ::svx::sidebar 81