update credits
[LibreOffice.git] / svx / source / sidebar / EmptyPanel.cxx
blob2f8943684e85898d65bf659c42873ddf72b2e68c
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #include "EmptyPanel.hxx"
20 #include "EmptyPanel.hrc"
21 #include "area/AreaPropertyPanel.hrc"
22 #include "svx/dialogs.hrc"
23 #include "svx/dialmgr.hxx"
26 namespace svx { namespace sidebar {
28 namespace
30 class SidebarResource : public Resource
32 public:
33 SidebarResource (const ResId& rResId) : Resource(rResId) {}
34 ~SidebarResource (void) { FreeResource(); }
41 EmptyPanel::EmptyPanel (::Window* pParent)
42 : Control(pParent, SVX_RES(RID_SIDEBAR_EMPTY_PANEL)),
43 maMessageControl(this, SVX_RES(FT_MESSAGE))
45 maMessageControl.setPosSizePixel(5,5, 250,15);
46 maMessageControl.SetStyle(WB_WORDBREAK);// | WB_NOMNEMONICS);
47 //maMessageControl.GetStyle()
48 // & ~(WB_NOMULTILINE | WB_PATHELLIPSIS)
49 // | WB_WORDBREAK | WB_NOMNEMONICS);
50 FreeResource();
52 SetBackground(Wallpaper());
54 maMessageControl.Show();
55 Show();
61 EmptyPanel::~EmptyPanel (void)
68 void EmptyPanel::Resize (void)
70 const Size aSize (GetSizePixel());
71 maMessageControl.SetSizePixel(aSize);
75 } } // end of namespace ::svx::sidebar