LibreOffice Module sd (master) 1
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>
26
27namespace sd
28{
29class TemplateScanner;
30class TemplateEntry;
31}
32
33namespace sd::sidebar
34{
40{
41public:
43 {
44 public:
47 = 0;
51 virtual void FillingDone() = 0;
52
53 protected:
55 };
56
57 explicit MasterPageContainerFiller(ContainerAdapter& rContainerAdapter);
59
63 virtual void RunNextStep() override;
64
69 virtual bool HasNextStep() override;
70
71private:
73 // Remember what the next step has to do.
74 enum State
75 {
80 DONE
82 ::std::unique_ptr<TemplateScanner> mpScannerTask;
85
88};
89
90} // end of namespace sd::sidebar
91
92/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Representation of a template or layout file.
virtual void FillingDone()=0
This method is called when all Impress templates have been added to the container via the PutMasterPa...
virtual MasterPageContainer::Token PutMasterPage(const SharedMasterPageDescriptor &rpDescriptor)=0
Fill a MasterPageContainer with information about the available master pages.
::std::unique_ptr< TemplateScanner > mpScannerTask
MasterPageContainerFiller(ContainerAdapter &rContainerAdapter)
virtual bool HasNextStep() override
Return <TRUE> when there is at least one more step to execute.
enum sd::sidebar::MasterPageContainerFiller::State meState
virtual void RunNextStep() override
Run the next step of the task.
Interface for the asynchronous execution of a task.
std::shared_ptr< MasterPageDescriptor > SharedMasterPageDescriptor