/* -*- 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_ALIGN_HXX #define INCLUDED_CUI_SOURCE_INC_ALIGN_HXX // list box indexes #define ALIGNDLG_HORALIGN_STD 0 #define ALIGNDLG_HORALIGN_LEFT 1 #define ALIGNDLG_HORALIGN_CENTER 2 #define ALIGNDLG_HORALIGN_RIGHT 3 #define ALIGNDLG_HORALIGN_BLOCK 4 #define ALIGNDLG_HORALIGN_FILL 5 #define ALIGNDLG_HORALIGN_DISTRIBUTED 6 #define ALIGNDLG_VERALIGN_STD 0 #define ALIGNDLG_VERALIGN_TOP 1 #define ALIGNDLG_VERALIGN_MID 2 #define ALIGNDLG_VERALIGN_BOTTOM 3 #define ALIGNDLG_VERALIGN_BLOCK 4 #define ALIGNDLG_VERALIGN_DISTRIBUTED 5 #include #include #include #include #include #include #include #include #include #include namespace svx { class AlignmentTabPage : public SfxTabPage { using TabPage::DeactivatePage; friend class VclPtr; static const sal_uInt16 s_pRanges[]; public: virtual ~AlignmentTabPage() override; virtual void dispose() override; static VclPtr Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ); static const sal_uInt16* GetRanges() { return s_pRanges; } virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override; virtual void DataChanged( const DataChangedEvent& rDCEvt ) override; private: explicit AlignmentTabPage( vcl::Window* pParent, const SfxItemSet& rCoreSet ); void InitVsRefEgde(); void UpdateEnableControls(); bool HasAlignmentChanged( const SfxItemSet& rNew, sal_uInt16 nWhich ) const; DECL_LINK( UpdateEnableHdl, ListBox&, void ); DECL_LINK( UpdateEnableClickHdl, Button*, void ); private: VclPtr m_pLbHorAlign; VclPtr m_pFtIndent; VclPtr m_pEdIndent; VclPtr m_pFtVerAlign; VclPtr m_pLbVerAlign; VclPtr m_pCtrlDial; VclPtr m_pFtRotate; VclPtr m_pNfRotate; VclPtr m_pFtRefEdge; VclPtr m_pVsRefEdge; VclPtr m_pCbStacked; VclPtr m_pCbAsianMode; OrientationHelper* m_pOrientHlp; VclPtr m_pBoxDirection; VclPtr m_pBtnWrap; VclPtr m_pBtnHyphen; VclPtr m_pBtnShrink; VclPtr m_pLbFrameDir; // hidden labels/string VclPtr m_pFtBotLock; VclPtr m_pFtTopLock; VclPtr m_pFtCelLock; VclPtr m_pFtABCD; VclPtr m_pAlignmentFrame; VclPtr m_pOrientFrame; VclPtr m_pPropertiesFrame; }; } #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */