Branch libreoffice-5-0-4
[LibreOffice.git] / include / editeng / fieldupdater.hxx
blob2fd7c4cb089f8013192bde31fa2c98dcd7f30f2e
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>
15 class EditTextObject;
17 namespace editeng {
19 class FieldUpdaterImpl;
21 /**
22 * Wrapper for EditTextObject to handle updating of fields without exposing
23 * the internals of EditTextObject structure.
25 class EDITENG_DLLPUBLIC FieldUpdater
27 FieldUpdaterImpl* mpImpl;
29 FieldUpdater(); // disabled
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: */