2010-10-27 12:45:03 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-10-04 11:25:41 +01:00
|
|
|
/*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2013-10-28 03:46:16 +01:00
|
|
|
#ifndef INCLUDED_CUI_SOURCE_INC_DSTRIBUT_HXX
|
|
|
|
#define INCLUDED_CUI_SOURCE_INC_DSTRIBUT_HXX
|
2009-10-31 00:36:06 +01:00
|
|
|
|
2019-07-13 08:13:32 +02:00
|
|
|
#include <sfx2/tabdlg.hxx>
|
2010-11-02 18:14:23 +01:00
|
|
|
#include <svx/dstribut_enum.hxx>
|
2019-07-13 08:13:32 +02:00
|
|
|
#include <vcl/weld.hxx>
|
2009-10-31 00:36:06 +01:00
|
|
|
|
2018-09-20 16:58:21 +01:00
|
|
|
class SvxDistributePage : public SfxTabPage
|
2009-10-31 00:36:06 +01:00
|
|
|
{
|
2014-01-08 09:18:58 +00:00
|
|
|
SvxDistributeHorizontal m_eDistributeHor;
|
|
|
|
SvxDistributeVertical m_eDistributeVer;
|
2009-10-31 00:36:06 +01:00
|
|
|
|
2018-09-20 16:16:05 +01:00
|
|
|
std::unique_ptr<weld::RadioButton> m_xBtnHorNone;
|
|
|
|
std::unique_ptr<weld::RadioButton> m_xBtnHorLeft;
|
|
|
|
std::unique_ptr<weld::RadioButton> m_xBtnHorCenter;
|
|
|
|
std::unique_ptr<weld::RadioButton> m_xBtnHorDistance;
|
|
|
|
std::unique_ptr<weld::RadioButton> m_xBtnHorRight;
|
|
|
|
std::unique_ptr<weld::RadioButton> m_xBtnVerNone;
|
|
|
|
std::unique_ptr<weld::RadioButton> m_xBtnVerTop;
|
|
|
|
std::unique_ptr<weld::RadioButton> m_xBtnVerCenter;
|
|
|
|
std::unique_ptr<weld::RadioButton> m_xBtnVerDistance;
|
|
|
|
std::unique_ptr<weld::RadioButton> m_xBtnVerBottom;
|
2009-10-31 00:36:06 +01:00
|
|
|
|
|
|
|
public:
|
2019-09-24 14:10:48 +01:00
|
|
|
SvxDistributePage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs,
|
2017-12-06 09:09:46 +02:00
|
|
|
SvxDistributeHorizontal eHor,
|
|
|
|
SvxDistributeVertical eVer);
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~SvxDistributePage() override;
|
2009-10-31 00:36:06 +01:00
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual bool FillItemSet(SfxItemSet*) override;
|
|
|
|
virtual void Reset(const SfxItemSet*) override;
|
2009-10-31 00:36:06 +01:00
|
|
|
|
2014-01-08 09:18:58 +00:00
|
|
|
SvxDistributeHorizontal GetDistributeHor() const { return m_eDistributeHor; }
|
|
|
|
SvxDistributeVertical GetDistributeVer() const { return m_eDistributeVer; }
|
2009-10-31 00:36:06 +01:00
|
|
|
};
|
|
|
|
|
2018-09-20 16:26:54 +01:00
|
|
|
class SvxDistributeDialog : public SfxSingleTabDialogController
|
2009-10-31 00:36:06 +01:00
|
|
|
{
|
2019-09-20 20:29:36 +01:00
|
|
|
SvxDistributePage* mpPage;
|
2009-10-31 00:36:06 +01:00
|
|
|
|
|
|
|
public:
|
2018-09-20 16:26:54 +01:00
|
|
|
SvxDistributeDialog(weld::Window* pParent, const SfxItemSet& rAttr,
|
2017-12-06 09:09:46 +02:00
|
|
|
SvxDistributeHorizontal eHor,
|
|
|
|
SvxDistributeVertical eVer);
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~SvxDistributeDialog() override;
|
2009-10-31 00:36:06 +01:00
|
|
|
|
|
|
|
SvxDistributeHorizontal GetDistributeHor() const { return mpPage->GetDistributeHor(); }
|
|
|
|
SvxDistributeVertical GetDistributeVer() const { return mpPage->GetDistributeVer(); }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2013-10-28 03:46:16 +01:00
|
|
|
#endif // INCLUDED_CUI_SOURCE_INC_DSTRIBUT_HXX
|
2009-10-31 00:36:06 +01:00
|
|
|
|
2010-10-27 12:45:03 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|