Line data Source code
1 : /*
2 : * This file is part of the LibreOffice project.
3 : *
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/.
7 : *
8 : * This file incorporates work covered by the following license notice:
9 : *
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 .
17 : */
18 :
19 : #include "EmptyPanel.hxx"
20 : #include "EmptyPanel.hrc"
21 : #include "area/AreaPropertyPanel.hrc"
22 : #include "svx/dialogs.hrc"
23 : #include "svx/dialmgr.hxx"
24 :
25 :
26 : namespace svx { namespace sidebar {
27 :
28 0 : EmptyPanel::EmptyPanel (::Window* pParent)
29 0 : : Control(pParent, SVX_RES(RID_SIDEBAR_EMPTY_PANEL)),
30 0 : maMessageControl(this, SVX_RES(FT_MESSAGE))
31 : {
32 0 : maMessageControl.setPosSizePixel(5,5, 250,15);
33 0 : maMessageControl.SetStyle(WB_WORDBREAK);// | WB_NOMNEMONICS);
34 : //maMessageControl.GetStyle()
35 : // & ~(WB_NOMULTILINE | WB_PATHELLIPSIS)
36 : // | WB_WORDBREAK | WB_NOMNEMONICS);
37 0 : FreeResource();
38 :
39 0 : SetBackground(Wallpaper());
40 :
41 0 : maMessageControl.Show();
42 0 : Show();
43 0 : }
44 :
45 :
46 :
47 :
48 0 : EmptyPanel::~EmptyPanel (void)
49 : {
50 0 : }
51 :
52 :
53 :
54 :
55 0 : void EmptyPanel::Resize (void)
56 : {
57 0 : const Size aSize (GetSizePixel());
58 0 : maMessageControl.SetSizePixel(aSize);
59 0 : }
60 :
61 :
62 : } } // end of namespace ::svx::sidebar
|