Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / editeng / fieldupdater.hxx
bloba8bbb5c8828833a546c52ff7a37ef8d0e3eee5aa
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_EDITENG_FIELDUPDATER_HXX
11 #define INCLUDED_EDITENG_FIELDUPDATER_HXX
13 #include <editeng/editengdllapi.h>
14 #include <memory>
16 class EditTextObject;
18 namespace editeng {
20 class FieldUpdaterImpl;
22 /**
23 * Wrapper for EditTextObject to handle updating of fields without exposing
24 * the internals of EditTextObject structure.
26 class EDITENG_DLLPUBLIC FieldUpdater
28 std::unique_ptr<FieldUpdaterImpl> mpImpl;
30 public:
31 FieldUpdater(EditTextObject& rObj);
32 FieldUpdater(const FieldUpdater& r);
33 ~FieldUpdater();
35 /**
36 * Set a new table ID to all table fields.
38 * @param nTab new table ID
40 void updateTableFields(int nTab);
45 #endif
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */