diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-11 13:07:15 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-11 22:33:34 -0500 |
commit | ec3e84c89e6abcd12cc79ed38c5148e89a7a4f35 (patch) | |
tree | f6f3992750187e47191bb93a015a51a5f55c6865 /editeng/inc | |
parent | bc2fdbeba39aa5598d7b084481d1c4c1b291ffee (diff) |
Add Dump() method to dump content of EditTextObject.
Useful during debugging. Turned off in the default build.
Change-Id: Ia0b280337707f762b90d1d80c04671f2e8c21b01
Diffstat (limited to 'editeng/inc')
-rw-r--r-- | editeng/inc/editeng/editobj.hxx | 5 | ||||
-rw-r--r-- | editeng/inc/editeng/flditem.hxx | 2 | ||||
-rw-r--r-- | editeng/inc/editeng/macros.hxx | 17 |
3 files changed, 24 insertions, 0 deletions
diff --git a/editeng/inc/editeng/editobj.hxx b/editeng/inc/editeng/editobj.hxx index 985b7c4a6221..271a39b2c84f 100644 --- a/editeng/inc/editeng/editobj.hxx +++ b/editeng/inc/editeng/editobj.hxx @@ -28,6 +28,7 @@ #include <editeng/eeitem.hxx> #include <editeng/editdata.hxx> #include "editeng/editengdllapi.h" +#include "editeng/macros.hxx" #include <com/sun/star/text/textfield/Type.hpp> @@ -118,6 +119,10 @@ public: bool isWrongListEqual(const EditTextObject& rCompare) const; virtual void ObjectInDestruction(const SfxItemPool& rSfxItemPool); + +#if DEBUG_EDIT_ENGINE + void Dump() const; +#endif }; #endif // _EDITOBJ_HXX diff --git a/editeng/inc/editeng/flditem.hxx b/editeng/inc/editeng/flditem.hxx index 1ced8ecdbc56..d3f2b366d02f 100644 --- a/editeng/inc/editeng/flditem.hxx +++ b/editeng/inc/editeng/flditem.hxx @@ -28,6 +28,8 @@ #include <com/sun/star/text/textfield/Type.hpp> +#include <boost/noncopyable.hpp> + namespace com { namespace sun { namespace star { namespace text { class XTextContent; diff --git a/editeng/inc/editeng/macros.hxx b/editeng/inc/editeng/macros.hxx new file mode 100644 index 000000000000..c667cfd6e8b8 --- /dev/null +++ b/editeng/inc/editeng/macros.hxx @@ -0,0 +1,17 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef __EDITENGINE_MACROS_HXX__ +#define __EDITENGINE_MACROS_HXX__ + +#define DEBUG_EDIT_ENGINE 0 + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |