update emoji autocorrect entries from po-files
[LibreOffice.git] / include / sfx2 / mgetempl.hxx
blobf8f4b5556be65e28dc39bd514489ca946a3191c4
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_SFX2_MGETEMPL_HXX
20 #define INCLUDED_SFX2_MGETEMPL_HXX
22 #include <vcl/edit.hxx>
23 #include <vcl/fixed.hxx>
24 #include <vcl/lstbox.hxx>
25 #include <vcl/vclmedit.hxx>
26 #include <sfx2/tabdlg.hxx>
28 /* expected:
29 SID_TEMPLATE_NAME : In: StringItem, Name of Template
30 SID_TEMPLATE_FAMILY : In: Family of Template
33 class SfxStyleFamilies;
34 class SfxStyleFamilyItem;
35 class SfxStyleSheetBase;
37 class SfxManageStyleSheetPage : public SfxTabPage
39 VclPtr<VclMultiLineEdit> m_pNameRo;
40 VclPtr<Edit> m_pNameRw;
42 VclPtr<CheckBox> m_pAutoCB;
44 VclPtr<FixedText> m_pFollowFt;
45 VclPtr<ListBox> m_pFollowLb;
46 VclPtr<PushButton> m_pEditStyleBtn;
48 VclPtr<FixedText> m_pBaseFt;
49 VclPtr<ListBox> m_pBaseLb;
50 VclPtr<PushButton> m_pEditLinkStyleBtn;
52 VclPtr<FixedText> m_pFilterFt;
53 VclPtr<ListBox> m_pFilterLb;
55 VclPtr<FixedText> m_pDescFt;
57 SfxStyleSheetBase *pStyle;
58 SfxStyleFamilies *pFamilies;
59 const SfxStyleFamilyItem *pItem;
60 OUString aBuf;
61 bool bModified;
63 // initial data for the style
64 OUString aName;
65 OUString aFollow;
66 OUString aParent;
67 sal_uInt16 nFlags;
69 private:
70 friend class SfxStyleDialog;
72 DECL_LINK( GetFocusHdl, Edit * );
73 DECL_LINK( LoseFocusHdl, Edit * );
74 DECL_LINK( EditStyleSelectHdl_Impl, void * );
75 DECL_LINK( EditStyleHdl_Impl, void * );
76 DECL_LINK( EditLinkStyleSelectHdl_Impl, void * );
77 DECL_LINK( EditLinkStyleHdl_Impl, void * );
79 void UpdateName_Impl(ListBox *, const OUString &rNew);
80 void SetDescriptionText_Impl();
82 virtual ~SfxManageStyleSheetPage();
83 virtual void dispose() SAL_OVERRIDE;
85 static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* );
87 protected:
88 virtual bool FillItemSet(SfxItemSet *) SAL_OVERRIDE;
89 virtual void Reset(const SfxItemSet *) SAL_OVERRIDE;
91 static bool Execute_Impl( sal_uInt16 nId, const OUString& rStr, const OUString& rRefStr,
92 sal_uInt16 nFamily, sal_uInt16 nMask = 0,
93 const sal_uInt16* pModifier = NULL );
94 using TabPage::ActivatePage;
95 virtual void ActivatePage(const SfxItemSet &) SAL_OVERRIDE;
96 using TabPage::DeactivatePage;
97 virtual sfxpg DeactivatePage(SfxItemSet * = 0) SAL_OVERRIDE;
99 public:
100 SfxManageStyleSheetPage(vcl::Window *pParent, const SfxItemSet &rAttrSet );
103 #endif
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */