bump product version to 5.0.4.1
[LibreOffice.git] / svx / source / sidebar / EmptyPanel.cxx
blob10cfb3c606fbd982dc243f8fd1e36cb7a4d49c98
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include "EmptyPanel.hxx"
21 #include "EmptyPanel.hrc"
22 #include "area/AreaPropertyPanel.hrc"
23 #include "svx/dialogs.hrc"
24 #include "svx/dialmgr.hxx"
27 namespace svx { namespace sidebar {
29 EmptyPanel::EmptyPanel (vcl::Window* pParent)
30 : Control(pParent, SVX_RES(RID_SIDEBAR_EMPTY_PANEL)),
31 maMessageControl(VclPtr<FixedText>::Create(this, SVX_RES(FT_MESSAGE)))
33 maMessageControl->setPosSizePixel(5,5, 250,15);
34 maMessageControl->SetStyle(WB_WORDBREAK);// | WB_NOMNEMONICS);
35 //maMessageControl.GetStyle()
36 // & ~(WB_NOMULTILINE | WB_PATHELLIPSIS)
37 // | WB_WORDBREAK | WB_NOMNEMONICS);
38 FreeResource();
40 SetBackground(Wallpaper());
42 maMessageControl->Show();
43 Show();
49 EmptyPanel::~EmptyPanel()
51 disposeOnce();
54 void EmptyPanel::dispose()
56 maMessageControl.disposeAndClear();
57 Control::dispose();
61 void EmptyPanel::Resize()
63 const Size aSize (GetSizePixel());
64 maMessageControl->SetSizePixel(aSize);
68 } } // end of namespace svx::sidebar
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */