1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef INCLUDED_EDITENG_FIELDUPDATER_HXX
11 #define INCLUDED_EDITENG_FIELDUPDATER_HXX
13 #include <editeng/editengdllapi.h>
20 class FieldUpdaterImpl
;
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
;
31 FieldUpdater(EditTextObject
& rObj
);
32 FieldUpdater(const FieldUpdater
& r
);
36 * Set a new table ID to all table fields.
38 * @param nTab new table ID
40 void updateTableFields(int nTab
);
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */