diff options
author | Jan Holesovsky <kendy@suse.cz> | 2013-05-23 18:43:08 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-06-05 10:06:49 +0100 |
commit | e6354cc0752c5de0efefb9e3bdb9b196b205a73a (patch) | |
tree | c421429936f4162d69adf308a7ec1b93fee97f4c /include | |
parent | c44e55aac0dc0685c7bf3f313f4b3e6c65aaa6c6 (diff) |
sidebar: Introduce PanelLayout class.
This allows sidebars to be defined using Widget layout / .ui files.
Change-Id: I7d5daf2579d6359ba48d4df4be344bb75ce16273
(cherry picked from commit 4f14ed6d346a488976262e69fdbc2fd21881b659)
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/sidebar/PanelLayout.hxx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/svx/sidebar/PanelLayout.hxx b/include/svx/sidebar/PanelLayout.hxx new file mode 100644 index 000000000000..c29f6b90f4ed --- /dev/null +++ b/include/svx/sidebar/PanelLayout.hxx @@ -0,0 +1,31 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef SIDEBAR_PANELLAYOUT_HXX +#define SIDEBAR_PANELLAYOUT_HXX + +#include <svx/svxdllapi.h> + +#include <vcl/builder.hxx> +#include <vcl/ctrl.hxx> + +/// This class is the base for the Widget Layout-based sidebar panels. +class SVX_DLLPUBLIC PanelLayout : public Control, public VclBuilderContainer +{ +public: + PanelLayout(Window* pParent, const OString& rID, const OUString& rUIXMLDescription); + virtual ~PanelLayout() {} + + virtual Size GetOptimalSize() const; + virtual void setPosSizePixel(long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags = WINDOW_POSSIZE_ALL); +}; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |