From b9337e22ce1dbf2eba0e8c8db294ae99f4111f91 Mon Sep 17 00:00:00 2001
From: Bjoern Michaelsen
Date: Thu, 18 Apr 2013 18:26:28 +0200
Subject: execute move of global headers
see https://gerrit.libreoffice.org/#/c/3367/
and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details
Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
---
editeng/Module_editeng.mk | 1 -
editeng/Package_inc.mk | 154 ---
editeng/inc/editeng/AccessibleComponentBase.hxx | 141 ---
editeng/inc/editeng/AccessibleContextBase.hxx | 388 --------
editeng/inc/editeng/AccessibleEditableTextPara.hxx | 386 --------
editeng/inc/editeng/AccessibleImageBullet.hxx | 219 -----
editeng/inc/editeng/AccessibleParaManager.hxx | 334 -------
editeng/inc/editeng/AccessibleSelectionBase.hxx | 67 --
editeng/inc/editeng/AccessibleStaticTextBase.hxx | 277 ------
editeng/inc/editeng/AccessibleStringWrap.hxx | 57 --
editeng/inc/editeng/LatinLookupTree.hxx | 74 --
editeng/inc/editeng/LatinTreeNode.hxx | 48 -
editeng/inc/editeng/LookupTree.hxx | 95 --
editeng/inc/editeng/Node.hxx | 102 --
editeng/inc/editeng/SpellPortions.hxx | 89 --
editeng/inc/editeng/TreeHead.hxx | 49 -
editeng/inc/editeng/UnoForbiddenCharsTable.hxx | 59 --
editeng/inc/editeng/acorrcfg.hxx | 121 ---
editeng/inc/editeng/adjustitem.hxx | 130 ---
editeng/inc/editeng/autokernitem.hxx | 61 --
editeng/inc/editeng/blinkitem.hxx | 59 --
editeng/inc/editeng/borderline.hxx | 169 ----
editeng/inc/editeng/boxitem.hxx | 226 -----
editeng/inc/editeng/brushitem.hxx | 125 ---
editeng/inc/editeng/bulletitem.hxx | 146 ---
editeng/inc/editeng/charhiddenitem.hxx | 53 --
editeng/inc/editeng/charreliefitem.hxx | 68 --
editeng/inc/editeng/charrotateitem.hxx | 81 --
editeng/inc/editeng/charscaleitem.hxx | 67 --
editeng/inc/editeng/charsetcoloritem.hxx | 66 --
editeng/inc/editeng/cmapitem.hxx | 76 --
editeng/inc/editeng/colritem.hxx | 82 --
editeng/inc/editeng/contouritem.hxx | 58 --
editeng/inc/editeng/crossedoutitem.hxx | 79 --
editeng/inc/editeng/editdata.hxx | 368 -------
editeng/inc/editeng/editeng.hxx | 586 ------------
editeng/inc/editeng/editengdllapi.h | 34 -
editeng/inc/editeng/editerr.hxx | 30 -
editeng/inc/editeng/editids.hrc | 236 -----
editeng/inc/editeng/editobj.hxx | 130 ---
editeng/inc/editeng/editrids.hrc | 395 --------
editeng/inc/editeng/editstat.hxx | 139 ---
editeng/inc/editeng/editund2.hxx | 67 --
editeng/inc/editeng/editview.hxx | 247 -----
editeng/inc/editeng/edtdlg.hxx | 102 --
editeng/inc/editeng/eedata.hxx | 65 --
editeng/inc/editeng/eeitem.hxx | 97 --
editeng/inc/editeng/eeitemid.hxx | 129 ---
editeng/inc/editeng/eerdll.hxx | 55 --
editeng/inc/editeng/emphasismarkitem.hxx | 73 --
editeng/inc/editeng/escapementitem.hxx | 101 --
editeng/inc/editeng/fhgtitem.hxx | 103 --
editeng/inc/editeng/fieldupdater.hxx | 47 -
editeng/inc/editeng/flditem.hxx | 420 --------
editeng/inc/editeng/flstitem.hxx | 70 --
editeng/inc/editeng/fontitem.hxx | 98 --
editeng/inc/editeng/forbiddencharacterstable.hxx | 56 --
editeng/inc/editeng/forbiddenruleitem.hxx | 60 --
editeng/inc/editeng/formatbreakitem.hxx | 90 --
editeng/inc/editeng/frmdir.hxx | 53 --
editeng/inc/editeng/frmdiritem.hxx | 68 --
editeng/inc/editeng/fwdtitem.hxx | 98 --
editeng/inc/editeng/hangulhanja.hxx | 288 ------
editeng/inc/editeng/hngpnctitem.hxx | 60 --
editeng/inc/editeng/hyphenzoneitem.hxx | 93 --
editeng/inc/editeng/itemtype.hxx | 64 --
editeng/inc/editeng/justifyitem.hxx | 119 ---
editeng/inc/editeng/keepitem.hxx | 65 --
editeng/inc/editeng/kernitem.hxx | 67 --
editeng/inc/editeng/langitem.hxx | 71 --
editeng/inc/editeng/lcolitem.hxx | 54 --
editeng/inc/editeng/lineitem.hxx | 75 --
editeng/inc/editeng/lrspitem.hxx | 165 ----
editeng/inc/editeng/lspcitem.hxx | 107 ---
editeng/inc/editeng/macros.hxx | 17 -
editeng/inc/editeng/measfld.hxx | 57 --
editeng/inc/editeng/memberids.hrc | 185 ----
editeng/inc/editeng/mutxhelp.hxx | 37 -
editeng/inc/editeng/nhypitem.hxx | 53 --
editeng/inc/editeng/nlbkitem.hxx | 56 --
editeng/inc/editeng/numdef.hxx | 23 -
editeng/inc/editeng/numitem.hxx | 356 -------
editeng/inc/editeng/opaqitem.hxx | 68 --
editeng/inc/editeng/optitems.hxx | 102 --
editeng/inc/editeng/orphitem.hxx | 61 --
editeng/inc/editeng/outliner.hxx | 1001 --------------------
editeng/inc/editeng/outlobj.hxx | 93 --
editeng/inc/editeng/paperinf.hxx | 67 --
editeng/inc/editeng/paragraphdata.hxx | 64 --
editeng/inc/editeng/paravertalignitem.hxx | 69 --
editeng/inc/editeng/pbinitem.hxx | 68 --
editeng/inc/editeng/pgrditem.hxx | 55 --
editeng/inc/editeng/pmdlitem.hxx | 77 --
editeng/inc/editeng/postitem.hxx | 76 --
editeng/inc/editeng/prntitem.hxx | 70 --
editeng/inc/editeng/protitem.hxx | 90 --
editeng/inc/editeng/prszitem.hxx | 59 --
editeng/inc/editeng/rsiditem.hxx | 43 -
editeng/inc/editeng/scriptspaceitem.hxx | 61 --
editeng/inc/editeng/scripttypeitem.hxx | 82 --
editeng/inc/editeng/shaditem.hxx | 98 --
editeng/inc/editeng/shdditem.hxx | 61 --
editeng/inc/editeng/sizeitem.hxx | 74 --
editeng/inc/editeng/spltitem.hxx | 68 --
editeng/inc/editeng/splwrap.hxx | 151 ---
editeng/inc/editeng/svxacorr.hxx | 441 ---------
editeng/inc/editeng/svxenum.hxx | 239 -----
editeng/inc/editeng/svxfont.hxx | 119 ---
editeng/inc/editeng/svxrtf.hxx | 424 ---------
editeng/inc/editeng/swafopt.hxx | 134 ---
editeng/inc/editeng/tstpitem.hxx | 161 ----
editeng/inc/editeng/twolinesitem.hxx | 77 --
editeng/inc/editeng/txtrange.hxx | 112 ---
editeng/inc/editeng/udlnitem.hxx | 119 ---
editeng/inc/editeng/ulspitem.hxx | 104 --
editeng/inc/editeng/unoedhlp.hxx | 161 ----
editeng/inc/editeng/unoedprx.hxx | 176 ----
editeng/inc/editeng/unoedsrc.hxx | 540 -----------
editeng/inc/editeng/unofdesc.hxx | 46 -
editeng/inc/editeng/unofield.hxx | 113 ---
editeng/inc/editeng/unofored.hxx | 93 --
editeng/inc/editeng/unoforou.hxx | 122 ---
editeng/inc/editeng/unoipset.hxx | 78 --
editeng/inc/editeng/unolingu.hxx | 192 ----
editeng/inc/editeng/unonames.hxx | 43 -
editeng/inc/editeng/unonrule.hxx | 87 --
editeng/inc/editeng/unopracc.hxx | 66 --
editeng/inc/editeng/unoprnms.hxx | 372 --------
editeng/inc/editeng/unotext.hxx | 661 -------------
editeng/inc/editeng/unoviwou.hxx | 57 --
editeng/inc/editeng/wghtitem.hxx | 76 --
editeng/inc/editeng/widwitem.hxx | 61 --
editeng/inc/editeng/writingmodeitem.hxx | 57 --
editeng/inc/editeng/wrlmitem.hxx | 62 --
editeng/inc/editeng/xmlcnitm.hxx | 83 --
135 files changed, 17970 deletions(-)
delete mode 100644 editeng/Package_inc.mk
delete mode 100644 editeng/inc/editeng/AccessibleComponentBase.hxx
delete mode 100644 editeng/inc/editeng/AccessibleContextBase.hxx
delete mode 100644 editeng/inc/editeng/AccessibleEditableTextPara.hxx
delete mode 100644 editeng/inc/editeng/AccessibleImageBullet.hxx
delete mode 100644 editeng/inc/editeng/AccessibleParaManager.hxx
delete mode 100644 editeng/inc/editeng/AccessibleSelectionBase.hxx
delete mode 100644 editeng/inc/editeng/AccessibleStaticTextBase.hxx
delete mode 100644 editeng/inc/editeng/AccessibleStringWrap.hxx
delete mode 100644 editeng/inc/editeng/LatinLookupTree.hxx
delete mode 100644 editeng/inc/editeng/LatinTreeNode.hxx
delete mode 100644 editeng/inc/editeng/LookupTree.hxx
delete mode 100644 editeng/inc/editeng/Node.hxx
delete mode 100644 editeng/inc/editeng/SpellPortions.hxx
delete mode 100644 editeng/inc/editeng/TreeHead.hxx
delete mode 100644 editeng/inc/editeng/UnoForbiddenCharsTable.hxx
delete mode 100644 editeng/inc/editeng/acorrcfg.hxx
delete mode 100644 editeng/inc/editeng/adjustitem.hxx
delete mode 100644 editeng/inc/editeng/autokernitem.hxx
delete mode 100644 editeng/inc/editeng/blinkitem.hxx
delete mode 100644 editeng/inc/editeng/borderline.hxx
delete mode 100644 editeng/inc/editeng/boxitem.hxx
delete mode 100644 editeng/inc/editeng/brushitem.hxx
delete mode 100644 editeng/inc/editeng/bulletitem.hxx
delete mode 100644 editeng/inc/editeng/charhiddenitem.hxx
delete mode 100644 editeng/inc/editeng/charreliefitem.hxx
delete mode 100644 editeng/inc/editeng/charrotateitem.hxx
delete mode 100644 editeng/inc/editeng/charscaleitem.hxx
delete mode 100644 editeng/inc/editeng/charsetcoloritem.hxx
delete mode 100644 editeng/inc/editeng/cmapitem.hxx
delete mode 100644 editeng/inc/editeng/colritem.hxx
delete mode 100644 editeng/inc/editeng/contouritem.hxx
delete mode 100644 editeng/inc/editeng/crossedoutitem.hxx
delete mode 100644 editeng/inc/editeng/editdata.hxx
delete mode 100644 editeng/inc/editeng/editeng.hxx
delete mode 100644 editeng/inc/editeng/editengdllapi.h
delete mode 100644 editeng/inc/editeng/editerr.hxx
delete mode 100644 editeng/inc/editeng/editids.hrc
delete mode 100644 editeng/inc/editeng/editobj.hxx
delete mode 100644 editeng/inc/editeng/editrids.hrc
delete mode 100644 editeng/inc/editeng/editstat.hxx
delete mode 100644 editeng/inc/editeng/editund2.hxx
delete mode 100644 editeng/inc/editeng/editview.hxx
delete mode 100644 editeng/inc/editeng/edtdlg.hxx
delete mode 100644 editeng/inc/editeng/eedata.hxx
delete mode 100644 editeng/inc/editeng/eeitem.hxx
delete mode 100644 editeng/inc/editeng/eeitemid.hxx
delete mode 100644 editeng/inc/editeng/eerdll.hxx
delete mode 100644 editeng/inc/editeng/emphasismarkitem.hxx
delete mode 100644 editeng/inc/editeng/escapementitem.hxx
delete mode 100644 editeng/inc/editeng/fhgtitem.hxx
delete mode 100644 editeng/inc/editeng/fieldupdater.hxx
delete mode 100644 editeng/inc/editeng/flditem.hxx
delete mode 100644 editeng/inc/editeng/flstitem.hxx
delete mode 100644 editeng/inc/editeng/fontitem.hxx
delete mode 100644 editeng/inc/editeng/forbiddencharacterstable.hxx
delete mode 100644 editeng/inc/editeng/forbiddenruleitem.hxx
delete mode 100644 editeng/inc/editeng/formatbreakitem.hxx
delete mode 100644 editeng/inc/editeng/frmdir.hxx
delete mode 100644 editeng/inc/editeng/frmdiritem.hxx
delete mode 100644 editeng/inc/editeng/fwdtitem.hxx
delete mode 100644 editeng/inc/editeng/hangulhanja.hxx
delete mode 100644 editeng/inc/editeng/hngpnctitem.hxx
delete mode 100644 editeng/inc/editeng/hyphenzoneitem.hxx
delete mode 100644 editeng/inc/editeng/itemtype.hxx
delete mode 100644 editeng/inc/editeng/justifyitem.hxx
delete mode 100644 editeng/inc/editeng/keepitem.hxx
delete mode 100644 editeng/inc/editeng/kernitem.hxx
delete mode 100644 editeng/inc/editeng/langitem.hxx
delete mode 100644 editeng/inc/editeng/lcolitem.hxx
delete mode 100644 editeng/inc/editeng/lineitem.hxx
delete mode 100644 editeng/inc/editeng/lrspitem.hxx
delete mode 100644 editeng/inc/editeng/lspcitem.hxx
delete mode 100644 editeng/inc/editeng/macros.hxx
delete mode 100644 editeng/inc/editeng/measfld.hxx
delete mode 100644 editeng/inc/editeng/memberids.hrc
delete mode 100644 editeng/inc/editeng/mutxhelp.hxx
delete mode 100644 editeng/inc/editeng/nhypitem.hxx
delete mode 100644 editeng/inc/editeng/nlbkitem.hxx
delete mode 100644 editeng/inc/editeng/numdef.hxx
delete mode 100644 editeng/inc/editeng/numitem.hxx
delete mode 100644 editeng/inc/editeng/opaqitem.hxx
delete mode 100644 editeng/inc/editeng/optitems.hxx
delete mode 100644 editeng/inc/editeng/orphitem.hxx
delete mode 100644 editeng/inc/editeng/outliner.hxx
delete mode 100644 editeng/inc/editeng/outlobj.hxx
delete mode 100644 editeng/inc/editeng/paperinf.hxx
delete mode 100644 editeng/inc/editeng/paragraphdata.hxx
delete mode 100644 editeng/inc/editeng/paravertalignitem.hxx
delete mode 100644 editeng/inc/editeng/pbinitem.hxx
delete mode 100644 editeng/inc/editeng/pgrditem.hxx
delete mode 100644 editeng/inc/editeng/pmdlitem.hxx
delete mode 100644 editeng/inc/editeng/postitem.hxx
delete mode 100644 editeng/inc/editeng/prntitem.hxx
delete mode 100644 editeng/inc/editeng/protitem.hxx
delete mode 100644 editeng/inc/editeng/prszitem.hxx
delete mode 100644 editeng/inc/editeng/rsiditem.hxx
delete mode 100644 editeng/inc/editeng/scriptspaceitem.hxx
delete mode 100644 editeng/inc/editeng/scripttypeitem.hxx
delete mode 100644 editeng/inc/editeng/shaditem.hxx
delete mode 100644 editeng/inc/editeng/shdditem.hxx
delete mode 100644 editeng/inc/editeng/sizeitem.hxx
delete mode 100644 editeng/inc/editeng/spltitem.hxx
delete mode 100644 editeng/inc/editeng/splwrap.hxx
delete mode 100644 editeng/inc/editeng/svxacorr.hxx
delete mode 100644 editeng/inc/editeng/svxenum.hxx
delete mode 100644 editeng/inc/editeng/svxfont.hxx
delete mode 100644 editeng/inc/editeng/svxrtf.hxx
delete mode 100644 editeng/inc/editeng/swafopt.hxx
delete mode 100644 editeng/inc/editeng/tstpitem.hxx
delete mode 100644 editeng/inc/editeng/twolinesitem.hxx
delete mode 100644 editeng/inc/editeng/txtrange.hxx
delete mode 100644 editeng/inc/editeng/udlnitem.hxx
delete mode 100644 editeng/inc/editeng/ulspitem.hxx
delete mode 100644 editeng/inc/editeng/unoedhlp.hxx
delete mode 100644 editeng/inc/editeng/unoedprx.hxx
delete mode 100644 editeng/inc/editeng/unoedsrc.hxx
delete mode 100644 editeng/inc/editeng/unofdesc.hxx
delete mode 100644 editeng/inc/editeng/unofield.hxx
delete mode 100644 editeng/inc/editeng/unofored.hxx
delete mode 100644 editeng/inc/editeng/unoforou.hxx
delete mode 100644 editeng/inc/editeng/unoipset.hxx
delete mode 100644 editeng/inc/editeng/unolingu.hxx
delete mode 100644 editeng/inc/editeng/unonames.hxx
delete mode 100644 editeng/inc/editeng/unonrule.hxx
delete mode 100644 editeng/inc/editeng/unopracc.hxx
delete mode 100644 editeng/inc/editeng/unoprnms.hxx
delete mode 100644 editeng/inc/editeng/unotext.hxx
delete mode 100644 editeng/inc/editeng/unoviwou.hxx
delete mode 100644 editeng/inc/editeng/wghtitem.hxx
delete mode 100644 editeng/inc/editeng/widwitem.hxx
delete mode 100644 editeng/inc/editeng/writingmodeitem.hxx
delete mode 100644 editeng/inc/editeng/wrlmitem.hxx
delete mode 100644 editeng/inc/editeng/xmlcnitm.hxx
(limited to 'editeng')
diff --git a/editeng/Module_editeng.mk b/editeng/Module_editeng.mk
index d507c6ecc5d9..4c760bf0a100 100644
--- a/editeng/Module_editeng.mk
+++ b/editeng/Module_editeng.mk
@@ -22,7 +22,6 @@ $(eval $(call gb_Module_Module,editeng))
$(eval $(call gb_Module_add_targets,editeng,\
AllLangResTarget_editeng \
Library_editeng \
- Package_inc \
))
# add any runtime tests (unit tests) here
diff --git a/editeng/Package_inc.mk b/editeng/Package_inc.mk
deleted file mode 100644
index 4794507ca193..000000000000
--- a/editeng/Package_inc.mk
+++ /dev/null
@@ -1,154 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# 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/.
-#
-# This file incorporates work covered by the following license notice:
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed
-# with this work for additional information regarding copyright
-# ownership. The ASF licenses this file to you under the Apache
-# License, Version 2.0 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-$(eval $(call gb_Package_Package,editeng_inc,$(SRCDIR)/editeng/inc))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/AccessibleComponentBase.hxx,editeng/AccessibleComponentBase.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/AccessibleContextBase.hxx,editeng/AccessibleContextBase.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/AccessibleEditableTextPara.hxx,editeng/AccessibleEditableTextPara.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/AccessibleImageBullet.hxx,editeng/AccessibleImageBullet.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/AccessibleParaManager.hxx,editeng/AccessibleParaManager.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/AccessibleSelectionBase.hxx,editeng/AccessibleSelectionBase.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/AccessibleStaticTextBase.hxx,editeng/AccessibleStaticTextBase.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/AccessibleStringWrap.hxx,editeng/AccessibleStringWrap.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/acorrcfg.hxx,editeng/acorrcfg.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/adjustitem.hxx,editeng/adjustitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/autokernitem.hxx,editeng/autokernitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/blinkitem.hxx,editeng/blinkitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/lineitem.hxx,editeng/lineitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/borderline.hxx,editeng/borderline.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/boxitem.hxx,editeng/boxitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/formatbreakitem.hxx,editeng/formatbreakitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/brushitem.hxx,editeng/brushitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/bulletitem.hxx,editeng/bulletitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/charhiddenitem.hxx,editeng/charhiddenitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/charreliefitem.hxx,editeng/charreliefitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/charrotateitem.hxx,editeng/charrotateitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/charscaleitem.hxx,editeng/charscaleitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/cmapitem.hxx,editeng/cmapitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/contouritem.hxx,editeng/contouritem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/colritem.hxx,editeng/colritem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/crossedoutitem.hxx,editeng/crossedoutitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/charsetcoloritem.hxx,editeng/charsetcoloritem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/editdata.hxx,editeng/editdata.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/editeng.hxx,editeng/editeng.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/editengdllapi.h,editeng/editengdllapi.h))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/editerr.hxx,editeng/editerr.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/editids.hrc,editeng/editids.hrc))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/editobj.hxx,editeng/editobj.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/editrids.hrc,editeng/editrids.hrc))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/editstat.hxx,editeng/editstat.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/editund2.hxx,editeng/editund2.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/editview.hxx,editeng/editview.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/edtdlg.hxx,editeng/edtdlg.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/eedata.hxx,editeng/eedata.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/eeitem.hxx,editeng/eeitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/eeitemid.hxx,editeng/eeitemid.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/eerdll.hxx,editeng/eerdll.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/emphasismarkitem.hxx,editeng/emphasismarkitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/escapementitem.hxx,editeng/escapementitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/fhgtitem.hxx,editeng/fhgtitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/fieldupdater.hxx,editeng/fieldupdater.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/flditem.hxx,editeng/flditem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/flstitem.hxx,editeng/flstitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/fontitem.hxx,editeng/fontitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/forbiddencharacterstable.hxx,editeng/forbiddencharacterstable.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/forbiddenruleitem.hxx,editeng/forbiddenruleitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/frmdir.hxx,editeng/frmdir.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/frmdiritem.hxx,editeng/frmdiritem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/fwdtitem.hxx,editeng/fwdtitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/hangulhanja.hxx,editeng/hangulhanja.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/hngpnctitem.hxx,editeng/hngpnctitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/hyphenzoneitem.hxx,editeng/hyphenzoneitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/itemtype.hxx,editeng/itemtype.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/justifyitem.hxx,editeng/justifyitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/keepitem.hxx,editeng/keepitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/kernitem.hxx,editeng/kernitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/langitem.hxx,editeng/langitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/lcolitem.hxx,editeng/lcolitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/lrspitem.hxx,editeng/lrspitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/lspcitem.hxx,editeng/lspcitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/macros.hxx,editeng/macros.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/measfld.hxx,editeng/measfld.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/memberids.hrc,editeng/memberids.hrc))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/mutxhelp.hxx,editeng/mutxhelp.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/nhypitem.hxx,editeng/nhypitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/nlbkitem.hxx,editeng/nlbkitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/numdef.hxx,editeng/numdef.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/numitem.hxx,editeng/numitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/opaqitem.hxx,editeng/opaqitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/optitems.hxx,editeng/optitems.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/orphitem.hxx,editeng/orphitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/outliner.hxx,editeng/outliner.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/outlobj.hxx,editeng/outlobj.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/paperinf.hxx,editeng/paperinf.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/paragraphdata.hxx,editeng/paragraphdata.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/paravertalignitem.hxx,editeng/paravertalignitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/pbinitem.hxx,editeng/pbinitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/pgrditem.hxx,editeng/pgrditem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/pmdlitem.hxx,editeng/pmdlitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/postitem.hxx,editeng/postitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/prntitem.hxx,editeng/prntitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/protitem.hxx,editeng/protitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/prszitem.hxx,editeng/prszitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/rsiditem.hxx,editeng/rsiditem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/scriptspaceitem.hxx,editeng/scriptspaceitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/scripttypeitem.hxx,editeng/scripttypeitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/shaditem.hxx,editeng/shaditem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/shdditem.hxx,editeng/shdditem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/sizeitem.hxx,editeng/sizeitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/SpellPortions.hxx,editeng/SpellPortions.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/spltitem.hxx,editeng/spltitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/splwrap.hxx,editeng/splwrap.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/svxacorr.hxx,editeng/svxacorr.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/svxenum.hxx,editeng/svxenum.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/svxfont.hxx,editeng/svxfont.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/svxrtf.hxx,editeng/svxrtf.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/swafopt.hxx,editeng/swafopt.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/tstpitem.hxx,editeng/tstpitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/twolinesitem.hxx,editeng/twolinesitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/txtrange.hxx,editeng/txtrange.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/udlnitem.hxx,editeng/udlnitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/ulspitem.hxx,editeng/ulspitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/unoedhlp.hxx,editeng/unoedhlp.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/unoedprx.hxx,editeng/unoedprx.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/unoedsrc.hxx,editeng/unoedsrc.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/unofdesc.hxx,editeng/unofdesc.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/unofield.hxx,editeng/unofield.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/UnoForbiddenCharsTable.hxx,editeng/UnoForbiddenCharsTable.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/unofored.hxx,editeng/unofored.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/unoforou.hxx,editeng/unoforou.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/unoipset.hxx,editeng/unoipset.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/unolingu.hxx,editeng/unolingu.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/unonrule.hxx,editeng/unonrule.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/unopracc.hxx,editeng/unopracc.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/unoprnms.hxx,editeng/unoprnms.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/unotext.hxx,editeng/unotext.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/unoviwou.hxx,editeng/unoviwou.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/wghtitem.hxx,editeng/wghtitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/widwitem.hxx,editeng/widwitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/writingmodeitem.hxx,editeng/writingmodeitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/wrlmitem.hxx,editeng/wrlmitem.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/xmlcnitm.hxx,editeng/xmlcnitm.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/LookupTree.hxx,editeng/LookupTree.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/Node.hxx,editeng/Node.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/TreeHead.hxx,editeng/TreeHead.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/LatinLookupTree.hxx,editeng/LatinLookupTree.hxx))
-$(eval $(call gb_Package_add_file,editeng_inc,inc/editeng/LatinTreeNode.hxx,editeng/LatinTreeNode.hxx))
-
-# vim: set noet sw=4 ts=4:
diff --git a/editeng/inc/editeng/AccessibleComponentBase.hxx b/editeng/inc/editeng/AccessibleComponentBase.hxx
deleted file mode 100644
index ea292e0e439c..000000000000
--- a/editeng/inc/editeng/AccessibleComponentBase.hxx
+++ /dev/null
@@ -1,141 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-#ifndef _SVX_ACCESSIBILITY_ACCESSIBLE_EXTENDED_COMPONENT_BASE_HXX
-#define _SVX_ACCESSIBILITY_ACCESSIBLE_EXTENDED_COMPONENT_BASE_HXX
-
-
-#include
-#include
-#include
-#include "editeng/editengdllapi.h"
-
-namespace accessibility {
-
-/** @descr
- This base class provides (will provice) a base implementation of the
- XAccessibleComponent and the
- XAccessibleExtendedComponent for all shapes. For
- more detailed documentation about the methods refer to the interface
- descriptions of XAccessible,
- XAccessibleContext, XInterface,
- XServiceInfo, and XTypeProvider.
-*/
-class EDITENG_DLLPUBLIC AccessibleComponentBase
- : public ::com::sun::star::accessibility::XAccessibleExtendedComponent
-{
-public:
- //===== internal ========================================================
- AccessibleComponentBase (void);
- virtual ~AccessibleComponentBase (void);
-
-
- //===== XAccessibleComponent ================================================
-
- /** The default implementation uses the result of
- getBounds to determine whether the given point lies
- inside this object.
- */
- virtual sal_Bool SAL_CALL containsPoint (
- const ::com::sun::star::awt::Point& aPoint)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** The default implementation returns an empty reference.
- */
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessible > SAL_CALL
- getAccessibleAtPoint (
- const ::com::sun::star::awt::Point& aPoint)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** The default implementation returns an empty rectangle.
- */
- virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** The default implementation uses the result of
- getBounds to determine the location.
- */
- virtual ::com::sun::star::awt::Point SAL_CALL getLocation (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** The default implementation returns an empty position, i.e. the
- * result of the default constructor of com::sun::star::awt::Point.
- */
- virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** The default implementation uses the result of
- getBounds to determine the size.
- */
- virtual ::com::sun::star::awt::Size SAL_CALL getSize (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** The default implementation ignores this call.
- */
- virtual void SAL_CALL addFocusListener (
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::awt::XFocusListener >& xListener)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** The default implementation ignores this call.
- */
- virtual void SAL_CALL removeFocusListener (const ::com::sun::star::uno::Reference<
- ::com::sun::star::awt::XFocusListener >& xListener )
- throw (::com::sun::star::uno::RuntimeException);
-
- /** The default implementation does nothing.
- */
- virtual void SAL_CALL grabFocus (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** Returns black as the default foreground color.
- */
- virtual sal_Int32 SAL_CALL getForeground (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** Returns white as the default background color.
- */
- virtual sal_Int32 SAL_CALL getBackground (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- //===== XAccessibleExtendedComponent ====================================
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont > SAL_CALL
- getFont (void)
- throw (::com::sun::star::uno::RuntimeException);
- virtual OUString SAL_CALL getTitledBorderText (void)
- throw (::com::sun::star::uno::RuntimeException);
- virtual OUString SAL_CALL getToolTipText (void)
- throw (::com::sun::star::uno::RuntimeException);
-
-
- //===== XTypeProvider ===================================================
-
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> SAL_CALL
- getTypes (void)
- throw (::com::sun::star::uno::RuntimeException);
-
-};
-
-} // end of namespace accessibility
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/AccessibleContextBase.hxx b/editeng/inc/editeng/AccessibleContextBase.hxx
deleted file mode 100644
index 574582a68ae1..000000000000
--- a/editeng/inc/editeng/AccessibleContextBase.hxx
+++ /dev/null
@@ -1,388 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _SVX_ACCESSIBILITY_ACCESSIBLE_CONTEXT_BASE_HXX
-#define _SVX_ACCESSIBILITY_ACCESSIBLE_CONTEXT_BASE_HXX
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-
-namespace accessibility {
-
-struct MutexOwner {mutable ::osl::Mutex maMutex;};
-
-/** @descr
- This base class provides an implementation of the
- AccessibleContext service. Appart from the
- XXAccessible and XAccessibleContextContext
- interfaces it supports the XServiceInfo interface.
-*/
-class EDITENG_DLLPUBLIC AccessibleContextBase
- : public MutexOwner,
- public cppu::PartialWeakComponentImplHelper4<
- ::com::sun::star::accessibility::XAccessible,
- ::com::sun::star::accessibility::XAccessibleContext,
- ::com::sun::star::accessibility::XAccessibleEventBroadcaster,
- ::com::sun::star::lang::XServiceInfo
- >
-{
-public:
-
- //===== internal ========================================================
-
- /** The origin of the accessible name or description.
- */
- enum StringOrigin {
- ManuallySet,
- FromShape,
- AutomaticallyCreated,
- NotSet
- };
-
- AccessibleContextBase (
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessible>& rxParent,
- const sal_Int16 aRole);
- virtual ~AccessibleContextBase (void);
-
-
- /** Call all accessiblity event listeners to inform them about the
- specified event.
- @param aEventId
- Id of the event type.
- @param rNewValue
- New value of the modified attribute. Pass empty structure if
- not applicable.
- @param rOldValue
- Old value of the modified attribute. Pass empty structure if
- not applicable.
- */
- void CommitChange (sal_Int16 aEventId,
- const ::com::sun::star::uno::Any& rNewValue,
- const ::com::sun::star::uno::Any& rOldValue);
-
- /** Set a new description and, provided that the new name differs from
- the old one, broadcast an accessibility event.
- @param rsDescription
- The new description.
- @param eDescriptionOrigin
- The origin of the description. This is used to determine
- whether the given description overrules the existing one. An
- origin with a lower numerical value overrides one with a higher
- value.
- */
- void SetAccessibleDescription (
- const OUString& rsDescription,
- StringOrigin eDescriptionOrigin)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** Set a new description and, provided that the new name differs from
- the old one, broadcast an accessibility event.
- @param rsName
- The new name.
- @param eNameOrigin
- The origin of the name. This is used to determine whether the
- given name overrules the existing one. An origin with a lower
- numerical value overrides one with a higher value.
- */
- void SetAccessibleName (
- const OUString& rsName,
- StringOrigin eNameOrigin)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** Set the specified state (turn it on) and send events to all
- listeners to inform them of the change.
-
- @param aState
- The state to turn on.
-
- @return
- If the specified state changed its value due to this call
- is returned, otherwise .
- */
- virtual sal_Bool SetState (sal_Int16 aState);
-
- /** Reset the specified state (turn it off) and send events to all
- listeners to inform them of the change.
-
- @param aState
- The state to turn off.
-
- @return
- If the specified state changed its value due to this call
- is returned, otherwise .
- */
- virtual sal_Bool ResetState (sal_Int16 aState);
-
- /** Return the state of the specified state.
-
- @param aState
- The state for which to return its value.
-
- @return
- A value of indicates that the state is set. A
- value indicates an unset state.
- */
- sal_Bool GetState (sal_Int16 aState);
-
- /** Replace the current relation set with the specified one. Send
- events for relations that are not in both sets.
-
- @param rRelationSet
- The new relation set that replaces the old one.
- */
- virtual void SetRelationSet (
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessibleRelationSet>& rxRelationSet)
- throw (::com::sun::star::uno::RuntimeException);
-
-
- //===== XAccessible =====================================================
-
- /// Return the XAccessibleContext.
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessibleContext> SAL_CALL
- getAccessibleContext (void) throw (::com::sun::star::uno::RuntimeException);
-
-
- //===== XAccessibleContext ==============================================
-
- /// Return the number of currently visible children.
- virtual sal_Int32 SAL_CALL
- getAccessibleChildCount (void) throw (::com::sun::star::uno::RuntimeException);
-
- /// Return the specified child or throw exception.
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL
- getAccessibleChild (sal_Int32 nIndex)
- throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
-
- /// Return a reference to the parent.
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL
- getAccessibleParent (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /// Return this objects index among the parents children.
- virtual sal_Int32 SAL_CALL
- getAccessibleIndexInParent (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /// Return this object's role.
- virtual sal_Int16 SAL_CALL
- getAccessibleRole (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /// Return this object's description.
- virtual OUString SAL_CALL
- getAccessibleDescription (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /// Return the object's current name.
- virtual OUString SAL_CALL
- getAccessibleName (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /// Return NULL to indicate that an empty relation set.
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessibleRelationSet> SAL_CALL
- getAccessibleRelationSet (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /// Return the set of current states.
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL
- getAccessibleStateSet (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** Return the parents locale or throw exception if this object has no
- parent yet/anymore.
- */
- virtual ::com::sun::star::lang::Locale SAL_CALL
- getLocale (void)
- throw (::com::sun::star::uno::RuntimeException,
- ::com::sun::star::accessibility::IllegalAccessibleComponentStateException);
-
- //===== XAccessibleEventBroadcaster ========================================
-
- virtual void SAL_CALL
- addAccessibleEventListener (
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessibleEventListener >& xListener)
- throw (::com::sun::star::uno::RuntimeException);
-
- virtual void SAL_CALL
- removeAccessibleEventListener (
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessibleEventListener >& xListener)
- throw (::com::sun::star::uno::RuntimeException);
-
-
- //===== XServiceInfo ====================================================
-
- /** Returns an identifier for the implementation of this object.
- */
- virtual OUString SAL_CALL
- getImplementationName (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** Return whether the specified service is supported by this class.
- */
- virtual sal_Bool SAL_CALL
- supportsService (const OUString& sServiceName)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** Returns a list of all supported services. In this case that is just
- the AccessibleContext service.
- */
- virtual ::com::sun::star::uno::Sequence< OUString> SAL_CALL
- getSupportedServiceNames (void)
- throw (::com::sun::star::uno::RuntimeException);
-
-
- //===== XTypeProvider ===================================================
-
- /** Returns a sequence of all supported interfaces.
- */
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> SAL_CALL
- getTypes (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** Returns a implementation id.
- */
- virtual ::com::sun::star::uno::Sequence SAL_CALL
- getImplementationId (void)
- throw (::com::sun::star::uno::RuntimeException);
-
-protected:
- /** The state set.
- */
- ::com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessibleStateSet> mxStateSet;
-
- /** The relation set. Relations can be set or removed by calling the
- AddRelation and RemoveRelation methods.
- */
- ::com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessibleRelationSet> mxRelationSet;
-
- // This method is called from the component helper base class while disposing.
- virtual void SAL_CALL disposing (void);
-
- /** Create the accessible object's name. This method may be called more
- than once for a single object.
- @return
- The returned string is a unique (among the accessible object's
- siblings) name.
- */
- virtual OUString CreateAccessibleName (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /** Create the accessible object's descriptive string. May be called
- more than once.
- @return
- Descriptive string. Not necessarily unique.
- */
- virtual OUString
- CreateAccessibleDescription (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- void FireEvent (const ::com::sun::star::accessibility::AccessibleEventObject& aEvent);
-
- /** Check whether or not the object has been disposed (or is in the
- state of beeing disposed). If that is the case then
- DisposedException is thrown to inform the (indirect) caller of the
- foul deed.
- */
- void ThrowIfDisposed (void)
- throw (::com::sun::star::lang::DisposedException);
-
- /** Check whether or not the object has been disposed (or is in the
- state of beeing disposed).
-
- @return TRUE, if the object is disposed or in the course
- of being disposed. Otherwise, FALSE is returned.
- */
- sal_Bool IsDisposed (void);
-
- /** sets the role as returned by XaccessibleContext::getAccessibleRole
-
- Caution: This is only to be used in the construction phase (means within
- the ctor or late ctor), never when the object is still alive and part
- of an Accessibility hierarchy.
- */
- void SetAccessibleRole( sal_Int16 _nRole );
-
-private:
- /// Reference to the parent object.
- ::com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessible> mxParent;
-
- /** Description of this object. This is not a constant because it can
- be set from the outside. Furthermore, it changes according the the
- draw page's display mode.
- */
- OUString msDescription;
-
- /** The origin of the description is used to determine whether new
- descriptions given to the SetAccessibleDescription is ignored or
- whether that replaces the old value in msDescription.
- */
- StringOrigin meDescriptionOrigin;
-
- /** Name of this object. It changes according the draw page's
- display mode.
- */
- OUString msName;
-
- /** The origin of the name is used to determine whether new
- name given to the SetAccessibleName is ignored or
- whether that replaces the old value in msName.
- */
- StringOrigin meNameOrigin;
-
- /** client id in the AccessibleEventNotifier queue
- */
- sal_uInt32 mnClientId;
-
- /** This is the role of this object.
- */
- sal_Int16 maRole;
-};
-
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/AccessibleEditableTextPara.hxx b/editeng/inc/editeng/AccessibleEditableTextPara.hxx
deleted file mode 100644
index 5f245d0786f5..000000000000
--- a/editeng/inc/editeng/AccessibleEditableTextPara.hxx
+++ /dev/null
@@ -1,386 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _SVX_ACCESSIBLE_EDITABLE_TEXT_PARA_HXX
-#define _SVX_ACCESSIBLE_EDITABLE_TEXT_PARA_HXX
-
-#include
-#include
-#include
-#include
-#include
-#include
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#include
-#include
-#include "editeng/AccessibleParaManager.hxx"
-#include "editeng/AccessibleImageBullet.hxx"
-#include "editeng/unoedprx.hxx"
-#include "editeng/editengdllapi.h"
-
-namespace accessibility
-{
- typedef ::cppu::PartialWeakComponentImplHelper9< ::com::sun::star::accessibility::XAccessible,
- ::com::sun::star::accessibility::XAccessibleContext,
- ::com::sun::star::accessibility::XAccessibleComponent,
- ::com::sun::star::accessibility::XAccessibleEditableText,
- ::com::sun::star::accessibility::XAccessibleEventBroadcaster,
- ::com::sun::star::accessibility::XAccessibleTextAttributes,
- ::com::sun::star::accessibility::XAccessibleHypertext,
- ::com::sun::star::accessibility::XAccessibleMultiLineText,
- ::com::sun::star::lang::XServiceInfo > AccessibleTextParaInterfaceBase;
-
- /** This class implements the actual text paragraphs for the EditEngine/Outliner UAA
- */
- class EDITENG_DLLPUBLIC AccessibleEditableTextPara : public ::comphelper::OBaseMutex, public AccessibleTextParaInterfaceBase, public ::comphelper::OCommonAccessibleText
- {
-
- protected:
- // override OCommonAccessibleText methods
- virtual OUString implGetText();
- virtual ::com::sun::star::lang::Locale implGetLocale();
- virtual void implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex );
- virtual void implGetParagraphBoundary( ::com::sun::star::i18n::Boundary& rBoundary, sal_Int32 nIndex );
- virtual void implGetLineBoundary( ::com::sun::star::i18n::Boundary& rBoundary, sal_Int32 nIndex );
-
- public:
- /// Create accessible object for given parent
- // #i27138#
- // - add parameter <_pParaManager> (default value NULL)
- // This has to be the instance of , which
- // created and manages this accessible paragraph.
- AccessibleEditableTextPara ( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rParent,
- const AccessibleParaManager* _pParaManager = NULL );
-
- virtual ~AccessibleEditableTextPara ();
-
- // XInterface
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface (const ::com::sun::star::uno::Type & rType) throw (::com::sun::star::uno::RuntimeException);
-
- // XAccessible
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException);
-
- // XAccessibleContext
- virtual sal_Int32 SAL_CALL getAccessibleChildCount() throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent() throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getAccessibleIndexInParent() throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int16 SAL_CALL getAccessibleRole() throw (::com::sun::star::uno::RuntimeException);
- /// Maximal length of text returned by getAccessibleDescription()
- enum { MaxDescriptionLen = 40 };
- virtual OUString SAL_CALL getAccessibleDescription() throw (::com::sun::star::uno::RuntimeException);
- virtual OUString SAL_CALL getAccessibleName() throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet() throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::lang::Locale SAL_CALL getLocale() throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException);
-
- // XAccessibleEventBroadcaster
- virtual void SAL_CALL addAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removeAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
-
- // XAccessibleComponent
- virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds( ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::awt::Point SAL_CALL getLocation( ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::awt::Size SAL_CALL getSize( ) throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException);
-
- // XAccessibleText (this comes implicitely inherited by XAccessibleEditableText AND by XAccessibleMultiLineText)
- virtual sal_Int32 SAL_CALL getCaretPosition() throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL setCaretPosition( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Unicode SAL_CALL getCharacter( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getCharacterAttributes( sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< OUString >& aRequestedAttributes ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::awt::Rectangle SAL_CALL getCharacterBounds( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getCharacterCount() throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getIndexAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException);
- virtual OUString SAL_CALL getSelectedText() throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getSelectionStart() throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getSelectionEnd() throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual OUString SAL_CALL getText() throw (::com::sun::star::uno::RuntimeException);
- virtual OUString SAL_CALL getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- /// Does not support AccessibleTextType::SENTENCE (missing feature in EditEngine)
- virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
- /// Does not support AccessibleTextType::SENTENCE (missing feature in EditEngine)
- virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
- /// Does not support AccessibleTextType::SENTENCE (missing feature in EditEngine)
- virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
-
- // XAccessibleEditableText
- virtual sal_Bool SAL_CALL cutText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL pasteText( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL deleteText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL insertText( const OUString& sText, sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL replaceText( sal_Int32 nStartIndex, sal_Int32 nEndIndex, const OUString& sReplacement ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL setAttributes( sal_Int32 nStartIndex, sal_Int32 nEndIndex, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aAttributeSet ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL setText( const OUString& sText ) throw (::com::sun::star::uno::RuntimeException);
-
- // XAccessibleTextAttributes
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getDefaultAttributes( const ::com::sun::star::uno::Sequence< OUString >& RequestedAttributes ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getRunAttributes( ::sal_Int32 Index, const ::com::sun::star::uno::Sequence< OUString >& RequestedAttributes ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
-
- // XAccessibleHypertext
- virtual ::sal_Int32 SAL_CALL getHyperLinkCount( ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleHyperlink > SAL_CALL getHyperLink( ::sal_Int32 nLinkIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual ::sal_Int32 SAL_CALL getHyperLinkIndex( ::sal_Int32 nCharIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
-
- // XAccessibleMultiLineText
- virtual ::sal_Int32 SAL_CALL getLineNumberAtIndex( ::sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextAtLineNumber( ::sal_Int32 nLineNo ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextAtLineWithCaret( ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::sal_Int32 SAL_CALL getNumberOfLineWithCaret( ) throw (::com::sun::star::uno::RuntimeException);
-
- // XServiceInfo
- virtual OUString SAL_CALL getImplementationName (void) throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService (const OUString& sServiceName) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< OUString> SAL_CALL getSupportedServiceNames (void) throw (::com::sun::star::uno::RuntimeException);
-
- // XServiceName
- virtual OUString SAL_CALL getServiceName (void) throw (::com::sun::star::uno::RuntimeException);
-
- /** Set the current index in the accessibility parent
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- void SetIndexInParent( sal_Int32 nIndex );
-
- /** Get the current index in the accessibility parent
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- sal_Int32 GetIndexInParent() const;
-
- /** Set the current paragraph number
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- void SetParagraphIndex( sal_Int32 nIndex );
-
- /** Query the current paragraph number (0 - nParas-1)
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- sal_Int32 GetParagraphIndex() const SAL_THROW((::com::sun::star::uno::RuntimeException));
-
- /** Set the edit engine offset
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- void SetEEOffset( const Point& rOffset );
-
- /** Set the EditEngine offset
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- void SetEditSource( SvxEditSourceAdapter* pEditSource );
-
- /** Dispose this object
-
- Notifies and deregisters the listeners, drops all references.
- */
- void Dispose();
-
- /// Calls all Listener objects to tell them the change. Don't hold locks when calling this!
- virtual void FireEvent(const sal_Int16 nEventId, const ::com::sun::star::uno::Any& rNewValue = ::com::sun::star::uno::Any(), const ::com::sun::star::uno::Any& rOldValue = ::com::sun::star::uno::Any() ) const;
-
- /// Sets the given state on the internal state set and fires STATE_CHANGE event. Don't hold locks when calling this!
- void SetState( const sal_Int16 nStateId );
- /// Unsets the given state on the internal state set and fires STATE_CHANGE event. Don't hold locks when calling this!
- void UnSetState( const sal_Int16 nStateId );
-
- static Rectangle LogicToPixel( const Rectangle& rRect, const MapMode& rMapMode, SvxViewForwarder& rForwarder );
-
- SvxEditSourceAdapter& GetEditSource() const SAL_THROW((::com::sun::star::uno::RuntimeException));
-
- /** Query the SvxTextForwarder for EditEngine access.
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- SvxAccessibleTextAdapter& GetTextForwarder() const SAL_THROW((::com::sun::star::uno::RuntimeException));
-
- /** Query the SvxViewForwarder for EditEngine access.
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- SvxViewForwarder& GetViewForwarder() const SAL_THROW((::com::sun::star::uno::RuntimeException));
-
- /** Query whether a GetEditViewForwarder( sal_False ) will return a forwarder
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- sal_Bool HaveEditView() const;
-
- /** Query the SvxEditViewForwarder for EditEngine access.
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- SvxAccessibleTextEditViewAdapter& GetEditViewForwarder( sal_Bool bCreate = sal_False ) const SAL_THROW((::com::sun::star::uno::RuntimeException));
-
- /** Send a TEXT_CHANGED event for this paragraph
-
- This method internally caters for calculating text
- differences, and sends the appropriate Anys in the
- Accessibility::TEXT_CHANGED event
- */
- void TextChanged();
-
- private:
-
- // declared, but not defined
- AccessibleEditableTextPara( const AccessibleEditableTextPara& );
- AccessibleEditableTextPara& operator= ( const AccessibleEditableTextPara& );
-
- /** Calculate character range of similar attributes
-
- @param nStartIndex
- Therein, the start of the character range with the same attributes is returned
-
- @param nEndIndex
- Therein, the end (exclusively) of the character range with the same attributes is returned
-
- @param nIndex
- The character index at where to look for similar character attributes
-
- @return sal_False, if the method was not able to determine the range
- */
- sal_Bool GetAttributeRun( sal_uInt16& nStartIndex, sal_uInt16& nEndIndex, sal_Int32 nIndex );
-
- // syntactic sugar for FireEvent
- void GotPropertyEvent( const ::com::sun::star::uno::Any& rNewValue, const sal_Int16 nEventId ) const;
- void LostPropertyEvent( const ::com::sun::star::uno::Any& rOldValue, const sal_Int16 nEventId ) const;
-
- int getNotifierClientId() const;
-
- /// Do we have children? This is the case for image bullets
- sal_Bool HaveChildren();
-
- const Point& GetEEOffset() const;
-
- // Get text from forwarder
- String GetTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) SAL_THROW((::com::sun::star::uno::RuntimeException));
- sal_uInt16 GetTextLen() const SAL_THROW((::com::sun::star::uno::RuntimeException));
-
- /** Get the current selection of this paragraph
-
- @return sal_False, if nothing in this paragraph is selected
- */
- sal_Bool GetSelection( sal_uInt16& nStartPos, sal_uInt16& nEndPos ) SAL_THROW((::com::sun::star::uno::RuntimeException));
-
- /** create selection from Accessible selection.
-
- */
- ESelection MakeSelection( sal_Int32 nStartEEIndex, sal_Int32 nEndEEIndex );
- ESelection MakeSelection( sal_Int32 nEEIndex );
- ESelection MakeCursor( sal_Int32 nEEIndex );
-
- // check whether index value is within permitted range
-
- /// Check whether 0<=nIndex<=n-1
- void CheckIndex( sal_Int32 nIndex ) SAL_THROW((::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException));
- /// Check whether 0<=nIndex<=n
- void CheckPosition( sal_Int32 nIndex ) SAL_THROW((::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException));
- /// Check whether 0<=nStart<=n and 0<=nEnd<=n
- void CheckRange( sal_Int32 nStart, sal_Int32 nEnd ) SAL_THROW((::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException));
-
- // the paragraph index in the edit engine (guarded by solar mutex)
- sal_Int32 mnParagraphIndex;
-
- // our current index in the parent (guarded by solar mutex)
- sal_Int32 mnIndexInParent;
-
- // the current edit source (guarded by solar mutex)
- SvxEditSourceAdapter* mpEditSource;
-
- // the possible child (for image bullets, guarded by solar mutex)
- typedef WeakCppRef < ::com::sun::star::accessibility::XAccessible, AccessibleImageBullet > WeakBullet;
- WeakBullet maImageBullet;
-
- // the last string used for an Accessibility::TEXT_CHANGED event (guarded by solar mutex)
- OUString maLastTextString;
-
- // the offset of the underlying EditEngine from the shape/cell (guarded by solar mutex)
- Point maEEOffset;
-
- // the current state set (updated from SetState/UnSetState and guarded by solar mutex)
- ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > mxStateSet;
-
- /// The shape we're the accessible for (unguarded)
- ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > mxParent;
-
- /// Our listeners (guarded by maMutex)
- int mnNotifierClientId;
-
- // Text paragraphs should provide FLOWS_TO and FLOWS_FROM relations (#i27138#)
- // the paragraph manager, which created this instance - is NULL, if
- // instance isn't created by AccessibleParaManager.
- // Needed for method to retrieve predecessor
- // paragraph and the successor paragraph.
- const AccessibleParaManager* mpParaManager;
- };
-
-} // end of namespace accessibility
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/AccessibleImageBullet.hxx b/editeng/inc/editeng/AccessibleImageBullet.hxx
deleted file mode 100644
index 9d852962e9e6..000000000000
--- a/editeng/inc/editeng/AccessibleImageBullet.hxx
+++ /dev/null
@@ -1,219 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _SVX_ACCESSIBLE_IMAGE_BULLET_HXX
-#define _SVX_ACCESSIBLE_IMAGE_BULLET_HXX
-
-#include
-#include
-#include
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "editeng/AccessibleParaManager.hxx"
-#include
-
-namespace accessibility
-{
- typedef ::cppu::WeakImplHelper5< ::com::sun::star::accessibility::XAccessible,
- ::com::sun::star::accessibility::XAccessibleContext,
- ::com::sun::star::accessibility::XAccessibleComponent,
- ::com::sun::star::accessibility::XAccessibleEventBroadcaster,
- ::com::sun::star::lang::XServiceInfo > AccessibleImageBulletInterfaceBase;
-
- /** This class implements the image bullets for the EditEngine/Outliner UAA
- */
- class AccessibleImageBullet : public AccessibleImageBulletInterfaceBase
- {
-
- public:
- /// Create accessible object for given parent
- AccessibleImageBullet ( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rParent );
-
- virtual ~AccessibleImageBullet ();
-
- // XInterface
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface (const ::com::sun::star::uno::Type & rType) throw (::com::sun::star::uno::RuntimeException);
-
- // XAccessible
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException);
-
- // XAccessibleContext
- virtual sal_Int32 SAL_CALL getAccessibleChildCount() throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent() throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getAccessibleIndexInParent() throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int16 SAL_CALL getAccessibleRole() throw (::com::sun::star::uno::RuntimeException);
- /// Maximal length of text returned by getAccessibleDescription()
- enum { MaxDescriptionLen = 40 };
- virtual OUString SAL_CALL getAccessibleDescription() throw (::com::sun::star::uno::RuntimeException);
- virtual OUString SAL_CALL getAccessibleName() throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet() throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::lang::Locale SAL_CALL getLocale() throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException);
-
- // XAccessibleEventBroadcaster
- virtual void SAL_CALL addAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removeAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
-
- // XAccessibleComponent
- virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds( ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::awt::Point SAL_CALL getLocation( ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::awt::Size SAL_CALL getSize( ) throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException);
-
- // XServiceInfo
- virtual OUString SAL_CALL getImplementationName (void) throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService (const OUString& sServiceName) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< OUString> SAL_CALL getSupportedServiceNames (void) throw (::com::sun::star::uno::RuntimeException);
-
- // XServiceName
- virtual OUString SAL_CALL getServiceName (void) throw (::com::sun::star::uno::RuntimeException);
-
- /** Set the current index in the accessibility parent
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- void SetIndexInParent( sal_Int32 nIndex );
-
- /** Set the edit engine offset
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- void SetEEOffset( const Point& rOffset );
-
- /** Set the EditEngine offset
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- void SetEditSource( SvxEditSource* pEditSource );
-
- /** Dispose this object
-
- Notifies and deregisters the listeners, drops all references.
- */
- void Dispose();
-
- /** Set the current paragraph number
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- void SetParagraphIndex( sal_Int32 nIndex );
-
- /** Query the current paragraph number (0 - nParas-1)
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- sal_Int32 GetParagraphIndex() const SAL_THROW((::com::sun::star::uno::RuntimeException));
-
- /// Calls all Listener objects to tell them the change. Don't hold locks when calling this!
- virtual void FireEvent(const sal_Int16 nEventId, const ::com::sun::star::uno::Any& rNewValue = ::com::sun::star::uno::Any(), const ::com::sun::star::uno::Any& rOldValue = ::com::sun::star::uno::Any() ) const;
-
- private:
-
- // declared, but not defined
- AccessibleImageBullet( const AccessibleImageBullet& );
- AccessibleImageBullet& operator= ( const AccessibleImageBullet& );
-
- // syntactic sugar for FireEvent
- void GotPropertyEvent( const ::com::sun::star::uno::Any& rNewValue, const sal_Int16 nEventId ) const;
- void LostPropertyEvent( const ::com::sun::star::uno::Any& rOldValue, const sal_Int16 nEventId ) const;
-
- // maintain state set and send STATE_CHANGE events
- void SetState( const sal_Int16 nStateId );
- void UnSetState( const sal_Int16 nStateId );
-
- SvxEditSource& GetEditSource() const SAL_THROW((::com::sun::star::uno::RuntimeException));
-
- int getNotifierClientId() const;
-
- /** Query the SvxTextForwarder for EditEngine access.
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- SvxTextForwarder& GetTextForwarder() const SAL_THROW((::com::sun::star::uno::RuntimeException));
-
- /** Query the SvxViewForwarder for EditEngine access.
-
- @attention This method does not lock the SolarMutex,
- leaving that to the calling code. This is because only
- there potential deadlock situations can be resolved. Thus,
- make sure SolarMutex is locked when calling this.
- */
- SvxViewForwarder& GetViewForwarder() const SAL_THROW((::com::sun::star::uno::RuntimeException));
-
- const Point& GetEEOffset() const;
-
- // the paragraph index in the edit engine (guarded by solar mutex)
- sal_Int32 mnParagraphIndex;
-
- // our current index in the parent (guarded by solar mutex)
- sal_Int32 mnIndexInParent;
-
- // the current edit source (guarded by solar mutex)
- SvxEditSource* mpEditSource;
-
- // the offset of the underlying EditEngine from the shape/cell (guarded by solar mutex)
- Point maEEOffset;
-
- // the current state set (updated from SetState/UnSetState and guarded by solar mutex)
- ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > mxStateSet;
-
- mutable osl::Mutex maMutex;
-
- /// The shape we're the accessible for (unguarded)
- ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > mxParent;
-
- /// Our listeners (guarded by maMutex)
- int mnNotifierClientId;
- };
-
-} // end of namespace accessibility
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/AccessibleParaManager.hxx b/editeng/inc/editeng/AccessibleParaManager.hxx
deleted file mode 100644
index 90bc3d8a111d..000000000000
--- a/editeng/inc/editeng/AccessibleParaManager.hxx
+++ /dev/null
@@ -1,334 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _SVX_ACCESSIBLE_PARA_MANAGER_HXX
-#define _SVX_ACCESSIBLE_PARA_MANAGER_HXX
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "editeng/editengdllapi.h"
-
-class SvxEditSourceAdapter;
-
-namespace accessibility
-{
- class AccessibleEditableTextPara;
-
- /** Helper class for WeakCppRef
-
- This class is returned by WeakChild::get() and contains a hard
- reference and a reference to the c++ object. This combination
- prevents the c++ object from destruction during usage. Hold
- this object only as long as absolutely necessary, prevents
- referenced object from vanishing otherwise
- */
- template < class UnoType, class CppType > class HardCppRef
- {
- public:
-
- typedef UnoType UnoInterfaceType;
- typedef CppType InterfaceType;
-
- HardCppRef( const ::com::sun::star::uno::WeakReference< UnoInterfaceType >& xRef, InterfaceType* rImpl ) :
- mxRef( xRef ),
- mpImpl( rImpl )
- {
- }
-
- /** Query whether the reference is still valid.
-
- Hands off also from the implementation pointer if this
- returns sal_False!
- */
- sal_Bool is() const { return mxRef.is(); }
- InterfaceType* operator->() const { return mpImpl; }
- InterfaceType& operator*() const { return *mpImpl; }
- ::com::sun::star::uno::Reference< UnoInterfaceType >& getRef() { return mxRef; }
- const ::com::sun::star::uno::Reference< UnoInterfaceType >& getRef() const { return mxRef; }
-
- // default copy constructor and assignment will do
- // HardCppRef( const HardCppRef& );
- // HardCppRef& operator= ( const HardCppRef& );
-
- private:
-
- // the interface, hard reference to prevent object from vanishing
- ::com::sun::star::uno::Reference< UnoInterfaceType > mxRef;
-
- // the c++ object, for our internal stuff
- InterfaceType* mpImpl;
-
- };
-
- /** Helper class for weak object references plus implementation
-
- This class combines a weak reference (to facilitate automatic
- object disposal if user drops last reference) and hard
- reference to the c++ class (for fast access and bypassing of
- the UNO interface)
- */
- template < class UnoType, class CppType > class WeakCppRef
- {
- public:
-
- typedef UnoType UnoInterfaceType;
- typedef CppType InterfaceType;
- typedef HardCppRef< UnoInterfaceType, InterfaceType > HardRefType;
-
- WeakCppRef() : maWeakRef(), maUnsafeRef( NULL ) {}
- WeakCppRef( InterfaceType& rImpl ) :
- maWeakRef( ::com::sun::star::uno::Reference< UnoInterfaceType >( rImpl, ::com::sun::star::uno::UNO_QUERY ) ),
- maUnsafeRef( &rImpl )
- {
- }
-
- WeakCppRef( HardRefType& rImpl ) :
- maWeakRef( rImpl.getRef() ),
- maUnsafeRef( rImpl.operator->() )
- {
- }
-
- // get object with c++ object and hard reference (which
- // prevents the c++ object from destruction during use)
- HardRefType get() const { return HardRefType( maWeakRef, maUnsafeRef ); }
-
- // default copy constructor and assignment will do
- // WeakCppRef( const WeakCppRef& );
- // WeakCppRef& operator= ( const WeakCppRef& );
-
- private:
-
- // the interface, hold weakly
- ::com::sun::star::uno::WeakReference< UnoInterfaceType > maWeakRef;
-
- // hard ref to c++ class, _only_ valid if maWeakRef.is() is true
- InterfaceType* maUnsafeRef;
- };
-
-
- /** This class manages the paragraphs of an AccessibleTextHelper
-
- To facilitate automatic deletion of paragraphs no longer used,
- this class uses the WeakCppRef helper to hold the objects weakly.
- */
- class EDITENG_DLLPUBLIC AccessibleParaManager
- {
- public:
- typedef WeakCppRef < ::com::sun::star::accessibility::XAccessible, AccessibleEditableTextPara > WeakPara;
- typedef ::std::pair< WeakPara, ::com::sun::star::awt::Rectangle > WeakChild;
- typedef ::std::pair< ::com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessible > , ::com::sun::star::awt::Rectangle > Child;
- typedef ::std::vector< WeakChild > VectorOfChildren;
- typedef ::std::vector< sal_Int16 > VectorOfStates;
-
- AccessibleParaManager();
- ~AccessibleParaManager();
-
- /** Sets a vector of additional accessible states.
-
- The states are passed to every created child object
- (text paragraph). The state values are defined in
- com::sun::star::accessibility::AccessibleStateType.
- */
- void SetAdditionalChildStates( const VectorOfStates& rChildStates );
-
- /** Set the number of paragraphs
-
- @param nNumPara
- The total number of paragraphs the EditEngine currently
- has (_not_ the number of currently visible children)
- */
- void SetNum( sal_Int32 nNumParas );
-
- /** Get the number of paragraphs currently possible */
- sal_uInt32 GetNum() const;
-
- // iterators
- VectorOfChildren::iterator begin();
- VectorOfChildren::iterator end();
- VectorOfChildren::const_iterator begin() const;
- VectorOfChildren::const_iterator end() const;
-
- // dealing with single paragraphs (release reference, return reference etc)
- void Release( sal_uInt32 nPara );
- /// Set focus to given child
- void SetFocus( sal_Int32 nChild );
-
- void FireEvent( sal_uInt32 nPara,
- const sal_Int16 nEventId,
- const ::com::sun::star::uno::Any& rNewValue = ::com::sun::star::uno::Any(),
- const ::com::sun::star::uno::Any& rOldValue = ::com::sun::star::uno::Any() ) const;
-
- static sal_Bool IsReferencable( WeakPara::HardRefType aChild );
- sal_Bool IsReferencable( sal_uInt32 nChild ) const;
- static void ShutdownPara( const WeakChild& rChild );
-
- Child CreateChild( sal_Int32 nChild,
- const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& xFrontEnd,
- SvxEditSourceAdapter& rEditSource,
- sal_uInt32 nParagraphIndex );
-
- WeakChild GetChild( sal_uInt32 nParagraphIndex ) const;
-
- // forwarder to all paragraphs
- /// Make all children active and editable (or off)
- void SetActive( sal_Bool bActive = sal_True );
- /// Set state of all children
- void SetState( const sal_Int16 nStateId );
- /// Unset state of all children
- void UnSetState( const sal_Int16 nStateId );
- /// Set offset to edit engine for all children
- void SetEEOffset ( const Point& rOffset );
- /// Dispose all living children
- void Dispose ();
-
- // forwarder to given paragraphs
- //------------------------------------------------------------------------
- /** Release the given range of paragraphs
-
- All ranges have the meaning [start,end), similar to STL
-
- @param nStartPara
- Index of paragraph to start with releasing
-
- @param nEndPara
- Index of first paragraph to stop with releasing
- */
- void Release( sal_uInt32 nStartPara, sal_uInt32 nEndPara );
-
- /** Fire event for the given range of paragraphs
-
- All ranges have the meaning [start,end), similar to STL
-
- @param nStartPara
- Index of paragraph to start with event firing
-
- @param nEndPara
- Index of first paragraph to stop with event firing
- */
- void FireEvent( sal_uInt32 nStartPara,
- sal_uInt32 nEndPara,
- const sal_Int16 nEventId,
- const ::com::sun::star::uno::Any& rNewValue = ::com::sun::star::uno::Any(),
- const ::com::sun::star::uno::Any& rOldValue = ::com::sun::star::uno::Any() ) const;
-
- /** Functor adapter for ForEach template
-
- Adapts giving functor such that only the paragraph objects
- are accessed and the fact that our children are held
- weakly is hidden
-
- The functor must provide the following method:
- void operator() ( AccessibleEditablePara& )
-
- */
- template < typename Functor > class WeakChildAdapter : public ::std::unary_function< const WeakChild&, void >
- {
- public:
- WeakChildAdapter( Functor& rFunctor ) : mrFunctor(rFunctor) {}
- void operator()( const WeakChild& rPara )
- {
- // retrieve hard reference from weak one
- WeakPara::HardRefType aHardRef( rPara.first.get() );
-
- if( aHardRef.is() )
- mrFunctor( *aHardRef );
- }
-
- private:
- Functor& mrFunctor;
- };
-
- /** Adapter for unary member functions
-
- Since STL's binder don't work with const& arguments (and
- BOOST's neither, at least on MSVC), have to provide our
- own adapter for unary member functions.
-
- Create with pointer to member function of
- AccessibleEditableTextPara and the corresponding argument.
- */
- template < typename Argument > class MemFunAdapter : public ::std::unary_function< const WeakChild&, void >
- {
- public:
- typedef void (::accessibility::AccessibleEditableTextPara::*FunctionPointer)( Argument );
-
- MemFunAdapter( FunctionPointer aFunPtr, Argument aArg ) : maFunPtr(aFunPtr), maArg(aArg) {}
- void operator()( const WeakChild& rPara )
- {
- // retrieve hard reference from weak one
- WeakPara::HardRefType aHardRef( rPara.first.get() );
-
- if( aHardRef.is() )
- (*aHardRef.*maFunPtr)( maArg );
- }
-
- private:
- FunctionPointer maFunPtr;
- Argument maArg;
- };
-
- /** Generic algorithm on given paragraphs
-
- Convenience method, that already adapts the given functor with WeakChildAdapter
- */
- template < typename Functor > void ForEach( Functor& rFunctor )
- {
- ::std::for_each( begin(), end(), WeakChildAdapter< Functor >(rFunctor) );
- }
-
- private:
- /// Set state on given child
- void SetState( sal_Int32 nChild, const sal_Int16 nStateId );
- /// Unset state on given child
- void UnSetState( sal_Int32 nChild, const sal_Int16 nStateId );
- /// Init child with default state (as stored in previous SetFocus and SetActive calls)
- void InitChild( AccessibleEditableTextPara& rChild,
- SvxEditSourceAdapter& rEditSource,
- sal_Int32 nChild,
- sal_uInt32 nParagraphIndex ) const;
-
- // vector the size of the paragraph number of the underlying EditEngine
- VectorOfChildren maChildren;
-
- /// Additional states that will be set at every created child object.
- VectorOfStates maChildStates;
-
- // cache EE offset for child creation
- Point maEEOffset;
-
- // which child currently has the focus (-1 for none)
- sal_Int32 mnFocusedChild;
-
- // whether children are active and editable
- sal_Bool mbActive;
- };
-
-} // end of namespace accessibility
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/AccessibleSelectionBase.hxx b/editeng/inc/editeng/AccessibleSelectionBase.hxx
deleted file mode 100644
index 7935d5dd1ae2..000000000000
--- a/editeng/inc/editeng/AccessibleSelectionBase.hxx
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _SVX_ACCESSIBILITY_ACCESSIBLE_SELECTION_BASE_HXX
-#define _SVX_ACCESSIBILITY_ACCESSIBLE_SELECTION_BASE_HXX
-
-#include
-#include "editeng/editengdllapi.h"
-
-namespace accessibility
-{
-/** @descr
- This base class provides a base implementation of the
- XAccessibleSelection interface.
- The following methods have to be implemented if this
- class is used:
-
- implGetMutex,
- implGetAccessibleContext,
- implIsSelected,
- implSelect,
-*/
- class EDITENG_DLLPUBLIC AccessibleSelectionBase : public ::comphelper::OCommonAccessibleSelection,
- public ::com::sun::star::accessibility::XAccessibleSelection
- {
- protected:
-
- virtual ::osl::Mutex& implGetMutex() = 0;
-
- public:
-
- // XAccessibleSelection - default implementations
- virtual void SAL_CALL selectAccessibleChild( sal_Int32 nChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL clearAccessibleSelection( ) throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL selectAllAccessibleChildren( ) throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
-
- public:
-
- AccessibleSelectionBase();
- virtual ~AccessibleSelectionBase();
- };
-
-}
-
-#endif // _SVX_ACCESSIBILITY_ACCESSIBLE_SELECTION_BASE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/AccessibleStaticTextBase.hxx b/editeng/inc/editeng/AccessibleStaticTextBase.hxx
deleted file mode 100644
index 8ca75d7a5766..000000000000
--- a/editeng/inc/editeng/AccessibleStaticTextBase.hxx
+++ /dev/null
@@ -1,277 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _SVX_ACCESSILE_STATIC_TEXT_BASE_HXX_
-#define _SVX_ACCESSILE_STATIC_TEXT_BASE_HXX_
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "editeng/editengdllapi.h"
-
-
-class SvxEditSource;
-class SvxEditViewForwarder;
-
-namespace accessibility
-{
-
- class AccessibleStaticTextBase_Impl;
-
- typedef ::cppu::ImplHelper2<
- ::com::sun::star::accessibility::XAccessibleText,
- ::com::sun::star::accessibility::XAccessibleTextAttributes > AccessibleStaticTextBase_BASE;
-
- /** Helper class for objects containing EditEngine/Outliner text
-
- This class implements the XAccessibleText interface for static
- text, somewhat similar to the children of the
- AccessibleTextHelper class. Currently, there are no children,
- i.e. the whole text is presented in one big chunk. This might
- change in the future, if a need for image bullets should
- arise. These, by convention, would be represented as children
- of the text.
-
- You have to implement the SvxEditSource, SvxTextForwarder,
- SvxViewForwarder and SvxEditViewForwarder interfaces in order
- to enable your object to cooperate with this
- class. SvxTextForwarder encapsulates the fact that text
- objects do not necessarily have an EditEngine at their
- disposal, SvxViewForwarder and SvxEditViewForwarder do the
- same for the document and the edit view. The three mentioned
- forwarder objects are not stored by the AccessibleTextHelper,
- but fetched every time from the SvxEditSource. So you are best
- off making your SvxEditSource::Get*Forwarder methods cache the
- current forwarder.
-
- As this class is intended for static (i.e. non-changing) text
- only, no event broadcasting is necessary. You must handle
- visibility by yourself, the bounding boxes returned by
- getCharacterBounds() are relative to your accessibility
- object.
-
- @attention All public non-UNO methods (those are the uppercase
- ones) must not be called with any mutex hold, except when
- calling from the main thread (with holds the solar mutex),
- unless stated otherwise. This is because they themselves might
- need the solar mutex in addition to the object mutex, and the
- ordering of the locking must be: first solar mutex, then
- object mutex. Furthermore, state change events might be fired
- internally.
-
- @derive Use this class as a base for objects containing static
- edit engine text. To avoid overwriting every interface method
- to intercept derived object defunc state, just set NULL as the
- edit source. Every interface method will then properly throw
- an exception.
- */
- class EDITENG_DLLPUBLIC AccessibleStaticTextBase : public AccessibleStaticTextBase_BASE
- {
-
- public:
- /** Create accessible text object for given edit source
-
- @param pEditSource
- The edit source to use. Object ownership is transferred
- from the caller to the callee. The object listens on the
- SvxEditSource for object disposal, so no provisions have
- to be taken if the caller destroys the data (e.g. the
- model) contained in the given SvxEditSource.
-
- */
- SAL_WNODEPRECATED_DECLARATIONS_PUSH
- explicit AccessibleStaticTextBase( ::std::auto_ptr< SvxEditSource > pEditSource );
- SAL_WNODEPRECATED_DECLARATIONS_POP
- virtual ~AccessibleStaticTextBase();
-
- private:
-
- // declared, but not defined
- EDITENG_DLLPRIVATE AccessibleStaticTextBase( const AccessibleStaticTextBase& );
- // declared, but not defined
- EDITENG_DLLPRIVATE AccessibleStaticTextBase& operator= ( const AccessibleStaticTextBase& );
-
- public:
- /** Query the current edit source
-
- @attention This method returns by reference, so you are
- responsible for serialization (typically, you aquired the
- solar mutex when calling this method). Thus, the method
- should only be called from the main office thread.
-
- */
- virtual const SvxEditSource& GetEditSource() const SAL_THROW((::com::sun::star::uno::RuntimeException));
-
- /** Set the current edit source
-
- @attention You are required to have the solar mutex
- locked, when calling this method. Thus, the method should
- only be called from the main office thread.
-
- The EditSource set here is required to broadcast out the
- following hints: EDITSOURCE_HINT_PARASMOVED,
- EDITSOURCE_HINT_SELECTIONCHANGED, TEXT_HINT_MODIFIED,
- TEXT_HINT_PARAINSERTED, TEXT_HINT_PARAREMOVED,
- TEXT_HINT_TEXTHEIGHTCHANGED,
- TEXT_HINT_VIEWSCROLLED. Otherwise, not all state changes
- will get noticed by the accessibility object. Further
- more, when the corresponding core object or the model is
- dying, either the edit source must be set to NULL or it
- has to broadcast a SFX_HINT_DYING hint.
-
- This class does not have a dispose method, since it is not
- a UNO component. Nevertheless, it holds C++ references to
- several core objects, so you should issue a
- SetEditSource(::std::auto_ptr(NULL)) in
- your dispose() method.
-
- @param pEditSource
- The new edit source to set. Object ownership is transferred
- from the caller to the callee.
- */
- SAL_WNODEPRECATED_DECLARATIONS_PUSH
- virtual void SetEditSource( ::std::auto_ptr< SvxEditSource > pEditSource ) SAL_THROW((::com::sun::star::uno::RuntimeException));
- SAL_WNODEPRECATED_DECLARATIONS_POP
-
- /** Set the event source
-
- @attention When setting a reference here, you should call
- Dispose() when you as the owner are disposing, since until
- then this object will hold that reference
-
- @param rInterface
- The interface that should be set as the source for
- accessibility events sent by this object.
- */
- virtual void SetEventSource( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rInterface );
-
- /** Get the event source
-
- @return the interface that is set as the source for
- accessibility events sent by this object.
- */
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > GetEventSource() const;
-
- /** Set offset of EditEngine from parent
-
- @attention You are required to have the solar mutex
- locked, when calling this method. Thus, the method should
- only be called from the main office thread.
-
- If the origin of the underlying EditEngine does
- not correspond to the upper left corner of the object
- using this class, you have to specify the offset.
-
- @param rPoint
- The offset in screen coordinates (i.e. pixel)
- */
- virtual void SetOffset( const Point& rPoint );
-
- /** Query offset of EditEngine from parent
-
- @return the offset in screen coordinates (i.e. pixel)
- */
- virtual Point GetOffset() const;
-
- /** Update the visible children
-
- As this class currently does not represent any content
- using children, this does nothing at the moment.
-
- @attention You are required to have the solar mutex
- locked, when calling this method. Thus, the method should
- only be called from the main office thread.
-
- This method reevaluates the visibility of all
- children. Call this method if your visibility state has
- changed somehow, e.g. if the visible area has changed and
- the AccessibleStaticTextHelper isn't notified
- internally. Normally, there should not be a need to call
- this method.
- */
- virtual void UpdateChildren() SAL_THROW((::com::sun::star::uno::RuntimeException));
-
- /** Drop all references and enter disposed state
-
- This method drops all references to external objects (also
- the event source reference set via SetEventSource()) and
- sets the object into the disposed state (i.e. the methods
- return default values or throw a uno::DisposedException
- exception).
- */
- virtual void Dispose();
-
- // XAccessibleText interface implementation
- virtual sal_Int32 SAL_CALL getCaretPosition() throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL setCaretPosition( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Unicode SAL_CALL getCharacter( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getCharacterAttributes( sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< OUString >& aRequestedAttributes ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::awt::Rectangle SAL_CALL getCharacterBounds( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getCharacterCount() throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getIndexAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException);
- virtual OUString SAL_CALL getSelectedText() throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getSelectionStart() throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getSelectionEnd() throw (::com::sun::star::uno::RuntimeException);
- /// This will only work with a functional SvxEditViewForwarder, i.e. an EditEngine/Outliner in edit mode
- virtual sal_Bool SAL_CALL setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual OUString SAL_CALL getText() throw (::com::sun::star::uno::RuntimeException);
- virtual OUString SAL_CALL getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- /// Does not support AccessibleTextType::SENTENCE (missing feature in EditEngine)
- virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
- /// Does not support AccessibleTextType::SENTENCE (missing feature in EditEngine)
- virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
- /// Does not support AccessibleTextType::SENTENCE (missing feature in EditEngine)
- virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
- /// This will only work with a functional SvxEditViewForwarder, i.e. an EditEngine/Outliner in edit mode
- virtual sal_Bool SAL_CALL copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
-
- // XAccessibleTextAttributes
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getDefaultAttributes( const ::com::sun::star::uno::Sequence< OUString >& RequestedAttributes ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getRunAttributes( sal_Int32 Index, const ::com::sun::star::uno::Sequence< OUString >& RequestedAttributes ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
-
- // child-related methods from XAccessibleContext
- virtual sal_Int32 SAL_CALL getAccessibleChildCount() throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
-
- // child-related methods from XAccessibleComponent
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException);
-
- protected:
- Rectangle GetParagraphBoundingBox() const;
-
- private:
-
- /// @dyn
- SAL_WNODEPRECATED_DECLARATIONS_PUSH
- const std::auto_ptr< AccessibleStaticTextBase_Impl > mpImpl;
- SAL_WNODEPRECATED_DECLARATIONS_POP
-
- };
-
-} // end of namespace accessibility
-
-#endif /* _SVX_ACCESSILE_STATIC_TEXT_BASE_HXX_ */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/AccessibleStringWrap.hxx b/editeng/inc/editeng/AccessibleStringWrap.hxx
deleted file mode 100644
index cae879f95a1a..000000000000
--- a/editeng/inc/editeng/AccessibleStringWrap.hxx
+++ /dev/null
@@ -1,57 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _ACCESSIBLESTRINGWRAP_HXX
-#define _ACCESSIBLESTRINGWRAP_HXX
-
-#include
-#include
-
-#include
-
-class OutputDevice;
-class SvxFont;
-class Rectangle;
-class Point;
-
-//------------------------------------------------------------------------
-//
-// AccessibleStringWrap declaration
-//
-//------------------------------------------------------------------------
-
-class AccessibleStringWrap
-{
-public:
-
- EDITENG_DLLPUBLIC AccessibleStringWrap( OutputDevice& rDev, SvxFont& rFont, const String& rText );
-
- EDITENG_DLLPUBLIC sal_Bool GetCharacterBounds( sal_Int32 nIndex, Rectangle& rRect );
- EDITENG_DLLPUBLIC sal_Int32 GetIndexAtPoint( const Point& rPoint );
-
-private:
-
- OutputDevice& mrDev;
- SvxFont& mrFont;
- String maText;
-};
-
-#endif /* _ACCESSIBLESTRINGWRAP_HXX */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/LatinLookupTree.hxx b/editeng/inc/editeng/LatinLookupTree.hxx
deleted file mode 100644
index 9407780f5b80..000000000000
--- a/editeng/inc/editeng/LatinLookupTree.hxx
+++ /dev/null
@@ -1,74 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef LATINLOOKUPTREE_HXX
-#define LATINLOOKUPTREE_HXX
-
-#include
-#include
-#include
-
-/**
- * LatinLookupTree implements a tree that is optimized for storing and looking
- * up words that mainly consist of roman characters, although any other
- * language can be handled, too.
- */
-class EDITENG_DLLPUBLIC LatinLookupTree : public LookupTree, public TreeHead
-{
-public:
-
- explicit LatinLookupTree(OUString sLanguage);
- ~LatinLookupTree();
-
-
- /* =================== Implemented Virtuals From LookupTree =================== */
- void returnToRoot();
- void gotoNode(OUString sNode);
- void advance(const sal_Unicode a);
- void goBack();
- void insert(OUString sKey, const int nProbability = 1);
- void insert(const int nProbability = 1);
- void remove(OUString sKey);
- OUString suggestAutoCompletion() const;
- void clear();
-
- /* =================== Implemented Virtuals From Node =================== */
- bool isSeparatedlyHandled(const sal_Unicode cKey) const;
- Node*& getChildRef(const sal_Unicode cKey, bool bCreatePlaceholder = false);
- void evaluateSeparateStorage(int& nSuggest, Node*& pSuggest) const;
- void freeMemory();
-
-
- /* =================== Implemented Virtual From TreeHead =================== */
- Node* newNode(Node* pParent, const sal_Unicode cKey, const int nProbability = 0);
-
- /* =================== Member Variables =================== */
- // position of lower case letter 'a' within the selected char encoding.
- static const unsigned int our_nLowerCaseA;
-
- // position of upper case letter 'A' within the selected char encoding.
- static const unsigned int our_nUpperCaseA;
-
-private:
- Node* m_pLeaves[52]; // handles [a-z] and [A-Z]
-};
-
-#endif // LATINLOOKUPTREE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/LatinTreeNode.hxx b/editeng/inc/editeng/LatinTreeNode.hxx
deleted file mode 100644
index 5e406858697c..000000000000
--- a/editeng/inc/editeng/LatinTreeNode.hxx
+++ /dev/null
@@ -1,48 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef LATINTREENODE_HXX
-#define LATINTREENODE_HXX
-
-#include
-
-/**
- * LatinTreeNode represents a node within a LatinLookupTree. As en external
- * caller, you should never have to do anything with this class directly.
- * Use the class LatinLookupTree instead for constructing a new tree.
- */
-class LatinTreeNode : public Node
-{
-public:
- explicit LatinTreeNode(TreeHead *pHead, Node* pParent, const sal_Unicode cKey, const int nProbability = 0);
- ~LatinTreeNode();
-
- /* =================== Implemented Virtuals From Node =================== */
- bool isSeparatedlyHandled(const sal_Unicode cKey) const;
- Node*& getChildRef(const sal_Unicode cKey, bool bCreatePlaceholder = false);
- void evaluateSeparateStorage(int& nSuggest, Node*& pSuggest) const;
- void freeMemory();
-
-private:
- Node* m_pLeaves[26]; // handles [a-z]
-};
-
-#endif // LATINTREENODE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/LookupTree.hxx b/editeng/inc/editeng/LookupTree.hxx
deleted file mode 100644
index 95abcf25d6f8..000000000000
--- a/editeng/inc/editeng/LookupTree.hxx
+++ /dev/null
@@ -1,95 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef LOOKUPTREE_H
-#define LOOKUPTREE_H
-
-#include
-#include
-#include
-
-/** LookupTree is an interface class that allows for unified access to tree
- * structures used for storing dictionnary words as well as their respective
- * probabilities.
- * It allows you to insert or remove words from the tree, navigate threw the
- * tree along its branches and request for a suggestion for autocompletion
- * according to the position within the tree.
- * It also allows you to attribute a specific language to each tree so that
- * it is possible to serve the correct auto completions even within a document
- * that contains content in more than one language.
- */
-class EDITENG_DLLPUBLIC LookupTree
-{
-public:
- explicit inline LookupTree(OUString sLanguage);
- virtual ~LookupTree() {}
-
- inline OUString language() const;
-
- // Resets the current item to root.
- virtual void returnToRoot() = 0;
-
- // Advances from the root position key by key towards the node keyed with
- // the last char of sKey.
- virtual void gotoNode(OUString sNode) = 0;
-
- // Advances from the current position towards the node keyed with cKey.
- virtual void advance(const sal_Unicode cKey) = 0;
-
- // Sets the focus to the parent of the current node. Removes the current
- // node if it is invalid.
- virtual void goBack() = 0;
-
- // Inserts a complete keyword starting from the root node of the tree.
- // Does not change the current position within the tree.
- virtual void insert(OUString sKey, const int nProbability = 1) = 0;
-
- // Inserts a keyword with the given probability at the current position
- // within the tree. Does not change the current position within the tree.
- virtual void insert(const int nProbability = 1) = 0;
-
- // Removes a complete keyword starting from the root node of the tree.
- // Does not change the current position within the tree.
- virtual void remove(OUString sKey) = 0;
-
- // Returns the suggested autocompletion for the current location within
- // the tree.
- virtual OUString suggestAutoCompletion() const = 0;
-
- // Clears the tree and removes any information it contains.
- virtual void clear() = 0;
-
-
-private:
- const OUString m_sLanguage; // language handled by this tree
-};
-
-LookupTree::LookupTree(OUString sLanguage) :
- m_sLanguage( sLanguage )
-{
-}
-
-OUString LookupTree::language() const
-{
- return m_sLanguage;
-}
-
-#endif // LOOKUPTREE_H
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/Node.hxx b/editeng/inc/editeng/Node.hxx
deleted file mode 100644
index 3159e48a99b7..000000000000
--- a/editeng/inc/editeng/Node.hxx
+++ /dev/null
@@ -1,102 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef NODE_HXX
-#define NODE_HXX
-
-#include
-#include
-#include
-
-class TreeHead;
-
-/**
- * Node represents a node within a LookupTree. As en external caller, you
- * should never have to do anything with this class directly.
- * Use any of the classes derived from LookupTree instead for constructing a
- * new tree.
- */
-class Node
-{
-public:
- //explicit Node(TreeHead* const pHead);
- explicit Node(TreeHead* const pHead, Node* const pParent = NULL,
- const sal_Unicode cKey = 0, const int nProbability = 0);
-
- virtual ~Node();
-
- // Removes the specified child from this node. Make sure you may remove it
- // before doing so.
- void removeChild(Node*& pChild);
-
- // Inserts a complete keyword starting from this node of the tree.
- void insertKey(OUString sKey, const int nProbability);
- // Removes a complete keyword starting from this node of the tree.
- void removeKey(OUString sKey);
-
- // Returns the child node keyed with cKey.
- Node* advanceKey(const sal_Unicode cKey);
-
- // Use this to inform a parent about its child having changed.
- // Call this only with nProbability = 0 if you have made sure the node can
- // be removed.
- void childHasChanged(Node* pChild, const int nProbability, bool bAllowRemoval = false);
-
- // Rechose the node that is suggested for auto-completion
- void reevaluateSuggestion(bool& bNodeProbabilityChanged);
-
-
- /* =================== Virtuals =================== */
- virtual bool isSeparatedlyHandled(const sal_Unicode cKey) const = 0;
-
- // Returns a reference to the pointer to the child node for the requested
- // char. Returns NULL if no such child could be found.
- // IMPORTANT: In the latter case, you may NOT overwrite the return value,
- // if you did not set bCreatePlaceholder to true.
- virtual Node*& getChildRef(const sal_Unicode cKey, bool bCreatePlaceholder = false) = 0;
-
- // Sets nSuggest to the highest probability within the subtree and pSuggest
- // to point to the (first) node with this probability.
- virtual void evaluateSeparateStorage(int& nSuggest, Node*& pSuggest) const = 0;
-
- // Removes all child nodes and clears all memory.
- virtual void freeMemory() = 0;
-
- /* =================== Member Variables =================== */
- const sal_Unicode m_cKey; // the char represented by this node
- int m_nKeyProbability; // the number of occurrences of this key
-
- // the highest KeyProbability in the tree sprouting from this node
- int m_nHighestProbaInSubtree;
-
- Node* const m_pParent; // the parent of this node
- Node* m_pSuggest; // next node in chain to the suggested autocompletion
-
- TreeHead* const m_pHead; // head of the tree
-
- unsigned short m_nChildren; // the number of children of the node
- std::list m_lChildren; // all chars not handled by array
-
- // Allows returning a reference to a valid Null pointer. May NOT be overwritten.
- static Node* our_pNodeNullPointer;
-};
-
-#endif // NODE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/SpellPortions.hxx b/editeng/inc/editeng/SpellPortions.hxx
deleted file mode 100644
index f96a14b0f557..000000000000
--- a/editeng/inc/editeng/SpellPortions.hxx
+++ /dev/null
@@ -1,89 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef SVX_SPELL_PORTIONS_HXX
-#define SVX_SPELL_PORTIONS_HXX
-
-#include
-#include
-#include
-#include
-#include
-#include
-
-namespace com{ namespace sun{ namespace star{ namespace linguistic2{
- class XSpellAlternatives;
-}}}}
-
-namespace svx{
-/** contains a portion of text that has the same language attributes applied
- and belongs to the same script type.
- */
-struct SpellPortion
-{
- /** contains the text of the portion.
- */
- OUString sText;
- /** Marks the portion as field, footnote symbol or any other special content that
- should be protected against unintentional deletion.
- */
- bool bIsField;
- /** Marks the portion hidden content that should not be touched by spell checking
- and not be removed like redlines. The creator of the portions has to take care
- for them.
- */
- bool bIsHidden;
- /** contains the language applied to the text. It has to match the script type.
- */
- LanguageType eLanguage;
- /** for wrong words this reference is filled with the error information otherwise
- it's an empty reference
- */
- ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XSpellAlternatives> xAlternatives;
- /** determines whether the error type is a grammar error
- */
- bool bIsGrammarError;
- /** contains the grammar error information
- */
- com::sun::star::linguistic2::SingleProofreadingError aGrammarError;
- /** provides access to the grammar checker interface
- */
- ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XProofreader > xGrammarChecker;
- /** marks portion as to-be-ignored. This is a return parameter.
- */
- /** contains the proposed dialog title if the proof reading component provides one.
- */
- OUString sDialogTitle;
-
- bool bIgnoreThisError;
- SpellPortion() :
- bIsField(false),
- bIsHidden(false),
- eLanguage(LANGUAGE_DONTKNOW),
- bIsGrammarError(false),
- bIgnoreThisError(false)
- {
- aGrammarError.nErrorStart = aGrammarError.nErrorLength = aGrammarError.nErrorType = 0;
- }
-};
-typedef std::vector SpellPortions;
-}//namespace svx
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/TreeHead.hxx b/editeng/inc/editeng/TreeHead.hxx
deleted file mode 100644
index 12c8b33c8d66..000000000000
--- a/editeng/inc/editeng/TreeHead.hxx
+++ /dev/null
@@ -1,49 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef TREEHEAD_HXX
-#define TREEHEAD_HXX
-
-#include
-
-/**
- * Represents the root node of a LookupTree.
- */
-class TreeHead : public Node
-{
-public:
- explicit inline TreeHead();
- virtual ~TreeHead() {}
-
- /* =================== Virtuals =================== */
- virtual Node* newNode(Node* pParent, const sal_Unicode cKey, const int nProbability = 0) = 0;
-
- /* =================== Member Variables =================== */
- Node* m_pCurrent; // current location within the tree
-};
-
-TreeHead::TreeHead() :
- Node( this ),
- m_pCurrent( this )
-{
-}
-
-#endif // TREEHEAD_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/UnoForbiddenCharsTable.hxx b/editeng/inc/editeng/UnoForbiddenCharsTable.hxx
deleted file mode 100644
index 9fea61b9084c..000000000000
--- a/editeng/inc/editeng/UnoForbiddenCharsTable.hxx
+++ /dev/null
@@ -1,59 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _SVX_UNOFORBIDDENCHARSTABLE_HXX_
-#define _SVX_UNOFORBIDDENCHARSTABLE_HXX_
-
-#include
-#include
-#include
-
-#include
-#include "editeng/editengdllapi.h"
-
-class SvxForbiddenCharactersTable;
-
-class EDITENG_DLLPUBLIC SvxUnoForbiddenCharsTable : public cppu::WeakImplHelper2<
- com::sun::star::i18n::XForbiddenCharacters,
- com::sun::star::linguistic2::XSupportedLocales>
-{
-protected:
- /** this virtual function is called if the forbidden characters are changed */
- virtual void onChange();
-
- rtl::Reference mxForbiddenChars;
-
-public:
- SvxUnoForbiddenCharsTable(rtl::Reference xForbiddenChars);
- ~SvxUnoForbiddenCharsTable();
-
- // XForbiddenCharacters
- virtual com::sun::star::i18n::ForbiddenCharacters SAL_CALL getForbiddenCharacters( const com::sun::star::lang::Locale& rLocale ) throw(com::sun::star::container::NoSuchElementException, com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL hasForbiddenCharacters( const com::sun::star::lang::Locale& rLocale ) throw(com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setForbiddenCharacters( const com::sun::star::lang::Locale& rLocale, const com::sun::star::i18n::ForbiddenCharacters& rForbiddenCharacters ) throw(com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removeForbiddenCharacters( const com::sun::star::lang::Locale& rLocale ) throw(com::sun::star::uno::RuntimeException);
-
- // XSupportedLocales
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::lang::Locale > SAL_CALL getLocales( ) throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL hasLocale( const ::com::sun::star::lang::Locale& aLocale ) throw (::com::sun::star::uno::RuntimeException);
-};
-
-#endif // _SVX_UNOFORBIDDENCHARSTABLE_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/acorrcfg.hxx b/editeng/inc/editeng/acorrcfg.hxx
deleted file mode 100644
index 3c3321ccfc2d..000000000000
--- a/editeng/inc/editeng/acorrcfg.hxx
+++ /dev/null
@@ -1,121 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVXACCFG_HXX
-#define _SVXACCFG_HXX
-
-#include "editeng/editengdllapi.h"
-#include
-
-class SvxAutoCorrect;
-class SvxAutoCorrCfg;
-class EDITENG_DLLPUBLIC SvxBaseAutoCorrCfg : public utl::ConfigItem
-{
- SvxAutoCorrCfg& rParent;
- com::sun::star::uno::Sequence GetPropertyNames();
-
-public:
- SvxBaseAutoCorrCfg(SvxAutoCorrCfg& rParent);
- ~SvxBaseAutoCorrCfg();
-
- void Load(sal_Bool bInit);
- virtual void Commit();
- virtual void Notify( const com::sun::star::uno::Sequence& aPropertyNames);
- void SetModified() {ConfigItem::SetModified();}
-};
-
-class EDITENG_DLLPUBLIC SvxSwAutoCorrCfg : public utl::ConfigItem
-{
- SvxAutoCorrCfg& rParent;
- com::sun::star::uno::Sequence GetPropertyNames();
-
-public:
- SvxSwAutoCorrCfg(SvxAutoCorrCfg& rParent);
- ~SvxSwAutoCorrCfg();
-
- void Load(sal_Bool bInit);
- virtual void Commit();
- virtual void Notify( const com::sun::star::uno::Sequence& aPropertyNames);
- void SetModified() {ConfigItem::SetModified();}
-};
-/*--------------------------------------------------------------------
- Description: Configuration for Auto Correction
- --------------------------------------------------------------------*/
-class EDITENG_DLLPUBLIC SvxAutoCorrCfg
-{
- friend class SvxBaseAutoCorrCfg;
- friend class SvxSwAutoCorrCfg;
-
- SvxAutoCorrect* pAutoCorrect;
-
- SvxBaseAutoCorrCfg aBaseConfig;
- SvxSwAutoCorrCfg aSwConfig;
-
- // Flags for Autotext:
- sal_Bool bFileRel;
- sal_Bool bNetRel;
- // Help tip for Autotext as you type
- sal_Bool bAutoTextTip;
- sal_Bool bAutoTextPreview;
- sal_Bool bAutoFmtByInput;
- sal_Bool bSearchInAllCategories;
-
-public:
- void SetModified()
- {
- aBaseConfig.SetModified();
- aSwConfig.SetModified();
- }
- void Commit()
- {
- aBaseConfig.Commit();
- aSwConfig.Commit();
- }
-
- SvxAutoCorrect* GetAutoCorrect() { return pAutoCorrect; }
- const SvxAutoCorrect* GetAutoCorrect() const { return pAutoCorrect; }
- // the pointer is transferred to the possession of the ConfigItems!
- void SetAutoCorrect( SvxAutoCorrect* );
-
- sal_Bool IsAutoFmtByInput() const { return bAutoFmtByInput; }
- void SetAutoFmtByInput( sal_Bool bSet ) { bAutoFmtByInput = bSet;aSwConfig.SetModified();}
-
- sal_Bool IsSaveRelFile() const { return bFileRel; }
- void SetSaveRelFile( sal_Bool bSet ) { bFileRel = bSet; aSwConfig.SetModified(); }
-
- sal_Bool IsSaveRelNet() const { return bNetRel; }
- void SetSaveRelNet( sal_Bool bSet ) { bNetRel = bSet; aSwConfig.SetModified();}
-
- sal_Bool IsAutoTextPreview() const {return bAutoTextPreview;}
- void SetAutoTextPreview(sal_Bool bSet) {bAutoTextPreview = bSet; aSwConfig.SetModified();}
-
- sal_Bool IsAutoTextTip() const { return bAutoTextTip; }
- void SetAutoTextTip(sal_Bool bSet ) { bAutoTextTip = bSet;aSwConfig.SetModified();}
-
- sal_Bool IsSearchInAllCategories() const { return bSearchInAllCategories;}
- void SetSearchInAllCategories(sal_Bool bSet ) { bSearchInAllCategories = bSet; aSwConfig.SetModified(); }
-
- SvxAutoCorrCfg();
- virtual ~SvxAutoCorrCfg();
- static SvxAutoCorrCfg& Get();
-};
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/adjustitem.hxx b/editeng/inc/editeng/adjustitem.hxx
deleted file mode 100644
index e19907cd1737..000000000000
--- a/editeng/inc/editeng/adjustitem.hxx
+++ /dev/null
@@ -1,130 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_ADJITEM_HXX
-#define _SVX_ADJITEM_HXX
-
-#include
-#include
-#include
-#include
-
-class SvXMLUnitConverter;
-
-// class SvxAdjustItem ---------------------------------------------------
-
-/*
-[Description]
-This item describes the row orientation.
-*/
-#define ADJUST_LASTBLOCK_VERSION ((sal_uInt16)0x0001)
-
-class EDITENG_DLLPUBLIC SvxAdjustItem : public SfxEnumItemInterface
-{
- sal_Bool bLeft : 1;
- sal_Bool bRight : 1;
- sal_Bool bCenter : 1;
- sal_Bool bBlock : 1;
-
- // only activ when bBlock
- sal_Bool bOneBlock : 1;
- sal_Bool bLastCenter : 1;
- sal_Bool bLastBlock : 1;
-
- friend SvStream& operator<<( SvStream&, SvxAdjustItem& ); //$ ostream
-public:
- TYPEINFO();
-
- SvxAdjustItem( const SvxAdjust eAdjst /*= SVX_ADJUST_LEFT*/,
- const sal_uInt16 nId );
-
- // "pure virtual Methods" from SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
-
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
- virtual sal_uInt16 GetValueCount() const;
- virtual OUString GetValueTextByPos( sal_uInt16 nPos ) const;
- virtual sal_uInt16 GetEnumValue() const;
- virtual void SetEnumValue( sal_uInt16 nNewVal );
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
- virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
-
- inline void SetOneWord( const SvxAdjust eType )
- {
- bOneBlock = eType == SVX_ADJUST_BLOCK;
- }
-
- inline void SetLastBlock( const SvxAdjust eType )
- {
- bLastBlock = eType == SVX_ADJUST_BLOCK;
- bLastCenter = eType == SVX_ADJUST_CENTER;
- }
-
- inline void SetAdjust( const SvxAdjust eType )
- {
- bLeft = eType == SVX_ADJUST_LEFT;
- bRight = eType == SVX_ADJUST_RIGHT;
- bCenter = eType == SVX_ADJUST_CENTER;
- bBlock = eType == SVX_ADJUST_BLOCK;
- }
-
- inline SvxAdjust GetLastBlock() const
- {
- SvxAdjust eRet = SVX_ADJUST_LEFT;
-
- if ( bLastBlock )
- eRet = SVX_ADJUST_BLOCK;
- else if( bLastCenter )
- eRet = SVX_ADJUST_CENTER;
- return eRet;
- }
-
- inline SvxAdjust GetOneWord() const
- {
- SvxAdjust eRet = SVX_ADJUST_LEFT;
-
- if ( bBlock && bOneBlock )
- eRet = SVX_ADJUST_BLOCK;
- return eRet;
- }
-
- inline SvxAdjust GetAdjust() const
- {
- SvxAdjust eRet = SVX_ADJUST_LEFT;
-
- if ( bRight )
- eRet = SVX_ADJUST_RIGHT;
- else if ( bCenter )
- eRet = SVX_ADJUST_CENTER;
- else if ( bBlock )
- eRet = SVX_ADJUST_BLOCK;
- return eRet;
- }
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/autokernitem.hxx b/editeng/inc/editeng/autokernitem.hxx
deleted file mode 100644
index 6d849dc39d23..000000000000
--- a/editeng/inc/editeng/autokernitem.hxx
+++ /dev/null
@@ -1,61 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_AKRNITEM_HXX
-#define _SVX_AKRNITEM_HXX
-
-#include
-#include
-
-class SvXMLUnitConverter;
-
-// class SvxAutoKernItem -------------------------------------------------
-
-/*
- [Description]
- Attribute for Pair-Kerning.
-*/
-
-class EDITENG_DLLPUBLIC SvxAutoKernItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxAutoKernItem( const sal_Bool bAutoKern /*= sal_False*/,
- const sal_uInt16 nId );
-
- // "pure virtual Methods" from SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
-
- inline SvxAutoKernItem& operator=(const SvxAutoKernItem& rAutoKern)
- {
- SetValue( rAutoKern.GetValue() );
- return *this;
- }
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/blinkitem.hxx b/editeng/inc/editeng/blinkitem.hxx
deleted file mode 100644
index 0d495e6e100e..000000000000
--- a/editeng/inc/editeng/blinkitem.hxx
+++ /dev/null
@@ -1,59 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_BLNKITEM_HXX
-#define _SVX_BLNKITEM_HXX
-
-#include
-#include
-#include
-
-class SvXMLUnitConverter;
-
-// class SvxBlinkItem -------------------------------------------------
-
-/*
- [Description]
- This item describes, whether to flash.
-*/
-
-class EDITENG_DLLPUBLIC SvxBlinkItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxBlinkItem( const sal_Bool bBlink /*= sal_False*/, const sal_uInt16 nId );
-
- // "pure virtual Methods" from SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
-
- inline SvxBlinkItem& operator=(const SvxBlinkItem& rBlink) {
- SetValue(rBlink.GetValue());
- return *this;
- }
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/borderline.hxx b/editeng/inc/editeng/borderline.hxx
deleted file mode 100644
index 067e216aaa9a..000000000000
--- a/editeng/inc/editeng/borderline.hxx
+++ /dev/null
@@ -1,169 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef SVX_BORDERLINE_HXX
-#define SVX_BORDERLINE_HXX
-
-#include
-
-#include
-#include
-#include
-#include
-
-// Line defaults in twips (former Writer defaults):
-
-#define DEF_LINE_WIDTH_0 1
-#define DEF_LINE_WIDTH_1 20
-#define DEF_LINE_WIDTH_2 50
-#define DEF_LINE_WIDTH_3 80
-#define DEF_LINE_WIDTH_4 100
-#define DEF_LINE_WIDTH_5 10
-
-// ============================================================================
-
-namespace editeng {
-
- // values from ::com::sun::star::table::BorderLineStyle
- typedef sal_Int16 SvxBorderStyle;
-
- // convert border style between Word formats and LO
- SvxBorderStyle EDITENG_DLLPUBLIC ConvertBorderStyleFromWord(int);
- /// convert border width in twips between Word formats and LO
- double EDITENG_DLLPUBLIC ConvertBorderWidthToWord(SvxBorderStyle, double);
- double EDITENG_DLLPUBLIC ConvertBorderWidthFromWord(SvxBorderStyle,
- double, int);
-
- class EDITENG_DLLPUBLIC SvxBorderLine
- {
- protected:
- Color aColor;
-
- long m_nWidth;
- bool m_bMirrorWidths;
- BorderWidthImpl m_aWidthImpl;
- long m_nMult;
- long m_nDiv;
-
- SvxBorderStyle m_nStyle;
- sal_uInt16 nOutWidth;
- sal_uInt16 nInWidth;
- sal_uInt16 nDistance;
-
- bool m_bUseLeftTop;
- Color (*m_pColorOutFn)( Color );
- Color (*m_pColorInFn)( Color );
- Color (*m_pColorGapFn)( Color );
-
- public:
- SvxBorderLine( const Color *pCol = 0,
- long nWidth = 0, SvxBorderStyle nStyle =
- ::com::sun::star::table::BorderLineStyle::SOLID,
- bool bUseLeftTop = false,
- Color (*pColorOutFn)( Color ) = &darkColor,
- Color (*pColorInFn)( Color ) = &darkColor,
- Color (*pColorGapFn)( Color ) = NULL );
- SvxBorderLine( const SvxBorderLine& r );
-
- SvxBorderLine& operator=( const SvxBorderLine& r );
-
- const Color& GetColor() const { return aColor; }
- Color GetColorOut( bool bLeftOrTop = true ) const;
- Color GetColorIn( bool bLeftOrTop = true ) const;
- bool HasGapColor() const { return m_pColorGapFn != NULL; }
- Color GetColorGap() const;
-
- void SetWidth( long nWidth = 0 ) { m_nWidth = nWidth; }
- /** Guess the style and width from the three lines widths values.
-
- When the value of nStyle is SvxBorderLine::DOUBLE, the style set will be guessed
- using the three values to match the best possible style among the following:
- - SvxBorderLine::DOUBLE
- - SvxBorderLine::THINTHICK_SMALLGAP
- - SvxBorderLine::THINTHICK_MEDIUMGAP
- - SvxBorderLine::THINTHICK_LARGEGAP
- - SvxBorderLine::THICKTHIN_SMALLGAP
- - SvxBorderLine::THICKTHIN_MEDIUMGAP
- - SvxBorderLine::THICKTHIN_LARGEGAP
-
- If no styles matches the width, then the width is set to 0.
-
- There is one known case that could fit several styles: \a nIn = \a nDist = 0.75 pt,
- \a nOut = 1.5 pt. This case fits SvxBorderLine::THINTHICK_SMALLGAP and
- SvxBorderLine::THINTHICK_MEDIUMGAP with a 1.5 pt width and
- SvxBorderLine::THINTHICK_LARGEGAP with a 0.75 pt width. The same case happens
- also for thick-thin styles.
-
- \param nStyle the border style used to guess the width.
- \param nIn the width of the inner line in 1th pt
- \param nOut the width of the outer line in 1th pt
- \param nDist the width of the gap between the lines in 1th pt
- */
- void GuessLinesWidths( SvxBorderStyle nStyle, sal_uInt16 nOut, sal_uInt16 nIn = 0, sal_uInt16 nDist = 0 );
-
- // TODO Hacky method to mirror lines in only a few cases
- void SetMirrorWidths( bool bMirror = true ) { m_bMirrorWidths = bMirror; }
- long GetWidth( ) const { return m_nWidth; }
- sal_uInt16 GetOutWidth() const;
- sal_uInt16 GetInWidth() const;
- sal_uInt16 GetDistance() const;
-
- SvxBorderStyle GetBorderLineStyle() const { return m_nStyle; }
-
- void SetColor( const Color &rColor ) { aColor = rColor; }
- void SetColorOutFn( Color (*pColorOutFn)( Color ) ) { m_pColorOutFn = pColorOutFn; }
- void SetColorInFn( Color (*pColorInFn)( Color ) ) { m_pColorInFn = pColorInFn; }
- void SetColorGapFn( Color (*pColorGapFn)( Color ) ) { m_pColorGapFn = pColorGapFn; }
- void SetUseLeftTop( bool bUseLeftTop ) { m_bUseLeftTop = bUseLeftTop; }
- void SetBorderLineStyle( SvxBorderStyle nNew );
- void ScaleMetrics( long nMult, long nDiv );
-
- sal_Bool operator==( const SvxBorderLine &rCmp ) const;
-
- String GetValueString( SfxMapUnit eSrcUnit, SfxMapUnit eDestUnit,
- const IntlWrapper* pIntl,
- sal_Bool bMetricStr = sal_False ) const;
-
- bool HasPriority( const SvxBorderLine& rOtherLine ) const;
-
- bool isEmpty() const {
- return m_aWidthImpl.IsEmpty()
- || m_nStyle == ::com::sun::star::table::BorderLineStyle::NONE
- || m_nWidth == 0;
- }
- bool isDouble() const { return m_aWidthImpl.IsDouble(); }
- sal_uInt16 GetScaledWidth() const { return GetOutWidth() + GetInWidth() + GetDistance(); }
-
- static Color darkColor( Color aMain );
- static Color lightColor( Color aMain );
-
- static Color threeDLightColor( Color aMain );
- static Color threeDMediumColor( Color aMain );
- static Color threeDDarkColor( Color aMain );
-
- static BorderWidthImpl getWidthImpl( SvxBorderStyle nStyle );
- };
-
-// ============================================================================
-
-} // namespace editeng
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/boxitem.hxx b/editeng/inc/editeng/boxitem.hxx
deleted file mode 100644
index 256663c961e9..000000000000
--- a/editeng/inc/editeng/boxitem.hxx
+++ /dev/null
@@ -1,226 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_BOXITEM_HXX
-#define _SVX_BOXITEM_HXX
-
-#include
-#include
-#include
-#include
-
-
-// class SvxBoxItem ------------------------------------------------------
-
-/* [Description]
-
- This item describes a border attribute
- (all four edges and the inward distance)
-*/
-
-#define BOX_LINE_TOP ((sal_uInt16)0)
-#define BOX_LINE_BOTTOM ((sal_uInt16)1)
-#define BOX_LINE_LEFT ((sal_uInt16)2)
-#define BOX_LINE_RIGHT ((sal_uInt16)3)
-
-/**
-This version causes SvxBoxItem to store the 4 cell spacing distances separately
-when serializing to stream.
-*/
-#define BOX_4DISTS_VERSION ((sal_uInt16)1)
-/**
-This version causes SvxBoxItem to store the styles for its border lines when
-serializing to stream.
-*/
-#define BOX_BORDER_STYLE_VERSION ((sal_uInt16)2)
-
-class EDITENG_DLLPUBLIC SvxBoxItem : public SfxPoolItem
-{
- editeng::SvxBorderLine *pTop,
- *pBottom,
- *pLeft,
- *pRight;
- sal_uInt16 nTopDist,
- nBottomDist,
- nLeftDist,
- nRightDist;
-
-public:
- TYPEINFO();
-
- explicit SvxBoxItem( const sal_uInt16 nId );
- SvxBoxItem( const SvxBoxItem &rCpy );
- ~SvxBoxItem();
- SvxBoxItem &operator=( const SvxBoxItem& rBox );
-
- // "pure virtual Methods" from SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
- virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
-
- virtual bool ScaleMetrics( long nMult, long nDiv );
- virtual bool HasMetrics() const;
-
- const editeng::SvxBorderLine* GetTop() const { return pTop; }
- const editeng::SvxBorderLine* GetBottom() const { return pBottom; }
- const editeng::SvxBorderLine* GetLeft() const { return pLeft; }
- const editeng::SvxBorderLine* GetRight() const { return pRight; }
-
- const editeng::SvxBorderLine* GetLine( sal_uInt16 nLine ) const;
-
- //The Pointers are being copied!
- void SetLine( const editeng::SvxBorderLine* pNew, sal_uInt16 nLine );
-
- sal_uInt16 GetDistance( sal_uInt16 nLine ) const;
- sal_uInt16 GetDistance() const;
-
- void SetDistance( sal_uInt16 nNew, sal_uInt16 nLine );
- inline void SetDistance( sal_uInt16 nNew );
-
- // Line width plus Space plus inward distance
- //bIgnoreLine = TRUE -> Also return distance, when no Line is set
- sal_uInt16 CalcLineSpace( sal_uInt16 nLine, sal_Bool bIgnoreLine = sal_False ) const;
- static com::sun::star::table::BorderLine2 SvxLineToLine( const editeng::SvxBorderLine* pLine, sal_Bool bConvert );
- static sal_Bool LineToSvxLine(const ::com::sun::star::table::BorderLine& rLine, editeng::SvxBorderLine& rSvxLine, sal_Bool bConvert);
- static sal_Bool LineToSvxLine(const ::com::sun::star::table::BorderLine2& rLine, editeng::SvxBorderLine& rSvxLine, sal_Bool bConvert);
-};
-
-inline void SvxBoxItem::SetDistance( sal_uInt16 nNew )
-{
- nTopDist = nBottomDist = nLeftDist = nRightDist = nNew;
-}
-
-// class SvxBoxInfoItem --------------------------------------------------
-
-/* [Description]
-
- Another item for the border. This item has only limited functionality.
- On one hand, the general Dialog is told by the item which options it
- should offer. On the other hand, this attribute may be used to
- transported the borderline for the inner horizontal and vertical lines.
-*/
-
-#define BOXINFO_LINE_HORI ((sal_uInt16)0)
-#define BOXINFO_LINE_VERT ((sal_uInt16)1)
-
-#define VALID_TOP 0x01
-#define VALID_BOTTOM 0x02
-#define VALID_LEFT 0x04
-#define VALID_RIGHT 0x08
-#define VALID_HORI 0x10
-#define VALID_VERT 0x20
-#define VALID_DISTANCE 0x40
-#define VALID_DISABLE 0x80
-
-class EDITENG_DLLPUBLIC SvxBoxInfoItem : public SfxPoolItem
-{
- editeng::SvxBorderLine* pHori; //inner horizontal Line
- editeng::SvxBorderLine* pVert; //inner vertical Line
-
- bool mbEnableHor; /// true = Enable inner horizontal line.
- bool mbEnableVer; /// true = Enable inner vertical line.
-
- /*
- Currently only for StarWriter: distance inward from SvxBoxItem. If the
- distance is requested, then the field for the distance from the dialog be
- activated. nDefDist is regarded as a default value. If any line is
- turned on or will be turned on it must this distance be set to default.
- bMinDist indicates whether the user can go below this value or not.
- With NDIST is the current distance from the app transported back and
- forth to the dialogue.
- */
-
- sal_Bool bDist :1; // TRUE, Unlock Distance.
- sal_Bool bMinDist :1; // TRUE, Going below minimum Distance is prohibited
-
- sal_uInt8 nValidFlags; // 0000 0000
- // ³³³³ ³³³ÀÄ VALID_TOP
- // ³³³³ ³³ÀÄÄ VALID_BOTTOM
- // ³³³³ ³ÀÄÄÄ VALID_LEFT
- // ³³³³ ÀÄÄÄÄ VALID_RIGHT
- // ³³³ÀÄÄÄÄÄÄ VALID_HORI
- // ³³ÀÄÄÄÄÄÄÄ VALID_VERT
- // ³ÀÄÄÄÄÄÄÄÄ VALID_DIST
- // ÀÄÄÄÄÄÄÄÄÄ VALID_DISABLE
-
- sal_uInt16 nDefDist; // The default or minimum distance.
-
-public:
- TYPEINFO();
-
- explicit SvxBoxInfoItem( const sal_uInt16 nId );
- SvxBoxInfoItem( const SvxBoxInfoItem &rCpy );
- ~SvxBoxInfoItem();
- SvxBoxInfoItem &operator=( const SvxBoxInfoItem &rCpy );
-
- // "pure virtual Methods" from SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
- virtual bool ScaleMetrics( long nMult, long nDiv );
- virtual bool HasMetrics() const;
-
- const editeng::SvxBorderLine* GetHori() const { return pHori; }
- const editeng::SvxBorderLine* GetVert() const { return pVert; }
-
- //The Pointers are being copied!
- void SetLine( const editeng::SvxBorderLine* pNew, sal_uInt16 nLine );
-
- sal_Bool IsTable() const { return mbEnableHor && mbEnableVer; }
- void SetTable( sal_Bool bNew ) { mbEnableHor = mbEnableVer = bNew; }
-
- inline bool IsHorEnabled() const { return mbEnableHor; }
- inline void EnableHor( bool bEnable ) { mbEnableHor = bEnable; }
- inline bool IsVerEnabled() const { return mbEnableVer; }
- inline void EnableVer( bool bEnable ) { mbEnableVer = bEnable; }
-
- sal_Bool IsDist() const { return bDist; }
- void SetDist( sal_Bool bNew ) { bDist = bNew; }
- sal_Bool IsMinDist() const { return bMinDist; }
- void SetMinDist( sal_Bool bNew ) { bMinDist = bNew; }
- sal_uInt16 GetDefDist() const { return nDefDist; }
- void SetDefDist( sal_uInt16 nNew ) { nDefDist = nNew; }
-
- sal_Bool IsValid( sal_uInt8 nValid ) const
- { return ( nValidFlags & nValid ) == nValid; }
- void SetValid( sal_uInt8 nValid, sal_Bool bValid = sal_True )
- { bValid ? ( nValidFlags |= nValid )
- : ( nValidFlags &= ~nValid ); }
- void ResetFlags();
-};
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/brushitem.hxx b/editeng/inc/editeng/brushitem.hxx
deleted file mode 100644
index 069a3b7f636a..000000000000
--- a/editeng/inc/editeng/brushitem.hxx
+++ /dev/null
@@ -1,125 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_BRSHITEM_HXX
-#define _SVX_BRSHITEM_HXX
-
-#include
-#include
-#include
-#include
-
-// class SvxBrushItem ----------------------------------------------------
-
-class Graphic;
-class GraphicObject;
-class CntWallpaperItem;
-
-#define BRUSH_GRAPHIC_VERSION ((sal_uInt16)0x0001)
-
-enum SvxGraphicPosition
-{
- GPOS_NONE,
- GPOS_LT, GPOS_MT, GPOS_RT,
- GPOS_LM, GPOS_MM, GPOS_RM,
- GPOS_LB, GPOS_MB, GPOS_RB,
- GPOS_AREA, GPOS_TILED
-};
-
-#define PARA_DEST_PARA 0
-#define PARA_DEST_CHAR 1
-
-class SvxBrushItem_Impl;
-class EDITENG_DLLPUBLIC SvxBrushItem : public SfxPoolItem
-{
- Color aColor;
- SvxBrushItem_Impl* pImpl;
- String* pStrLink;
- String* pStrFilter;
- SvxGraphicPosition eGraphicPos;
- sal_Bool bLoadAgain;
-
- void ApplyGraphicTransparency_Impl();
- DECL_STATIC_LINK( SvxBrushItem, DoneHdl_Impl, void *);
- // wird nur von Create benutzt
- SvxBrushItem( SvStream& rStrm,
- sal_uInt16 nVersion, sal_uInt16 nWhich );
-
-public:
- TYPEINFO();
-
- explicit SvxBrushItem( sal_uInt16 nWhich );
- SvxBrushItem( const Color& rColor, sal_uInt16 nWhich );
-
- SvxBrushItem( const Graphic& rGraphic,
- SvxGraphicPosition ePos, sal_uInt16 nWhich );
- SvxBrushItem( const GraphicObject& rGraphicObj,
- SvxGraphicPosition ePos, sal_uInt16 nWhich );
- SvxBrushItem( const String& rLink, const String& rFilter,
- SvxGraphicPosition ePos, sal_uInt16 nWhich );
- SvxBrushItem( const SvxBrushItem& );
- SvxBrushItem( const CntWallpaperItem&, sal_uInt16 nWhich );
-
- ~SvxBrushItem();
-
-public:
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
-
- virtual int operator==( const SfxPoolItem& ) const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream&, sal_uInt16 nVersion ) const;
- virtual SvStream& Store( SvStream& , sal_uInt16 nItemVersion ) const;
- virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
-
- const Color& GetColor() const { return aColor; }
- Color& GetColor() { return aColor; }
- void SetColor( const Color& rCol) { aColor = rCol; }
-
- void SetDoneLink( const Link& rLink );
-
- SvxGraphicPosition GetGraphicPos() const { return eGraphicPos; }
-
- void PurgeMedium() const;
-
- const Graphic* GetGraphic() const;
- const GraphicObject* GetGraphicObject() const;
- const String* GetGraphicLink() const { return pStrLink; }
- const String* GetGraphicFilter() const { return pStrFilter; }
-
- void SetGraphicPos( SvxGraphicPosition eNew );
- void SetGraphic( const Graphic& rNew );
- void SetGraphicObject( const GraphicObject& rNewObj );
- void SetGraphicLink( const String& rNew );
- void SetGraphicFilter( const String& rNew );
-
- SvxBrushItem& operator=( const SvxBrushItem& rItem);
-
- static SvxGraphicPosition WallpaperStyle2GraphicPos( WallpaperStyle eStyle );
- static WallpaperStyle GraphicPos2WallpaperStyle( SvxGraphicPosition ePos );
-};
-
-#endif // #ifndef _SVX_BRSHITEM_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/bulletitem.hxx b/editeng/inc/editeng/bulletitem.hxx
deleted file mode 100644
index 345cf3ff7639..000000000000
--- a/editeng/inc/editeng/bulletitem.hxx
+++ /dev/null
@@ -1,146 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_BULITEM_HXX
-#define _SVX_BULITEM_HXX
-
-#include "editeng/editengdllapi.h"
-
-
-// define ----------------------------------------------------------------
-
-// Styles
-#define BS_ABC_BIG 0
-#define BS_ABC_SMALL 1
-#define BS_ROMAN_BIG 2
-#define BS_ROMAN_SMALL 3
-#define BS_123 4
-#define BS_NONE 5
-#define BS_BULLET 6
-#define BS_BMP 128
-
-// Justification
-#define BJ_HLEFT 0x01
-#define BJ_HRIGHT 0x02
-#define BJ_HCENTER 0x04
-#define BJ_VTOP 0x08
-#define BJ_VBOTTOM 0x10
-#define BJ_VCENTER 0x20
-
-// Valid-Bits
-// First, only the values that are changed by the dialogue ...
-#define VALID_FONTCOLOR 0x0001
-#define VALID_FONTNAME 0x0002
-#define VALID_SYMBOL 0x0004
-#define VALID_BITMAP 0x0008
-#define VALID_SCALE 0x0010
-#define VALID_START 0x0020
-#define VALID_STYLE 0x0040
-#define VALID_PREVTEXT 0x0080
-#define VALID_FOLLOWTEXT 0x0100
-#include
-#include
-#include
-
-// class SvxBulletItem ---------------------------------------------------
-
-class EDITENG_DLLPUBLIC SvxBulletItem : public SfxPoolItem
-{
- Font aFont;
- GraphicObject* pGraphicObject;
- String aPrevText;
- String aFollowText;
- sal_uInt16 nStart;
- sal_uInt16 nStyle;
- long nWidth;
- sal_uInt16 nScale;
- sal_Unicode cSymbol;
- sal_uInt8 nJustify;
- sal_uInt16 nValidMask; // Only temporary for GetAttribs / setAttribs,
- // because of the large Bullets
-
-#ifdef _SVX_BULITEM_CXX
- void SetDefaultFont_Impl();
- void SetDefaults_Impl();
-#endif
-
-public:
- TYPEINFO();
-
- explicit SvxBulletItem( sal_uInt16 nWhich = 0 );
- explicit SvxBulletItem( SvStream& rStrm, sal_uInt16 nWhich = 0 );
- SvxBulletItem( const SvxBulletItem& );
- ~SvxBulletItem();
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream&, sal_uInt16 nVersion ) const;
- virtual SvStream& Store( SvStream & , sal_uInt16 nItemVersion ) const;
-
- String GetFullText() const;
- sal_Unicode GetSymbol() const { return cSymbol; }
- String GetPrevText() const { return aPrevText; }
- String GetFollowText() const { return aFollowText; }
-
- sal_uInt16 GetStart() const { return nStart; }
- long GetWidth() const { return nWidth; }
- sal_uInt16 GetStyle() const { return nStyle; }
- sal_uInt8 GetJustification() const { return nJustify; }
- Font GetFont() const { return aFont; }
- sal_uInt16 GetScale() const { return nScale; }
-
- const GraphicObject& GetGraphicObject() const;
- void SetGraphicObject( const GraphicObject& rGraphicObject );
-
- void SetSymbol( sal_Unicode c) { cSymbol = c; }
- void SetPrevText( const String& rStr) { aPrevText = rStr;}
- void SetFollowText(const String& rStr) { aFollowText=rStr;}
-
- void SetStart( sal_uInt16 nNew ) { nStart = nNew; }
- void SetWidth( long nNew ) { nWidth = nNew; }
- void SetStyle( sal_uInt16 nNew ) { nStyle = nNew; }
- void SetJustification( sal_uInt8 nNew ) { nJustify = nNew; }
- void SetFont( const Font& rNew) { aFont = rNew; }
- void SetScale( sal_uInt16 nNew ) { nScale = nNew; }
-
- virtual sal_uInt16 GetVersion(sal_uInt16 nFileVersion) const;
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
-
- static void StoreFont( SvStream&, const Font& );
- static Font CreateFont( SvStream&, sal_uInt16 nVer );
-
- sal_uInt16& GetValidMask() { return nValidMask; }
- sal_uInt16 GetValidMask() const { return nValidMask; }
- sal_uInt16 IsValid( sal_uInt16 nFlag ) const { return nValidMask & nFlag; }
- void SetValid( sal_uInt16 nFlag, sal_Bool bValid )
- {
- if ( bValid )
- nValidMask |= nFlag;
- else
- nValidMask &= ~nFlag;
- }
- void CopyValidProperties( const SvxBulletItem& rCopyFrom );
-};
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/charhiddenitem.hxx b/editeng/inc/editeng/charhiddenitem.hxx
deleted file mode 100644
index 651bdc240ef1..000000000000
--- a/editeng/inc/editeng/charhiddenitem.hxx
+++ /dev/null
@@ -1,53 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_CHARHIDDENITEM_HXX
-#define _SVX_CHARHIDDENITEM_HXX
-
-#include
-#include
-#include "editeng/editengdllapi.h"
-
-// class SvxCharHiddenItem -------------------------------------------------
-/* [Description]
-
- This item marks text as hidden
-*/
-
-class EDITENG_DLLPUBLIC SvxCharHiddenItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxCharHiddenItem( const sal_Bool bHidden /*= sal_False*/, const sal_uInt16 nId );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
-
- inline SvxCharHiddenItem& operator=(const SvxCharHiddenItem& rHidden) {
- SetValue(rHidden.GetValue());
- return *this;
- }
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/charreliefitem.hxx b/editeng/inc/editeng/charreliefitem.hxx
deleted file mode 100644
index 5bc6c589d02d..000000000000
--- a/editeng/inc/editeng/charreliefitem.hxx
+++ /dev/null
@@ -1,68 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_CHARRELIEFITEM_HXX
-#define _SVX_CHARRELIEFITEM_HXX
-
-#include
-#include
-#include
-
-// class SvxCharRotateItem ----------------------------------------------
-
-/* [Description]
-
- This item defines a character relief and has currently the values
- emboss, relief.
-*/
-
-class EDITENG_DLLPUBLIC SvxCharReliefItem : public SfxEnumItem
-{
-public:
- TYPEINFO();
-
- SvxCharReliefItem( FontRelief eValue /*= RELIEF_NONE*/,
- const sal_uInt16 nId );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream & rStrm, sal_uInt16 nIVer) const;
- virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
-
- virtual OUString GetValueTextByPos( sal_uInt16 nPos ) const;
- virtual sal_uInt16 GetValueCount() const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText,
- const IntlWrapper * = 0 ) const;
-
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
-
- inline SvxCharReliefItem& operator=( const SvxCharReliefItem& rItem )
- {
- SetValue( rItem.GetValue() );
- return *this;
- }
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/charrotateitem.hxx b/editeng/inc/editeng/charrotateitem.hxx
deleted file mode 100644
index 7845ab69ccd8..000000000000
--- a/editeng/inc/editeng/charrotateitem.hxx
+++ /dev/null
@@ -1,81 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_CHARROTATEITEM_HXX
-#define _SVX_CHARROTATEITEM_HXX
-
-#include
-#include
-
-// class SvxCharRotateItem ----------------------------------------------
-
-/* [Description]
-
- This item defines a character rotation value (0,1 degree). Currently
- character can only be rotated 90,0 and 270,0 degrees.
- The flag FitToLine defines only a UI-Information -
- if true it must also create a SvxCharScaleItem.
-
-*/
-
-class EDITENG_DLLPUBLIC SvxCharRotateItem : public SfxUInt16Item
-{
- sal_Bool bFitToLine;
-public:
- TYPEINFO();
-
- SvxCharRotateItem( sal_uInt16 nValue /*= 0*/,
- sal_Bool bFitIntoLine /*= sal_False*/,
- const sal_uInt16 nId );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream & rStrm, sal_uInt16 nIVer) const;
- virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText,
- const IntlWrapper * = 0 ) const;
-
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
-
- inline SvxCharRotateItem& operator=( const SvxCharRotateItem& rItem )
- {
- SetValue( rItem.GetValue() );
- SetFitToLine( rItem.IsFitToLine() );
- return *this;
- }
-
- virtual int operator==( const SfxPoolItem& ) const;
-
- // our currently only degree values
- void SetTopToBotton() { SetValue( 2700 ); }
- void SetBottomToTop() { SetValue( 900 ); }
- sal_Bool IsTopToBotton() const { return 2700 == GetValue(); }
- sal_Bool IsBottomToTop() const { return 900 == GetValue(); }
-
- sal_Bool IsFitToLine() const { return bFitToLine; }
- void SetFitToLine( sal_Bool b ) { bFitToLine = b; }
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/charscaleitem.hxx b/editeng/inc/editeng/charscaleitem.hxx
deleted file mode 100644
index 7d9b38761852..000000000000
--- a/editeng/inc/editeng/charscaleitem.hxx
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_CHARSCALEITEM_HXX
-#define _SVX_CHARSCALEITEM_HXX
-
-#include
-#include
-
-// class SvxCharScaleItem ----------------------------------------------
-
-/* [Description]
-
- This item defines a character scaling factor as percent value.
- A value of 100 is identical to 100% and means normal width
- A value of 50 is identical to 50% and means 1/2 width.
-
-*/
-
-class EDITENG_DLLPUBLIC SvxCharScaleWidthItem : public SfxUInt16Item
-{
-public:
- TYPEINFO();
-
- SvxCharScaleWidthItem( sal_uInt16 nValue /*= 100*/,
- const sal_uInt16 nId );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store( SvStream& , sal_uInt16 nItemVersion ) const;
- virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText,
- const IntlWrapper * = 0 ) const;
-
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
-
- inline SvxCharScaleWidthItem& operator=(const SvxCharScaleWidthItem& rItem )
- {
- SetValue( rItem.GetValue() );
- return *this;
- }
-
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/charsetcoloritem.hxx b/editeng/inc/editeng/charsetcoloritem.hxx
deleted file mode 100644
index 6fc197fb1394..000000000000
--- a/editeng/inc/editeng/charsetcoloritem.hxx
+++ /dev/null
@@ -1,66 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_CSCOITEM_HXX
-#define _SVX_CSCOITEM_HXX
-
-#include
-#include
-#include
-
-// class SvxCharSetColorItem ---------------------------------------------
-
-/* [Description]
-
- Is only needed internally in the reader of Writer.
-*/
-
-class EDITENG_DLLPUBLIC SvxCharSetColorItem : public SvxColorItem
-{
- rtl_TextEncoding eFrom;
-public:
- TYPEINFO();
-
- explicit SvxCharSetColorItem( const sal_uInt16 nId );
- SvxCharSetColorItem( const Color& aColor, const rtl_TextEncoding eFrom,
- const sal_uInt16 nId );
-
- // "pure virtual Methods" from SfxPoolItem
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
-
- inline rtl_TextEncoding& GetCharSet() { return eFrom; }
- inline rtl_TextEncoding GetCharSet() const { return eFrom; }
-
- inline SvxCharSetColorItem& operator=(const SvxCharSetColorItem& rColor)
- {
- SetValue( rColor.GetValue() );
- eFrom = rColor.GetCharSet();
- return *this;
- }
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/cmapitem.hxx b/editeng/inc/editeng/cmapitem.hxx
deleted file mode 100644
index f7326758befc..000000000000
--- a/editeng/inc/editeng/cmapitem.hxx
+++ /dev/null
@@ -1,76 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_CMAPITEM_HXX
-#define _SVX_CMAPITEM_HXX
-
-#include
-#include
-#include
-
-class SvXMLUnitConverter;
-
-// class SvxCaseMapItem --------------------------------------------------
-
-/* [Description]
-
- This item describe the font type (uppercase, small caps ,...).
-*/
-
-class EDITENG_DLLPUBLIC SvxCaseMapItem : public SfxEnumItem
-{
-public:
- TYPEINFO();
-
- SvxCaseMapItem( const SvxCaseMap eMap /*= SVX_CASEMAP_NOT_MAPPED*/,
- const sal_uInt16 nId );
-
- // "pure virtual Methods" from SfxPoolItem + SfxEnumItem
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
- virtual OUString GetValueTextByPos( sal_uInt16 nPos ) const;
- virtual sal_uInt16 GetValueCount() const;
-
- // MS VC4.0 kommt durcheinander
- void SetValue( sal_uInt16 nNewVal )
- {SfxEnumItem::SetValue(nNewVal); }
-
- inline SvxCaseMapItem& operator=(const SvxCaseMapItem& rMap)
- {
- SetValue( rMap.GetValue() );
- return *this;
- }
-
- // enum cast
- SvxCaseMap GetCaseMap() const
- { return (SvxCaseMap)GetValue(); }
- void SetCaseMap( SvxCaseMap eNew )
- { SetValue( (sal_uInt16)eNew ); }
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/colritem.hxx b/editeng/inc/editeng/colritem.hxx
deleted file mode 100644
index 954fcd3b6ba0..000000000000
--- a/editeng/inc/editeng/colritem.hxx
+++ /dev/null
@@ -1,82 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_COLRITEM_HXX
-#define _SVX_COLRITEM_HXX
-
-#include
-#include
-#include
-
-class SvXMLUnitConverter;
-
-// class SvxColorItem ----------------------------------------------------
-
-/* [Description]
-
- This item describes a color.
-*/
-
-#define VERSION_USEAUTOCOLOR 1
-
-class EDITENG_DLLPUBLIC SvxColorItem : public SfxPoolItem
-{
-private:
- Color mColor;
-
-public:
- TYPEINFO();
-
- explicit SvxColorItem( const sal_uInt16 nId );
- SvxColorItem( const Color& aColor, const sal_uInt16 nId );
- SvxColorItem( SvStream& rStrm, const sal_uInt16 nId );
- SvxColorItem( const SvxColorItem& rCopy );
- ~SvxColorItem();
-
- // "pure virtual Methods" from SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
- virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
-
- inline SvxColorItem& operator=(const SvxColorItem& rColor)
- {
- SetValue( rColor.GetValue() );
- return *this;
- }
-
- const Color& GetValue() const
- {
- return mColor;
- }
- void SetValue( const Color& rNewCol );
-
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/contouritem.hxx b/editeng/inc/editeng/contouritem.hxx
deleted file mode 100644
index 316f21fc774e..000000000000
--- a/editeng/inc/editeng/contouritem.hxx
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef __EDITENG_CONTOUR_ITEM_HXX__
-#define __EDITENG_CONTOUR_ITEM_HXX__
-
-#include
-#include
-
-// class SvxContourItem --------------------------------------------------
-
-/* [Description]
- This item describes, if contour is employed.
-*/
-
-class EDITENG_DLLPUBLIC SvxContourItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxContourItem( const sal_Bool bContoured /*= sal_False*/,
- const sal_uInt16 nId );
-
- // "pure virtual Methods" from SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
-
- inline SvxContourItem& operator=(const SvxContourItem& rCont)
- {
- SetValue(rCont.GetValue());
- return *this;
- }
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/crossedoutitem.hxx b/editeng/inc/editeng/crossedoutitem.hxx
deleted file mode 100644
index 6628609e060e..000000000000
--- a/editeng/inc/editeng/crossedoutitem.hxx
+++ /dev/null
@@ -1,79 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_CRSDITEM_HXX
-#define _SVX_CRSDITEM_HXX
-
-#include
-#include
-#include
-
-class SvXMLUnitConverter;
-
-// class SvxCrossedOutItem -----------------------------------------------
-
-/* [Description]
- This item describes, whether and how it is striked out.
-*/
-
-class EDITENG_DLLPUBLIC SvxCrossedOutItem : public SfxEnumItem
-{
-public:
- TYPEINFO();
-
- SvxCrossedOutItem( const FontStrikeout eSt /*= STRIKEOUT_NONE*/,
- const sal_uInt16 nId );
-
- // "pure virtual Methods" from SfxPoolItem
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
- virtual OUString GetValueTextByPos( sal_uInt16 nPos ) const;
- virtual sal_uInt16 GetValueCount() const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
-
- // MS VC4.0 messes things up
- void SetValue( sal_uInt16 nNewVal )
- {SfxEnumItem::SetValue(nNewVal); }
-
- virtual int HasBoolValue() const;
- virtual sal_Bool GetBoolValue() const;
- virtual void SetBoolValue( sal_Bool bVal );
-
- inline SvxCrossedOutItem& operator=(const SvxCrossedOutItem& rCross)
- {
- SetValue( rCross.GetValue() );
- return *this;
- }
-
- // enum cast
- FontStrikeout GetStrikeout() const
- { return (FontStrikeout)GetValue(); }
- void SetStrikeout( FontStrikeout eNew )
- { SetValue( (sal_uInt16)eNew ); }
-};
-
-#endif // #ifndef _SVX_CRSDITEM_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/editdata.hxx b/editeng/inc/editeng/editdata.hxx
deleted file mode 100644
index 9b6d9e7005c3..000000000000
--- a/editeng/inc/editeng/editdata.hxx
+++ /dev/null
@@ -1,368 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-// MyEDITDATA, wegen exportiertem EditData
-#ifndef _MyEDITDATA_HXX
-#define _MyEDITDATA_HXX
-
-#include
-#include "editeng/editengdllapi.h"
-
-class SfxItemSet;
-class SfxPoolItem;
-class SvParser;
-class SvxFieldItem;
-
-enum EETextFormat { EE_FORMAT_TEXT = 0x20, EE_FORMAT_RTF, EE_FORMAT_BIN = 0x31, EE_FORMAT_HTML, EE_FORMAT_XML };
-enum EEHorizontalTextDirection { EE_HTEXTDIR_DEFAULT, EE_HTEXTDIR_L2R, EE_HTEXTDIR_R2L };
-enum EESelectionMode { EE_SELMODE_STD, EE_SELMODE_TXTONLY, EE_SELMODE_HIDDEN };
- // EE_SELMODE_HIDDEN can be used to completely hide the selection. This is useful e.g. when you want show the selection
- // only as long as your window (which the edit view works on) has the focus
-enum EESpellState { EE_SPELL_OK, EE_SPELL_NOLANGUAGE, EE_SPELL_LANGUAGENOTINSTALLED, EE_SPELL_NOSPELLER, EE_SPELL_ERRORFOUND };
-enum EVAnchorMode {
- ANCHOR_TOP_LEFT, ANCHOR_VCENTER_LEFT, ANCHOR_BOTTOM_LEFT,
- ANCHOR_TOP_HCENTER, ANCHOR_VCENTER_HCENTER, ANCHOR_BOTTOM_HCENTER,
- ANCHOR_TOP_RIGHT, ANCHOR_VCENTER_RIGHT, ANCHOR_BOTTOM_RIGHT };
-
-#define EE_PARA_NOT_FOUND 0xFFFF
-#define EE_PARA_APPEND 0xFFFF
-#define EE_PARA_ALL 0xFFFF
-#define EE_INDEX_NOT_FOUND 0xFFFF
-
-EDITENG_DLLPUBLIC extern const size_t EE_APPEND;
-
-// Error messages for Read / Write Method
-#define EE_READWRITE_OK (SVSTREAM_OK)
-#define EE_READWRITE_WRONGFORMAT (SVSTREAM_ERRBASE_USER+1)
-#define EE_READWRITE_GENERALERROR (SVSTREAM_ERRBASE_USER+2)
-
-#define EDITUNDO_START 100
-#define EDITUNDO_REMOVECHARS 100
-#define EDITUNDO_CONNECTPARAS 101
-#define EDITUNDO_REMOVEFEATURE 102
-#define EDITUNDO_MOVEPARAGRAPHS 103
-#define EDITUNDO_INSERTFEATURE 104
-#define EDITUNDO_SPLITPARA 105
-#define EDITUNDO_INSERTCHARS 106
-#define EDITUNDO_DELCONTENT 107
-#define EDITUNDO_DELETE 108
-#define EDITUNDO_CUT 109
-#define EDITUNDO_PASTE 110
-#define EDITUNDO_INSERT 111
-#define EDITUNDO_SRCHANDREPL 112
-#define EDITUNDO_MOVEPARAS 113
-#define EDITUNDO_PARAATTRIBS 114
-#define EDITUNDO_ATTRIBS 115
-#define EDITUNDO_DRAGANDDROP 116
-#define EDITUNDO_READ 117
-#define EDITUNDO_STYLESHEET 118
-#define EDITUNDO_REPLACEALL 119
-#define EDITUNDO_STRETCH 120
-#define EDITUNDO_RESETATTRIBS 121
-#define EDITUNDO_INDENTBLOCK 122
-#define EDITUNDO_UNINDENTBLOCK 123
-#define EDITUNDO_MARKSELECTION 124
-#define EDITUNDO_TRANSLITERATE 125
-#define EDITUNDO_END 125
-
-#define EDITUNDO_USER 200
-
-class EditView;
-class EditEngine;
-class ImpEditView;
-class ImpEditEngine;
-class EditTextObject;
-class SfxStyleSheet;
-
-#define RGCHK_NONE 0 // No correction of ViusArea when scrolling
-#define RGCHK_NEG 1 // No negative ViusArea when scrolling
-#define RGCHK_PAPERSZ1 2 // VisArea must be within paper width, Text Size
-
-struct EPosition
-{
- sal_uInt16 nPara;
- xub_StrLen nIndex;
-
- EPosition() :
- nPara( EE_PARA_NOT_FOUND ),
- nIndex( EE_INDEX_NOT_FOUND )
- {
- }
-
- EPosition( sal_uInt16 nPara_, xub_StrLen nPos_ ) :
- nPara( nPara_ ),
- nIndex( nPos_ )
- {
- }
-};
-
-struct ESelection
-{
- sal_uInt16 nStartPara;
- xub_StrLen nStartPos;
- sal_uInt16 nEndPara;
- xub_StrLen nEndPos;
-
- ESelection() : nStartPara( 0 ), nStartPos( 0 ), nEndPara( 0 ), nEndPos( 0 ) {}
-
- ESelection( sal_uInt16 nStPara, xub_StrLen nStPos, sal_uInt16 nEPara, xub_StrLen nEPos ) :
- nStartPara( nStPara ),
- nStartPos( nStPos ),
- nEndPara( nEPara ),
- nEndPos( nEPos )
- {
- }
-
- ESelection( sal_uInt16 nPara, xub_StrLen nPos ) :
- nStartPara( nPara ),
- nStartPos( nPos ),
- nEndPara( nPara ),
- nEndPos( nPos )
- {
- }
-
- void Adjust();
- sal_Bool IsEqual( const ESelection& rS ) const;
- sal_Bool IsLess( const ESelection& rS ) const;
- sal_Bool IsGreater( const ESelection& rS ) const;
- sal_Bool IsZero() const;
- sal_Bool HasRange() const;
-};
-
-inline sal_Bool ESelection::HasRange() const
-{
- return ( nStartPara != nEndPara ) || ( nStartPos != nEndPos );
-}
-
-inline sal_Bool ESelection::IsZero() const
-{
- return ( ( nStartPara == 0 ) && ( nStartPos == 0 ) &&
- ( nEndPara == 0 ) && ( nEndPos == 0 ) );
-}
-
-inline sal_Bool ESelection::IsEqual( const ESelection& rS ) const
-{
- return ( ( nStartPara == rS.nStartPara ) && ( nStartPos == rS.nStartPos ) &&
- ( nEndPara == rS.nEndPara ) && ( nEndPos == rS.nEndPos ) );
-}
-
-inline sal_Bool ESelection::IsLess( const ESelection& rS ) const
-{
- // The selection must be adjusted.
- // => Only check if end of 'this' < Start of rS
-
- if ( ( nEndPara < rS.nStartPara ) ||
- ( ( nEndPara == rS.nStartPara ) && ( nEndPos < rS.nStartPos ) && !IsEqual( rS ) ) )
- {
- return sal_True;
- }
- return sal_False;
-}
-
-inline sal_Bool ESelection::IsGreater( const ESelection& rS ) const
-{
- // The selection must be adjusted.
- // => Only check if end of 'this' < Start of rS
-
- if ( ( nStartPara > rS.nEndPara ) ||
- ( ( nStartPara == rS.nEndPara ) && ( nStartPos > rS.nEndPos ) && !IsEqual( rS ) ) )
- {
- return sal_True;
- }
- return sal_False;
-}
-
-inline void ESelection::Adjust()
-{
- sal_Bool bSwap = sal_False;
- if ( nStartPara > nEndPara )
- bSwap = sal_True;
- else if ( ( nStartPara == nEndPara ) && ( nStartPos > nEndPos ) )
- bSwap = sal_True;
-
- if ( bSwap )
- {
- sal_uInt16 nSPar = nStartPara; sal_uInt16 nSPos = nStartPos;
- nStartPara = nEndPara; nStartPos = nEndPos;
- nEndPara = nSPar; nEndPos = nSPos;
- }
-}
-
-struct EDITENG_DLLPUBLIC EFieldInfo
-{
- SvxFieldItem* pFieldItem;
- String aCurrentText;
- EPosition aPosition;
-
- EFieldInfo();
- EFieldInfo( const SvxFieldItem& rFieldItem, sal_uInt16 nPara, sal_uInt16 nPos );
- ~EFieldInfo();
-
- EFieldInfo( const EFieldInfo& );
- EFieldInfo& operator= ( const EFieldInfo& );
-};
-
-// -----------------------------------------------------------------------
-
-enum ImportState {
- RTFIMP_START, RTFIMP_END, // only pParser, nPara, nIndex
- RTFIMP_NEXTTOKEN, RTFIMP_UNKNOWNATTR, // nToken+nTokenValue
- RTFIMP_SETATTR, // pAttrs
- RTFIMP_INSERTTEXT, // aText
- RTFIMP_INSERTPARA, // -
- HTMLIMP_START, HTMLIMP_END, // only pParser, nPara, nIndex
- HTMLIMP_NEXTTOKEN, HTMLIMP_UNKNOWNATTR, // nToken
- HTMLIMP_SETATTR, // pAttrs
- HTMLIMP_INSERTTEXT, // aText
- HTMLIMP_INSERTPARA, HTMLIMP_INSERTFIELD // -
- };
-
-struct ImportInfo
-{
- SvParser* pParser;
- ESelection aSelection;
- ImportState eState;
-
- int nToken;
- short nTokenValue;
-
- String aText;
-
- void* pAttrs; // RTF: SvxRTFItemStackType*, HTML: SfxItemSet*
-
- ImportInfo( ImportState eState, SvParser* pPrsrs, const ESelection& rSel );
- ~ImportInfo();
-};
-
-struct ParagraphInfos
-{
- ParagraphInfos()
- : nParaHeight( 0 )
- , nLines( 0 )
- , nFirstLineStartX( 0 )
- , nFirstLineOffset( 0 )
- , nFirstLineHeight( 0 )
- , nFirstLineTextHeight ( 0 )
- , nFirstLineMaxAscent( 0 )
- , bValid( 0 )
- {}
- sal_uInt16 nParaHeight;
- sal_uInt16 nLines;
-
- sal_uInt16 nFirstLineStartX;
-
- sal_uInt16 nFirstLineOffset;
- sal_uInt16 nFirstLineHeight;
- sal_uInt16 nFirstLineTextHeight;
- sal_uInt16 nFirstLineMaxAscent;
-
- sal_Bool bValid; // A query during formatting is not valid!
-};
-
-struct EECharAttrib
-{
- const SfxPoolItem* pAttr;
-
- sal_uInt16 nPara;
- xub_StrLen nStart;
- xub_StrLen nEnd;
-};
-
-struct MoveParagraphsInfo
-{
- sal_uInt16 nStartPara;
- sal_uInt16 nEndPara;
- sal_uInt16 nDestPara;
-
- MoveParagraphsInfo( sal_uInt16 nS, sal_uInt16 nE, sal_uInt16 nD )
- { nStartPara = nS; nEndPara = nE; nDestPara = nD; }
-};
-
-#define EE_ACTION_PASTE 1
-#define EE_ACTION_DROP 2
-
-struct PasteOrDropInfos
-{
- sal_uInt16 nAction;
- sal_uInt16 nStartPara;
- sal_uInt16 nEndPara;
-
- PasteOrDropInfos() : nAction(0), nStartPara(0xFFFF), nEndPara(0xFFFF) {}
-};
-
-enum EENotifyType
-{
- /// EditEngine text was modified
- EE_NOTIFY_TEXTMODIFIED,
-
- /// A paragraph was inserted into the EditEngine
- EE_NOTIFY_PARAGRAPHINSERTED,
-
- /// A paragraph was removed from the EditEngine
- EE_NOTIFY_PARAGRAPHREMOVED,
-
- /// Multiple paragraphs have been removed from the EditEngine
- EE_NOTIFY_PARAGRAPHSMOVED,
-
- /// The height of at least one paragraph has changed
- EE_NOTIFY_TEXTHEIGHTCHANGED,
-
- /// The view area of the EditEngine scrolled
- EE_NOTIFY_TEXTVIEWSCROLLED,
-
- /// The selection and/or the cursor position has changed
- EE_NOTIFY_TEXTVIEWSELECTIONCHANGED,
-
- /** Denotes the beginning of a collected amount of EditEngine
- notification events. This event itself is not queued, but sent
- immediately
- */
- EE_NOTIFY_BLOCKNOTIFICATION_START,
-
- /** Denotes the end of a collected amount of EditEngine
- notification events. After this event, the queue is empty, and
- a high-level operation such as "insert paragraph" is finished
- */
- EE_NOTIFY_BLOCKNOTIFICATION_END,
-
- /// Denotes the beginning of a high-level action triggered by a key press
- EE_NOTIFY_INPUT_START,
-
- /// Denotes the end of a high-level action triggered by a key press
- EE_NOTIFY_INPUT_END
-};
-
-struct EENotify
-{
- EENotifyType eNotificationType;
- EditEngine* pEditEngine;
- EditView* pEditView;
-
- sal_uInt16 nParagraph; // only valid in PARAGRAPHINSERTED/EE_NOTIFY_PARAGRAPHREMOVED
-
- sal_uInt16 nParam1;
- sal_uInt16 nParam2;
-
- EENotify( EENotifyType eType )
- { eNotificationType = eType; pEditEngine = NULL; pEditView = NULL; nParagraph = EE_PARA_NOT_FOUND; nParam1 = 0; nParam2 = 0; }
-};
-
-#endif // _MyEDITDATA_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/editeng.hxx b/editeng/inc/editeng/editeng.hxx
deleted file mode 100644
index 83ba64342443..000000000000
--- a/editeng/inc/editeng/editeng.hxx
+++ /dev/null
@@ -1,586 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-// MyEDITENG, due to exported EditEng
-#ifndef _MyEDITENG_HXX
-#define _MyEDITENG_HXX
-
-#include
-#include
-#include
-#include
-#include
-
-#include
-#include
-#include
-#include "editeng/editengdllapi.h"
-
-#include // due to typedef TypeId
-
-#include
-
-namespace com { namespace sun { namespace star {
- namespace linguistic2 {
- class XSpellChecker1;
- class XHyphenator;
- }
- namespace datatransfer {
- class XTransferable;
- }
- namespace lang {
- struct Locale;
- }
-}}}
-
-namespace svx {
-struct SpellPortion;
-typedef std::vector SpellPortions;
-}
-
-namespace svl { class IUndoManager; }
-namespace basegfx { class B2DPolyPolygon; }
-
-class ImpEditEngine;
-class EditView;
-class OutputDevice;
-class EditUndo;
-class SvxFont;
-class SfxItemPool;
-class SfxStyleSheet;
-class String;
-class SfxStyleSheetPool;
-class SvxSearchItem;
-class SvxFieldItem;
-class SvxCharSetColorItem;
-class SfxUndoAction;
-class MapMode;
-class Color;
-class Font;
-class KeyEvent;
-class PolyPolygon;
-class Size;
-class Point;
-class Rectangle;
-class SvStream;
-class Link;
-class OutputDevice;
-class Window;
-class SfxPoolItem;
-class SvxNumBulletItem;
-class SvxBulletItem;
-class SvxLRSpaceItem;
-class SvKeyValueIterator;
-class SvxForbiddenCharactersTable;
-class SvxNumberFormat;
-class FontList;
-class SvxFieldData;
-class ContentNode;
-class ParaPortion;
-class EditSelection;
-class EditPaM;
-class EditLine;
-class InternalEditStatus;
-class EditSelectionEngine;
-class EditDoc;
-struct PasteOrDropInfos;
-class Range;
-struct EPaM;
-class DeletedNodeInfo;
-class ParaPortionList;
-
-//////////////////////////////////////////////////////////////////////////////
-
-/** values for GetAttribs
-*/
-const sal_uInt8 EditEngineAttribs_All = 0; /// returns all attributes even when theire not set
-const sal_uInt8 EditEngineAttribs_HardAndPara = 1; /// returns all attributes set on paragraph and on portions
-const sal_uInt8 EditEngineAttribs_OnlyHard = 2; /// returns only attributes hard set on portions
-
-#define GETATTRIBS_STYLESHEET (sal_uInt8)0x01
-#define GETATTRIBS_PARAATTRIBS (sal_uInt8)0x02
-#define GETATTRIBS_CHARATTRIBS (sal_uInt8)0x04
-#define GETATTRIBS_ALL (sal_uInt8)0xFF
-
-class EDITENG_DLLPUBLIC EditEngine
-{
- friend class EditView;
- friend class ImpEditView;
- friend class EditDbg;
- friend class Outliner;
-
-public:
- typedef std::vector ViewsType;
-
-private:
- ImpEditEngine* pImpEditEngine;
-
- EDITENG_DLLPRIVATE EditEngine( const EditEngine& );
- EDITENG_DLLPRIVATE EditEngine& operator=( const EditEngine& );
- EDITENG_DLLPRIVATE sal_uInt8 PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pView, Window* pFrameWin = NULL );
-
- EDITENG_DLLPRIVATE void CursorMoved(ContentNode* pPrevNode);
- EDITENG_DLLPRIVATE void CheckIdleFormatter();
- EDITENG_DLLPRIVATE bool IsIdleFormatterActive() const;
- EDITENG_DLLPRIVATE ParaPortion* FindParaPortion(ContentNode* pNode);
- EDITENG_DLLPRIVATE const ParaPortion* FindParaPortion(ContentNode* pNode) const;
- EDITENG_DLLPRIVATE const ParaPortion* GetPrevVisPortion(const ParaPortion* pCurPortion) const;
-
- EDITENG_DLLPRIVATE com::sun::star::uno::Reference<
- com::sun::star::datatransfer::XTransferable>
- CreateTransferable(const EditSelection& rSelection);
-
- EDITENG_DLLPRIVATE EditSelection InsertText(
- com::sun::star::uno::Reference& rxDataObj,
- const String& rBaseURL, const EditPaM& rPaM, bool bUseSpecial);
-
- EDITENG_DLLPRIVATE EditPaM EndOfWord(
- const EditPaM& rPaM, sal_Int16 nWordType = com::sun::star::i18n::WordType::ANYWORD_IGNOREWHITESPACES);
-
- EDITENG_DLLPRIVATE EditPaM GetPaM(const Point& aDocPos, bool bSmart = true);
-
- EDITENG_DLLPRIVATE EditSelection SelectWord(
- const EditSelection& rCurSelection,
- sal_Int16 nWordType = ::com::sun::star::i18n::WordType::ANYWORD_IGNOREWHITESPACES,
- bool bAcceptStartOfWord = true);
-
- EDITENG_DLLPRIVATE long GetXPos(
- const ParaPortion* pParaPortion, const EditLine* pLine, sal_uInt16 nIndex, bool bPreferPortionStart = false) const;
-
- EDITENG_DLLPRIVATE Range GetLineXPosStartEnd(
- const ParaPortion* pParaPortion, const EditLine* pLine) const;
-
- EDITENG_DLLPRIVATE sal_uInt16 GetOnePixelInRef() const;
- EDITENG_DLLPRIVATE InternalEditStatus& GetInternalEditStatus();
-
- EDITENG_DLLPRIVATE void HandleBeginPasteOrDrop(PasteOrDropInfos& rInfos);
- EDITENG_DLLPRIVATE void HandleEndPasteOrDrop(PasteOrDropInfos& rInfos);
- EDITENG_DLLPRIVATE bool HasText() const;
- EDITENG_DLLPRIVATE const EditSelectionEngine& GetSelectionEngine() const;
- EDITENG_DLLPRIVATE void SetInSelectionMode(bool b);
-
-protected:
-
-
-public:
- EditEngine( SfxItemPool* pItemPool );
- virtual ~EditEngine();
-
- const SfxItemSet& GetEmptyItemSet();
-
- void SetDefTab( sal_uInt16 nDefTab );
-
- void SetRefDevice( OutputDevice* pRefDef );
- OutputDevice* GetRefDevice() const;
-
- void SetRefMapMode( const MapMode& rMapMode );
- MapMode GetRefMapMode();
-
- void SetUpdateMode( sal_Bool bUpdate );
- sal_Bool GetUpdateMode() const;
-
- void SetBackgroundColor( const Color& rColor );
- Color GetBackgroundColor() const;
- Color GetAutoColor() const;
- void EnableAutoColor( sal_Bool b );
- void ForceAutoColor( sal_Bool b );
- sal_Bool IsForceAutoColor() const;
-
- void InsertView(EditView* pEditView, size_t nIndex = EE_APPEND);
- EditView* RemoveView( EditView* pEditView );
- EditView* RemoveView(size_t nIndex = EE_APPEND);
- EditView* GetView(size_t nIndex = 0) const;
- size_t GetViewCount() const;
- sal_Bool HasView( EditView* pView ) const;
- EditView* GetActiveView() const;
- void SetActiveView(EditView* pView);
-
- void SetPaperSize( const Size& rSize );
- const Size& GetPaperSize() const;
-
- void SetVertical( bool bVertical );
- bool IsVertical() const;
-
- void SetFixedCellHeight( sal_Bool bUseFixedCellHeight );
-
- void SetDefaultHorizontalTextDirection( EEHorizontalTextDirection eHTextDir );
- EEHorizontalTextDirection GetDefaultHorizontalTextDirection() const;
-
- sal_uInt16 GetScriptType( const ESelection& rSelection ) const;
- LanguageType GetLanguage(const EditPaM& rPaM) const;
- LanguageType GetLanguage( sal_uInt16 nPara, sal_uInt16 nPos ) const;
-
- void TransliterateText( const ESelection& rSelection, sal_Int32 nTransliterationMode );
- EditSelection TransliterateText( const EditSelection& rSelection, sal_Int32 nTransliterationMode );
-
- void SetAsianCompressionMode( sal_uInt16 nCompression );
-
- void SetKernAsianPunctuation( sal_Bool bEnabled );
-
- void SetAddExtLeading( sal_Bool b );
-
- void SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon );
- void SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon, const basegfx::B2DPolyPolygon* pLinePolyPolygon);
- void ClearPolygon();
-
- const Size& GetMinAutoPaperSize() const;
- void SetMinAutoPaperSize( const Size& rSz );
-
- const Size& GetMaxAutoPaperSize() const;
- void SetMaxAutoPaperSize( const Size& rSz );
-
- OUString GetText( LineEnd eEnd = LINEEND_LF ) const;
- String GetText( const ESelection& rSelection, const LineEnd eEnd = LINEEND_LF ) const;
- sal_uInt32 GetTextLen() const;
- sal_uInt32 GetTextHeight() const;
- sal_uInt32 GetTextHeightNTP() const;
- sal_uInt32 CalcTextWidth();
-
- String GetText( sal_uInt16 nParagraph ) const;
- xub_StrLen GetTextLen( sal_uInt16 nParagraph ) const;
- sal_uInt32 GetTextHeight( sal_uInt16 nParagraph ) const;
-
- sal_uInt16 GetParagraphCount() const;
-
- sal_uInt16 GetLineCount( sal_uInt16 nParagraph ) const;
- xub_StrLen GetLineLen( sal_uInt16 nParagraph, sal_uInt16 nLine ) const;
- void GetLineBoundaries( /*out*/sal_uInt16 &rStart, /*out*/sal_uInt16 &rEnd, sal_uInt16 nParagraph, sal_uInt16 nLine ) const;
- sal_uInt16 GetLineNumberAtIndex( sal_uInt16 nPara, sal_uInt16 nIndex ) const;
- sal_uInt32 GetLineHeight( sal_uInt16 nParagraph, sal_uInt16 nLine = 0 );
- ParagraphInfos GetParagraphInfos( sal_uInt16 nPara );
- sal_uInt16 FindParagraph( long nDocPosY );
- EPosition FindDocPosition( const Point& rDocPos ) const;
- Rectangle GetCharacterBounds( const EPosition& rPos ) const;
-
- String GetWord( sal_uInt16 nPara, xub_StrLen nIndex );
-
- ESelection GetWord( const ESelection& rSelection, sal_uInt16 nWordType ) const;
-
- void Clear();
- void SetText( const OUString& rStr );
-
- EditTextObject* CreateTextObject();
- EditTextObject* CreateTextObject( sal_uInt16 nPara, sal_uInt16 nParas = 1 );
- EditTextObject* CreateTextObject( const ESelection& rESelection );
- void SetText( const EditTextObject& rTextObject );
-
- void RemoveParagraph( sal_uInt16 nPara );
- void InsertParagraph( sal_uInt16 nPara, const EditTextObject& rTxtObj );
- void InsertParagraph( sal_uInt16 nPara, const String& rText);
-
- void SetText( sal_uInt16 nPara, const String& rText);
-
- virtual void SetParaAttribs( sal_uInt16 nPara, const SfxItemSet& rSet );
- virtual const SfxItemSet& GetParaAttribs( sal_uInt16 nPara ) const;
-
- void GetCharAttribs( sal_uInt16 nPara, std::vector& rLst ) const;
-
- SfxItemSet GetAttribs( sal_uInt16 nPara, sal_uInt16 nStart, sal_uInt16 nEnd, sal_uInt8 nFlags = 0xFF ) const;
- SfxItemSet GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib = EditEngineAttribs_All );
-
- sal_Bool HasParaAttrib( sal_uInt16 nPara, sal_uInt16 nWhich ) const;
- const SfxPoolItem& GetParaAttrib( sal_uInt16 nPara, sal_uInt16 nWhich );
-
- Font GetStandardFont( sal_uInt16 nPara );
- SvxFont GetStandardSvxFont( sal_uInt16 nPara );
-
- void RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich );
-
- void ShowParagraph( sal_uInt16 nParagraph, sal_Bool bShow = sal_True );
-
- ::svl::IUndoManager&
- GetUndoManager();
- void UndoActionStart( sal_uInt16 nId );
- void UndoActionStart(sal_uInt16 nId, const ESelection& rSel);
- void UndoActionEnd( sal_uInt16 nId );
- sal_Bool IsInUndo();
-
- void EnableUndo( sal_Bool bEnable );
- sal_Bool IsUndoEnabled();
-
- /** returns the value last used for bTryMerge while calling ImpEditEngine::InsertUndo
- This is currently used in a bad but needed hack to get undo actions merged in the
- OutlineView in impress. Do not use it unless you want to sell your soul too! */
- bool HasTriedMergeOnLastAddUndo() const;
-
- void ClearModifyFlag();
- void SetModified();
- sal_Bool IsModified() const;
-
- void SetModifyHdl( const Link& rLink );
- Link GetModifyHdl() const;
-
- sal_Bool IsInSelectionMode() const;
-
- void StripPortions();
- void GetPortions( sal_uInt16 nPara, std::vector& rList );
-
- long GetFirstLineStartX( sal_uInt16 nParagraph );
- Point GetDocPosTopLeft( sal_uInt16 nParagraph );
- Point GetDocPos( const Point& rPaperPos ) const;
- sal_Bool IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder = 0 );
-
- // StartDocPos corrresponds to VisArea.TopLeft().
- void Draw( OutputDevice* pOutDev, const Rectangle& rOutRect );
- void Draw( OutputDevice* pOutDev, const Rectangle& rOutRect, const Point& rStartDocPos );
- void Draw( OutputDevice* pOutDev, const Rectangle& rOutRect, const Point& rStartDocPos, sal_Bool bClip );
- void Draw( OutputDevice* pOutDev, const Point& rStartPos, short nOrientation = 0 );
-
-// sal_uInt32: Error code of the stream.
- sal_uLong Read( SvStream& rInput, const String& rBaseURL, EETextFormat, SvKeyValueIterator* pHTTPHeaderAttrs = NULL );
- sal_uLong Write( SvStream& rOutput, EETextFormat );
-
- void SetStatusEventHdl( const Link& rLink );
- Link GetStatusEventHdl() const;
-
- void SetNotifyHdl( const Link& rLink );
- Link GetNotifyHdl() const;
-
- void SetImportHdl( const Link& rLink );
- Link GetImportHdl() const;
-
- // Do not evaluate font formatting => For Outliner
- sal_Bool IsFlatMode() const;
- void SetFlatMode( sal_Bool bFlat );
-
- void SetControlWord( sal_uInt32 nWord );
- sal_uInt32 GetControlWord() const;
-
- void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel );
- void QuickRemoveCharAttribs( sal_uInt16 nPara, sal_uInt16 nWhich = 0 );
- void QuickMarkInvalid( const ESelection& rSel );
- void QuickFormatDoc( sal_Bool bFull = sal_False );
- void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel );
- void QuickInsertLineBreak( const ESelection& rSel );
- void QuickInsertText( const String& rText, const ESelection& rSel );
- void QuickDelete( const ESelection& rSel );
- void QuickMarkToBeRepainted( sal_uInt16 nPara );
-
- void SetGlobalCharStretching( sal_uInt16 nX = 100, sal_uInt16 nY = 100 );
- void GetGlobalCharStretching( sal_uInt16& rX, sal_uInt16& rY ) const;
-
- void SetEditTextObjectPool( SfxItemPool* pPool );
- SfxItemPool* GetEditTextObjectPool() const;
-
- void SetStyleSheetPool( SfxStyleSheetPool* pSPool );
- SfxStyleSheetPool* GetStyleSheetPool();
-
- void SetStyleSheet(const EditSelection& aSel, SfxStyleSheet* pStyle);
- void SetStyleSheet( sal_uInt16 nPara, SfxStyleSheet* pStyle );
- const SfxStyleSheet* GetStyleSheet( sal_uInt16 nPara ) const;
- SfxStyleSheet* GetStyleSheet( sal_uInt16 nPara );
-
- void SetWordDelimiters( const String& rDelimiters );
- String GetWordDelimiters() const;
-
- void EraseVirtualDevice();
-
- void SetSpeller( ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XSpellChecker1 > &xSpeller );
- ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XSpellChecker1 >
- GetSpeller();
- void SetHyphenator( ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XHyphenator >& xHyph );
-
- void SetForbiddenCharsTable( rtl::Reference xForbiddenChars );
-
- void SetDefaultLanguage( LanguageType eLang );
- LanguageType GetDefaultLanguage() const;
-
- sal_Bool HasOnlineSpellErrors() const;
- void CompleteOnlineSpelling();
-
- sal_Bool ShouldCreateBigTextObject() const;
-
- // For fast Pre-Test without view:
- EESpellState HasSpellErrors();
- sal_Bool HasText( const SvxSearchItem& rSearchItem );
-
- //initialize sentence spelling
- void StartSpelling(EditView& rEditView, sal_Bool bMultipleDoc);
- //spell and return a sentence
- bool SpellSentence(EditView& rEditView, ::svx::SpellPortions& rToFill, bool bIsGrammarChecking );
- // put spell position to start of current sentence
- void PutSpellingToSentenceStart( EditView& rEditView );
- //applies a changed sentence
- void ApplyChangedSentence(EditView& rEditView, const ::svx::SpellPortions& rNewPortions, bool bRecheck );
-
- // for text conversion (see also HasSpellErrors)
- sal_Bool HasConvertibleTextPortion( LanguageType nLang );
- virtual sal_Bool ConvertNextDocument();
-
- bool UpdateFields();
- bool UpdateFieldsOnly();
- void RemoveFields( sal_Bool bKeepFieldText, TypeId aType = NULL );
-
- sal_uInt16 GetFieldCount( sal_uInt16 nPara ) const;
- EFieldInfo GetFieldInfo( sal_uInt16 nPara, sal_uInt16 nField ) const;
-
- sal_Bool IsRightToLeft( sal_uInt16 nPara ) const;
-
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >
- CreateTransferable( const ESelection& rSelection ) const;
-
- // MT: Can't create new virtual functions like for ParagraphInserted/Deleted, musst be compatible in SRC638, change later...
- void SetBeginMovingParagraphsHdl( const Link& rLink );
- void SetEndMovingParagraphsHdl( const Link& rLink );
- void SetBeginPasteOrDropHdl( const Link& rLink );
- void SetEndPasteOrDropHdl( const Link& rLink );
-
- virtual void PaintingFirstLine( sal_uInt16 nPara, const Point& rStartPos, long nBaseLineY, const Point& rOrigin, short nOrientation, OutputDevice* pOutDev );
- virtual void ParagraphInserted( sal_uInt16 nNewParagraph );
- virtual void ParagraphDeleted( sal_uInt16 nDeletedParagraph );
- virtual void ParagraphConnected( sal_uInt16 nLeftParagraph, sal_uInt16 nRightParagraph );
- virtual void ParaAttribsChanged( sal_uInt16 nParagraph );
- virtual void StyleSheetChanged( SfxStyleSheet* pStyle );
- virtual void ParagraphHeightChanged( sal_uInt16 nPara );
-
- virtual void DrawingText(
- const Point& rStartPos, const String& rText, sal_uInt16 nTextStart, sal_uInt16 nTextLen, const sal_Int32* pDXArray,
- const SvxFont& rFont, sal_uInt16 nPara, xub_StrLen nIndex, sal_uInt8 nRightToLeft,
- const EEngineData::WrongSpellVector* pWrongSpellVector,
- const SvxFieldData* pFieldData,
- bool bEndOfLine,
- bool bEndOfParagraph,
- bool bEndOfBullet,
- const ::com::sun::star::lang::Locale* pLocale,
- const Color& rOverlineColor,
- const Color& rTextLineColor);
-
- virtual void DrawingTab(
- const Point& rStartPos, long nWidth, const String& rChar,
- const SvxFont& rFont, sal_uInt16 nPara, xub_StrLen nIndex, sal_uInt8 nRightToLeft,
- bool bEndOfLine,
- bool bEndOfParagraph,
- const Color& rOverlineColor,
- const Color& rTextLineColor);
- virtual String GetUndoComment( sal_uInt16 nUndoId ) const;
- virtual sal_Bool FormattingParagraph( sal_uInt16 nPara );
- virtual sal_Bool SpellNextDocument();
- virtual void FieldClicked( const SvxFieldItem& rField, sal_uInt16 nPara, xub_StrLen nPos );
- virtual void FieldSelected( const SvxFieldItem& rField, sal_uInt16 nPara, xub_StrLen nPos );
- virtual String CalcFieldValue( const SvxFieldItem& rField, sal_uInt16 nPara, xub_StrLen nPos, Color*& rTxtColor, Color*& rFldColor );
-
- // to be overloaded if access to bullet information needs to be provided
- virtual const SvxNumberFormat * GetNumberFormat( sal_uInt16 nPara ) const;
-
- virtual Rectangle GetBulletArea( sal_uInt16 nPara );
-
- static SfxItemPool* CreatePool( sal_Bool bLoadRefCounts = sal_True );
- static SfxItemPool& GetGlobalItemPool();
- static sal_Bool DoesKeyChangeText( const KeyEvent& rKeyEvent );
- static sal_Bool DoesKeyMoveCursor( const KeyEvent& rKeyEvent );
- static sal_Bool IsSimpleCharInput( const KeyEvent& rKeyEvent );
- static void SetFontInfoInItemSet( SfxItemSet& rItemSet, const Font& rFont );
- static void SetFontInfoInItemSet( SfxItemSet& rItemSet, const SvxFont& rFont );
- static Font CreateFontFromItemSet( const SfxItemSet& rItemSet, sal_uInt16 nScriptType );
- static SvxFont CreateSvxFontFromItemSet( const SfxItemSet& rItemSet );
- static sal_Bool IsPrintable( sal_Unicode c ) { return ( ( c >= 32 ) && ( c != 127 ) ); }
- static sal_Bool HasValidData( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& rTransferable );
-
- /** sets a link that is called at the beginning of a drag operation at an edit view */
- void SetBeginDropHdl( const Link& rLink );
- Link GetBeginDropHdl() const;
-
- /** sets a link that is called at the end of a drag operation at an edit view */
- void SetEndDropHdl( const Link& rLink );
- Link GetEndDropHdl() const;
-
- /// specifies if auto-correction should capitalize the first word or not (default is on)
- void SetFirstWordCapitalization( sal_Bool bCapitalize );
-
- EditDoc& GetEditDoc();
- const EditDoc& GetEditDoc() const;
-
- ParaPortionList& GetParaPortions();
- const ParaPortionList& GetParaPortions() const;
-
- bool IsFormatted() const;
- bool IsImportHandlerSet() const;
- bool IsImportRTFStyleSheetsSet() const;
-
- void CallImportHandler(ImportInfo& rInfo);
-
- void ParaAttribsToCharAttribs(ContentNode* pNode);
-
- EditPaM CreateEditPaM(const EPaM& rEPaM);
- EditPaM ConnectParagraphs(
- ContentNode* pLeft, ContentNode* pRight, bool bBackward = false);
-
- EditPaM InsertField(const EditSelection& rEditSelection, const SvxFieldItem& rFld);
- EditPaM InsertText(const EditSelection& aCurEditSelection, const String& rStr);
- EditSelection InsertText(const EditTextObject& rTextObject, const EditSelection& rSel);
- EditPaM InsertParaBreak(
- const EditSelection& rEditSelection, bool bKeepEndingAttribs = true);
- EditPaM InsertLineBreak(const EditSelection& rEditSelection);
-
- EditPaM CursorLeft(
- const EditPaM& rPaM, sal_uInt16 nCharacterIteratorMode = com::sun::star::i18n::CharacterIteratorMode::SKIPCELL);
- EditPaM CursorRight(
- const EditPaM& rPaM, sal_uInt16 nCharacterIteratorMode = com::sun::star::i18n::CharacterIteratorMode::SKIPCELL);
-
- void SeekCursor(
- ContentNode* pNode, sal_uInt16 nPos, SvxFont& rFont, OutputDevice* pOut = NULL, sal_uInt16 nIgnoreWhich = 0);
-
- EditPaM DeleteSelection(const EditSelection& rSel);
-
- ESelection CreateESelection(const EditSelection& rSel);
- EditSelection CreateSelection(const ESelection& rSel);
-
- const SfxItemSet& GetBaseParaAttribs(sal_uInt16 nPara) const;
- void SetParaAttribsOnly(sal_uInt16 nPara, const SfxItemSet& rSet);
- void SetAttribs(const EditSelection& rSel, const SfxItemSet& rSet, sal_uInt8 nSpecial = 0);
-
- String GetSelected(const EditSelection& rSel, const LineEnd eParaSep = LINEEND_LF) const;
- EditPaM DeleteSelected(const EditSelection& rSel);
-
- sal_uInt16 GetScriptType(const EditSelection& rSel) const;
-
- void RemoveParaPortion(size_t nNode);
-
- void SetCallParaInsertedOrDeleted(bool b);
- bool IsCallParaInsertedOrDeleted() const;
-
- void AppendDeletedNodeInfo(DeletedNodeInfo* pInfo);
- void UpdateSelections();
-
- void InsertContent(ContentNode* pNode, sal_uInt16 nPos);
- EditPaM SplitContent(sal_uInt16 nNode, sal_uInt16 nSepPos);
- EditPaM ConnectContents(sal_uInt16 nLeftNode, bool bBackward);
-
- EditPaM InsertFeature(const EditSelection& rEditSelection, const SfxPoolItem& rItem);
-
- EditSelection MoveParagraphs(const Range& rParagraphs, sal_uInt16 nNewPos, EditView* pCurView);
-
- void RemoveCharAttribs(sal_uInt16 nPara, sal_uInt16 nWhich = 0, bool bRemoveFeatures = false);
- void RemoveCharAttribs(const EditSelection& rSel, bool bRemoveParaAttribs, sal_uInt16 nWhich = 0);
-
- ViewsType& GetEditViews();
- const ViewsType& GetEditViews() const;
-
- void SetUndoMode(bool b);
- void FormatAndUpdate(EditView* pCurView = NULL);
-
- bool Undo(EditView* pView);
- bool Redo(EditView* pView);
-};
-
-#endif // _MyEDITENG_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/editengdllapi.h b/editeng/inc/editeng/editengdllapi.h
deleted file mode 100644
index ce764e81fece..000000000000
--- a/editeng/inc/editeng/editengdllapi.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_EDITENGDLLAPI_H
-#define INCLUDED_EDITENGDLLAPI_H
-
-#include "sal/types.h"
-
-#if defined(EDITENG_DLLIMPLEMENTATION)
-#define EDITENG_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
-#else
-#define EDITENG_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
-#endif
-#define EDITENG_DLLPRIVATE SAL_DLLPRIVATE
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/editerr.hxx b/editeng/inc/editeng/editerr.hxx
deleted file mode 100644
index d262057763e7..000000000000
--- a/editeng/inc/editeng/editerr.hxx
+++ /dev/null
@@ -1,30 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _EDIT_ERR_HRC
-#define _EDIT_ERR_HRC
-
-#include
-
-#define ERRCODE_SVX_LINGU_LANGUAGENOTEXISTS (2UL | ERRCODE_AREA_SVX)
-
-#define ERRCODE_SVX_GRAPHIC_WRONG_FILEFORMAT (8UL | ERRCODE_AREA_SVX | \
- ERRCODE_CLASS_READ )
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/editids.hrc b/editeng/inc/editeng/editids.hrc
deleted file mode 100644
index 7dbaae890a51..000000000000
--- a/editeng/inc/editeng/editids.hrc
+++ /dev/null
@@ -1,236 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _EDIT_SVXIDS_HRC
-#define _EDIT_SVXIDS_HRC
-
-#include
-
-#define SID_ATTR_BRUSH ( SID_SVX_START + 1 )
-#define SID_ATTR_TABSTOP ( SID_SVX_START + 2 )
-#define SID_ATTR_TABSTOP_DEFAULTS ( SID_SVX_START + 3 )
-#define SID_ATTR_TABSTOP_POS ( SID_SVX_START + 4 )
-#define SID_ATTR_TABSTOP_OFFSET ( SID_SVX_START + 5 )
-#define SID_ATTR_CHAR ( SID_SVX_START + 6 )
-#define SID_ATTR_CHAR_FONT ( SID_SVX_START + 7 )
-#define SID_ATTR_CHAR_POSTURE ( SID_SVX_START + 8 )
-#define SID_ATTR_CHAR_WEIGHT ( SID_SVX_START + 9 )
-#define SID_ATTR_CHAR_SHADOWED ( SID_SVX_START + 10 )
-#define SID_ATTR_CHAR_WORDLINEMODE ( SID_SVX_START + 11 )
-#define SID_ATTR_CHAR_CONTOUR ( SID_SVX_START + 12 )
-#define SID_ATTR_CHAR_STRIKEOUT ( SID_SVX_START + 13 )
-#define SID_ATTR_CHAR_UNDERLINE ( SID_SVX_START + 14 )
-#define SID_ATTR_CHAR_FONTHEIGHT ( SID_SVX_START + 15 )
-#define SID_ATTR_CHAR_PROPSIZE ( SID_SVX_START + 16 )
-#define SID_ATTR_CHAR_COLOR ( SID_SVX_START + 17 )
-#define SID_ATTR_CHAR_KERNING ( SID_SVX_START + 18 )
-#define SID_ATTR_CHAR_CASEMAP ( SID_SVX_START + 19 )
-#define SID_ATTR_CHAR_LANGUAGE ( SID_SVX_START + 20 )
-#define SID_ATTR_CHAR_ESCAPEMENT ( SID_SVX_START + 21 )
-#define SID_ATTR_CHAR_FONTLIST ( SID_SVX_START + 22 )
-#define SID_ATTR_BORDER_OUTER ( SID_SVX_START + 24 )
-#define SID_ATTR_BORDER_SHADOW ( SID_SVX_START + 25 )
-#define SID_ATTR_PARA ( SID_SVX_START + 26 )
-#define SID_ATTR_PARA_ADJUST ( SID_SVX_START + 27 )
-#define SID_ATTR_PARA_ADJUST_LEFT ( SID_SVX_START + 28 )
-#define SID_ATTR_PARA_ADJUST_RIGHT ( SID_SVX_START + 29 )
-#define SID_ATTR_PARA_ADJUST_CENTER ( SID_SVX_START + 30 )
-#define SID_ATTR_PARA_ADJUST_BLOCK ( SID_SVX_START + 31 )
-#define SID_ATTR_PARA_ADJUST_BLOCKLINE ( SID_SVX_START + 32 )
-#define SID_ATTR_PARA_LINESPACE ( SID_SVX_START + 33 )
-#define SID_ATTR_PARA_LINESPACE_10 ( SID_SVX_START + 34 )
-#define SID_ATTR_PARA_LINESPACE_15 ( SID_SVX_START + 35 )
-#define SID_ATTR_PARA_LINESPACE_20 ( SID_SVX_START + 36 )
-#define SID_ATTR_PARA_PAGEBREAK ( SID_SVX_START + 37 )
-#define SID_ATTR_PARA_HYPHENZONE ( SID_SVX_START + 38 )
-#define SID_ATTR_PARA_SPLIT ( SID_SVX_START + 39 )
-#define SID_ATTR_PARA_ORPHANS ( SID_SVX_START + 40 )
-#define SID_ATTR_PARA_WIDOWS ( SID_SVX_START + 41 )
-#define SID_ATTR_PARA_ULSPACE ( SID_SVX_START + 42 )
-#define SID_ATTR_PARA_LRSPACE ( SID_SVX_START + 43 )
-#define SID_ATTR_LRSPACE ( SID_SVX_START + 48 )
-#define SID_ATTR_ULSPACE ( SID_SVX_START + 49 )
-#define SID_ATTR_CHAR_MAPTYPE ( SID_SVX_START + 64 )
-#define SID_ATTR_PARA_MODEL ( SID_SVX_START + 65 )
-#define SID_ATTR_PARA_KEEP ( SID_SVX_START + 66 )
-#define SID_ATTR_CHAR_AUTOKERN ( SID_SVX_START + 67 )
-#define SID_ATTR_PARA_BULLET ( SID_SVX_START + 250 )
-#define SID_ATTR_PARA_OUTLLEVEL ( SID_SVX_START + 300 )
-#define SID_FIELD ( SID_SVX_START + 363 )
-#define SID_ATTR_PARA_REGISTER ( SID_SVX_START + 413 )
-#define SID_ATTR_PARA_PAGENUM ( SID_SVX_START + 457 )
-#define SID_ATTR_PARA_NUMRULE ( SID_SVX_START + 587 )
-#define SID_ATTR_BRUSH_CHAR ( SID_SVX_START + 591 )
-#define SID_ATTR_NUMBERING_RULE ( SID_SVX_START + 855 )
-#define SID_ATTR_CHAR_CHARSETCOLOR ( SID_SVX_START + 877 )
-#define SID_ATTR_CHAR_CJK_FONT ( SID_SVX_START + 887 )
-#define SID_ATTR_CHAR_CJK_FONTHEIGHT ( SID_SVX_START + 888 )
-#define SID_ATTR_CHAR_CJK_LANGUAGE ( SID_SVX_START + 889 )
-#define SID_ATTR_CHAR_CJK_POSTURE ( SID_SVX_START + 890 )
-#define SID_ATTR_CHAR_CJK_WEIGHT ( SID_SVX_START + 891 )
-#define SID_ATTR_CHAR_CTL_FONT ( SID_SVX_START + 892 )
-#define SID_ATTR_CHAR_CTL_FONTHEIGHT ( SID_SVX_START + 893 )
-#define SID_ATTR_CHAR_CTL_LANGUAGE ( SID_SVX_START + 894 )
-#define SID_ATTR_CHAR_CTL_POSTURE ( SID_SVX_START + 895 )
-#define SID_ATTR_CHAR_CTL_WEIGHT ( SID_SVX_START + 896 )
-#define SID_ATTR_CHAR_TWO_LINES ( SID_SVX_START + 897 )
-#define SID_ATTR_CHAR_CJK_RUBY ( SID_SVX_START + 898 )
-#define SID_ATTR_CHAR_EMPHASISMARK ( SID_SVX_START + 899 )
-#define SID_ATTR_CHAR_SCRIPTTYPE ( SID_SVX_START + 900 )
-#define SID_ATTR_PARA_SCRIPTSPACE ( SID_SVX_START + 901 )
-#define SID_ATTR_PARA_HANGPUNCTUATION ( SID_SVX_START + 902 )
-#define SID_ATTR_PARA_FORBIDDEN_RULES ( SID_SVX_START + 903 )
-#define SID_ATTR_CHAR_VERTICAL ( SID_SVX_START + 905 )
-#define SID_ATTR_CHAR_ROTATED ( SID_SVX_START + 910 )
-#define SID_ATTR_CHAR_SCALEWIDTH ( SID_SVX_START + 911 )
-#define SID_ATTR_CHAR_WIDTH_FIT_TO_LINE ( SID_SVX_START + 919 )
-#define SID_ATTR_CHAR_RELIEF ( SID_SVX_START + 920 )
-#define SID_PARA_VERTALIGN ( SID_SVX_START + 925 )
-#define SID_ATTR_FRAMEDIRECTION ( SID_SVX_START + 944 )
-#define SID_ATTR_PARA_SNAPTOGRID ( SID_SVX_START + 945 )
-#define SID_ATTR_PARA_LRSPACE_VERTICAL ( SID_SVX_START + 947 )
-#define SID_ATTR_PARA_LEFT_TO_RIGHT ( SID_SVX_START + 950 )
-#define SID_ATTR_PARA_RIGHT_TO_LEFT ( SID_SVX_START + 951 )
-#define SID_ATTR_CHAR_HIDDEN ( SID_SVX_START + 989 )
-#define SID_ATTR_CHAR_LATIN_FONT ( SID_SVX_START + 994 )
-#define SID_ATTR_CHAR_LATIN_FONTHEIGHT ( SID_SVX_START + 995 )
-#define SID_ATTR_CHAR_LATIN_LANGUAGE ( SID_SVX_START + 996 )
-#define SID_ATTR_CHAR_LATIN_POSTURE ( SID_SVX_START + 997 )
-#define SID_ATTR_CHAR_LATIN_WEIGHT ( SID_SVX_START + 998 )
-#define SID_ATTR_PARA_OUTLINE_LEVEL ( SID_SVX_START + 1121 )
-#define SID_ATTR_CHAR_PREVIEW_FONT ( SID_SVX_START + 1122 )
-#define SID_ATTR_CHAR_ENDPREVIEW_FONT ( SID_SVX_START + 1123 )
-
-
-// this ID didn't exist prior to the svx split
-#define SID_ATTR_CHAR_OVERLINE ( SID_EDIT_START + 68 )
-#define SID_ATTR_ALIGN_HOR_JUSTIFY_METHOD ( SID_EDIT_START + 69 )
-#define SID_ATTR_ALIGN_VER_JUSTIFY_METHOD ( SID_EDIT_START + 70 )
-#define SID_ATTR_ALIGN_HOR_JUSTIFY ( SID_EDIT_START + 71 )
-#define SID_ATTR_ALIGN_VER_JUSTIFY ( SID_EDIT_START + 72 )
-
-/*
-// planned, but not doable: changing value of SIDs will break code that uses them for WhichRanges
-#define SID_PARA_VERTALIGN ( SID_EDIT_START )
-#define SID_ATTR_BORDER_OUTER ( SID_EDIT_START + 1 )
-#define SID_ATTR_BORDER_SHADOW ( SID_EDIT_START + 2 )
-#define SID_ATTR_BRUSH ( SID_EDIT_START + 3 )
-#define SID_ATTR_BRUSH_CHAR ( SID_EDIT_START + 4 )
-
-
-#define SID_FIELD ( SID_EDIT_START + 7 )
-#define SID_ATTR_FRAMEDIRECTION ( SID_EDIT_START + 8 )
-#define SID_ATTR_PARA ( SID_EDIT_START + 9 )
-#define SID_ATTR_PARA_ADJUST ( SID_EDIT_START + 10 )
-#define SID_ATTR_PARA_ADJUST_LEFT ( SID_EDIT_START + 11 )
-#define SID_ATTR_PARA_BULLET ( SID_EDIT_START + 12 )
-#define SID_ATTR_PARA_OUTLLEVEL ( SID_EDIT_START + 13 )
-#define SID_ATTR_PARA_REGISTER ( SID_EDIT_START + 14 )
-#define SID_ATTR_PARA_PAGENUM ( SID_EDIT_START + 15 )
-#define SID_ATTR_PARA_NUMRULE ( SID_EDIT_START + 16 )
-#define SID_ATTR_PARA_SCRIPTSPACE ( SID_EDIT_START + 17 )
-#define SID_ATTR_PARA_HANGPUNCTUATION ( SID_EDIT_START + 18 )
-#define SID_ATTR_PARA_FORBIDDEN_RULES ( SID_EDIT_START + 19 )
-#define SID_ATTR_PARA_SNAPTOGRID ( SID_EDIT_START + 20 )
-#define SID_ATTR_PARA_LRSPACE_VERTICAL ( SID_EDIT_START + 21 )
-#define SID_ATTR_PARA_LEFT_TO_RIGHT ( SID_EDIT_START + 22 )
-#define SID_ATTR_PARA_RIGHT_TO_LEFT ( SID_EDIT_START + 23 )
-#define SID_ATTR_PARA_OUTLINE_LEVEL ( SID_EDIT_START + 24 )
-#define SID_ATTR_PARA_ADJUST_RIGHT ( SID_EDIT_START + 25 )
-#define SID_ATTR_PARA_ADJUST_CENTER ( SID_EDIT_START + 26 )
-#define SID_ATTR_PARA_ADJUST_BLOCK ( SID_EDIT_START + 27 )
-#define SID_ATTR_PARA_ADJUST_BLOCKLINE ( SID_EDIT_START + 28 )
-#define SID_ATTR_PARA_LINESPACE ( SID_EDIT_START + 29 )
-#define SID_ATTR_PARA_LINESPACE_10 ( SID_EDIT_START + 30 )
-#define SID_ATTR_PARA_LINESPACE_15 ( SID_EDIT_START + 31 )
-#define SID_ATTR_PARA_LINESPACE_20 ( SID_EDIT_START + 32 )
-#define SID_ATTR_PARA_PAGEBREAK ( SID_EDIT_START + 33 )
-#define SID_ATTR_PARA_HYPHENZONE ( SID_EDIT_START + 34 )
-#define SID_ATTR_PARA_SPLIT ( SID_EDIT_START + 35 )
-#define SID_ATTR_PARA_ORPHANS ( SID_EDIT_START + 36 )
-#define SID_ATTR_PARA_WIDOWS ( SID_EDIT_START + 37 )
-#define SID_ATTR_PARA_ULSPACE ( SID_EDIT_START + 38 )
-#define SID_ATTR_PARA_LRSPACE ( SID_EDIT_START + 39 )
-#define SID_ATTR_PARA_MODEL ( SID_EDIT_START + 40 )
-#define SID_ATTR_PARA_KEEP ( SID_EDIT_START + 41 )
-#define SID_ATTR_NUMBERING_RULE ( SID_EDIT_START + 42 )
-#define SID_ATTR_LRSPACE ( SID_EDIT_START + 43 )
-#define SID_ATTR_ULSPACE ( SID_EDIT_START + 44 )
-#define SID_ATTR_TABSTOP ( SID_EDIT_START + 45 )
-#define SID_ATTR_TABSTOP_DEFAULTS ( SID_EDIT_START + 46 )
-#define SID_ATTR_TABSTOP_POS ( SID_EDIT_START + 47 )
-#define SID_ATTR_TABSTOP_OFFSET ( SID_EDIT_START + 48 )
-#define SID_ATTR_CHAR ( SID_EDIT_START + 49 )
-#define SID_ATTR_CHAR_FONT ( SID_EDIT_START + 50 )
-#define SID_ATTR_CHAR_POSTURE ( SID_EDIT_START + 51 )
-#define SID_ATTR_CHAR_WEIGHT ( SID_EDIT_START + 52 )
-#define SID_ATTR_CHAR_SHADOWED ( SID_EDIT_START + 53 )
-#define SID_ATTR_CHAR_WORDLINEMODE ( SID_EDIT_START + 54 )
-#define SID_ATTR_CHAR_CONTOUR ( SID_EDIT_START + 55 )
-#define SID_ATTR_CHAR_STRIKEOUT ( SID_EDIT_START + 56 )
-#define SID_ATTR_CHAR_UNDERLINE ( SID_EDIT_START + 57 )
-#define SID_ATTR_CHAR_FONTHEIGHT ( SID_EDIT_START + 58 )
-#define SID_ATTR_CHAR_PROPSIZE ( SID_EDIT_START + 59 )
-#define SID_ATTR_CHAR_COLOR ( SID_EDIT_START + 60 )
-#define SID_ATTR_CHAR_KERNING ( SID_EDIT_START + 61 )
-#define SID_ATTR_CHAR_CASEMAP ( SID_EDIT_START + 62 )
-#define SID_ATTR_CHAR_LANGUAGE ( SID_EDIT_START + 63 )
-#define SID_ATTR_CHAR_ESCAPEMENT ( SID_EDIT_START + 64 )
-#define SID_ATTR_CHAR_FONTLIST ( SID_EDIT_START + 65 )
-#define SID_ATTR_CHAR_MAPTYPE ( SID_EDIT_START + 66 )
-#define SID_ATTR_CHAR_AUTOKERN ( SID_EDIT_START + 67 )
-#define SID_ATTR_CHAR_OVERLINE ( SID_EDIT_START + 68 )
-#define SID_ATTR_CHAR_CHARSETCOLOR ( SID_EDIT_START + 69 )
-#define SID_ATTR_CHAR_CJK_FONT ( SID_EDIT_START + 70 )
-#define SID_ATTR_CHAR_CJK_FONTHEIGHT ( SID_EDIT_START + 71 )
-#define SID_ATTR_CHAR_CJK_LANGUAGE ( SID_EDIT_START + 72 )
-#define SID_ATTR_CHAR_CJK_POSTURE ( SID_EDIT_START + 73 )
-#define SID_ATTR_CHAR_CJK_WEIGHT ( SID_EDIT_START + 74 )
-#define SID_ATTR_CHAR_CTL_FONT ( SID_EDIT_START + 75 )
-#define SID_ATTR_CHAR_CTL_FONTHEIGHT ( SID_EDIT_START + 76 )
-#define SID_ATTR_CHAR_CTL_LANGUAGE ( SID_EDIT_START + 77 )
-#define SID_ATTR_CHAR_CTL_POSTURE ( SID_EDIT_START + 78 )
-#define SID_ATTR_CHAR_CTL_WEIGHT ( SID_EDIT_START + 79 )
-#define SID_ATTR_CHAR_TWO_LINES ( SID_EDIT_START + 80 )
-#define SID_ATTR_CHAR_CJK_RUBY ( SID_EDIT_START + 81 )
-#define SID_ATTR_CHAR_EMPHASISMARK ( SID_EDIT_START + 82 )
-#define SID_ATTR_CHAR_SCRIPTTYPE ( SID_EDIT_START + 83 )
-#define SID_ATTR_CHAR_VERTICAL ( SID_EDIT_START + 84 )
-#define SID_ATTR_CHAR_ROTATED ( SID_EDIT_START + 85 )
-#define SID_ATTR_CHAR_SCALEWIDTH ( SID_EDIT_START + 86 )
-#define SID_ATTR_CHAR_WIDTH_FIT_TO_LINE ( SID_EDIT_START + 87 )
-#define SID_ATTR_CHAR_RELIEF ( SID_EDIT_START + 88 )
-#define SID_ATTR_CHAR_HIDDEN ( SID_EDIT_START + 89 )
-#define SID_ATTR_CHAR_LATIN_FONT ( SID_EDIT_START + 90 )
-#define SID_ATTR_CHAR_LATIN_FONTHEIGHT ( SID_EDIT_START + 91 )
-#define SID_ATTR_CHAR_LATIN_LANGUAGE ( SID_EDIT_START + 92 )
-#define SID_ATTR_CHAR_LATIN_POSTURE ( SID_EDIT_START + 93 )
-#define SID_ATTR_CHAR_LATIN_WEIGHT ( SID_EDIT_START + 94 )
-*/
-
-#if 94 > (SID_EDIT_END-SID_EDIT_START)
-#error Resource-Ueberlauf in #line, #file
-#endif
-
-#define SID_DRAW_TEXT_VERTICAL SID_ATTR_CHAR_VERTICAL
-
-#endif
-
-// ******************************************************************* EOF
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/editobj.hxx b/editeng/inc/editeng/editobj.hxx
deleted file mode 100644
index 16bc0be626e5..000000000000
--- a/editeng/inc/editeng/editobj.hxx
+++ /dev/null
@@ -1,130 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _EDITOBJ_HXX
-#define _EDITOBJ_HXX
-
-#include
-#include
-#include
-#include
-#include "svl/itempool.hxx"
-#include
-#include
-#include "editeng/editengdllapi.h"
-#include "editeng/macros.hxx"
-
-#include
-
-#include
-
-DBG_NAMEEX( EE_EditTextObject )
-
-class SfxItemPool;
-class SfxStyleSheetPool;
-class SvxFieldItem;
-class SvxFieldData;
-
-namespace editeng {
-
-class FieldUpdater;
-class FieldUpdaterImpl;
-
-}
-
-class EditTextObjectImpl;
-
-class EDITENG_DLLPUBLIC EditTextObject : public SfxItemPoolUser
-{
- friend class EditTextObjectImpl;
- friend class editeng::FieldUpdaterImpl;
- friend class ImpEditEngine;
-
- EditTextObjectImpl* mpImpl;
-
- EDITENG_DLLPRIVATE EditTextObject& operator=( const EditTextObject& );
-
- EditTextObject(); // disabled
-
- EditTextObject( SfxItemPool* pPool );
-
- void StoreData( SvStream& rStrm ) const;
- void CreateData( SvStream& rStrm );
-
-public:
- EditTextObject( const EditTextObject& r );
- virtual ~EditTextObject();
-
- sal_uInt16 GetUserType() const; // For OutlinerMode, it can however not save in compatible format
- void SetUserType( sal_uInt16 n );
-
- bool IsVertical() const;
- void SetVertical( bool bVertical );
-
- sal_uInt16 GetScriptType() const;
-
- EditTextObject* Clone() const;
-
- bool Store( SvStream& rOStream ) const;
-
- static EditTextObject* Create(
- SvStream& rIStream, SfxItemPool* pGlobalTextObjectPool = NULL );
-
- size_t GetParagraphCount() const;
-
- String GetText(size_t nPara) const;
-
- void ClearPortionInfo();
-
- bool HasOnlineSpellErrors() const;
-
- void GetCharAttribs( sal_uInt16 nPara, std::vector& rLst ) const;
-
- bool RemoveCharAttribs( sal_uInt16 nWhich = 0 );
-
- bool IsFieldObject() const;
- const SvxFieldItem* GetField() const;
- const SvxFieldData* GetFieldData(size_t nPara, size_t nPos, sal_Int32 nType) const;
- bool HasField( sal_Int32 nType = com::sun::star::text::textfield::Type::UNSPECIFIED ) const;
-
- const SfxItemSet& GetParaAttribs(size_t nPara) const;
-
- void GetStyleSheet(size_t nPara, String& rName, SfxStyleFamily& eFamily) const;
- void SetStyleSheet(size_t nPara, const String& rName, const SfxStyleFamily& eFamily);
- bool ChangeStyleSheets(
- const XubString& rOldName, SfxStyleFamily eOldFamily, const XubString& rNewName, SfxStyleFamily eNewFamily );
- void ChangeStyleSheetName( SfxStyleFamily eFamily, const XubString& rOldName, const XubString& rNewName );
-
- editeng::FieldUpdater GetFieldUpdater();
-
- bool operator==( const EditTextObject& rCompare ) const;
-
- // #i102062#
- bool isWrongListEqual(const EditTextObject& rCompare) const;
-
- virtual void ObjectInDestruction(const SfxItemPool& rSfxItemPool);
-
-#if DEBUG_EDIT_ENGINE
- void Dump() const;
-#endif
-};
-
-#endif // _EDITOBJ_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/editrids.hrc b/editeng/inc/editeng/editrids.hrc
deleted file mode 100644
index 04ec3b6eccc7..000000000000
--- a/editeng/inc/editeng/editrids.hrc
+++ /dev/null
@@ -1,395 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _EDIT_RIDS_HRC
-#define _EDIT_RIDS_HRC
-
-#include
-
-// strings also used in cui
-#define RID_SVXSTR_PAPERBIN_SETTINGS (RID_EDIT_START)
-#define RID_SVXSTR_PAPERBIN (RID_EDIT_START + 1)
-
-#define RID_OUTLUNDO_EXPAND (RID_EDIT_START + 2)
-#define RID_OUTLUNDO_COLLAPSE (RID_EDIT_START + 3)
-#define RID_OUTLUNDO_ATTR (RID_EDIT_START + 4)
-#define RID_OUTLUNDO_INSERT (RID_EDIT_START + 5)
-#define RID_OUTLUNDO_DEPTH (RID_EDIT_START + 6)
-#define RID_OUTLUNDO_HEIGHT (RID_EDIT_START + 7)
-
-// strings for items
-
-#define RID_SVXITEMS_FRMDIR_BEGIN (RID_EDIT_START + 9)
-#define RID_SVXITEMS_FRMDIR_HORI_LEFT_TOP (RID_EDIT_START + 9)
-#define RID_SVXITEMS_FRMDIR_HORI_RIGHT_TOP (RID_EDIT_START + 10)
-#define RID_SVXITEMS_FRMDIR_VERT_TOP_RIGHT (RID_EDIT_START + 11)
-#define RID_SVXITEMS_FRMDIR_VERT_TOP_LEFT (RID_EDIT_START + 12)
-#define RID_SVXITEMS_FRMDIR_ENVIRONMENT (RID_EDIT_START + 13)
-// RID_SVXITEMS_FRMDIR_END (RID_EDIT_START + 14)
-
-#define RID_SVXITEMS_TRUE (RID_EDIT_START + 15)
-#define RID_SVXITEMS_FALSE (RID_EDIT_START + 16)
-#define RID_SVXITEMS_BORDER_COMPLETE (RID_EDIT_START + 17)
-#define RID_SVXITEMS_BORDER_TOP (RID_EDIT_START + 18)
-#define RID_SVXITEMS_BORDER_BOTTOM (RID_EDIT_START + 19)
-#define RID_SVXITEMS_BORDER_LEFT (RID_EDIT_START + 20)
-#define RID_SVXITEMS_BORDER_RIGHT (RID_EDIT_START + 21)
-#define RID_SVXITEMS_BORDER_DISTANCE (RID_EDIT_START + 22)
-#define RID_SVXITEMS_BORDER_NONE (RID_EDIT_START + 23)
-
-#define RID_SVXITEMS_TRANSPARENT_TRUE (RID_EDIT_START + 24)
-#define RID_SVXITEMS_TRANSPARENT_FALSE (RID_EDIT_START + 25)
-#define RID_SVXITEMS_OPAQUE_TRUE (RID_EDIT_START + 26)
-#define RID_SVXITEMS_OPAQUE_FALSE (RID_EDIT_START + 27)
-
-#define RID_SVXITEMS_SHADOW_COMPLETE (RID_EDIT_START + 28)
-#define RID_SVXITEMS_GRAPHIC (RID_EDIT_START + 29)
-#define RID_SVXITEMS_LINES (RID_EDIT_START + 30)
-#define RID_SVXITEMS_ORPHANS_COMPLETE (RID_EDIT_START + 31)
-#define RID_SVXITEMS_WIDOWS_COMPLETE (RID_EDIT_START + 32)
-#define RID_SVXITEMS_PAGEMODEL_COMPLETE (RID_EDIT_START + 33)
-
-#define RID_SVXITEMS_SHADOWED_TRUE (RID_EDIT_START + 34)
-#define RID_SVXITEMS_SHADOWED_FALSE (RID_EDIT_START + 35)
-#define RID_SVXITEMS_AUTOKERN_TRUE (RID_EDIT_START + 36)
-#define RID_SVXITEMS_AUTOKERN_FALSE (RID_EDIT_START + 37)
-#define RID_SVXITEMS_WORDLINE_TRUE (RID_EDIT_START + 38)
-#define RID_SVXITEMS_WORDLINE_FALSE (RID_EDIT_START + 39)
-#define RID_SVXITEMS_CONTOUR_TRUE (RID_EDIT_START + 40)
-#define RID_SVXITEMS_CONTOUR_FALSE (RID_EDIT_START + 41)
-#define RID_SVXITEMS_NOLINEBREAK_TRUE (RID_EDIT_START + 42)
-#define RID_SVXITEMS_NOLINEBREAK_FALSE (RID_EDIT_START + 43)
-#define RID_SVXITEMS_NOHYPHEN_TRUE (RID_EDIT_START + 44)
-#define RID_SVXITEMS_NOHYPHEN_FALSE (RID_EDIT_START + 45)
-#define RID_SVXITEMS_FMTKEEP_TRUE (RID_EDIT_START + 46)
-#define RID_SVXITEMS_FMTKEEP_FALSE (RID_EDIT_START + 47)
-#define RID_SVXITEMS_FMTSPLIT_TRUE (RID_EDIT_START + 48)
-#define RID_SVXITEMS_FMTSPLIT_FALSE (RID_EDIT_START + 49)
-#define RID_SVXITEMS_PRINT_TRUE (RID_EDIT_START + 50)
-#define RID_SVXITEMS_PRINT_FALSE (RID_EDIT_START + 51)
-#define RID_SVXITEMS_PROT_POS_TRUE (RID_EDIT_START + 52)
-#define RID_SVXITEMS_PROT_POS_FALSE (RID_EDIT_START + 53)
-#define RID_SVXITEMS_PROT_SIZE_TRUE (RID_EDIT_START + 54)
-#define RID_SVXITEMS_PROT_SIZE_FALSE (RID_EDIT_START + 55)
-#define RID_SVXITEMS_PROT_CONTENT_TRUE (RID_EDIT_START + 56)
-#define RID_SVXITEMS_PROT_CONTENT_FALSE (RID_EDIT_START + 57)
-#define RID_SVXITEMS_ULSPACE_UPPER (RID_EDIT_START + 58)
-#define RID_SVXITEMS_ULSPACE_LOWER (RID_EDIT_START + 59)
-#define RID_SVXITEMS_LRSPACE_LEFT (RID_EDIT_START + 60)
-#define RID_SVXITEMS_LRSPACE_FLINE (RID_EDIT_START + 62)
-#define RID_SVXITEMS_LRSPACE_RIGHT (RID_EDIT_START + 63)
-#define RID_SVXITEMS_SIZE_WIDTH (RID_EDIT_START + 64)
-#define RID_SVXITEMS_SIZE_HEIGHT (RID_EDIT_START + 65)
-#define RID_SVXITEMS_PAGE_END_TRUE (RID_EDIT_START + 66)
-#define RID_SVXITEMS_PAGE_END_FALSE (RID_EDIT_START + 67)
-#define RID_SVXITEMS_HYPHEN_TRUE (RID_EDIT_START + 68)
-#define RID_SVXITEMS_HYPHEN_FALSE (RID_EDIT_START + 69)
-#define RID_SVXITEMS_HYPHEN_MINLEAD (RID_EDIT_START + 70)
-#define RID_SVXITEMS_HYPHEN_MINTRAIL (RID_EDIT_START + 71)
-#define RID_SVXITEMS_HYPHEN_MAX (RID_EDIT_START + 72)
-#define RID_SVXITEMS_HNGPNCT_OFF (RID_EDIT_START + 73)
-#define RID_SVXITEMS_HNGPNCT_ON (RID_EDIT_START + 74)
-#define RID_SVXITEMS_FORBIDDEN_RULE_OFF (RID_EDIT_START + 75)
-#define RID_SVXITEMS_FORBIDDEN_RULE_ON (RID_EDIT_START + 76)
-#define RID_SVXITEMS_SCRPTSPC_OFF (RID_EDIT_START + 77)
-#define RID_SVXITEMS_SCRPTSPC_ON (RID_EDIT_START + 78)
-#define RID_SVXITEMS_CHARSCALE_OFF (RID_EDIT_START + 79)
-#define RID_SVXITEMS_CHARSCALE (RID_EDIT_START + 80)
-#define RID_SVXITEMS_CHARROTATE_OFF (RID_EDIT_START + 81)
-#define RID_SVXITEMS_CHARROTATE (RID_EDIT_START + 82)
-#define RID_SVXITEMS_CHARROTATE_FITLINE (RID_EDIT_START + 83)
-
-#define RID_SVXITEMS_RELIEF_BEGIN (RID_EDIT_START + 85)
-#define RID_SVXITEMS_RELIEF_NONE (RID_EDIT_START + 85)
-#define RID_SVXITEMS_RELIEF_EMBOSSED (RID_EDIT_START + 86)
-#define RID_SVXITEMS_RELIEF_ENGRAVED (RID_EDIT_START + 87)
-// RID_SVXITEMS_RELIEF_END (RID_EDIT_START + 88)
-
-// HM_ERR
-#define RID_SVXSTR_HMERR_THESAURUS (RID_EDIT_START + 89)
-
-// enum FontEmphasisMark ---------------------------------------------------
-#define RID_SVXITEMS_EMPHASIS_BEGIN_STYLE (RID_EDIT_START + 90)
-#define RID_SVXITEMS_EMPHASIS_NONE_STYLE (RID_EDIT_START + 90)
-#define RID_SVXITEMS_EMPHASIS_DOT_STYLE (RID_EDIT_START + 91)
-#define RID_SVXITEMS_EMPHASIS_CIRCLE_STYLE (RID_EDIT_START + 92)
-#define RID_SVXITEMS_EMPHASIS_DISC_STYLE (RID_EDIT_START + 93)
-#define RID_SVXITEMS_EMPHASIS_ACCENT_STYLE (RID_EDIT_START + 94)
-
-#define RID_SVXITEMS_EMPHASIS_ABOVE_POS (RID_EDIT_START + 95)
-#define RID_SVXITEMS_EMPHASIS_BELOW_POS (RID_EDIT_START + 96)
-
-// enum ESCAPEMENT -------------------------------------------------------
-#define RID_SVXITEMS_ESCAPEMENT_BEGIN (RID_EDIT_START + 97)
-#define RID_SVXITEMS_ESCAPEMENT_OFF (RID_EDIT_START + 97)
-#define RID_SVXITEMS_ESCAPEMENT_SUPER (RID_EDIT_START + 98)
-#define RID_SVXITEMS_ESCAPEMENT_SUB (RID_EDIT_START + 99)
-#define RID_SVXITEMS_ESCAPEMENT_AUTO (RID_EDIT_START + 100)
-
-// enum CASEMAP ----------------------------------------------------------
-#define RID_SVXITEMS_CASEMAP_BEGIN (RID_EDIT_START + 101)
-#define RID_SVXITEMS_CASEMAP_NONE (RID_EDIT_START + 101)
-#define RID_SVXITEMS_CASEMAP_VERSALIEN (RID_EDIT_START + 102)
-#define RID_SVXITEMS_CASEMAP_GEMEINE (RID_EDIT_START + 103)
-#define RID_SVXITEMS_CASEMAP_TITEL (RID_EDIT_START + 104)
-#define RID_SVXITEMS_CASEMAP_KAPITAELCHEN (RID_EDIT_START + 105)
-
-#define RID_SVXITEMS_KERNING_COMPLETE (RID_EDIT_START + 106)
-#define RID_SVXITEMS_KERNING_EXPANDED (RID_EDIT_START + 107)
-#define RID_SVXITEMS_KERNING_CONDENSED (RID_EDIT_START + 108)
-
-#define RID_SVXITEMS_BLINK_TRUE (RID_EDIT_START + 109)
-#define RID_SVXITEMS_BLINK_FALSE (RID_EDIT_START + 110)
-
-#define RID_SVXITEMS_TWOLINES_OFF (RID_EDIT_START + 111)
-#define RID_SVXITEMS_TWOLINES (RID_EDIT_START + 112)
-
-// enum FontStrikeout ----------------------------------------------------
-#define RID_SVXITEMS_STRIKEOUT_BEGIN (RID_EDIT_START + 113)
-#define RID_SVXITEMS_STRIKEOUT_NONE (RID_EDIT_START + 113)
-#define RID_SVXITEMS_STRIKEOUT_SINGLE (RID_EDIT_START + 114)
-#define RID_SVXITEMS_STRIKEOUT_DOUBLE (RID_EDIT_START + 115)
-#define RID_SVXITEMS_STRIKEOUT_BOLD (RID_EDIT_START + 117)
-#define RID_SVXITEMS_STRIKEOUT_SLASH (RID_EDIT_START + 118)
-#define RID_SVXITEMS_STRIKEOUT_X (RID_EDIT_START + 119)
-
-// enum FontUnderline - used for overline --------------------------------
-#define RID_SVXITEMS_OL_BEGIN (RID_EDIT_START + 120)
-#define RID_SVXITEMS_OL_NONE (RID_EDIT_START + 120)
-#define RID_SVXITEMS_OL_SINGLE (RID_EDIT_START + 121)
-#define RID_SVXITEMS_OL_DOUBLE (RID_EDIT_START + 122)
-#define RID_SVXITEMS_OL_DOTTED (RID_EDIT_START + 123)
-#define RID_SVXITEMS_OL_DONTKNOW (RID_EDIT_START + 124)
-#define RID_SVXITEMS_OL_DASH (RID_EDIT_START + 125)
-#define RID_SVXITEMS_OL_LONGDASH (RID_EDIT_START + 126)
-#define RID_SVXITEMS_OL_DASHDOT (RID_EDIT_START + 127)
-#define RID_SVXITEMS_OL_DASHDOTDOT (RID_EDIT_START + 128)
-#define RID_SVXITEMS_OL_SMALLWAVE (RID_EDIT_START + 129)
-#define RID_SVXITEMS_OL_WAVE (RID_EDIT_START + 130)
-#define RID_SVXITEMS_OL_DOUBLEWAVE (RID_EDIT_START + 131)
-#define RID_SVXITEMS_OL_BOLD (RID_EDIT_START + 132)
-#define RID_SVXITEMS_OL_BOLDDOTTED (RID_EDIT_START + 133)
-#define RID_SVXITEMS_OL_BOLDDASH (RID_EDIT_START + 134)
-#define RID_SVXITEMS_OL_BOLDLONGDASH (RID_EDIT_START + 135)
-#define RID_SVXITEMS_OL_BOLDDASHDOT (RID_EDIT_START + 136)
-#define RID_SVXITEMS_OL_BOLDDASHDOTDOT (RID_EDIT_START + 137)
-#define RID_SVXITEMS_OL_BOLDWAVE (RID_EDIT_START + 138)
-
-// enum FontUnderline - used for underline -------------------------------
-#define RID_SVXITEMS_UL_BEGIN (RID_EDIT_START + 139)
-#define RID_SVXITEMS_UL_NONE (RID_EDIT_START + 139)
-#define RID_SVXITEMS_UL_SINGLE (RID_EDIT_START + 140)
-#define RID_SVXITEMS_UL_DOUBLE (RID_EDIT_START + 141)
-#define RID_SVXITEMS_UL_DOTTED (RID_EDIT_START + 142)
-#define RID_SVXITEMS_UL_DONTKNOW (RID_EDIT_START + 143)
-#define RID_SVXITEMS_UL_DASH (RID_EDIT_START + 144)
-#define RID_SVXITEMS_UL_LONGDASH (RID_EDIT_START + 145)
-#define RID_SVXITEMS_UL_DASHDOT (RID_EDIT_START + 146)
-#define RID_SVXITEMS_UL_DASHDOTDOT (RID_EDIT_START + 147)
-#define RID_SVXITEMS_UL_SMALLWAVE (RID_EDIT_START + 148)
-#define RID_SVXITEMS_UL_WAVE (RID_EDIT_START + 149)
-#define RID_SVXITEMS_UL_DOUBLEWAVE (RID_EDIT_START + 150)
-#define RID_SVXITEMS_UL_BOLD (RID_EDIT_START + 151)
-#define RID_SVXITEMS_UL_BOLDDOTTED (RID_EDIT_START + 152)
-#define RID_SVXITEMS_UL_BOLDDASH (RID_EDIT_START + 153)
-#define RID_SVXITEMS_UL_BOLDLONGDASH (RID_EDIT_START + 154)
-#define RID_SVXITEMS_UL_BOLDDASHDOT (RID_EDIT_START + 155)
-#define RID_SVXITEMS_UL_BOLDDASHDOTDOT (RID_EDIT_START + 156)
-#define RID_SVXITEMS_UL_BOLDWAVE (RID_EDIT_START + 157)
-
-// enum FontWeight -------------------------------------------------------
-#define RID_SVXITEMS_WEIGHT_BEGIN (RID_EDIT_START + 158)
-#define RID_SVXITEMS_WEIGHT_DONTKNOW (RID_EDIT_START + 158)
-#define RID_SVXITEMS_WEIGHT_THIN (RID_EDIT_START + 159)
-#define RID_SVXITEMS_WEIGHT_ULTRALIGHT (RID_EDIT_START + 160)
-#define RID_SVXITEMS_WEIGHT_LIGHT (RID_EDIT_START + 161)
-#define RID_SVXITEMS_WEIGHT_SEMILIGHT (RID_EDIT_START + 162)
-#define RID_SVXITEMS_WEIGHT_NORMAL (RID_EDIT_START + 163)
-#define RID_SVXITEMS_WEIGHT_MEDIUM (RID_EDIT_START + 164)
-#define RID_SVXITEMS_WEIGHT_SEMIBOLD (RID_EDIT_START + 165)
-#define RID_SVXITEMS_WEIGHT_BOLD (RID_EDIT_START + 166)
-#define RID_SVXITEMS_WEIGHT_ULTRABOLD (RID_EDIT_START + 167)
-#define RID_SVXITEMS_WEIGHT_BLACK (RID_EDIT_START + 168)
-
-// enum FontItalic -------------------------------------------------------
-#define RID_SVXITEMS_ITALIC_NONE (RID_EDIT_START + 206)
-#define RID_SVXITEMS_ITALIC_OBLIQUE (RID_EDIT_START + 207)
-#define RID_SVXITEMS_ITALIC_NORMAL (RID_EDIT_START + 208)
-
-// enum SvxAdjust -----------------------------------------------------------
-#define RID_SVXITEMS_ADJUST_BEGIN (RID_EDIT_START + 209)
-#define RID_SVXITEMS_ADJUST_LEFT (RID_EDIT_START + 209)
-#define RID_SVXITEMS_ADJUST_RIGHT (RID_EDIT_START + 210)
-#define RID_SVXITEMS_ADJUST_BLOCK (RID_EDIT_START + 211)
-#define RID_SVXITEMS_ADJUST_CENTER (RID_EDIT_START + 212)
-#define RID_SVXITEMS_ADJUST_BLOCKLINE (RID_EDIT_START + 213)
-
-#define RID_SVXITEMS_TAB_DECIMAL_CHAR (RID_EDIT_START + 214)
-#define RID_SVXITEMS_TAB_FILL_CHAR (RID_EDIT_START + 215)
-
-#define RID_SVXITEMS_TAB_ADJUST_BEGIN (RID_EDIT_START + 217)
-#define RID_SVXITEMS_TAB_ADJUST_LEFT (RID_EDIT_START + 217)
-#define RID_SVXITEMS_TAB_ADJUST_RIGHT (RID_EDIT_START + 218)
-#define RID_SVXITEMS_TAB_ADJUST_DECIMAL (RID_EDIT_START + 219)
-#define RID_SVXITEMS_TAB_ADJUST_CENTER (RID_EDIT_START + 220)
-#define RID_SVXITEMS_TAB_ADJUST_DEFAULT (RID_EDIT_START + 221)
-
-// enum SvxBreak ------------------------------------------------------------
-#define RID_SVXITEMS_BREAK_BEGIN (RID_EDIT_START + 222)
-#define RID_SVXITEMS_BREAK_NONE (RID_EDIT_START + 222)
-#define RID_SVXITEMS_BREAK_COLUMN_BEFORE (RID_EDIT_START + 223)
-#define RID_SVXITEMS_BREAK_COLUMN_AFTER (RID_EDIT_START + 224)
-#define RID_SVXITEMS_BREAK_COLUMN_BOTH (RID_EDIT_START + 225)
-#define RID_SVXITEMS_BREAK_PAGE_BEFORE (RID_EDIT_START + 226)
-#define RID_SVXITEMS_BREAK_PAGE_AFTER (RID_EDIT_START + 227)
-#define RID_SVXITEMS_BREAK_PAGE_BOTH (RID_EDIT_START + 228)
-
-// enum SvxShadowLocation ---------------------------------------------------
-#define RID_SVXITEMS_SHADOW_BEGIN (RID_EDIT_START + 229)
-#define RID_SVXITEMS_SHADOW_NONE (RID_EDIT_START + 229)
-#define RID_SVXITEMS_SHADOW_TOPLEFT (RID_EDIT_START + 230)
-#define RID_SVXITEMS_SHADOW_TOPRIGHT (RID_EDIT_START + 231)
-#define RID_SVXITEMS_SHADOW_BOTTOMLEFT (RID_EDIT_START + 232)
-#define RID_SVXITEMS_SHADOW_BOTTOMRIGHT (RID_EDIT_START + 233)
-
-// Border lines
-#define RID_SOLID (RID_EDIT_START + 234)
-#define RID_DOTTED (RID_EDIT_START + 235)
-#define RID_DASHED (RID_EDIT_START + 236)
-#define RID_DOUBLE (RID_EDIT_START + 237)
-#define RID_THINTHICK_SMALLGAP (RID_EDIT_START + 238)
-#define RID_THINTHICK_MEDIUMGAP (RID_EDIT_START + 239)
-#define RID_THINTHICK_LARGEGAP (RID_EDIT_START + 240)
-#define RID_THICKTHIN_SMALLGAP (RID_EDIT_START + 241)
-#define RID_THICKTHIN_MEDIUMGAP (RID_EDIT_START + 242)
-#define RID_THICKTHIN_LARGEGAP (RID_EDIT_START + 243)
-#define RID_EMBOSSED (RID_EDIT_START + 244)
-#define RID_ENGRAVED (RID_EDIT_START + 245)
-#define RID_OUTSET (RID_EDIT_START + 246)
-#define RID_INSET (RID_EDIT_START + 247)
-
-// Metric-Text
-#define RID_SVXITEMS_METRIC_MM (RID_EDIT_START + 250)
-#define RID_SVXITEMS_METRIC_CM (RID_EDIT_START + 251)
-#define RID_SVXITEMS_METRIC_INCH (RID_EDIT_START + 252)
-#define RID_SVXITEMS_METRIC_POINT (RID_EDIT_START + 253)
-#define RID_SVXITEMS_METRIC_TWIP (RID_EDIT_START + 254)
-#define RID_SVXITEMS_METRIC_PIXEL (RID_EDIT_START + 255)
-
-// enum ColorName -----------------------------------------------------------
-#define RID_SVXITEMS_COLOR_BEGIN (RID_EDIT_START + 256)
-#define RID_SVXITEMS_COLOR (RID_EDIT_START + 256)
-#define RID_SVXITEMS_COLOR_BLACK (RID_EDIT_START + 257)
-#define RID_SVXITEMS_COLOR_BLUE (RID_EDIT_START + 258)
-#define RID_SVXITEMS_COLOR_GREEN (RID_EDIT_START + 259)
-#define RID_SVXITEMS_COLOR_CYAN (RID_EDIT_START + 260)
-#define RID_SVXITEMS_COLOR_RED (RID_EDIT_START + 261)
-#define RID_SVXITEMS_COLOR_MAGENTA (RID_EDIT_START + 262)
-#define RID_SVXITEMS_COLOR_BROWN (RID_EDIT_START + 263)
-#define RID_SVXITEMS_COLOR_GRAY (RID_EDIT_START + 264)
-#define RID_SVXITEMS_COLOR_LIGHTGRAY (RID_EDIT_START + 265)
-#define RID_SVXITEMS_COLOR_LIGHTBLUE (RID_EDIT_START + 266)
-#define RID_SVXITEMS_COLOR_LIGHTGREEN (RID_EDIT_START + 267)
-#define RID_SVXITEMS_COLOR_LIGHTCYAN (RID_EDIT_START + 268)
-#define RID_SVXITEMS_COLOR_LIGHTRED (RID_EDIT_START + 269)
-#define RID_SVXITEMS_COLOR_LIGHTMAGENTA (RID_EDIT_START + 270)
-#define RID_SVXITEMS_COLOR_YELLOW (RID_EDIT_START + 271)
-#define RID_SVXITEMS_COLOR_WHITE (RID_EDIT_START + 272)
-#define RID_SVXITEMS_COLOR_MENUBAR (RID_EDIT_START + 273)
-#define RID_SVXITEMS_COLOR_MENUBARTEXT (RID_EDIT_START + 274)
-#define RID_SVXITEMS_COLOR_POPUPMENU (RID_EDIT_START + 275)
-#define RID_SVXITEMS_COLOR_POPUPMENUTEXT (RID_EDIT_START + 276)
-#define RID_SVXITEMS_COLOR_WINDOWTEXT (RID_EDIT_START + 277)
-#define RID_SVXITEMS_COLOR_WINDOWWORKSPACE (RID_EDIT_START + 278)
-#define RID_SVXITEMS_COLOR_HIGHLIGHT (RID_EDIT_START + 279)
-#define RID_SVXITEMS_COLOR_HIGHLIGHTTEXT (RID_EDIT_START + 280)
-#define RID_SVXITEMS_COLOR_3DTEXT (RID_EDIT_START + 281)
-#define RID_SVXITEMS_COLOR_3DFACE (RID_EDIT_START + 282)
-#define RID_SVXITEMS_COLOR_3DLIGHT (RID_EDIT_START + 283)
-#define RID_SVXITEMS_COLOR_3DSHADOW (RID_EDIT_START + 284)
-#define RID_SVXITEMS_COLOR_SCROLLBAR (RID_EDIT_START + 285)
-#define RID_SVXITEMS_COLOR_FIELD (RID_EDIT_START + 286)
-#define RID_SVXITEMS_COLOR_FIELDTEXT (RID_EDIT_START + 287)
-
-
-#define RID_SVXITEMS_PARASNAPTOGRID_ON (RID_EDIT_START + 288)
-#define RID_SVXITEMS_PARASNAPTOGRID_OFF (RID_EDIT_START + 289)
-
-#define RID_SVXITEMS_PARAVERTALIGN_AUTO (RID_EDIT_START + 290)
-#define RID_SVXITEMS_PARAVERTALIGN_BASELINE (RID_EDIT_START + 291)
-#define RID_SVXITEMS_PARAVERTALIGN_TOP (RID_EDIT_START + 292)
-#define RID_SVXITEMS_PARAVERTALIGN_CENTER (RID_EDIT_START + 293)
-#define RID_SVXITEMS_PARAVERTALIGN_BOTTOM (RID_EDIT_START + 294)
-
-#define RID_SVXITEMS_CHARHIDDEN_FALSE (RID_EDIT_START + 295)
-#define RID_SVXITEMS_CHARHIDDEN_TRUE (RID_EDIT_START + 296)
-
-// strings for error messsages in dictionary updates
-#define RID_SVXSTR_DIC_ERR_UNKNOWN (RID_EDIT_START + 297)
-#define RID_SVXSTR_DIC_ERR_FULL (RID_EDIT_START + 298)
-#define RID_SVXSTR_DIC_ERR_READONLY (RID_EDIT_START + 299)
-
-// ResIds fuer HM-QueryBoxen und Error-Strings
-#define RID_SVXQB_BW_CONTINUE (RID_EDIT_START + 300)
-#define RID_SVXQB_CONTINUE (RID_EDIT_START + 301)
-
-// EditEngine
-#define RID_EDITUNDO_DEL (RID_EDIT_START + 302)
-#define RID_EDITUNDO_MOVE (RID_EDIT_START + 303)
-#define RID_EDITUNDO_INSERT (RID_EDIT_START + 304)
-#define RID_EDITUNDO_REPLACE (RID_EDIT_START + 305)
-#define RID_EDITUNDO_SETATTRIBS (RID_EDIT_START + 306)
-#define RID_EDITUNDO_SETSTYLE (RID_EDIT_START + 307)
-#define RID_EDITUNDO_RESETATTRIBS (RID_EDIT_START + 308)
-#define RID_EDITUNDO_INDENT (RID_EDIT_START + 309)
-#define RID_EDITUNDO_TRANSLITERATE (RID_EDIT_START + 310)
-#define RID_MENU_SPELL (RID_EDIT_START + 311)
-#define RID_STR_PARAGRAPH (RID_EDIT_START + 312)
-#define RID_STR_WORD (RID_EDIT_START + 313)
-#define RID_SVXSTR_A11Y_IMAGEBULLET_DESCRIPTION (RID_EDIT_START + 314)
-#define RID_SVXSTR_A11Y_IMAGEBULLET_NAME (RID_EDIT_START + 315)
-
-// enum SvxCellHorJustify
-#define RID_SVXITEMS_HORJUST_STANDARD (RID_EDIT_START + 316)
-#define RID_SVXITEMS_HORJUST_LEFT (RID_EDIT_START + 317)
-#define RID_SVXITEMS_HORJUST_CENTER (RID_EDIT_START + 318)
-#define RID_SVXITEMS_HORJUST_RIGHT (RID_EDIT_START + 319)
-#define RID_SVXITEMS_HORJUST_BLOCK (RID_EDIT_START + 320)
-#define RID_SVXITEMS_HORJUST_REPEAT (RID_EDIT_START + 321)
-
-// enum SvxCellVerJustify
-#define RID_SVXITEMS_VERJUST_STANDARD (RID_EDIT_START + 322)
-#define RID_SVXITEMS_VERJUST_TOP (RID_EDIT_START + 323)
-#define RID_SVXITEMS_VERJUST_CENTER (RID_EDIT_START + 324)
-#define RID_SVXITEMS_VERJUST_BOTTOM (RID_EDIT_START + 325)
-
-// enum SvxCellJustifyMethod
-#define RID_SVXITEMS_JUSTMETHOD_AUTO (RID_EDIT_START + 326)
-#define RID_SVXITEMS_JUSTMETHOD_DISTRIBUTE (RID_EDIT_START + 327)
-
-#if 327 > (RID_EDIT_END-RID_EDIT_START)
-#error Resource-Ueberlauf in #line, #file
-#endif
-
-
-
-#endif
-
-// ******************************************************************* EOF
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/editstat.hxx b/editeng/inc/editeng/editstat.hxx
deleted file mode 100644
index 175267938c91..000000000000
--- a/editeng/inc/editeng/editstat.hxx
+++ /dev/null
@@ -1,139 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _EDITSTAT_HXX
-#define _EDITSTAT_HXX
-
-#include
-#include
-
-#define EE_CNTRL_USECHARATTRIBS 0x00000001 // Use of hard character attributes
-#define EE_CNTRL_USEPARAATTRIBS 0x00000002 // Using paragraph attributes.
-#define EE_CNTRL_CRSRLEFTPARA 0x00000004 // Cursor is moved to another paragraph
-#define EE_CNTRL_DOIDLEFORMAT 0x00000008 // Formatting idle
-#define EE_CNTRL_PASTESPECIAL 0x00000010 // Allow PasteSpecial
-#define EE_CNTRL_AUTOINDENTING 0x00000020 // Automatic indenting
-#define EE_CNTRL_UNDOATTRIBS 0x00000040 // Undo for Attributes....
-#define EE_CNTRL_ONECHARPERLINE 0x00000080 // One character per line
-#define EE_CNTRL_NOCOLORS 0x00000100 // Engine: No Color
-#define EE_CNTRL_OUTLINER 0x00000200 // Special treatment Outliner/Outline mode
-#define EE_CNTRL_OUTLINER2 0x00000400 // Special treatment Outliner/Page
-#define EE_CNTRL_ALLOWBIGOBJS 0x00000800 // Portion info in text object
-#define EE_CNTRL_ONLINESPELLING 0x00001000 // During the edit Spelling
-#define EE_CNTRL_STRETCHING 0x00002000 // Stretch mode
-#define EE_CNTRL_MARKFIELDS 0x00004000 // Mark Fields with color
-#define EE_CNTRL_URLSFXEXECUTE 0x00008000 // !!!OLD!!!: SFX-URL-Execute.
-#define EE_CNTRL_RESTOREFONT 0x00010000 // Restore Font in OutDev
-#define EE_CNTRL_RTFSTYLESHEETS 0x00020000 // Use Stylesheets when imported
-//#define EE_CNTRL_NOREDLINES 0x00040000 // No RedLines when OnlineSpellError /* removed #i91949 */
-#define EE_CNTRL_AUTOCORRECT 0x00080000 // AutoCorrect
-#define EE_CNTRL_AUTOCOMPLETE 0x00100000 // AutoComplete
-#define EE_CNTRL_AUTOPAGESIZEX 0x00200000 // Adjust paper width to Text
-#define EE_CNTRL_AUTOPAGESIZEY 0x00400000 // Adjust paper height to Text
-#define EE_CNTRL_AUTOPAGESIZE (EE_CNTRL_AUTOPAGESIZEX|EE_CNTRL_AUTOPAGESIZEY)
-#define EE_CNTRL_TABINDENTING 0x00800000 // Indent with tab
-#define EE_CNTRL_FORMAT100 0x01000000 // Always format to 100%
-#define EE_CNTRL_ULSPACESUMMATION 0x02000000 // MS Compat: sum SA and SB, not maximum value
-#define EE_CNTRL_ULSPACEFIRSTPARA 0x04000000 // MS Compat: evaluate also at the first paragraph
-
-#define EV_CNTRL_AUTOSCROLL 0x00000001 // Auto scrolling horizontally
-#define EV_CNTRL_BIGSCROLL 0x00000002 // Scroll further to the cursor
-#define EV_CNTRL_ENABLEPASTE 0x00000004 // Enable Paste
-#define EV_CNTRL_SINGLELINEPASTE 0x00000008 // View: Paste in input line ...
-#define EV_CNTRL_OVERWRITE 0x00000010 // Overwrite mode
-#define EV_CNTRL_INVONEMORE 0x00000020 // Invalidate one pixel more
-#define EV_CNTRL_AUTOSIZEX 0x00000040 // Automatically adapt to text width
-#define EV_CNTRL_AUTOSIZEY 0x00000080 // Automatically adapt to Text width
-#define EV_CNTRL_AUTOSIZE (EV_CNTRL_AUTOSIZEX|EV_CNTRL_AUTOSIZEY)
-
-#define EE_STAT_HSCROLL 0x00000001
-#define EE_STAT_VSCROLL 0x00000002
-#define EE_STAT_CURSOROUT 0x00000004
-#define EE_STAT_CRSRMOVEFAIL 0x00000008
-#define EE_STAT_CRSRLEFTPARA 0x00000010
-#define EE_STAT_TEXTWIDTHCHANGED 0x00000020
-#define EE_STAT_TEXTHEIGHTCHANGED 0x00000040
-#define EE_STAT_WRONGWORDCHANGED 0x00000080
-// #define EE_STAT_MODIFIED 0x00000100
-
-/*
- EE_STAT_CRSRLEFTPARA at the time cursor movement and the enter.
-*/
-
-inline void SetFlags( sal_uLong& rBits, const sal_uInt32 nMask, bool bOn )
-{
- if ( bOn )
- rBits |= nMask;
- else
- rBits &= ~nMask;
-}
-
-class EditStatus
-{
-protected:
- sal_uLong nStatusBits;
- sal_uLong nControlBits;
- sal_uInt16 nPrevPara; // for EE_STAT_CRSRLEFTPARA
-
-public:
- EditStatus() { nStatusBits = 0; nControlBits = 0; nPrevPara = 0xFFFF; }
-
- void Clear() { nStatusBits = 0; }
- void SetControlBits( sal_uLong nMask, bool bOn )
- { SetFlags( nControlBits, nMask, bOn ); }
-
- sal_uLong GetStatusWord() const { return nStatusBits; }
- sal_uLong& GetStatusWord() { return nStatusBits; }
-
- sal_uLong GetControlWord() const { return nControlBits; }
- sal_uLong& GetControlWord() { return nControlBits; }
-
- sal_uInt16 GetPrevParagraph() const { return nPrevPara; }
- sal_uInt16& GetPrevParagraph() { return nPrevPara; }
-};
-
-#define SPELLCMD_IGNOREWORD 0x0001
-#define SPELLCMD_STARTSPELLDLG 0x0002
-#define SPELLCMD_ADDTODICTIONARY 0x0003
-#define SPELLCMD_WORDLANGUAGE 0x0004
-#define SPELLCMD_PARALANGUAGE 0x0005
-
-struct SpellCallbackInfo
-{
- sal_uInt16 nCommand;
- String aWord;
- LanguageType eLanguage;
-
- SpellCallbackInfo( sal_uInt16 nCMD, const String& rWord )
- : aWord( rWord )
- {
- nCommand = nCMD;
- eLanguage = LANGUAGE_DONTKNOW;
- }
-
- SpellCallbackInfo( sal_uInt16 nCMD, LanguageType eLang )
- {
- nCommand = nCMD;
- eLanguage = eLang;
- }
-};
-
-#endif // _EDITSTAT_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/editund2.hxx b/editeng/inc/editeng/editund2.hxx
deleted file mode 100644
index 2312aee93c79..000000000000
--- a/editeng/inc/editeng/editund2.hxx
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _EDITUND2_HXX
-#define _EDITUND2_HXX
-
-#include "editeng/editengdllapi.h"
-#include
-
-class EditEngine;
-
-class EDITENG_DLLPRIVATE EditUndoManager : public SfxUndoManager
-{
- using SfxUndoManager::Undo;
- using SfxUndoManager::Redo;
-
- EditEngine* mpEditEngine;
-public:
- EditUndoManager(EditEngine* pEE);
-
- virtual sal_Bool Undo();
- virtual sal_Bool Redo();
-};
-
-// -----------------------------------------------------------------------
-// EditUndo
-// ------------------------------------------------------------------------
-class EDITENG_DLLPUBLIC EditUndo : public SfxUndoAction
-{
-private:
- sal_uInt16 nId;
- EditEngine* mpEditEngine;
-
-public:
- EditUndo(sal_uInt16 nI, EditEngine* pEE);
- virtual ~EditUndo();
-
- EditEngine* GetEditEngine();
-
- virtual void Undo() = 0;
- virtual void Redo() = 0;
-
- virtual sal_Bool CanRepeat(SfxRepeatTarget&) const;
- virtual OUString GetComment() const;
- virtual sal_uInt16 GetId() const;
-};
-
-#endif // _EDITUND2_HXX
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/editview.hxx b/editeng/inc/editeng/editview.hxx
deleted file mode 100644
index a2f5ce8a3d65..000000000000
--- a/editeng/inc/editeng/editview.hxx
+++ /dev/null
@@ -1,247 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-// MyEDITVIEW, due to exported EditView
-#ifndef _MyEDITVIEW_HXX
-#define _MyEDITVIEW_HXX
-
-#include
-
-#include
-#include
-#include
-#include
-
-class EditEngine;
-class ImpEditEngine;
-class ImpEditView;
-class SvxSearchItem;
-class SvxFieldItem;
-class Window;
-class Pointer;
-class Cursor;
-class KeyEvent;
-class MouseEvent;
-class DropEvent;
-class CommandEvent;
-class Rectangle;
-class Link;
-class Pair;
-class Point;
-class Range;
-class SvStream;
-class SvKeyValueIterator;
-class SfxStyleSheet;
-class Font;
-class FontList;
-class OutputDevice;
-
-#include
-#include
-#include "editeng/editengdllapi.h"
-
-namespace com {
-namespace sun {
-namespace star {
-namespace datatransfer {
- class XTransferable;
-}
-namespace linguistic2 {
- class XSpellChecker1;
- class XLanguageGuessing;
-}
-}}}
-
-class EDITENG_DLLPUBLIC EditView
-{
- friend class EditEngine;
- friend class ImpEditEngine;
- friend class EditSelFunctionSet;
-
-public: // Needed for Undo
- ImpEditView* GetImpEditView() const { return pImpEditView; }
- ImpEditEngine* GetImpEditEngine() const;
-
-private:
- ImpEditView* pImpEditView;
- String aDicNameSingle;
-
- EDITENG_DLLPRIVATE EditView( const EditView& );
- EDITENG_DLLPRIVATE EditView& operator=( const EditView& );
-
-public:
- EditView( EditEngine* pEng, Window* pWindow );
- virtual ~EditView();
-
- void SetEditEngine( EditEngine* pEditEngine );
- EditEngine* GetEditEngine() const;
-
- void SetWindow( Window* pWin );
- Window* GetWindow() const;
-
- void Paint( const Rectangle& rRect, OutputDevice* pTargetDevice = 0 );
- void Invalidate();
- Pair Scroll( long nHorzScroll, long nVertScroll, sal_uInt8 nRangeCheck = RGCHK_NEG );
-
- void ShowCursor( sal_Bool bGotoCursor = sal_True, sal_Bool bForceVisCursor = sal_True );
- void HideCursor();
-
- void SetSelectionMode( EESelectionMode eMode );
-
- void SetReadOnly( sal_Bool bReadOnly );
- sal_Bool IsReadOnly() const;
-
- sal_Bool HasSelection() const;
- ESelection GetSelection() const;
- void SetSelection( const ESelection& rNewSel );
- sal_Bool SelectCurrentWord( sal_Int16 nWordType = ::com::sun::star::i18n::WordType::ANYWORD_IGNOREWHITESPACES );
-
- sal_Bool IsInsertMode() const;
- void SetInsertMode( sal_Bool bInsert );
-
- void ReplaceSelected( const String& rStr );
- String GetSelected();
- void DeleteSelected();
-
- sal_uInt16 GetSelectedScriptType() const;
-
- // VisArea position of the Output window.
- // A size change also affects the VisArea
- void SetOutputArea( const Rectangle& rRect );
- const Rectangle& GetOutputArea() const;
-
- // Document position.
- // A size change also affects the VisArea
- void SetVisArea( const Rectangle& rRect );
- const Rectangle& GetVisArea() const;
-
- const Pointer& GetPointer() const;
-
- Cursor* GetCursor() const;
-
- void InsertText( const String& rNew, sal_Bool bSelect = sal_False );
-
- sal_Bool PostKeyEvent( const KeyEvent& rKeyEvent, Window* pFrameWin = NULL );
-
- sal_Bool MouseButtonUp( const MouseEvent& rMouseEvent );
- sal_Bool MouseButtonDown( const MouseEvent& rMouseEvent );
- sal_Bool MouseMove( const MouseEvent& rMouseEvent );
- void Command( const CommandEvent& rCEvt );
-
- void Cut();
- void Copy();
- void Paste();
- void PasteSpecial();
-
- void Undo();
- void Redo();
-
- // especially for Oliver Specht
- Point GetWindowPosTopLeft( sal_uInt16 nParagraph );
- void MoveParagraphs( Range aParagraphs, sal_uInt16 nNewPos );
- void MoveParagraphs( long nDiff );
-
- const SfxItemSet& GetEmptyItemSet();
- SfxItemSet GetAttribs();
- void SetAttribs( const SfxItemSet& rSet );
- void RemoveAttribs( sal_Bool bRemoveParaAttribs = sal_False, sal_uInt16 nWhich = 0 );
- void RemoveCharAttribs( sal_uInt16 nPara, sal_uInt16 nWhich = 0 );
- void RemoveAttribsKeepLanguages( sal_Bool bRemoveParaAttribs = sal_False );
-
- sal_uLong Read( SvStream& rInput, const String& rBaseURL, EETextFormat eFormat, sal_Bool bSelect = sal_False, SvKeyValueIterator* pHTTPHeaderAttrs = NULL );
-
- void SetBackgroundColor( const Color& rColor );
- Color GetBackgroundColor() const;
-
- void SetControlWord( sal_uInt32 nWord );
- sal_uInt32 GetControlWord() const;
-
- EditTextObject* CreateTextObject();
- void InsertText( const EditTextObject& rTextObject );
- void InsertText( ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > xDataObj, const String& rBaseURL, sal_Bool bUseSpecial );
-
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > GetTransferable();
-
- // An EditView, so that when TRUE the update will be free from flickering:
- void SetEditEngineUpdateMode( sal_Bool bUpdate );
- void ForceUpdate();
-
- const SfxStyleSheet* GetStyleSheet() const;
- SfxStyleSheet* GetStyleSheet();
-
- void SetAnchorMode( EVAnchorMode eMode );
- EVAnchorMode GetAnchorMode() const;
-
- void CompleteAutoCorrect( Window* pFrameWin = NULL );
-
- EESpellState StartSpeller( sal_Bool bMultipleDoc = sal_False );
- EESpellState StartThesaurus();
- sal_uInt16 StartSearchAndReplace( const SvxSearchItem& rSearchItem );
-
- // for text conversion
- void StartTextConversion( LanguageType nSrcLang, LanguageType nDestLang, const Font *pDestFont, sal_Int32 nOptions, sal_Bool bIsInteractive, sal_Bool bMultipleDoc );
- sal_Bool HasConvertibleTextPortion( LanguageType nLang );
-
- void TransliterateText( sal_Int32 nTransliterationMode );
-
- sal_Bool IsCursorAtWrongSpelledWord( sal_Bool bMarkIfWrong = sal_False );
- sal_Bool IsWrongSpelledWordAtPos( const Point& rPosPixel, sal_Bool bMarkIfWrong = sal_False );
- void ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack = 0 );
-
- void InsertField( const SvxFieldItem& rFld );
- const SvxFieldItem* GetFieldUnderMousePointer() const;
- const SvxFieldItem* GetFieldUnderMousePointer( sal_uInt16& nPara, xub_StrLen& nPos ) const;
- const SvxFieldItem* GetField( const Point& rPos, sal_uInt16* pnPara = NULL, xub_StrLen* pnPos = NULL ) const;
-
- const SvxFieldItem* GetFieldAtSelection() const;
-
- void SetInvalidateMore( sal_uInt16 nPixel );
- sal_uInt16 GetInvalidateMore() const;
-
- // grows or shrinks the font height for the current selection
- void ChangeFontSize( bool bGrow, const FontList* pList );
-
- static bool ChangeFontSize( bool bGrow, SfxItemSet& rSet, const FontList* pFontList );
-
- String GetSurroundingText() const;
- Selection GetSurroundingTextSelection() const;
-
- /** Tries to determine the language of 'rText', returning a matching known
- locale if possible, or a fallback, or LANGUAGE_NONE if nothing found or
- matched.
-
- @param bIsParaText
- If TRUE, rText is a paragraph and the language is obtained by
- passing the text to xLangGuess.
- IF FALSE, a language match is tried for, in order,
- 1. the default document language (non-CTL, non-CJK, aka LATIN)
- 2. the UI language (Tools->Options->LanguageSettings->Languages User Interface)
- 3. the locale (Tools->Options->LanguageSettings->Languages Locale)
- 4. en-US
- If nothing matched, LANGUAGE_NONE is returned.
- */
- static LanguageType CheckLanguage(
- const OUString &rText,
- com::sun::star::uno::Reference< com::sun::star::linguistic2::XSpellChecker1 > xSpell,
- com::sun::star::uno::Reference< com::sun::star::linguistic2::XLanguageGuessing > xLangGuess,
- bool bIsParaText );
-};
-
-#endif // _MyEDITVIEW_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/edtdlg.hxx b/editeng/inc/editeng/edtdlg.hxx
deleted file mode 100644
index 7c998dfa637b..000000000000
--- a/editeng/inc/editeng/edtdlg.hxx
+++ /dev/null
@@ -1,102 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _EDT_ABSTDLG_HXX
-#define _EDT_ABSTDLG_HXX
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-namespace com { namespace sun { namespace star { namespace linguistic2
-{
- class XThesaurus;
- class XHyphenator;
-} } } }
-
-class Window;
-class ResId;
-class Link;
-class SvxSpellWrapper;
-
-class AbstractThesaurusDialog : public VclAbstractDialog
-{
-public:
- virtual String GetWord() = 0;
- virtual sal_uInt16 GetLanguage() const = 0;
- virtual Window* GetWindow() = 0;
-};
-
-class AbstractHyphenWordDialog : public VclAbstractDialog
-{
-public:
- virtual void SelLeft() = 0;
- virtual void SelRight() = 0;
- virtual Window* GetWindow() = 0;
-};
-
-class AbstractHangulHanjaConversionDialog : public VclAbstractTerminatedDialog
-{
- public:
- virtual void EnableRubySupport( bool _bVal ) = 0;
- virtual void SetByCharacter( bool _bByCharacter ) = 0;
- virtual void SetConversionDirectionState( bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection ) = 0;
- virtual void SetConversionFormat( editeng::HangulHanjaConversion::ConversionFormat _eType ) = 0;
- virtual void SetOptionsChangedHdl( const Link& _rHdl ) = 0;
- virtual void SetIgnoreHdl( const Link& _rHdl ) = 0;
- virtual void SetIgnoreAllHdl( const Link& _rHdl ) = 0;
- virtual void SetChangeHdl( const Link& _rHdl ) = 0;
- virtual void SetChangeAllHdl( const Link& _rHdl ) = 0;
- virtual void SetClickByCharacterHdl( const Link& _rHdl ) = 0;
- virtual void SetConversionFormatChangedHdl( const Link& _rHdl ) = 0;
- virtual void SetFindHdl( const Link& _rHdl ) = 0;
- virtual bool GetUseBothDirections() const= 0;
- virtual editeng::HangulHanjaConversion::ConversionDirection GetDirection( editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection ) const = 0;
- virtual void SetCurrentString(
- const String& _rNewString,
- const ::com::sun::star::uno::Sequence< OUString >& _rSuggestions,
- bool _bOriginatesFromDocument = true )=0;
- virtual String GetCurrentString( ) const =0;
- virtual editeng::HangulHanjaConversion::ConversionFormat GetConversionFormat( ) const =0;
- virtual void FocusSuggestion( )= 0;
- virtual String GetCurrentSuggestion( ) const =0;
-};
-
-class EDITENG_DLLPUBLIC EditAbstractDialogFactory : virtual public VclAbstractDialogFactory
-{
-public:
- virtual ~EditAbstractDialogFactory(); // needed for export of vtable
- static EditAbstractDialogFactory* Create();
- virtual AbstractThesaurusDialog* CreateThesaurusDialog( Window*, ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XThesaurus > xThesaurus,
- const String &rWord, sal_Int16 nLanguage ) = 0;
-
- virtual AbstractHyphenWordDialog* CreateHyphenWordDialog( Window*,
- const String &rWord, LanguageType nLang,
- ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XHyphenator > &xHyphen,
- SvxSpellWrapper* pWrapper ) = 0;
- virtual AbstractHangulHanjaConversionDialog * CreateHangulHanjaConversionDialog( Window* _pParent,
- editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection ) = 0;
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/eedata.hxx b/editeng/inc/editeng/eedata.hxx
deleted file mode 100644
index 1332c56f4a54..000000000000
--- a/editeng/inc/editeng/eedata.hxx
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _EEDATA_HXX
-#define _EEDATA_HXX
-
-//////////////////////////////////////////////////////////////////////////////
-// extended data definitions for EditEngine portion stripping (StripPortions()
-// support). These may be mapped to some primitive definitions from Drawinglayer
-// later.
-#include
-
-namespace EEngineData
-{
- // spell checking wrong vector containing the redlining data
- class WrongSpellClass
- {
- public:
- sal_uInt32 nStart;
- sal_uInt32 nEnd;
-
- WrongSpellClass(sal_uInt32 nS, sal_uInt32 nE) : nStart(nS), nEnd(nE) {}
- };
-
- typedef std::vector< WrongSpellClass > WrongSpellVector;
-
- // text marking vector containing the EOC, EOW and EOS TEXT definitions
- enum TextMarkingType
- {
- EndOfCaracter = 0,
- EndOfWord = 1,
- EndOfSentence = 2
- };
-
- class TextMarkingClass
- {
- public:
- TextMarkingType eType;
- sal_uInt32 nIndex;
-
- TextMarkingClass(TextMarkingType eT, sal_uInt32 nI) : eType(eT), nIndex(nI) {}
- };
-
- typedef std::vector< TextMarkingClass > TextMarkingVector;
-
-} // end of namespace EditEngine
-
-#endif // _EEDATA_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/eeitem.hxx b/editeng/inc/editeng/eeitem.hxx
deleted file mode 100644
index 04ce68ce1ef5..000000000000
--- a/editeng/inc/editeng/eeitem.hxx
+++ /dev/null
@@ -1,97 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef EEITEM_HXX
-#define EEITEM_HXX
-
-#include
-
-#define EE_ITEMS_START (OWN_ATTR_VALUE_END+1)
-
-// Paragraph attributes:
-#define EE_PARA_START (EE_ITEMS_START+0)
-#define EE_PARA_WRITINGDIR (EE_ITEMS_START+0)
-#define EE_PARA_XMLATTRIBS (EE_ITEMS_START+1)
-#define EE_PARA_HANGINGPUNCTUATION (EE_ITEMS_START+2)
-#define EE_PARA_FORBIDDENRULES (EE_ITEMS_START+3)
-#define EE_PARA_ASIANCJKSPACING (EE_ITEMS_START+4)
-#define EE_PARA_NUMBULLET (EE_ITEMS_START+5)
-#define EE_PARA_HYPHENATE (EE_ITEMS_START+6)
-#define EE_PARA_BULLETSTATE (EE_ITEMS_START+7)
-#define EE_PARA_OUTLLRSPACE (EE_ITEMS_START+8)
-#define EE_PARA_OUTLLEVEL (EE_ITEMS_START+9)
-#define EE_PARA_BULLET (EE_ITEMS_START+10)
-#define EE_PARA_LRSPACE (EE_ITEMS_START+11)
-#define EE_PARA_ULSPACE (EE_ITEMS_START+12)
-#define EE_PARA_SBL (EE_ITEMS_START+13)
-#define EE_PARA_JUST (EE_ITEMS_START+14)
-#define EE_PARA_TABS (EE_ITEMS_START+15)
-#define EE_PARA_JUST_METHOD (EE_ITEMS_START+16)
-#define EE_PARA_VER_JUST (EE_ITEMS_START+17)
-#define EE_PARA_END (EE_ITEMS_START+17)
-
-// Character attributes:
-#define EE_CHAR_START (EE_ITEMS_START+18)
-#define EE_CHAR_COLOR (EE_ITEMS_START+18)
-#define EE_CHAR_FONTINFO (EE_ITEMS_START+19)
-#define EE_CHAR_FONTHEIGHT (EE_ITEMS_START+20)
-#define EE_CHAR_FONTWIDTH (EE_ITEMS_START+21)
-#define EE_CHAR_WEIGHT (EE_ITEMS_START+22)
-#define EE_CHAR_UNDERLINE (EE_ITEMS_START+23)
-#define EE_CHAR_STRIKEOUT (EE_ITEMS_START+24)
-#define EE_CHAR_ITALIC (EE_ITEMS_START+25)
-#define EE_CHAR_OUTLINE (EE_ITEMS_START+26)
-#define EE_CHAR_SHADOW (EE_ITEMS_START+27)
-#define EE_CHAR_ESCAPEMENT (EE_ITEMS_START+28)
-#define EE_CHAR_PAIRKERNING (EE_ITEMS_START+29)
-#define EE_CHAR_KERNING (EE_ITEMS_START+30)
-#define EE_CHAR_WLM (EE_ITEMS_START+31)
-#define EE_CHAR_LANGUAGE (EE_ITEMS_START+32)
-#define EE_CHAR_LANGUAGE_CJK (EE_ITEMS_START+33)
-#define EE_CHAR_LANGUAGE_CTL (EE_ITEMS_START+34)
-#define EE_CHAR_FONTINFO_CJK (EE_ITEMS_START+35)
-#define EE_CHAR_FONTINFO_CTL (EE_ITEMS_START+36)
-#define EE_CHAR_FONTHEIGHT_CJK (EE_ITEMS_START+37)
-#define EE_CHAR_FONTHEIGHT_CTL (EE_ITEMS_START+38)
-#define EE_CHAR_WEIGHT_CJK (EE_ITEMS_START+39)
-#define EE_CHAR_WEIGHT_CTL (EE_ITEMS_START+40)
-#define EE_CHAR_ITALIC_CJK (EE_ITEMS_START+41)
-#define EE_CHAR_ITALIC_CTL (EE_ITEMS_START+42)
-#define EE_CHAR_EMPHASISMARK (EE_ITEMS_START+43)
-#define EE_CHAR_RELIEF (EE_ITEMS_START+44)
-#define EE_CHAR_RUBI_DUMMY (EE_ITEMS_START+45)
-#define EE_CHAR_XMLATTRIBS (EE_ITEMS_START+46)
-#define EE_CHAR_OVERLINE (EE_ITEMS_START+47)
-#define EE_CHAR_END (EE_ITEMS_START+47)
-
-
-#define EE_FEATURE_START (EE_ITEMS_START+48)
-#define EE_FEATURE_TAB (EE_ITEMS_START+48)
-#define EE_FEATURE_LINEBR (EE_ITEMS_START+49)
-#define EE_FEATURE_NOTCONV (EE_ITEMS_START+50)
-#define EE_FEATURE_FIELD (EE_ITEMS_START+51)
-#define EE_FEATURE_END (EE_ITEMS_START+51)
-
-#define EE_ITEMS_END (EE_ITEMS_START+51)
-
-#define EDITITEMCOUNT ( EE_ITEMS_END - EE_ITEMS_START + 1 )
-
-#endif // _EEITEM_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/eeitemid.hxx b/editeng/inc/editeng/eeitemid.hxx
deleted file mode 100644
index 8230387048ff..000000000000
--- a/editeng/inc/editeng/eeitemid.hxx
+++ /dev/null
@@ -1,129 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _EEITEMID_HXX
-#define _EEITEMID_HXX
-
-#include
-
-#ifdef ITEMID_FONT
-#undef ITEMID_FONT
-#endif
-#ifdef ITEMID_FONTHEIGHT
-#undef ITEMID_FONTHEIGHT
-#endif
-#ifdef ITEMID_COLOR
-#undef ITEMID_COLOR
-#endif
-#ifdef ITEMID_WEIGHT
-#undef ITEMID_WEIGHT
-#endif
-#ifdef ITEMID_POSTURE
-#undef ITEMID_POSTURE
-#endif
-#ifdef ITEMID_SHADOWED
-#undef ITEMID_SHADOWED
-#endif
-#ifdef ITEMID_CONTOUR
-#undef ITEMID_CONTOUR
-#endif
-#ifdef ITEMID_CROSSEDOUT
-#undef ITEMID_CROSSEDOUT
-#endif
-#ifdef ITEMID_UNDERLINE
-#undef ITEMID_UNDERLINE
-#endif
-#ifdef ITEMID_OVERLINE
-#undef ITEMID_OVERLINE
-#endif
-#ifdef ITEMID_LANGUAGE
-#undef ITEMID_LANGUAGE
-#endif
-#ifdef ITEMID_ADJUST
-#undef ITEMID_ADJUST
-#endif
-#ifdef ITEMID_WORDLINEMODE
-#undef ITEMID_WORDLINEMODE
-#endif
-#ifdef ITEMID_CHARSETCOLOR
-#undef ITEMID_CHARSETCOLOR
-#endif
-#ifdef ITEMID_SEARCH
-#undef ITEMID_SEARCH
-#endif
-#ifdef ITEMID_BRUSH
-#undef ITEMID_BRUSH
-#endif
-
-// Character Attributes....
-#define ITEMID_FONT EE_CHAR_FONTINFO
-#define ITEMID_POSTURE EE_CHAR_ITALIC
-#define ITEMID_WEIGHT EE_CHAR_WEIGHT
-#define ITEMID_SHADOWED EE_CHAR_SHADOW
-#define ITEMID_CONTOUR EE_CHAR_OUTLINE
-#define ITEMID_CROSSEDOUT EE_CHAR_STRIKEOUT
-#define ITEMID_UNDERLINE EE_CHAR_UNDERLINE
-#define ITEMID_OVERLINE EE_CHAR_OVERLINE
-#define ITEMID_FONTHEIGHT EE_CHAR_FONTHEIGHT
-#define ITEMID_CHARSCALE_W EE_CHAR_FONTWIDTH
-#define ITEMID_COLOR EE_CHAR_COLOR
-#define ITEMID_WORDLINEMODE EE_CHAR_WLM
-#define ITEMID_PROPSIZE 0
-#define ITEMID_CHARSETCOLOR 0 // EE_FEATURE_NOTCONV
-#define ITEMID_CASEMAP 0
-#define ITEMID_LANGUAGE 0
-#define ITEMID_ESCAPEMENT EE_CHAR_ESCAPEMENT
-#define ITEMID_NOLINEBREAK 0
-#define ITEMID_NOHYPHENHERE 0
-#define ITEMID_AUTOKERN EE_CHAR_PAIRKERNING
-#define ITEMID_KERNING EE_CHAR_KERNING
-#define ITEMID_EMPHASISMARK EE_CHAR_EMPHASISMARK
-#define ITEMID_CHARRELIEF EE_CHAR_RELIEF
-
-// Paragraph Attributes
-#define ITEMID_SCRIPTSPACE EE_PARA_ASIANCJKSPACING
-#define ITEMID_ADJUST EE_PARA_JUST
-#define ITEMID_LINESPACING EE_PARA_SBL
-#define ITEMID_WIDOWS 0
-#define ITEMID_ORPHANS 0
-#define ITEMID_HYPHENZONE 0
-
-#define ITEMID_TABSTOP EE_PARA_TABS
-
-#define ITEMID_PAPERBIN 0
-#define ITEMID_LRSPACE EE_PARA_LRSPACE
-#define ITEMID_ULSPACE EE_PARA_ULSPACE
-#define ITEMID_FRAMEDIR EE_PARA_WRITINGDIR
-#define ITEMID_PRINT 0
-#define ITEMID_OPAQUE 0
-#define ITEMID_PROTECT 0
-#define ITEMID_BACKGROUND 0
-#define ITEMID_SHADOW 0
-#define ITEMID_MACRO 0
-#define ITEMID_BOX 0
-#define ITEMID_BOXINFO 0
-#define ITEMID_BRUSH 0
-
-#define ITEMID_FIELD EE_FEATURE_FIELD
-
-#define ITEMID_SEARCH 0
-
-#endif //_EEITEMID_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/eerdll.hxx b/editeng/inc/editeng/eerdll.hxx
deleted file mode 100644
index 2d6ba34976fa..000000000000
--- a/editeng/inc/editeng/eerdll.hxx
+++ /dev/null
@@ -1,55 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _EERDLL_HXX
-#define _EERDLL_HXX
-
-class GlobalEditData;
-
-#include
-#include
-#include
-
-class EDITENG_DLLPUBLIC EditResId: public ResId
-{
-public:
- EditResId( sal_uInt16 nId );
-};
-
-class EditDLL
-{
- ResMgr* pResMgr;
- GlobalEditData* pGlobalData;
-
-public:
- EditDLL();
- ~EditDLL();
-
- ResMgr* GetResMgr() const { return pResMgr; }
- GlobalEditData* GetGlobalData() const { return pGlobalData; }
- static EditDLL& Get();
-};
-
-#define EE_DLL() EditDLL::Get()
-
-#define EE_RESSTR(x) EditResId(x).toString()
-
-#endif //_EERDLL_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/emphasismarkitem.hxx b/editeng/inc/editeng/emphasismarkitem.hxx
deleted file mode 100644
index 1be4b0a7ce7d..000000000000
--- a/editeng/inc/editeng/emphasismarkitem.hxx
+++ /dev/null
@@ -1,73 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_EMPHITEM_HXX
-#define _SVX_EMPHITEM_HXX
-
-#include
-#include
-#include
-
-class SvXMLUnitConverter;
-
-// class SvxEmphasisMarkItem ----------------------------------------------
-
-/* [Description]
-
- This item describes the Font emphasis.
-*/
-
-class EDITENG_DLLPUBLIC SvxEmphasisMarkItem : public SfxUInt16Item
-{
-public:
- TYPEINFO();
-
- SvxEmphasisMarkItem( const FontEmphasisMark eVal /*= EMPHASISMARK_NONE*/,
- const sal_uInt16 nId );
-
- // "pure virtual Methods" from SfxPoolItem + SfxEnumItem
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText,
- const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
- virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
-
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
-
- inline SvxEmphasisMarkItem& operator=(const SvxEmphasisMarkItem& rItem )
- {
- SetValue( rItem.GetValue() );
- return *this;
- }
-
- // enum cast
- FontEmphasisMark GetEmphasisMark() const
- { return (FontEmphasisMark)GetValue(); }
- void SetEmphasisMark( FontEmphasisMark eNew )
- { SetValue( (sal_uInt16)eNew ); }
-};
-
-#endif // #ifndef _SVX_EMPHITEM_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/escapementitem.hxx b/editeng/inc/editeng/escapementitem.hxx
deleted file mode 100644
index 53fcb736f971..000000000000
--- a/editeng/inc/editeng/escapementitem.hxx
+++ /dev/null
@@ -1,101 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_ESCPITEM_HXX
-#define _SVX_ESCPITEM_HXX
-
-#include
-#include
-#include
-
-class SvXMLUnitConverter;
-
-// class SvxEscapementItem -----------------------------------------------
-
-#define DFLT_ESC_SUPER 33 // 1/3
-#define DFLT_ESC_SUB -33 // also 1/3 previously 8/100
-#define DFLT_ESC_PROP 58
-#define DFLT_ESC_AUTO_SUPER 101
-#define DFLT_ESC_AUTO_SUB -101
-
-/* [Description]
-
- This item describes the writing position.
-*/
-
-class EDITENG_DLLPUBLIC SvxEscapementItem : public SfxEnumItemInterface
-{
- short nEsc;
- sal_uInt8 nProp;
-public:
- TYPEINFO();
-
- explicit SvxEscapementItem( const sal_uInt16 nId );
- SvxEscapementItem( const SvxEscapement eEscape,
- const sal_uInt16 nId );
- SvxEscapementItem( const short nEsc, const sal_uInt8 nProp,
- const sal_uInt16 nId );
-
- // "pure virtual Methods" from SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
-
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
-
- inline void SetEscapement( const SvxEscapement eNew )
- {
- if( SVX_ESCAPEMENT_OFF == eNew )
- nEsc = 0, nProp = 100;
- else
- if( SVX_ESCAPEMENT_SUPERSCRIPT == eNew )
- nEsc = DFLT_ESC_SUPER, nProp = DFLT_ESC_PROP;
- else
- nEsc = DFLT_ESC_SUB, nProp = DFLT_ESC_PROP;
- }
- inline SvxEscapement GetEscapement() const { return static_cast< SvxEscapement >( GetEnumValue() ); }
-
- inline short &GetEsc() { return nEsc; }
- inline short GetEsc() const { return nEsc; }
-
- inline sal_uInt8 &GetProp() { return nProp; }
- inline sal_uInt8 GetProp() const { return nProp; }
-
- inline SvxEscapementItem& operator=(const SvxEscapementItem& rEsc)
- {
- nEsc = rEsc.GetEsc();
- nProp = rEsc.GetProp();
- return *this;
- }
-
- virtual sal_uInt16 GetValueCount() const;
- virtual OUString GetValueTextByPos( sal_uInt16 nPos ) const;
- virtual sal_uInt16 GetEnumValue() const;
- virtual void SetEnumValue( sal_uInt16 nNewVal );
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/fhgtitem.hxx b/editeng/inc/editeng/fhgtitem.hxx
deleted file mode 100644
index 60f417428827..000000000000
--- a/editeng/inc/editeng/fhgtitem.hxx
+++ /dev/null
@@ -1,103 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_FHGTITEM_HXX
-#define _SVX_FHGTITEM_HXX
-
-#include
-#include
-
-class SvXMLUnitConverter;
-
-// class SvxFontHeightItem -----------------------------------------------
-
-// Warning: twips values
-
-/* [Description]
-
- This item describes the font height
-*/
-
-#define FONTHEIGHT_16_VERSION ((sal_uInt16)0x0001)
-#define FONTHEIGHT_UNIT_VERSION ((sal_uInt16)0x0002)
-
-class EDITENG_DLLPUBLIC SvxFontHeightItem : public SfxPoolItem
-{
- sal_uInt32 nHeight;
- sal_uInt16 nProp; // default 100%
- SfxMapUnit ePropUnit; // Percent, Twip, ...
-public:
- TYPEINFO();
-
- SvxFontHeightItem( const sal_uLong nSz /*= 240*/, const sal_uInt16 nPropHeight /*= 100*/,
- const sal_uInt16 nId );
-
- // "pure virtual Methods" from SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
- virtual sal_uInt16 GetVersion( sal_uInt16 nItemVersion) const;
- virtual bool ScaleMetrics( long nMult, long nDiv );
- virtual bool HasMetrics() const;
-
- inline SvxFontHeightItem& operator=(const SvxFontHeightItem& rSize)
- {
- SetHeightValue( rSize.GetHeight() );
- SetProp( rSize.GetProp(), ePropUnit );
- return *this;
- }
-
- void SetHeight( sal_uInt32 nNewHeight, const sal_uInt16 nNewProp = 100,
- SfxMapUnit eUnit = SFX_MAPUNIT_RELATIVE );
-
- void SetHeight( sal_uInt32 nNewHeight, sal_uInt16 nNewProp,
- SfxMapUnit eUnit, SfxMapUnit eCoreUnit );
-
- sal_uInt32 GetHeight() const { return nHeight; }
-
- void SetHeightValue( sal_uInt32 nNewHeight )
- {
- DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
- nHeight = nNewHeight;
- }
-
- void SetProp( const sal_uInt16 nNewProp,
- SfxMapUnit eUnit = SFX_MAPUNIT_RELATIVE )
- {
- DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
- nProp = nNewProp;
- ePropUnit = eUnit;
- }
-
- sal_uInt16 GetProp() const { return nProp; }
-
- SfxMapUnit GetPropUnit() const { return ePropUnit; } // Percent, Twip, ...
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/fieldupdater.hxx b/editeng/inc/editeng/fieldupdater.hxx
deleted file mode 100644
index 8ddab5ecf91e..000000000000
--- a/editeng/inc/editeng/fieldupdater.hxx
+++ /dev/null
@@ -1,47 +0,0 @@
-/* -*- 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 __EDITENG_FIELDUPDATER_HXX__
-#define __EDITENG_FIELDUPDATER_HXX__
-
-#include "editengdllapi.h"
-
-class EditTextObject;
-
-namespace editeng {
-
-class FieldUpdaterImpl;
-
-/**
- * Wrapper for EditTextObject to handle updating of fields without exposing
- * the internals of EditTextObject structure.
- */
-class EDITENG_DLLPUBLIC FieldUpdater
-{
- FieldUpdaterImpl* mpImpl;
-
- FieldUpdater(); // disabled
-public:
- FieldUpdater(EditTextObject& rObj);
- FieldUpdater(const FieldUpdater& r);
- ~FieldUpdater();
-
- /**
- * Set a new table ID to all table fields.
- *
- * @param nTab new table ID
- */
- void updateTableFields(int nTab);
-};
-
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/flditem.hxx b/editeng/inc/editeng/flditem.hxx
deleted file mode 100644
index 37f42a37c217..000000000000
--- a/editeng/inc/editeng/flditem.hxx
+++ /dev/null
@@ -1,420 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_FLDITEM_HXX
-#define _SVX_FLDITEM_HXX
-
-#include
-#include
-#include
-#include
-#include
-#include "editeng/editengdllapi.h"
-
-#include
-
-#include
-
-namespace com { namespace sun { namespace star { namespace text {
-
-class XTextContent;
-
-}}}}
-
-class SvNumberFormatter;
-class MetaAction;
-
-// class SvxFieldItem ---------------------------------------------------
-
-
-
-class EDITENG_DLLPUBLIC SvxFieldData : public SvPersistBase
-{
-public:
- static const sal_Int32 UNKNOWN_FIELD;
-
- static SvxFieldData* Create(const com::sun::star::uno::Reference& xContent);
-
- SV_DECL_PERSIST1( SvxFieldData, SvPersistBase, com::sun::star::text::textfield::Type::UNSPECIFIED)
-
- SvxFieldData();
- virtual ~SvxFieldData();
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-
- virtual MetaAction* createBeginComment() const;
- virtual MetaAction* createEndComment() const;
-};
-
-/**
- * This item stores a field (SvxFieldData). The field is controlled by or
- * belongs to the item. The field itself is determined by a derivation from
- * SvxFieldData (RTTI)
- */
-class EDITENG_DLLPUBLIC SvxFieldItem : public SfxPoolItem
-{
-private:
- SvxFieldData* pField;
-
- EDITENG_DLLPRIVATE SvxFieldItem( SvxFieldData* pField, const sal_uInt16 nId );
-
-public:
- TYPEINFO();
-
- SvxFieldItem( const SvxFieldData& rField, const sal_uInt16 nId );
- SvxFieldItem( const SvxFieldItem& rItem );
- ~SvxFieldItem();
-
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream&, sal_uInt16 nVer ) const;
- virtual SvStream& Store( SvStream& , sal_uInt16 nItemVersion ) const;
-
- const SvxFieldData* GetField() const { return pField; }
- static SvClassManager& GetClassManager();
-};
-
-// =================================================================
-// The following are the derivatives of SvxFieldData ...
-// =================================================================
-
-enum SvxDateType { SVXDATETYPE_FIX, SVXDATETYPE_VAR };
-enum SvxDateFormat { SVXDATEFORMAT_APPDEFAULT = 0, // Set as in App
- SVXDATEFORMAT_SYSTEM, // Set as in System
- SVXDATEFORMAT_STDSMALL,
- SVXDATEFORMAT_STDBIG,
- SVXDATEFORMAT_A, // 13.02.96
- SVXDATEFORMAT_B, // 13.02.1996
- SVXDATEFORMAT_C, // 13.Feb 1996
- SVXDATEFORMAT_D, // 13.February 1996
- SVXDATEFORMAT_E, // Tue, 13.February 1996
- SVXDATEFORMAT_F // Tuesday, 13.February 1996
- };
-
-class EDITENG_DLLPUBLIC SvxDateField : public SvxFieldData
-{
- sal_uInt32 nFixDate;
- SvxDateType eType;
- SvxDateFormat eFormat;
-
-public:
- SV_DECL_PERSIST1( SvxDateField, SvxFieldData, com::sun::star::text::textfield::Type::DATE )
-
- SvxDateField();
- explicit SvxDateField( const Date& rDate,
- SvxDateType eType = SVXDATETYPE_VAR,
- SvxDateFormat eFormat = SVXDATEFORMAT_STDSMALL );
-
- sal_uInt32 GetFixDate() const { return nFixDate; }
- void SetFixDate( const Date& rDate ) { nFixDate = rDate.GetDate(); }
-
- SvxDateType GetType() const { return eType; }
- void SetType( SvxDateType eTp ) { eType = eTp; }
-
- SvxDateFormat GetFormat() const { return eFormat; }
- void SetFormat( SvxDateFormat eFmt ) { eFormat = eFmt; }
-
- // If eLanguage==LANGUAGE_DONTKNOW the language/country
- // used in number formatter initialization is taken.
- OUString GetFormatted( SvNumberFormatter& rFormatter, LanguageType eLanguage ) const;
- static OUString GetFormatted( Date& rDate, SvxDateFormat eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-
- virtual MetaAction* createBeginComment() const;
-};
-
-
-enum SvxURLFormat { SVXURLFORMAT_APPDEFAULT = 0, // Set as in App
- SVXURLFORMAT_URL, // Represent URL
- SVXURLFORMAT_REPR // Constitute repraesentation
- };
-
-class EDITENG_DLLPUBLIC SvxURLField : public SvxFieldData
-{
-private:
- SvxURLFormat eFormat;
- OUString aURL; // URL-Address
- OUString aRepresentation; // What is shown
- OUString aTargetFrame; // In what Frame
-
-public:
- SV_DECL_PERSIST1( SvxURLField, SvxFieldData, com::sun::star::text::textfield::Type::URL )
-
- SvxURLField();
- SvxURLField( const OUString& rURL, const OUString& rRepres, SvxURLFormat eFmt = SVXURLFORMAT_URL );
-
- const OUString& GetURL() const { return aURL; }
- void SetURL( const OUString& rURL ) { aURL = rURL; }
-
- const OUString& GetRepresentation() const { return aRepresentation; }
- void SetRepresentation( const OUString& rRep ) { aRepresentation= rRep; }
-
- const OUString& GetTargetFrame() const { return aTargetFrame; }
- void SetTargetFrame( const OUString& rFrm ) { aTargetFrame = rFrm; }
-
- SvxURLFormat GetFormat() const { return eFormat; }
- void SetFormat( SvxURLFormat eFmt ) { eFormat = eFmt; }
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-
- virtual MetaAction* createBeginComment() const;
-};
-
-class EDITENG_DLLPUBLIC SvxPageField : public SvxFieldData
-{
-public:
- SV_DECL_PERSIST1( SvxPageField, SvxFieldData, com::sun::star::text::textfield::Type::PAGE )
- SvxPageField();
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-
- virtual MetaAction* createBeginComment() const;
-};
-
-class EDITENG_DLLPUBLIC SvxPagesField : public SvxFieldData
-{
-public:
- SV_DECL_PERSIST1( SvxPagesField, SvxFieldData, com::sun::star::text::textfield::Type::PAGES )
- SvxPagesField();
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-};
-
-class EDITENG_DLLPUBLIC SvxTimeField : public SvxFieldData
-{
-public:
- SV_DECL_PERSIST1( SvxTimeField, SvxFieldData, com::sun::star::text::textfield::Type::TIME )
- SvxTimeField();
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-
- virtual MetaAction* createBeginComment() const;
-};
-
-class EDITENG_DLLPUBLIC SvxFileField : public SvxFieldData
-{
-public:
- SV_DECL_PERSIST1( SvxFileField, SvxFieldData, com::sun::star::text::textfield::Type::DOCINFO_TITLE )
- SvxFileField();
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-};
-
-class EDITENG_DLLPUBLIC SvxTableField : public SvxFieldData
-{
- int mnTab;
-public:
- SV_DECL_PERSIST1( SvxTableField, SvxFieldData, com::sun::star::text::textfield::Type::TABLE )
- SvxTableField();
- explicit SvxTableField(int nTab);
-
- void SetTab(int nTab);
- int GetTab() const;
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-};
-
-
-enum SvxTimeType { SVXTIMETYPE_FIX, SVXTIMETYPE_VAR };
-enum SvxTimeFormat { SVXTIMEFORMAT_APPDEFAULT = 0, // Set as in App
- SVXTIMEFORMAT_SYSTEM, // Set as in System
- SVXTIMEFORMAT_STANDARD,
- SVXTIMEFORMAT_24_HM, // 13:49
- SVXTIMEFORMAT_24_HMS, // 13:49:38
- SVXTIMEFORMAT_24_HMSH, // 13:49:38.78
- SVXTIMEFORMAT_12_HM, // 01:49
- SVXTIMEFORMAT_12_HMS, // 01:49:38
- SVXTIMEFORMAT_12_HMSH, // 01:49:38.78
- SVXTIMEFORMAT_AM_HM, // 01:49 PM
- SVXTIMEFORMAT_AM_HMS, // 01:49:38 PM
- SVXTIMEFORMAT_AM_HMSH // 01:49:38.78 PM
- };
-
-class EDITENG_DLLPUBLIC SvxExtTimeField : public SvxFieldData
-{
-private:
- sal_uInt32 nFixTime;
- SvxTimeType eType;
- SvxTimeFormat eFormat;
-
-public:
- SV_DECL_PERSIST1( SvxExtTimeField, SvxFieldData, com::sun::star::text::textfield::Type::EXTENDED_TIME )
- SvxExtTimeField();
- explicit SvxExtTimeField( const Time& rTime,
- SvxTimeType eType = SVXTIMETYPE_VAR,
- SvxTimeFormat eFormat = SVXTIMEFORMAT_STANDARD );
-
- sal_uInt32 GetFixTime() const { return nFixTime; }
- void SetFixTime( const Time& rTime ) { nFixTime = rTime.GetTime(); }
-
- SvxTimeType GetType() const { return eType; }
- void SetType( SvxTimeType eTp ) { eType = eTp; }
-
- SvxTimeFormat GetFormat() const { return eFormat; }
- void SetFormat( SvxTimeFormat eFmt ) { eFormat = eFmt; }
-
- // If eLanguage==LANGUAGE_DONTKNOW the language/country
- // used in number formatter initialization is taken.
- OUString GetFormatted( SvNumberFormatter& rFormatter, LanguageType eLanguage ) const;
- static OUString GetFormatted( Time& rTime, SvxTimeFormat eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-
- virtual MetaAction* createBeginComment() const;
-};
-
-
-enum SvxFileType { SVXFILETYPE_FIX, SVXFILETYPE_VAR };
-enum SvxFileFormat { SVXFILEFORMAT_NAME_EXT = 0, // File name with Extension
- SVXFILEFORMAT_FULLPATH, // full path
- SVXFILEFORMAT_PATH, // only path
- SVXFILEFORMAT_NAME // only file name
- };
-
-
-
-class EDITENG_DLLPUBLIC SvxExtFileField : public SvxFieldData
-{
-private:
- OUString aFile;
- SvxFileType eType;
- SvxFileFormat eFormat;
-
-public:
- SV_DECL_PERSIST1( SvxExtFileField, SvxFieldData, com::sun::star::text::textfield::Type::EXTENDED_FILE )
- SvxExtFileField();
- explicit SvxExtFileField( const OUString& rString,
- SvxFileType eType = SVXFILETYPE_VAR,
- SvxFileFormat eFormat = SVXFILEFORMAT_FULLPATH );
-
- OUString GetFile() const { return aFile; }
- void SetFile( const OUString& rString ) { aFile = rString; }
-
- SvxFileType GetType() const { return eType; }
- void SetType( SvxFileType eTp ) { eType = eTp; }
-
- SvxFileFormat GetFormat() const { return eFormat; }
- void SetFormat( SvxFileFormat eFmt ) { eFormat = eFmt; }
-
- OUString GetFormatted() const;
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-};
-
-
-enum SvxAuthorType { SVXAUTHORTYPE_FIX, SVXAUTHORTYPE_VAR };
-enum SvxAuthorFormat { SVXAUTHORFORMAT_FULLNAME = 0, // full name
- SVXAUTHORFORMAT_NAME, // Only Last name
- SVXAUTHORFORMAT_FIRSTNAME, // Only first name
- SVXAUTHORFORMAT_SHORTNAME // Initials
- };
-
-class EDITENG_DLLPUBLIC SvxAuthorField : public SvxFieldData
-{
-private:
- OUString aName;
- OUString aFirstName;
- OUString aShortName;
- SvxAuthorType eType;
- SvxAuthorFormat eFormat;
-
-public:
- SV_DECL_PERSIST1( SvxAuthorField, SvxFieldData, com::sun::star::text::textfield::Type::AUTHOR )
- SvxAuthorField();
- SvxAuthorField(
- const OUString& rFirstName,
- const OUString& rLastName,
- const OUString& rShortName,
- SvxAuthorType eType = SVXAUTHORTYPE_VAR,
- SvxAuthorFormat eFormat = SVXAUTHORFORMAT_FULLNAME );
-
- OUString GetName() const { return aName; }
- void SetName( const OUString& rString ) { aName = rString; }
-
- OUString GetFirstName() const { return aFirstName; }
- void SetFirstName( const OUString& rString ) { aFirstName = rString; }
-
- OUString GetShortName() const { return aShortName; }
- void SetShortName( const OUString& rString ) { aShortName = rString; }
-
- SvxAuthorType GetType() const { return eType; }
- void SetType( SvxAuthorType eTp ) { eType = eTp; }
-
- SvxAuthorFormat GetFormat() const { return eFormat; }
- void SetFormat( SvxAuthorFormat eFmt ) { eFormat = eFmt; }
-
- OUString GetFormatted() const;
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-};
-
-/** this field is used as a placeholder for a header&footer in impress. The actual
- value is stored at the page */
-class EDITENG_DLLPUBLIC SvxHeaderField : public SvxFieldData
-{
-public:
- SV_DECL_PERSIST1( SvxHeaderField, SvxFieldData, com::sun::star::text::textfield::Type::PRESENTATION_HEADER )
- SvxHeaderField();
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-};
-
-/** this field is used as a placeholder for a header&footer in impress. The actual
- value is stored at the page */
-class EDITENG_DLLPUBLIC SvxFooterField : public SvxFieldData
-{
-public:
- SV_DECL_PERSIST1( SvxFooterField, SvxFieldData, com::sun::star::text::textfield::Type::PRESENTATION_FOOTER )
- SvxFooterField();
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-};
-
-/** this field is used as a placeholder for a header&footer in impress. The actual
- value is stored at the page */
-class EDITENG_DLLPUBLIC SvxDateTimeField : public SvxFieldData
-{
-public:
- SV_DECL_PERSIST1( SvxDateTimeField, SvxFieldData, com::sun::star::text::textfield::Type::PRESENTATION_DATE_TIME )
- SvxDateTimeField();
-
- static OUString GetFormatted( Date& rDate, Time& rTime, int eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-};
-
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/flstitem.hxx b/editeng/inc/editeng/flstitem.hxx
deleted file mode 100644
index f298732e25e4..000000000000
--- a/editeng/inc/editeng/flstitem.hxx
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_FLSTITEM_HXX
-#define _SVX_FLSTITEM_HXX
-
-#include
-#include
-#include
-#include "editeng/editengdllapi.h"
-
-// class SvxFontListItem -------------------------------------------------
-
-class FontList;
-
-/*
- [Description]
-
- This item serves as a transport medium for a font list. The font list is
- not copied and not deleted!
-*/
-
-class EDITENG_DLLPUBLIC SvxFontListItem : public SfxPoolItem
-{
-private:
- const FontList* pFontList;
- com::sun::star::uno::Sequence< OUString > aFontNameSeq;
-
-public:
- TYPEINFO();
-
- SvxFontListItem( const FontList* pFontLst,
- const sal_uInt16 nId );
- SvxFontListItem( const SvxFontListItem& rItem );
-
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
-
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
-
- const FontList* GetFontList() const { return pFontList; }
-};
-
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/fontitem.hxx b/editeng/inc/editeng/fontitem.hxx
deleted file mode 100644
index e9d14755906e..000000000000
--- a/editeng/inc/editeng/fontitem.hxx
+++ /dev/null
@@ -1,98 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SVX_FONTITEM_HXX
-#define _SVX_FONTITEM_HXX
-
-#include
-#include
-#include
-#include "editeng/editengdllapi.h"
-
-class SvXMLUnitConverter;
-
-// class SvxFontItem -----------------------------------------------------
-
-/* [Description]
-
- This item describes a Font.
-*/
-
-class EDITENG_DLLPUBLIC SvxFontItem : public SfxPoolItem
-{
- String aFamilyName;
- String aStyleName;
- FontFamily eFamily;
- FontPitch ePitch;
- rtl_TextEncoding eTextEncoding;
-
- static sal_Bool bEnableStoreUnicodeNames;
-
-public:
- TYPEINFO();
-
- explicit SvxFontItem( const sal_uInt16 nId );
- SvxFontItem( const FontFamily eFam, const String& rFamilyName,
- const String& rStyleName,
- const FontPitch eFontPitch /*= PITCH_DONTKNOW*/,
- const rtl_TextEncoding eFontTextEncoding /*= RTL_TEXTENCODING_DONTKNOW*/,
- const sal_uInt16 nId );
-
- // "pure virtual Methods" from SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
- virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = 0 ) const;
-
- // Access methods:
- void SetFamilyName( const String& rFamilyName ) { aFamilyName = rFamilyName; }
- inline const String &GetFamilyName() const { return aFamilyName; }
-
- void SetStyleName(const String &rStyleName ) { aStyleName = rStyleName; }
- inline const String &GetStyleName() const { return aStyleName; }
-
- void SetFamily( FontFamily _eFamily ) { eFamily = _eFamily; }
- inline FontFamily GetFamily() const { return eFamily; }
-
- void SetPitch(FontPitch _ePitch ) { ePitch = _ePitch; }
- inline FontPitch GetPitch() const { return ePitch; }
-
- void SetCharSet(rtl_TextEncoding _eEncoding) { eTextEncoding = _eEncoding; }
-
- inline rtl_TextEncoding GetCharSet() const { return eTextEncoding; }
-
- SvxFontItem& operator=(const SvxFontItem& rFont);
-
- static void EnableStoreUnicodeNames( sal_Bool bEnable );
-
-};
-
-EDITENG_DLLPUBLIC void GetDefaultFonts( SvxFontItem& rLatin, SvxFontItem& rAsian,
- SvxFontItem& rComplex );
-
-#endif // #ifndef _SVX_FONTITEM_HXX
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editeng/forbiddencharacterstable.hxx b/editeng/inc/editeng/forbiddencharacterstable.hxx
deleted file mode 100644
index 14556fd0ceda..000000000000
--- a/editeng/inc/editeng/forbiddencharacterstable.hxx
+++ /dev/null
@@ -1,56 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _FORBIDDENCHARACTERSTABLE_HXX
-#define _FORBIDDENCHARACTERSTABLE_HXX
-
-#include
-#include
-#include
-#include "editeng/editengdllapi.h"
-#include