Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 : #ifndef INCLUDED_SW_SOURCE_UI_INC_TMPDLG_HXX
20 : #define INCLUDED_SW_SOURCE_UI_INC_TMPDLG_HXX
21 :
22 : #include <sfx2/styledlg.hxx>
23 :
24 : class SfxItemSet;
25 : class SwWrtShell;
26 :
27 : /*--------------------------------------------------------------------
28 : Description: the tab dialog carrier of TabPages
29 : --------------------------------------------------------------------*/
30 0 : class SwTemplateDlg: public SfxStyleDialog
31 : {
32 :
33 : sal_uInt16 nType;
34 : sal_uInt16 nHtmlMode;
35 : SwWrtShell* pWrtShell;
36 : sal_Bool bNewStyle;
37 :
38 : DECL_LINK( NumOptionsHdl, PushButton* );
39 :
40 : sal_uInt16 m_nIndentsId;
41 : sal_uInt16 m_nAlignId;
42 : sal_uInt16 m_nTextFlowId;
43 : sal_uInt16 m_nAsianTypo;
44 : sal_uInt16 m_nFontId;
45 : sal_uInt16 m_nFontEffectId;
46 : sal_uInt16 m_nPositionId;
47 : sal_uInt16 m_nAsianLayoutId;
48 : sal_uInt16 m_nTabId;
49 : sal_uInt16 m_nOutlineId;
50 : sal_uInt16 m_nDropCapsId;
51 : sal_uInt16 m_nBackgroundId;
52 : sal_uInt16 m_nAreaId;
53 : sal_uInt16 m_nTransparenceId;
54 : sal_uInt16 m_nBorderId;
55 : sal_uInt16 m_nConditionId;
56 : sal_uInt16 m_nTypeId;
57 : sal_uInt16 m_nOptionsId;
58 : sal_uInt16 m_nWrapId;
59 : sal_uInt16 m_nColumnId;
60 : sal_uInt16 m_nMacroId;
61 : sal_uInt16 m_nHeaderId;
62 : sal_uInt16 m_nFooterId;
63 : sal_uInt16 m_nPageId;
64 : sal_uInt16 m_nFootNoteId;
65 : sal_uInt16 m_nTextGridId;
66 : sal_uInt16 m_nSingleId;
67 : sal_uInt16 m_nBulletId;
68 : sal_uInt16 m_nNumId;
69 : sal_uInt16 m_nBmpId;
70 : sal_uInt16 m_nNumOptId;
71 : sal_uInt16 m_nNumPosId;
72 :
73 : public:
74 : // @param sPage
75 : // Identifies name of page to open at by default
76 : SwTemplateDlg( Window* pParent,
77 : SfxStyleSheetBase& rBase,
78 : sal_uInt16 nRegion,
79 : const OString& sPage = OString(),
80 : SwWrtShell* pActShell = 0,
81 : bool bNew = false );
82 :
83 : const SfxItemSet* GetRefreshedSet() SAL_OVERRIDE;
84 :
85 : virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) SAL_OVERRIDE;
86 : virtual short Ok() SAL_OVERRIDE;
87 : };
88 :
89 : #endif
90 :
91 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|