EmptyPanel.cxx (f120fe41) | EmptyPanel.cxx (54eaaa32) |
---|---|
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 --- 8 unchanged lines hidden (view full) --- 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22#include "precompiled_svx.hxx" 23 24#include "EmptyPanel.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 --- 8 unchanged lines hidden (view full) --- 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" |
|
25 | 29 |
30 |
|
26namespace svx { namespace sidebar { 27 | 31namespace svx { namespace sidebar { 32 |
33namespace 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 |
|
28EmptyPanel::EmptyPanel (::Window* pParent) | 46EmptyPanel::EmptyPanel (::Window* pParent) |
29 : Window(pParent, 0), 30 maMessageControl(this, 0) | 47 : Control(pParent, SVX_RES(RID_SIDEBAR_EMPTY_PANEL)), 48 maMessageControl(this, SVX_RES(FT_MESSAGE)) |
31{ 32 maMessageControl.SetPosSizePixel(5,5, 250,15); | 49{ 50 maMessageControl.SetPosSizePixel(5,5, 250,15); |
33 maMessageControl.SetText(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Intentionally letft blank"))); | 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()); |
34 35 maMessageControl.Show(); 36 Show(); 37} 38 39 40 41 42EmptyPanel::~EmptyPanel (void) 43{ 44} 45 46 47 48 | 58 59 maMessageControl.Show(); 60 Show(); 61} 62 63 64 65 66EmptyPanel::~EmptyPanel (void) 67{ 68} 69 70 71 72 |
73void EmptyPanel::Resize (void) 74{ 75 const Size aSize (GetSizePixel()); 76 maMessageControl.SetSizePixel(aSize); 77} 78 79 |
|
49} } // end of namespace ::svx::sidebar | 80} } // end of namespace ::svx::sidebar |