LibreOffice Module sd (master)
1
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Functions
a
c
d
f
g
h
i
l
m
o
r
s
u
w
Variables
a
b
c
d
e
g
h
i
m
n
o
p
s
t
v
w
Typedefs
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
d
e
f
h
m
n
o
p
s
t
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
l
m
n
o
p
r
s
u
x
z
Typedefs
a
b
c
d
e
f
i
k
l
m
p
r
s
t
u
v
x
Enumerations
a
c
d
e
f
g
h
i
l
m
o
p
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
c
d
e
i
m
o
p
s
t
u
v
w
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
w
Variables
a
b
c
d
g
h
j
k
m
n
p
s
t
v
w
x
Typedefs
Enumerations
Enumerator
c
f
h
l
m
n
o
p
s
u
v
Macros
a
b
c
d
e
f
g
i
k
m
n
p
r
s
t
u
v
w
z
sd
source
ui
sidebar
MasterPageContainerFiller.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
#pragma once
21
22
#include <memory>
23
#include "
MasterPageContainer.hxx
"
24
#include "
MasterPageDescriptor.hxx
"
25
#include <
tools/AsynchronousTask.hxx
>
26
27
namespace
sd
28
{
29
class
TemplateScanner;
30
class
TemplateEntry;
31
}
32
33
namespace
sd::sidebar
34
{
39
class
MasterPageContainerFiller
:
public
::sd::tools::AsynchronousTask
40
{
41
public
:
42
class
ContainerAdapter
43
{
44
public
:
45
virtual
MasterPageContainer::Token
46
PutMasterPage
(
const
SharedMasterPageDescriptor
& rpDescriptor)
47
= 0;
51
virtual
void
FillingDone
() = 0;
52
53
protected
:
54
~ContainerAdapter
() {}
55
};
56
57
explicit
MasterPageContainerFiller
(ContainerAdapter& rContainerAdapter);
58
virtual
~MasterPageContainerFiller
();
59
63
virtual
void
RunNextStep
()
override
;
64
69
virtual
bool
HasNextStep
()
override
;
70
71
private
:
72
ContainerAdapter
&
mrContainerAdapter
;
73
// Remember what the next step has to do.
74
enum
State
75
{
76
INITIALIZE_TEMPLATE_SCANNER
,
77
SCAN_TEMPLATE
,
78
ADD_TEMPLATE
,
79
ERROR
,
80
DONE
81
}
meState
;
82
::std::unique_ptr<TemplateScanner>
mpScannerTask
;
83
const
TemplateEntry
*
mpLastAddedEntry
;
84
int
mnIndex
;
85
86
State
ScanTemplate
();
87
State
AddTemplate
();
88
};
89
90
}
// end of namespace sd::sidebar
91
92
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
AsynchronousTask.hxx
MasterPageContainer.hxx
MasterPageDescriptor.hxx
sd::TemplateEntry
Representation of a template or layout file.
Definition:
TemplateScanner.hxx:46
sd::sidebar::MasterPageContainerFiller::ContainerAdapter
Definition:
MasterPageContainerFiller.hxx:43
sd::sidebar::MasterPageContainerFiller::ContainerAdapter::FillingDone
virtual void FillingDone()=0
This method is called when all Impress templates have been added to the container via the PutMasterPa...
sd::sidebar::MasterPageContainerFiller::ContainerAdapter::PutMasterPage
virtual MasterPageContainer::Token PutMasterPage(const SharedMasterPageDescriptor &rpDescriptor)=0
sd::sidebar::MasterPageContainerFiller::ContainerAdapter::~ContainerAdapter
~ContainerAdapter()
Definition:
MasterPageContainerFiller.hxx:54
sd::sidebar::MasterPageContainerFiller
Fill a MasterPageContainer with information about the available master pages.
Definition:
MasterPageContainerFiller.hxx:40
sd::sidebar::MasterPageContainerFiller::~MasterPageContainerFiller
virtual ~MasterPageContainerFiller()
Definition:
MasterPageContainerFiller.cxx:53
sd::sidebar::MasterPageContainerFiller::mpLastAddedEntry
const TemplateEntry * mpLastAddedEntry
Definition:
MasterPageContainerFiller.hxx:83
sd::sidebar::MasterPageContainerFiller::mpScannerTask
::std::unique_ptr< TemplateScanner > mpScannerTask
Definition:
MasterPageContainerFiller.hxx:82
sd::sidebar::MasterPageContainerFiller::mrContainerAdapter
ContainerAdapter & mrContainerAdapter
Definition:
MasterPageContainerFiller.hxx:72
sd::sidebar::MasterPageContainerFiller::mnIndex
int mnIndex
Definition:
MasterPageContainerFiller.hxx:84
sd::sidebar::MasterPageContainerFiller::MasterPageContainerFiller
MasterPageContainerFiller(ContainerAdapter &rContainerAdapter)
Definition:
MasterPageContainerFiller.cxx:31
sd::sidebar::MasterPageContainerFiller::State
State
Definition:
MasterPageContainerFiller.hxx:75
sd::sidebar::MasterPageContainerFiller::ADD_TEMPLATE
@ ADD_TEMPLATE
Definition:
MasterPageContainerFiller.hxx:78
sd::sidebar::MasterPageContainerFiller::DONE
@ DONE
Definition:
MasterPageContainerFiller.hxx:80
sd::sidebar::MasterPageContainerFiller::INITIALIZE_TEMPLATE_SCANNER
@ INITIALIZE_TEMPLATE_SCANNER
Definition:
MasterPageContainerFiller.hxx:76
sd::sidebar::MasterPageContainerFiller::SCAN_TEMPLATE
@ SCAN_TEMPLATE
Definition:
MasterPageContainerFiller.hxx:77
sd::sidebar::MasterPageContainerFiller::ERROR
@ ERROR
Definition:
MasterPageContainerFiller.hxx:79
sd::sidebar::MasterPageContainerFiller::AddTemplate
State AddTemplate()
Definition:
MasterPageContainerFiller.cxx:138
sd::sidebar::MasterPageContainerFiller::ScanTemplate
State ScanTemplate()
Definition:
MasterPageContainerFiller.cxx:111
sd::sidebar::MasterPageContainerFiller::HasNextStep
virtual bool HasNextStep() override
Return <TRUE> when there is at least one more step to execute.
Definition:
MasterPageContainerFiller.cxx:98
sd::sidebar::MasterPageContainerFiller::meState
enum sd::sidebar::MasterPageContainerFiller::State meState
sd::sidebar::MasterPageContainerFiller::RunNextStep
virtual void RunNextStep() override
Run the next step of the task.
Definition:
MasterPageContainerFiller.cxx:57
sd::sidebar::MasterPageContainer::Token
int Token
Definition:
MasterPageContainer.hxx:51
sd::tools::AsynchronousTask
Interface for the asynchronous execution of a task.
Definition:
AsynchronousTask.hxx:30
sd::sidebar
Definition:
AllMasterPagesSelector.cxx:68
sd::sidebar::SharedMasterPageDescriptor
std::shared_ptr< MasterPageDescriptor > SharedMasterPageDescriptor
Definition:
MasterPageDescriptor.hxx:33
sd
Generated on Sun Jul 30 2023 04:27:23 for LibreOffice Module sd (master) by
1.9.3