diff options
author | Susobhan Ghosh <susobhang70@gmail.com> | 2016-08-13 19:23:54 +0530 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2016-08-25 08:37:10 +0000 |
commit | 6f437466f96868cb10187c404ed84fb6d3dcc645 (patch) | |
tree | dfa3a0863f0f7c23556d4ef079054133938cc3ba /include/svx/spacinglistbox.hxx | |
parent | 79f1315a02b1dd4dd7b4a78dea410c3192663522 (diff) |
tdf#83830: Use SpacingListBox in Header/Footer and Sidebar Wrap Panel
Change-Id: I80ea84b6eaabcf241b313d46695cffdd74174c08
Reviewed-on: https://gerrit.libreoffice.org/28104
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'include/svx/spacinglistbox.hxx')
-rw-r--r-- | include/svx/spacinglistbox.hxx | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/svx/spacinglistbox.hxx b/include/svx/spacinglistbox.hxx new file mode 100644 index 000000000000..eb8ebe427439 --- /dev/null +++ b/include/svx/spacinglistbox.hxx @@ -0,0 +1,35 @@ +/* -*- 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/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#ifndef INCLUDED_SVX_SPACINGLISTBOXHELPER_HXX +#define INCLUDED_SVX_SPACINGLISTBOXHELPER_HXX + +#include <svx/svxdllapi.h> +#include <vcl/lstbox.hxx> + +/// Custom Widget ListBox to hold entries for Spacing & Margin settings of Header/Footer +class SVX_DLLPUBLIC SpacingListBox : public ListBox +{ +public: + SpacingListBox( vcl::Window* pParent, WinBits nBits = WB_BORDER | WB_DROPDOWN ); + Size GetOptimalSize() const override; +}; + +#endif +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |