2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2011-03-31 10:05:04 +02: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-11-05 02:17:53 +01:00
|
|
|
#ifndef INCLUDED_SW_SOURCE_UI_ENVELP_ENVFMT_HXX
|
|
|
|
#define INCLUDED_SW_SOURCE_UI_ENVELP_ENVFMT_HXX
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
#include <vcl/field.hxx>
|
|
|
|
#include <vcl/menubtn.hxx>
|
|
|
|
#include <vcl/group.hxx>
|
|
|
|
|
2017-10-23 22:30:30 +02:00
|
|
|
#include <envlop.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwTextFormatColl;
|
2007-09-27 10:41:50 +00:00
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwEnvFormatPage : public SfxTabPage
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2015-03-09 14:29:30 +02:00
|
|
|
VclPtr<MetricField> m_pAddrLeftField;
|
|
|
|
VclPtr<MetricField> m_pAddrTopField;
|
|
|
|
VclPtr<MenuButton> m_pAddrEditButton;
|
|
|
|
VclPtr<MetricField> m_pSendLeftField;
|
|
|
|
VclPtr<MetricField> m_pSendTopField;
|
|
|
|
VclPtr<MenuButton> m_pSendEditButton;
|
|
|
|
VclPtr<ListBox> m_pSizeFormatBox;
|
|
|
|
VclPtr<MetricField> m_pSizeWidthField;
|
|
|
|
VclPtr<MetricField> m_pSizeHeightField;
|
|
|
|
VclPtr<SwEnvPreview> m_pPreview;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-07-25 14:43:52 +01:00
|
|
|
std::vector<sal_uInt16> aIDs;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2016-10-05 07:56:12 +02:00
|
|
|
DECL_LINK( ModifyHdl, SpinField&, void );
|
|
|
|
DECL_LINK( LoseFocusHdl, Control&, void );
|
|
|
|
DECL_LINK( EditHdl, MenuButton *, void );
|
|
|
|
DECL_LINK(FormatHdl, ListBox&, void);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
void SetMinMax();
|
|
|
|
|
2017-08-07 12:15:34 +02:00
|
|
|
SfxItemSet *GetCollItemSet(SwTextFormatColl const * pColl, bool bSender);
|
2007-09-27 10:41:50 +00:00
|
|
|
|
2014-12-01 10:16:37 +02:00
|
|
|
SwEnvDlg *GetParentSwEnvDlg() {return static_cast<SwEnvDlg*>(GetParentDialog());}
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2007-09-27 10:41:50 +00:00
|
|
|
using TabPage::ActivatePage;
|
|
|
|
using TabPage::DeactivatePage;
|
|
|
|
|
2007-10-22 14:14:47 +00:00
|
|
|
public:
|
2015-05-20 13:05:49 +02:00
|
|
|
SwEnvFormatPage(vcl::Window* pParent, const SfxItemSet& rSet);
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~SwEnvFormatPage() override;
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void dispose() override;
|
2007-10-22 14:14:47 +00:00
|
|
|
|
2015-04-17 13:51:33 +01:00
|
|
|
static VclPtr<SfxTabPage> Create(vcl::Window* pParent, const SfxItemSet* rSet);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void ActivatePage(const SfxItemSet& rSet) override;
|
2016-07-22 14:35:27 +02:00
|
|
|
virtual DeactivateRC DeactivatePage(SfxItemSet* pSet) override;
|
2000-09-18 16:15:01 +00:00
|
|
|
void FillItem(SwEnvItem& rItem);
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual bool FillItemSet(SfxItemSet* rSet) override;
|
|
|
|
virtual void Reset(const SfxItemSet* rSet) override;
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-14 08:30:41 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|