/* -*- 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_SW_SOURCE_UIBASE_INC_TAUTOFMT_HXX #define INCLUDED_SW_SOURCE_UIBASE_INC_TAUTOFMT_HXX #include #include #include #include #include #include class SwTableAutoFormat; class AutoFormatPreview; class SwTableAutoFormatTable; class SwWrtShell; enum AutoFormatLine { TOP_LINE, BOTTOM_LINE, LEFT_LINE, RIGHT_LINE }; class SwAutoFormatDlg : public SfxModalDialog { VclPtr m_pLbFormat; VclPtr m_pFormatting; VclPtr m_pBtnNumFormat; VclPtr m_pBtnBorder; VclPtr m_pBtnFont; VclPtr m_pBtnPattern; VclPtr m_pBtnAlignment; VclPtr m_pBtnOk; VclPtr m_pBtnCancel; VclPtr m_pBtnAdd; VclPtr m_pBtnRemove; VclPtr m_pBtnRename; OUString aStrTitle; OUString aStrLabel; OUString aStrClose; OUString aStrDelTitle; OUString aStrDelMsg; OUString aStrRenameTitle; OUString aStrInvalidFormat; VclPtr m_pWndPreview; SwWrtShell* pShell; SwTableAutoFormatTable* pTableTable; sal_uInt8 nIndex; sal_uInt8 nDfltStylePos; bool bCoreDataChanged : 1; bool bSetAutoFormat : 1; void Init( const SwTableAutoFormat* pSelFormat ); void UpdateChecks( const SwTableAutoFormat&, bool bEnableBtn ); DECL_LINK( CheckHdl, Button*, void ); DECL_LINK(OkHdl, Button*, void); DECL_LINK( AddHdl, Button*, void ); DECL_LINK( RemoveHdl, Button*, void ); DECL_LINK( RenameHdl, Button*, void ); DECL_LINK( SelFormatHdl, ListBox&, void ); public: SwAutoFormatDlg( vcl::Window* pParent, SwWrtShell* pShell, bool bSetAutoFormat, const SwTableAutoFormat* pSelFormat ); virtual ~SwAutoFormatDlg() override; virtual void dispose() override; void FillAutoFormatOfIndex( SwTableAutoFormat*& rToFill ) const; }; #endif // SW_AUTOFMT_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */