LibreOffice Module svx (master)
1
include
svx
fmmodel.hxx
Go to the documentation of this file.
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
20
#ifndef INCLUDED_SVX_FMMODEL_HXX
21
#define INCLUDED_SVX_FMMODEL_HXX
22
23
#include <
svx/svdmodel.hxx
>
24
#include <
svx/svxdllapi.h
>
25
#include <memory>
26
27
class
SfxObjectShell
;
28
class
SfxItemPool
;
29
class
FmXUndoEnvironment
;
30
31
struct
FmFormModelImplData
;
32
class
SVXCORE_DLLPUBLIC
FmFormModel
:
33
public
SdrModel
34
{
35
private
:
36
std::unique_ptr<FmFormModelImplData>
m_pImpl
;
37
SfxObjectShell
*
m_pObjShell
;
38
39
bool
m_bOpenInDesignMode
: 1;
40
bool
m_bAutoControlFocus
: 1;
41
42
FmFormModel
(
const
FmFormModel
& ) =
delete
;
43
void
operator=
(
const
FmFormModel
& rSrcModel) =
delete
;
44
45
public
:
46
FmFormModel
(
47
SfxItemPool
* pPool =
nullptr
,
48
SfxObjectShell
* pPers =
nullptr
);
49
50
virtual
~FmFormModel
()
override
;
51
52
virtual
rtl::Reference<SdrPage>
AllocPage
(
bool
bMasterPage)
override
;
53
virtual
void
InsertPage
(
SdrPage
* pPage, sal_uInt16 nPos=0xFFFF)
override
;
54
virtual
rtl::Reference<SdrPage>
RemovePage
(sal_uInt16 nPgNum)
override
;
55
virtual
void
InsertMasterPage
(
SdrPage
* pPage, sal_uInt16 nPos=0xFFFF)
override
;
56
virtual
rtl::Reference<SdrPage>
RemoveMasterPage
(sal_uInt16 nPgNum)
override
;
57
58
SfxObjectShell
*
GetObjectShell
()
const
{
return
m_pObjShell; }
59
void
SetObjectShell(
SfxObjectShell
* pShell );
60
61
bool
GetOpenInDesignMode
()
const
{
return
m_bOpenInDesignMode; }
62
void
SetOpenInDesignMode(
bool
_bOpenDesignMode );
63
64
bool
GetAutoControlFocus
()
const
{
return
m_bAutoControlFocus; }
65
void
SetAutoControlFocus(
bool
_bAutoControlFocus );
66
70
bool
OpenInDesignModeIsDefaulted();
71
74
bool
ControlsUseRefDevice()
const
;
75
76
FmXUndoEnvironment
& GetUndoEnv();
77
78
private
:
79
void
implSetOpenInDesignMode(
bool
_bOpenDesignMode );
80
};
81
82
#endif
// _FM_FMMODEL_HXX
83
84
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
FmFormModel
Definition:
fmmodel.hxx:34
FmFormModel::FmFormModel
FmFormModel(const FmFormModel &)=delete
FmFormModel::GetAutoControlFocus
bool GetAutoControlFocus() const
Definition:
fmmodel.hxx:64
FmFormModel::m_bOpenInDesignMode
bool m_bOpenInDesignMode
Definition:
fmmodel.hxx:39
FmFormModel::GetObjectShell
SfxObjectShell * GetObjectShell() const
Definition:
fmmodel.hxx:58
FmFormModel::operator=
void operator=(const FmFormModel &rSrcModel)=delete
FmFormModel::GetOpenInDesignMode
bool GetOpenInDesignMode() const
Definition:
fmmodel.hxx:61
FmFormModel::m_pObjShell
SfxObjectShell * m_pObjShell
Definition:
fmmodel.hxx:37
FmFormModel::m_pImpl
std::unique_ptr< FmFormModelImplData > m_pImpl
Definition:
fmmodel.hxx:36
FmFormModel::m_bAutoControlFocus
bool m_bAutoControlFocus
Definition:
fmmodel.hxx:40
FmXUndoEnvironment
Definition:
fmundo.hxx:124
SdrModel
Definition:
svdmodel.hxx:149
SdrModel::RemovePage
virtual rtl::Reference< SdrPage > RemovePage(sal_uInt16 nPgNum)
Definition:
svdmodel.cxx:1197
SdrModel::InsertPage
virtual void InsertPage(SdrPage *pPage, sal_uInt16 nPos=0xFFFF)
Definition:
svdmodel.cxx:1172
SdrModel::RemoveMasterPage
virtual rtl::Reference< SdrPage > RemoveMasterPage(sal_uInt16 nPgNum)
Definition:
svdmodel.cxx:1248
SdrModel::AllocPage
virtual rtl::Reference< SdrPage > AllocPage(bool bMasterPage)
Definition:
svdmodel.cxx:606
SdrModel::InsertMasterPage
virtual void InsertMasterPage(SdrPage *pPage, sal_uInt16 nPos=0xFFFF)
Definition:
svdmodel.cxx:1225
SdrPage
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
Definition:
svdpage.hxx:379
SfxObjectShell
rtl::Reference< SdrPage >
FmFormModelImplData
Definition:
fmmodel.cxx:40
SfxItemPool
svdmodel.hxx
svxdllapi.h
SVXCORE_DLLPUBLIC
#define SVXCORE_DLLPUBLIC
Definition:
svxdllapi.h:35
Generated on Sun Jul 30 2023 04:27:33 for LibreOffice Module svx (master) by
1.9.3