Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / sc / source / ui / inc / scuiautofmt.hxx
blobd810a354541a8952377f835e10354368de4567b5
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_SC_SOURCE_UI_INC_SCUIAUTOFMT_HXX
20 #define INCLUDED_SC_SOURCE_UI_INC_SCUIAUTOFMT_HXX
21 #include "autofmt.hxx"
23 class ScAutoFormatDlg : public ModalDialog
25 public:
26 ScAutoFormatDlg(vcl::Window* pParent,
27 ScAutoFormat* pAutoFormat,
28 const ScAutoFormatData* pSelFormatData,
29 ScViewData *pViewData);
30 virtual ~ScAutoFormatDlg();
31 virtual void dispose() override;
33 sal_uInt16 GetIndex() const { return nIndex; }
34 OUString GetCurrFormatName();
36 private:
37 VclPtr<ListBox> m_pLbFormat;
38 VclPtr<ScAutoFmtPreview> m_pWndPreview;
39 VclPtr<OKButton> m_pBtnOk;
40 VclPtr<CancelButton> m_pBtnCancel;
41 VclPtr<PushButton> m_pBtnAdd;
42 VclPtr<PushButton> m_pBtnRemove;
43 VclPtr<PushButton> m_pBtnRename;
44 VclPtr<CheckBox> m_pBtnNumFormat;
45 VclPtr<CheckBox> m_pBtnBorder;
46 VclPtr<CheckBox> m_pBtnFont;
47 VclPtr<CheckBox> m_pBtnPattern;
48 VclPtr<CheckBox> m_pBtnAlignment;
49 VclPtr<CheckBox> m_pBtnAdjust;
50 OUString aStrTitle;
51 OUString aStrLabel;
52 OUString aStrClose;
53 OUString aStrDelMsg;
54 OUString aStrRename;
56 ScAutoFormat* pFormat;
57 const ScAutoFormatData* pSelFmtData;
58 sal_uInt16 nIndex;
59 bool bCoreDataChanged;
60 bool bFmtInserted;
62 void Init ();
63 void UpdateChecks ();
65 DECL_LINK_TYPED( CheckHdl, Button*, void );
66 DECL_LINK_TYPED( AddHdl, Button*, void );
67 DECL_LINK_TYPED( RemoveHdl, Button*, void );
68 DECL_LINK_TYPED( SelFmtHdl, ListBox&, void );
69 DECL_LINK_TYPED( CloseHdl, Button *, void );
70 DECL_LINK_TYPED( DblClkHdl, ListBox&, void );
71 DECL_LINK_TYPED( RenameHdl, Button*, void );
74 #endif
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */