Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef SCUI_AUTOFMT_HXX
29 : : #define SCUI_AUTOFMT_HXX
30 : : #include "autofmt.hxx"
31 : :
32 : : class ScAutoFormatDlg : public ModalDialog
33 : : {
34 : : public:
35 : : ScAutoFormatDlg( Window* pParent,
36 : : ScAutoFormat* pAutoFormat,
37 : : const ScAutoFormatData* pSelFormatData,
38 : : ScDocument* pDoc );
39 : : ~ScAutoFormatDlg();
40 : :
41 : 0 : sal_uInt16 GetIndex() const { return nIndex; }
42 : : rtl::OUString GetCurrFormatName();
43 : :
44 : : private:
45 : : FixedLine aFlFormat;
46 : : ListBox aLbFormat;
47 : : ScAutoFmtPreview* pWndPreview;
48 : : OKButton aBtnOk;
49 : : CancelButton aBtnCancel;
50 : : HelpButton aBtnHelp;
51 : : PushButton aBtnAdd;
52 : : PushButton aBtnRemove;
53 : : MoreButton aBtnMore;
54 : : FixedLine aFlFormatting;
55 : : CheckBox aBtnNumFormat;
56 : : CheckBox aBtnBorder;
57 : : CheckBox aBtnFont;
58 : : CheckBox aBtnPattern;
59 : : CheckBox aBtnAlignment;
60 : : CheckBox aBtnAdjust;
61 : : PushButton aBtnRename;
62 : : String aStrTitle;
63 : : String aStrLabel;
64 : : String aStrClose;
65 : : String aStrDelTitle;
66 : : String aStrDelMsg;
67 : : String aStrRename;
68 : :
69 : : //------------------------
70 : : ScAutoFormat* pFormat;
71 : : const ScAutoFormatData* pSelFmtData;
72 : : sal_uInt16 nIndex;
73 : : bool bCoreDataChanged;
74 : : bool bFmtInserted;
75 : :
76 : : void Init ();
77 : : void UpdateChecks ();
78 : : //------------------------
79 : : DECL_LINK( CheckHdl, Button * );
80 : : DECL_LINK( AddHdl, void * );
81 : : DECL_LINK( RemoveHdl, void * );
82 : : DECL_LINK( SelFmtHdl, void * );
83 : : DECL_LINK( CloseHdl, PushButton * );
84 : : DECL_LINK( DblClkHdl, void * );
85 : : DECL_LINK( RenameHdl, void *);
86 : :
87 : : };
88 : : #endif
89 : :
90 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|