summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-05-23 18:43:08 +0200
committerJan Holesovsky <kendy@suse.cz>2013-06-02 04:54:53 +0200
commit4f14ed6d346a488976262e69fdbc2fd21881b659 (patch)
treeb3e43401a9c11a63097d57281e51889875551126 /include
parent916afbea4f20a72e7c3defee17676d8ec23841c1 (diff)
sidebar: Introduce PanelLayout class.
This allows sidebars to be defined using Widget layout / .ui files. Change-Id: I7d5daf2579d6359ba48d4df4be344bb75ce16273
Diffstat (limited to 'include')
-rw-r--r--include/svx/sidebar/PanelLayout.hxx31
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: */