Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / include / editeng / fieldupdater.hxx
blobe15754ffdd0c3a3bc7602a7ca4dfb768180b0082
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);
44 #endif
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */