LibreOffice Module sd (master)
1
sd
source
ui
slidesorter
inc
controller
SlsSelectionObserver.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 <
sal/types.h
>
23
#include <memory>
24
#include <vector>
25
26
namespace
sd::slidesorter
27
{
28
class
SlideSorter
;
29
}
30
31
class
SdrPage
;
32
class
SdPage
;
33
34
namespace
sd::slidesorter::controller
35
{
40
class
SelectionObserver
final
41
{
42
public
:
43
SelectionObserver
(
SlideSorter
& rSlideSorter);
44
~SelectionObserver
();
45
46
void
NotifyPageEvent
(
const
SdrPage
* pPage);
47
void
StartObservation
();
48
void
AbortObservation
();
49
void
EndObservation
();
50
56
class
Context
57
{
58
public
:
59
Context
(
SlideSorter
const
& rSlideSorter);
60
~Context
() COVERITY_NOEXCEPT_FALSE;
61
void
Abort
();
62
63
private
:
64
std::shared_ptr<SelectionObserver>
mpSelectionObserver
;
65
};
66
67
private
:
68
SlideSorter
&
mrSlideSorter
;
69
bool
mbIsObservationActive
;
70
bool
mbPageEventOccurred
;
71
72
::std::vector<const SdPage*>
maInsertedPages
;
73
};
74
75
}
// end of namespace ::sd::slidesorter::controller
76
77
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SdPage
Definition:
sdpage.hxx:93
SdrPage
sd::slidesorter::SlideSorter
Show previews for all the slides in a document and allow the user to insert or delete slides and modi...
Definition:
SlideSorter.hxx:62
sd::slidesorter::controller::SelectionObserver::Context
Use this little class instead of calling StartObservation and EndObservation directly so that EndObse...
Definition:
SlsSelectionObserver.hxx:57
sd::slidesorter::controller::SelectionObserver::Context::mpSelectionObserver
std::shared_ptr< SelectionObserver > mpSelectionObserver
Definition:
SlsSelectionObserver.hxx:64
sd::slidesorter::controller::SelectionObserver::Context::~Context
~Context() COVERITY_NOEXCEPT_FALSE
Definition:
SlsSelectionObserver.cxx:39
sd::slidesorter::controller::SelectionObserver::Context::Abort
void Abort()
Definition:
SlsSelectionObserver.cxx:45
sd::slidesorter::controller::SelectionObserver::Context::Context
Context(SlideSorter const &rSlideSorter)
Definition:
SlsSelectionObserver.cxx:31
sd::slidesorter::controller::SelectionObserver
Observe insertions and deletions of pages between calls to StartObservation() and EndObservation().
Definition:
SlsSelectionObserver.hxx:41
sd::slidesorter::controller::SelectionObserver::~SelectionObserver
~SelectionObserver()
Definition:
SlsSelectionObserver.cxx:63
sd::slidesorter::controller::SelectionObserver::SelectionObserver
SelectionObserver(SlideSorter &rSlideSorter)
Definition:
SlsSelectionObserver.cxx:56
sd::slidesorter::controller::SelectionObserver::EndObservation
void EndObservation()
Definition:
SlsSelectionObserver.cxx:102
sd::slidesorter::controller::SelectionObserver::mrSlideSorter
SlideSorter & mrSlideSorter
Definition:
SlsSelectionObserver.hxx:68
sd::slidesorter::controller::SelectionObserver::StartObservation
void StartObservation()
Definition:
SlsSelectionObserver.cxx:88
sd::slidesorter::controller::SelectionObserver::maInsertedPages
::std::vector< const SdPage * > maInsertedPages
Definition:
SlsSelectionObserver.hxx:72
sd::slidesorter::controller::SelectionObserver::AbortObservation
void AbortObservation()
Definition:
SlsSelectionObserver.cxx:95
sd::slidesorter::controller::SelectionObserver::mbIsObservationActive
bool mbIsObservationActive
Definition:
SlsSelectionObserver.hxx:69
sd::slidesorter::controller::SelectionObserver::mbPageEventOccurred
bool mbPageEventOccurred
Definition:
SlsSelectionObserver.hxx:70
sd::slidesorter::controller::SelectionObserver::NotifyPageEvent
void NotifyPageEvent(const SdrPage *pPage)
Definition:
SlsSelectionObserver.cxx:65
sd::slidesorter::controller
Definition:
SlideSorter.hxx:45
sd::slidesorter
Definition:
AccessibleSlideSorterObject.hxx:30
PptViewTypeEnum::SlideSorter
@ SlideSorter
types.h
Generated on Sun Jul 30 2023 04:27:27 for LibreOffice Module sd (master) by
1.9.3