Add Marathi autocorrect
[LibreOffice.git] / sw / source / uibase / inc / frmdlg.hxx
blob88b07a41fa850a14bef0afe1ebff98a07a03a64b
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 .
20 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_FRMDLG_HXX
21 #define INCLUDED_SW_SOURCE_UIBASE_INC_FRMDLG_HXX
23 #include <sfx2/tabdlg.hxx>
24 #include <sfx2/viewfrm.hxx>
26 class SwWrtShell;
28 /// Insert -> Frame -> Frame on the UI.
29 ///
30 /// Also available via the .uno:InsertFrame command. This is just the dialog itself, the individual
31 /// tabpages are created and added in the constructor.
32 class SwFrameDlg final : public SfxTabDialogController
34 bool m_bFormat;
35 bool m_bNew;
36 const SfxItemSet& m_rSet;
37 OUString m_sDlgType;
38 SwWrtShell* m_pWrtShell;
40 virtual void PageCreated(const OUString& rId, SfxTabPage &rPage) override;
42 public:
43 SwFrameDlg(const SfxViewFrame& rFrame, weld::Window* pParent,
44 const SfxItemSet& rCoreSet,
45 bool bNewFrame,
46 const OUString& sResType,
47 bool bFormat,
48 const OUString& sDefPage = {},
49 const OUString* pFormatStr = nullptr);
51 virtual ~SwFrameDlg() override;
53 SwWrtShell* GetWrtShell() { return m_pWrtShell; }
56 #endif // INCLUDED_SW_SOURCE_UIBASE_INC_FRMDLG_HXX
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */