bump product version to 5.0.4.1
[LibreOffice.git] / include / sfx2 / new.hxx
blob05482a4e1027af5f7fb82d1c4806b2fcdf1f9806
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_NEW_HXX
20 #define INCLUDED_SFX2_NEW_HXX
22 #include <sal/config.h>
23 #include <sfx2/dllapi.h>
25 #include <vcl/button.hxx>
26 #include <vcl/lstbox.hxx>
27 #include <vcl/edit.hxx>
28 #include <vcl/fixed.hxx>
29 #include <sfx2/basedlgs.hxx>
30 #include <o3tl/typed_flags_set.hxx>
34 class SfxObjectShellLock;
35 class SfxObjectShell;
39 #define SFXWB_PREVIEW 0x0003
40 #define SFXWB_LOAD_TEMPLATE 0x0004
42 enum class SfxTemplateFlags
44 NONE = 0x00,
45 LOAD_TEXT_STYLES = 0x01,
46 LOAD_FRAME_STYLES = 0x02,
47 LOAD_PAGE_STYLES = 0x04,
48 LOAD_NUM_STYLES = 0x08,
49 MERGE_STYLES = 0x10,
51 namespace o3tl
53 template<> struct typed_flags<SfxTemplateFlags> : is_typed_flags<SfxTemplateFlags, 0x1f> {};
56 #define RET_TEMPLATE_LOAD 100
58 class SfxNewFileDialog_Impl;
59 class SFX2_DLLPUBLIC SfxNewFileDialog : public SfxModalDialog
61 friend class SfxNewFileDialog_Impl;
63 private:
64 SfxNewFileDialog_Impl* pImpl;
66 public:
68 SfxNewFileDialog(vcl::Window *pParent, sal_uInt16 nFlags = 0);
69 virtual ~SfxNewFileDialog();
70 virtual void dispose() SAL_OVERRIDE;
72 // Returns false, when '- No -' is set as Template
73 // Template names can only be obtained when IsTemplate() returns true.
74 bool IsTemplate() const;
75 OUString GetTemplateFileName() const;
77 // load template methods
78 SfxTemplateFlags GetTemplateFlags() const;
79 void SetTemplateFlags(SfxTemplateFlags nSet);
82 #endif
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */