/* -*- 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_CUI_SOURCE_INC_TABSTPGE_HXX #define INCLUDED_CUI_SOURCE_INC_TABSTPGE_HXX #include #include #include #include #include #include #include #include class TabWin_Impl; // class SvxTabulatorTabPage --------------------------------------------- /* [Description] In this TabPage tabulators are managed. [Items] */ class SvxTabulatorTabPage : public SfxTabPage { friend class VclPtr; using TabPage::DeactivatePage; static const sal_uInt16 pRanges[]; public: virtual ~SvxTabulatorTabPage() override; virtual void dispose() override; static VclPtr Create( TabPageParent pParent, const SfxItemSet* rSet ); static const sal_uInt16* GetRanges() { return pRanges; } virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; void DisableControls( const TabulatorDisableFlags nFlag ); protected: virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override; private: SvxTabulatorTabPage( vcl::Window* pParent, const SfxItemSet& rSet ); // tabulators and positions VclPtr m_pTabBox; // TabType VclPtr m_pLeftTab; VclPtr m_pRightTab; VclPtr m_pCenterTab; VclPtr m_pDezTab; VclPtr m_pLeftWin; VclPtr m_pRightWin; VclPtr m_pCenterWin; VclPtr m_pDezWin; VclPtr m_pDezCharLabel; VclPtr m_pDezChar; VclPtr m_pNoFillChar; VclPtr m_pFillPoints; VclPtr m_pFillDashLine ; VclPtr m_pFillSolidLine; VclPtr m_pFillSpecial; VclPtr m_pFillChar; VclPtr m_pNewBtn; VclPtr m_pDelAllBtn; VclPtr m_pDelBtn; VclPtr m_pTypeFrame; VclPtr m_pFillFrame; // local variables, internal functions SvxTabStop aCurrentTab; SvxTabStopItem aNewTabs; long nDefDist; FieldUnit eDefUnit; void InitTabPos_Impl( sal_uInt16 nPos = 0 ); void SetFillAndTabType_Impl(); // Handler DECL_LINK( NewHdl_Impl, Button*, void ); DECL_LINK( DelHdl_Impl, Button*, void ); DECL_LINK( DelAllHdl_Impl, Button*, void ); DECL_LINK( FillTypeCheckHdl_Impl, Button*, void ); DECL_LINK( TabTypeCheckHdl_Impl, Button*, void ); DECL_LINK( SelectHdl_Impl, ComboBox&, void ); DECL_LINK( ModifyHdl_Impl, Edit&, void ); DECL_LINK( GetFillCharHdl_Impl, Control&, void ); DECL_LINK( GetDezCharHdl_Impl, Control&, void ); virtual void PageCreated(const SfxAllItemSet& aSet) override; }; #endif // INCLUDED_CUI_SOURCE_INC_TABSTPGE_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */