bump product version to 6.3.0.0.beta1
[LibreOffice.git] / cui / source / inc / textattr.hxx
blob7ba0fa48bfbac1ed70c6da70d36a9e9bcfd7dbe8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_CUI_SOURCE_INC_TEXTATTR_HXX
20 #define INCLUDED_CUI_SOURCE_INC_TEXTATTR_HXX
22 #include <svx/dlgctrl.hxx>
23 #include <svx/svdobj.hxx>
24 #include <sfx2/basedlgs.hxx>
26 class SdrView;
28 /*************************************************************************
30 |* Dialog for changing TextAttributes
32 \************************************************************************/
34 class SvxTextAttrPage : public SvxTabPage
36 private:
37 static const sal_uInt16 pRanges[];
39 const SfxItemSet& rOutAttrs;
40 SdrObjKind m_eObjKind;
42 bool bAutoGrowSizeEnabled;
43 bool bContourEnabled;
44 bool bAutoGrowWidthEnabled;
45 bool bAutoGrowHeightEnabled;
46 bool bWordWrapTextEnabled;
47 bool bFitToSizeEnabled;
49 SvxRectCtl m_aCtlPosition;
51 std::unique_ptr<weld::Widget> m_xDrawingText;
52 std::unique_ptr<weld::Widget> m_xCustomShapeText;
53 std::unique_ptr<weld::CheckButton> m_xTsbAutoGrowWidth;
54 std::unique_ptr<weld::CheckButton> m_xTsbAutoGrowHeight;
55 std::unique_ptr<weld::CheckButton> m_xTsbFitToSize;
56 std::unique_ptr<weld::CheckButton> m_xTsbContour;
57 std::unique_ptr<weld::CheckButton> m_xTsbWordWrapText;
58 std::unique_ptr<weld::CheckButton> m_xTsbAutoGrowSize;
59 std::unique_ptr<weld::Frame> m_xFlDistance;
60 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldLeft;
61 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldRight;
62 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldTop;
63 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldBottom;
64 std::unique_ptr<weld::Frame> m_xFlPosition;
65 std::unique_ptr<weld::CustomWeld> m_xCtlPosition;
66 std::unique_ptr<weld::CheckButton> m_xTsbFullWidth;
68 DECL_LINK(ClickFullWidthHdl_Impl, weld::Button&, void);
69 DECL_LINK(ClickHdl_Impl, weld::Button&, void);
71 /** Return whether the text direction is from left to right (</sal_True>) or
72 top to bottom (</sal_False>).
74 bool IsTextDirectionLeftToRight() const;
76 public:
78 SvxTextAttrPage(TabPageParent pWindow, const SfxItemSet& rInAttrs);
79 virtual ~SvxTextAttrPage() override;
81 static VclPtr<SfxTabPage> Create( TabPageParent, const SfxItemSet* );
82 static const sal_uInt16* GetRanges() { return pRanges; }
84 virtual bool FillItemSet( SfxItemSet* ) override;
85 virtual void Reset( const SfxItemSet * ) override;
87 virtual void PointChanged( weld::DrawingArea* pWindow, RectPoint eRP ) override;
89 void Construct();
90 void SetObjKind(SdrObjKind eObjKind) { m_eObjKind = eObjKind; }
91 virtual void PageCreated(const SfxAllItemSet& aSet) override;
94 #endif // INCLUDED_CUI_SOURCE_INC_TEXTATTR_HXX
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */