LibreOffice Module sd (master) 1
SlsVisibleAreaManager.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
23#include <optional>
24#include <tools/gen.hxx>
25#include <vector>
26
27namespace sd::slidesorter
28{
29class SlideSorter;
30}
31
33{
37{
38public:
39 explicit VisibleAreaManager(SlideSorter& rSlideSorter);
43
47
54
57 void RequestVisible(const model::SharedPageDescriptor& rpDescriptor, const bool bForce = false);
58
62 {
63 public:
64 explicit TemporaryDisabler(SlideSorter const& rSlideSorter);
66
67 private:
69 };
70
71private:
73
78 ::std::vector<::tools::Rectangle> maVisibleRequests;
79
83
84 void MakeVisible();
85 ::std::optional<Point> GetRequestedTopLeft() const;
86};
87
88} // end of namespace ::sd::slidesorter::view
89
90/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Show previews for all the slides in a document and allow the user to insert or delete slides and modi...
Definition: SlideSorter.hxx:62
Temporarily disable the update of the visible area.
Manage requests for scrolling page objects into view.
void RequestCurrentSlideVisible()
Request the current slide to be moved into the visible area.
::std::vector<::tools::Rectangle > maVisibleRequests
List of rectangle that someone wants to be moved into the visible area.
VisibleAreaManager & operator=(const VisibleAreaManager &)=delete
VisibleAreaManager(const VisibleAreaManager &)=delete
void RequestVisible(const model::SharedPageDescriptor &rpDescriptor, const bool bForce=false)
Request to make the specified page object visible.
std::shared_ptr< PageDescriptor > SharedPageDescriptor