LibreOffice Module sd (master) 1
SpellDialogChildWindow.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 <svl/lstner.hxx>
24
25class SdOutliner;
26
27namespace sd
28{
34{
35public:
36 SpellDialogChildWindow(vcl::Window* pParent, sal_uInt16 nId, SfxBindings* pBindings,
37 SfxChildWinInfo* pInfo);
38 virtual ~SpellDialogChildWindow() override;
39
44
45 // SfxListener
46 virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
47
49
50private:
55 virtual svx::SpellPortions GetNextWrongSentence(bool bRecheck) override;
56
60 virtual void ApplyChangedSentence(const svx::SpellPortions& rChanged, bool bRecheck) override;
61 virtual void GetFocus() override;
62 virtual void LoseFocus() override;
63
68
73
79 void ProvideOutliner();
80
82};
83
84} // end of namespace ::sd
85
86/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
The main purpose of this class is searching and replacing as well as spelling of impress documents.
Definition: Outliner.hxx:123
This derivation of the svx::SpellDialogChildWindow base class provides Draw and Impress specific impl...
SdOutliner * mpSdOutliner
This outliner is used to do the main work of iterating over a document and finding sentences with spe...
virtual svx::SpellPortions GetNextWrongSentence(bool bRecheck) override
Iterate over the sentences in all text shapes and stop at the next sentence with spelling errors.
virtual void LoseFocus() override
SpellDialogChildWindow(vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings, SfxChildWinInfo *pInfo)
virtual ~SpellDialogChildWindow() override
virtual void GetFocus() override
void InvalidateSpellDialog()
This method makes the one from the base class public so that it can be called from the view shell whe...
void ProvideOutliner()
Provide an outliner in the mpSdOutliner data member.
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
SFX_DECL_CHILDWINDOW_WITHID(SpellDialogChildWindow)
bool mbOwnOutliner
When this flag is <TRUE> then eventually we have to destroy the outliner in mpSdOutliner.
virtual void ApplyChangedSentence(const svx::SpellPortions &rChanged, bool bRecheck) override
This method is responsible for merging corrections made in the spelling dialog back into the document...
std::vector< SpellPortion > SpellPortions