bump product version to 4.2.0.1
[LibreOffice.git] / include / sfx2 / new.hxx
bloba631653fa7fe14c58cb9d995a259093838839110
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 _SFXNEW_HXX
20 #define _SFXNEW_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>
31 //=========================================================================
33 class SfxObjectShellLock;
34 class SfxObjectShell;
35 class MoreButton;
37 //=========================================================================
39 #define SFXWB_PREVIEW 0x0003
40 #define SFXWB_LOAD_TEMPLATE 0x0004
42 #define SFX_LOAD_TEXT_STYLES 0x0001
43 #define SFX_LOAD_FRAME_STYLES 0x0002
44 #define SFX_LOAD_PAGE_STYLES 0x0004
45 #define SFX_LOAD_NUM_STYLES 0x0008
46 #define SFX_MERGE_STYLES 0x0010
48 #define RET_TEMPLATE_LOAD 100
50 class SfxNewFileDialog_Impl;
51 class SFX2_DLLPUBLIC SfxNewFileDialog : public SfxModalDialog
53 friend class SfxNewFileDialog_Impl;
55 private:
56 SfxNewFileDialog_Impl* pImpl;
58 public:
60 SfxNewFileDialog(Window *pParent, sal_uInt16 nFlags = 0);
61 ~SfxNewFileDialog();
63 // Returns sal_False, when '- No -' is set as Template
64 // Template names can only be obtained when IsTemplate() returns sal_True.
65 sal_Bool IsTemplate() const;
66 OUString GetTemplateFileName() const;
68 // load template methods
69 sal_uInt16 GetTemplateFlags()const;
70 void SetTemplateFlags(sal_uInt16 nSet);
73 #endif
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */