From aed3f1817f4de6314285efed1e48dc7c305e4f67 Mon Sep 17 00:00:00 2001
From: Mathias Bauer
Date: Wed, 6 Jan 2010 19:26:54 +0100
Subject: #i107450#: move code from svx to new module editeng
---
svx/inc/AccessibleSelectionBase.hxx | 76 -
svx/inc/AccessibleStaticTextBase.hxx | 562 ---
svx/inc/UnoForbiddenCharsTable.hxx | 68 -
svx/inc/accessibility.hrc | 4 +-
svx/inc/acorrcfg.hxx | 136 -
svx/inc/bolnitem.hxx | 86 -
svx/inc/bulitem.hxx | 163 -
svx/inc/charhiddenitem.hxx | 64 -
svx/inc/dlgutil.hxx | 82 +-
svx/inc/editstat.hxx | 153 -
svx/inc/editund2.hxx | 79 -
svx/inc/edtspell.hxx | 188 -
svx/inc/eerdll.hxx | 61 -
svx/inc/flstitem.hxx | 82 -
svx/inc/fontitem.hxx | 123 -
svx/inc/forbiddencharacterstable.hxx | 73 -
svx/inc/fwdtitem.hxx | 111 -
svx/inc/helpid.hrc | 2 -
svx/inc/nlbkitem.hxx | 76 -
svx/inc/opaqitem.hxx | 84 -
svx/inc/pgrditem.hxx | 67 -
svx/inc/prntitem.hxx | 82 -
svx/inc/protitem.hxx | 108 -
svx/inc/svx/AccessibleComponentBase.hxx | 150 -
svx/inc/svx/AccessibleContextBase.hxx | 405 --
svx/inc/svx/SpellPortions.hxx | 98 -
svx/inc/svx/adjitem.hxx | 150 -
svx/inc/svx/akrnitem.hxx | 80 -
svx/inc/svx/blnkitem.hxx | 78 -
svx/inc/svx/borderline.hxx | 137 -
svx/inc/svx/boxitem.hxx | 229 -
svx/inc/svx/brkitem.hxx | 109 -
svx/inc/svx/brshitem.hxx | 144 -
svx/inc/svx/charreliefitem.hxx | 86 -
svx/inc/svx/charrotateitem.hxx | 98 -
svx/inc/svx/charscaleitem.hxx | 86 -
svx/inc/svx/cmapitem.hxx | 95 -
svx/inc/svx/cntritem.hxx | 74 -
svx/inc/svx/colritem.hxx | 103 -
svx/inc/svx/crsditem.hxx | 99 -
svx/inc/svx/cscoitem.hxx | 78 -
svx/inc/svx/dialogs.hrc | 58 -
svx/inc/svx/editdata.hxx | 391 --
svx/inc/svx/editeng.hxx | 489 --
svx/inc/svx/editobj.hxx | 129 -
svx/inc/svx/editview.hxx | 251 --
svx/inc/svx/eedata.hxx | 78 -
svx/inc/svx/eeitem.hxx | 102 -
svx/inc/svx/eeitemid.hxx | 139 -
svx/inc/svx/emphitem.hxx | 94 -
svx/inc/svx/escpitem.hxx | 120 -
svx/inc/svx/fhgtitem.hxx | 122 -
svx/inc/svx/flditem.hxx | 430 --
svx/inc/svx/forbiddenruleitem.hxx | 75 -
svx/inc/svx/frmdir.hxx | 63 -
svx/inc/svx/frmdiritem.hxx | 86 -
svx/inc/svx/hangulhanja.hxx | 305 --
svx/inc/svx/hngpnctitem.hxx | 75 -
svx/inc/svx/hyznitem.hxx | 112 -
svx/inc/svx/impgrf.hxx | 65 -
svx/inc/svx/itemtype.hxx | 83 -
svx/inc/svx/keepitem.hxx | 84 -
svx/inc/svx/kernitem.hxx | 86 -
svx/inc/svx/langitem.hxx | 90 -
svx/inc/svx/lcolitem.hxx | 69 -
svx/inc/svx/lrspitem.hxx | 185 -
svx/inc/svx/lspcitem.hxx | 130 -
svx/inc/svx/mutxhelp.hxx | 47 -
svx/inc/svx/nhypitem.hxx | 74 -
svx/inc/svx/numdef.hxx | 33 -
svx/inc/svx/numitem.hxx | 402 --
svx/inc/svx/orphitem.hxx | 80 -
svx/inc/svx/outliner.hxx | 1050 -----
svx/inc/svx/outlobj.hxx | 99 -
svx/inc/svx/paperinf.hxx | 76 -
svx/inc/svx/paragraphdata.hxx | 75 -
svx/inc/svx/paravertalignitem.hxx | 86 -
svx/inc/svx/pbinitem.hxx | 83 -
svx/inc/svx/pmdlitem.hxx | 92 -
svx/inc/svx/postitem.hxx | 95 -
svx/inc/svx/prszitem.hxx | 74 -
svx/inc/svx/scriptspaceitem.hxx | 76 -
svx/inc/svx/scripttypeitem.hxx | 97 -
svx/inc/svx/serviceinfohelper.hxx | 63 -
svx/inc/svx/shaditem.hxx | 117 -
svx/inc/svx/shdditem.hxx | 80 -
svx/inc/svx/sizeitem.hxx | 89 -
svx/inc/svx/spltitem.hxx | 87 -
svx/inc/svx/splwrap.hxx | 162 -
svx/inc/svx/svdfield.hxx | 74 -
svx/inc/svx/svxacorr.hxx | 396 --
svx/inc/svx/svxbox.hxx | 205 -
svx/inc/svx/svxdlg.hxx | 59 +-
svx/inc/svx/svxenum.hxx | 221 -
svx/inc/svx/svxfont.hxx | 129 -
svx/inc/svx/svxids.hrc | 17 +-
svx/inc/svx/svxitems.hrc | 367 +-
svx/inc/svx/swafopt.hxx | 109 -
svx/inc/svx/tstpitem.hxx | 191 -
svx/inc/svx/twolinesitem.hxx | 96 -
svx/inc/svx/udlnitem.hxx | 139 -
svx/inc/svx/ulspitem.hxx | 119 -
svx/inc/svx/unoedsrc.hxx | 554 ---
svx/inc/svx/unofield.hxx | 140 -
svx/inc/svx/unofored.hxx | 102 -
svx/inc/svx/unoforou.hxx | 130 -
svx/inc/svx/unoipset.hxx | 89 -
svx/inc/svx/unomid.hxx | 154 +-
svx/inc/svx/unoprnms.hxx | 379 --
svx/inc/svx/unoshprp.hxx | 3 +-
svx/inc/svx/unotext.hxx | 678 ---
svx/inc/svx/unoviwed.hxx | 65 -
svx/inc/svx/unoviwou.hxx | 71 -
svx/inc/svx/wghtitem.hxx | 95 -
svx/inc/svx/widwitem.hxx | 81 -
svx/inc/svx/writingmodeitem.hxx | 72 -
svx/inc/svx/wrlmitem.hxx | 81 -
svx/inc/svxerr.hxx | 4 +-
svx/inc/svxrtf.hxx | 481 --
svx/inc/textconv.hxx | 125 -
svx/inc/txtrange.hxx | 121 -
svx/inc/unoedhlp.hxx | 192 -
svx/inc/unofdesc.hxx | 57 -
svx/inc/unolingu.hxx | 239 -
svx/inc/unonrule.hxx | 98 -
svx/inc/xmlcnitm.hxx | 94 -
.../accessibility/AccessibleComponentBase.cxx | 240 -
svx/source/accessibility/AccessibleContextBase.cxx | 718 ---
.../accessibility/AccessibleEditableTextPara.cxx | 2207 ---------
.../accessibility/AccessibleEditableTextPara.hxx | 414 --
svx/source/accessibility/AccessibleImageBullet.cxx | 654 ---
svx/source/accessibility/AccessibleImageBullet.hxx | 240 -
svx/source/accessibility/AccessibleParaManager.cxx | 423 --
svx/source/accessibility/AccessibleParaManager.hxx | 349 --
.../accessibility/AccessibleSelectionBase.cxx | 111 -
.../accessibility/AccessibleStaticTextBase.cxx | 1050 -----
svx/source/accessibility/AccessibleStringWrap.cxx | 104 -
svx/source/accessibility/accessibility.src | 10 -
svx/source/dialog/dlgutil.cxx | 756 ----
svx/source/dialog/hangulhanja.cxx | 1175 -----
svx/source/dialog/impgrf.cxx | 113 -
svx/source/dialog/impgrf.hrc | 59 -
svx/source/dialog/impgrf.src | 153 -
svx/source/dialog/lingu.src | 139 -
svx/source/dialog/makefile.mk | 2 -
svx/source/dialog/opengrf.cxx | 2 +-
svx/source/dialog/splwrap.cxx | 642 ---
svx/source/dialog/svxbox.cxx | 623 ---
svx/source/editeng/SvXMLAutoCorrectExport.cxx | 120 -
svx/source/editeng/SvXMLAutoCorrectExport.hxx | 78 -
svx/source/editeng/SvXMLAutoCorrectImport.cxx | 269 --
svx/source/editeng/SvXMLAutoCorrectImport.hxx | 151 -
svx/source/editeng/acorrcfg.cxx | 686 ---
svx/source/editeng/editattr.cxx | 454 --
svx/source/editeng/editattr.hxx | 429 --
svx/source/editeng/editdbg.cxx | 591 ---
svx/source/editeng/editdbg.hxx | 60 -
svx/source/editeng/editdoc.cxx | 2318 ----------
svx/source/editeng/editdoc.hxx | 805 ----
svx/source/editeng/editdoc2.cxx | 543 ---
svx/source/editeng/editeng.cxx | 2941 ------------
svx/source/editeng/editeng.hrc | 63 -
svx/source/editeng/editeng.src | 127 -
svx/source/editeng/editobj.cxx | 1726 --------
svx/source/editeng/editobj2.hxx | 312 --
svx/source/editeng/editsel.cxx | 124 -
svx/source/editeng/editsel.hxx | 78 -
svx/source/editeng/editstt2.hxx | 133 -
svx/source/editeng/editundo.cxx | 753 ----
svx/source/editeng/editundo.hxx | 318 --
svx/source/editeng/editview.cxx | 1599 -------
svx/source/editeng/edtspell.cxx | 746 ----
svx/source/editeng/eehtml.cxx | 851 ----
svx/source/editeng/eehtml.hxx | 101 -
svx/source/editeng/eeng_pch.cxx | 33 -
svx/source/editeng/eeng_pch.hxx | 39 -
svx/source/editeng/eeobj.cxx | 115 -
svx/source/editeng/eeobj.hxx | 75 -
svx/source/editeng/eerdll.cxx | 239 -
svx/source/editeng/eerdll2.hxx | 65 -
svx/source/editeng/eertfpar.cxx | 632 ---
svx/source/editeng/eertfpar.hxx | 131 -
svx/source/editeng/forbiddencharacterstable.cxx | 97 -
svx/source/editeng/impedit.cxx | 2005 ---------
svx/source/editeng/impedit.hxx | 1218 -----
svx/source/editeng/impedit2.cxx | 4633 -------------------
svx/source/editeng/impedit3.cxx | 4677 --------------------
svx/source/editeng/impedit4.cxx | 2958 -------------
svx/source/editeng/impedit5.cxx | 914 ----
svx/source/editeng/makefile.mk | 92 -
svx/source/editeng/svxacorr.cxx | 2706 -----------
svx/source/editeng/swafopt.cxx | 163 -
svx/source/editeng/textconv.cxx | 628 ---
svx/source/editeng/txtrange.cxx | 722 ---
svx/source/editeng/unolingu.cxx | 1377 ------
svx/source/inc/AccessibleStringWrap.hxx | 66 -
svx/source/inc/editxml.hxx | 46 -
svx/source/inc/unoedprx.hxx | 177 -
svx/source/inc/unopracc.hxx | 76 -
svx/source/items/bulitem.cxx | 538 ---
svx/source/items/charhiddenitem.cxx | 85 -
svx/source/items/flditem.cxx | 1101 -----
svx/source/items/frmitems.cxx | 4474 -------------------
svx/source/items/itemtype.cxx | 241 -
svx/source/items/makefile.mk | 21 +-
svx/source/items/numitem.cxx | 1279 ------
svx/source/items/page.src | 258 --
svx/source/items/paperinf.cxx | 191 -
svx/source/items/paraitem.cxx | 1768 --------
svx/source/items/svxfont.cxx | 864 ----
svx/source/items/textitem.cxx | 3849 ----------------
svx/source/items/writingmodeitem.cxx | 159 -
svx/source/items/xmlcnitm.cxx | 253 --
svx/source/outliner/makefile.mk | 64 -
svx/source/outliner/outl_pch.cxx | 34 -
svx/source/outliner/outl_pch.hxx | 38 -
svx/source/outliner/outleeng.cxx | 241 -
svx/source/outliner/outleeng.hxx | 96 -
svx/source/outliner/outlin2.cxx | 810 ----
svx/source/outliner/outliner.cxx | 2178 ---------
svx/source/outliner/outliner.hrc | 48 -
svx/source/outliner/outliner.src | 86 -
svx/source/outliner/outlobj.cxx | 274 --
svx/source/outliner/outlundo.cxx | 231 -
svx/source/outliner/outlundo.hxx | 146 -
svx/source/outliner/outlvw.cxx | 1657 -------
svx/source/outliner/paralist.cxx | 290 --
svx/source/outliner/paralist.hxx | 74 -
svx/source/svdraw/svdfield.cxx | 65 -
svx/source/svrtf/makefile.mk | 66 -
svx/source/svrtf/rtfgrf.cxx | 562 ---
svx/source/svrtf/rtfitem.cxx | 2106 ---------
svx/source/svrtf/segincr.asm | 43 -
svx/source/svrtf/svxrtf.cxx | 1517 -------
svx/source/unodraw/unofdesc.cxx | 269 --
svx/source/unodraw/unoipset.cxx | 468 --
svx/source/unodraw/unonrule.cxx | 617 ---
svx/source/unodraw/unoshape.cxx | 49 +-
svx/source/unoedit/UnoForbiddenCharsTable.cxx | 148 -
svx/source/unoedit/makefile.mk | 70 -
svx/source/unoedit/serviceinfohelper.cxx | 109 -
svx/source/unoedit/unoedhlp.cxx | 200 -
svx/source/unoedit/unoedprx.cxx | 1292 ------
svx/source/unoedit/unoedsrc.cxx | 93 -
svx/source/unoedit/unofield.cxx | 1183 -----
svx/source/unoedit/unofored.cxx | 555 ---
svx/source/unoedit/unoforou.cxx | 614 ---
svx/source/unoedit/unopracc.cxx | 174 -
svx/source/unoedit/unotext.cxx | 2720 ------------
svx/source/unoedit/unotext2.cxx | 714 ---
svx/source/unoedit/unoviwed.cxx | 140 -
svx/source/unoedit/unoviwou.cxx | 178 -
svx/source/xml/editsource.hxx | 55 -
svx/source/xml/xmltxtexp.cxx | 503 ---
svx/source/xml/xmltxtimp.cxx | 263 --
svx/util/hidother.src | 36 -
256 files changed, 95 insertions(+), 104610 deletions(-)
delete mode 100644 svx/inc/AccessibleSelectionBase.hxx
delete mode 100644 svx/inc/AccessibleStaticTextBase.hxx
delete mode 100644 svx/inc/UnoForbiddenCharsTable.hxx
delete mode 100644 svx/inc/acorrcfg.hxx
delete mode 100644 svx/inc/bolnitem.hxx
delete mode 100644 svx/inc/bulitem.hxx
delete mode 100644 svx/inc/charhiddenitem.hxx
delete mode 100644 svx/inc/editstat.hxx
delete mode 100644 svx/inc/editund2.hxx
delete mode 100644 svx/inc/edtspell.hxx
delete mode 100644 svx/inc/eerdll.hxx
delete mode 100644 svx/inc/flstitem.hxx
delete mode 100644 svx/inc/fontitem.hxx
delete mode 100644 svx/inc/forbiddencharacterstable.hxx
delete mode 100644 svx/inc/fwdtitem.hxx
delete mode 100644 svx/inc/nlbkitem.hxx
delete mode 100644 svx/inc/opaqitem.hxx
delete mode 100644 svx/inc/pgrditem.hxx
delete mode 100644 svx/inc/prntitem.hxx
delete mode 100644 svx/inc/protitem.hxx
delete mode 100644 svx/inc/svx/AccessibleComponentBase.hxx
delete mode 100644 svx/inc/svx/AccessibleContextBase.hxx
delete mode 100644 svx/inc/svx/SpellPortions.hxx
delete mode 100644 svx/inc/svx/adjitem.hxx
delete mode 100644 svx/inc/svx/akrnitem.hxx
delete mode 100644 svx/inc/svx/blnkitem.hxx
delete mode 100644 svx/inc/svx/borderline.hxx
delete mode 100644 svx/inc/svx/boxitem.hxx
delete mode 100644 svx/inc/svx/brkitem.hxx
delete mode 100644 svx/inc/svx/brshitem.hxx
delete mode 100644 svx/inc/svx/charreliefitem.hxx
delete mode 100644 svx/inc/svx/charrotateitem.hxx
delete mode 100644 svx/inc/svx/charscaleitem.hxx
delete mode 100644 svx/inc/svx/cmapitem.hxx
delete mode 100644 svx/inc/svx/cntritem.hxx
delete mode 100644 svx/inc/svx/colritem.hxx
delete mode 100644 svx/inc/svx/crsditem.hxx
delete mode 100644 svx/inc/svx/cscoitem.hxx
delete mode 100644 svx/inc/svx/editdata.hxx
delete mode 100644 svx/inc/svx/editeng.hxx
delete mode 100644 svx/inc/svx/editobj.hxx
delete mode 100644 svx/inc/svx/editview.hxx
delete mode 100644 svx/inc/svx/eedata.hxx
delete mode 100644 svx/inc/svx/eeitem.hxx
delete mode 100644 svx/inc/svx/eeitemid.hxx
delete mode 100644 svx/inc/svx/emphitem.hxx
delete mode 100644 svx/inc/svx/escpitem.hxx
delete mode 100644 svx/inc/svx/fhgtitem.hxx
delete mode 100644 svx/inc/svx/flditem.hxx
delete mode 100644 svx/inc/svx/forbiddenruleitem.hxx
delete mode 100644 svx/inc/svx/frmdir.hxx
delete mode 100644 svx/inc/svx/frmdiritem.hxx
delete mode 100644 svx/inc/svx/hangulhanja.hxx
delete mode 100644 svx/inc/svx/hngpnctitem.hxx
delete mode 100644 svx/inc/svx/hyznitem.hxx
delete mode 100644 svx/inc/svx/impgrf.hxx
delete mode 100644 svx/inc/svx/itemtype.hxx
delete mode 100644 svx/inc/svx/keepitem.hxx
delete mode 100644 svx/inc/svx/kernitem.hxx
delete mode 100644 svx/inc/svx/langitem.hxx
delete mode 100644 svx/inc/svx/lcolitem.hxx
delete mode 100644 svx/inc/svx/lrspitem.hxx
delete mode 100644 svx/inc/svx/lspcitem.hxx
delete mode 100644 svx/inc/svx/mutxhelp.hxx
delete mode 100644 svx/inc/svx/nhypitem.hxx
delete mode 100644 svx/inc/svx/numdef.hxx
delete mode 100644 svx/inc/svx/numitem.hxx
delete mode 100644 svx/inc/svx/orphitem.hxx
delete mode 100644 svx/inc/svx/outliner.hxx
delete mode 100644 svx/inc/svx/outlobj.hxx
delete mode 100644 svx/inc/svx/paperinf.hxx
delete mode 100644 svx/inc/svx/paragraphdata.hxx
delete mode 100644 svx/inc/svx/paravertalignitem.hxx
delete mode 100644 svx/inc/svx/pbinitem.hxx
delete mode 100644 svx/inc/svx/pmdlitem.hxx
delete mode 100644 svx/inc/svx/postitem.hxx
delete mode 100644 svx/inc/svx/prszitem.hxx
delete mode 100644 svx/inc/svx/scriptspaceitem.hxx
delete mode 100644 svx/inc/svx/scripttypeitem.hxx
delete mode 100644 svx/inc/svx/serviceinfohelper.hxx
delete mode 100644 svx/inc/svx/shaditem.hxx
delete mode 100644 svx/inc/svx/shdditem.hxx
delete mode 100644 svx/inc/svx/sizeitem.hxx
delete mode 100644 svx/inc/svx/spltitem.hxx
delete mode 100644 svx/inc/svx/splwrap.hxx
delete mode 100644 svx/inc/svx/svdfield.hxx
delete mode 100644 svx/inc/svx/svxacorr.hxx
delete mode 100644 svx/inc/svx/svxbox.hxx
delete mode 100644 svx/inc/svx/svxenum.hxx
delete mode 100644 svx/inc/svx/svxfont.hxx
delete mode 100644 svx/inc/svx/swafopt.hxx
delete mode 100644 svx/inc/svx/tstpitem.hxx
delete mode 100644 svx/inc/svx/twolinesitem.hxx
delete mode 100644 svx/inc/svx/udlnitem.hxx
delete mode 100644 svx/inc/svx/ulspitem.hxx
delete mode 100644 svx/inc/svx/unoedsrc.hxx
delete mode 100644 svx/inc/svx/unofield.hxx
delete mode 100644 svx/inc/svx/unofored.hxx
delete mode 100644 svx/inc/svx/unoforou.hxx
delete mode 100644 svx/inc/svx/unoipset.hxx
delete mode 100644 svx/inc/svx/unoprnms.hxx
delete mode 100644 svx/inc/svx/unotext.hxx
delete mode 100644 svx/inc/svx/unoviwed.hxx
delete mode 100644 svx/inc/svx/unoviwou.hxx
delete mode 100644 svx/inc/svx/wghtitem.hxx
delete mode 100644 svx/inc/svx/widwitem.hxx
delete mode 100644 svx/inc/svx/writingmodeitem.hxx
delete mode 100644 svx/inc/svx/wrlmitem.hxx
delete mode 100644 svx/inc/svxrtf.hxx
delete mode 100644 svx/inc/textconv.hxx
delete mode 100644 svx/inc/txtrange.hxx
delete mode 100644 svx/inc/unoedhlp.hxx
delete mode 100644 svx/inc/unofdesc.hxx
delete mode 100644 svx/inc/unolingu.hxx
delete mode 100644 svx/inc/unonrule.hxx
delete mode 100644 svx/inc/xmlcnitm.hxx
delete mode 100644 svx/source/accessibility/AccessibleComponentBase.cxx
delete mode 100644 svx/source/accessibility/AccessibleContextBase.cxx
delete mode 100644 svx/source/accessibility/AccessibleEditableTextPara.cxx
delete mode 100644 svx/source/accessibility/AccessibleEditableTextPara.hxx
delete mode 100644 svx/source/accessibility/AccessibleImageBullet.cxx
delete mode 100644 svx/source/accessibility/AccessibleImageBullet.hxx
delete mode 100644 svx/source/accessibility/AccessibleParaManager.cxx
delete mode 100644 svx/source/accessibility/AccessibleParaManager.hxx
delete mode 100644 svx/source/accessibility/AccessibleSelectionBase.cxx
delete mode 100644 svx/source/accessibility/AccessibleStaticTextBase.cxx
delete mode 100644 svx/source/accessibility/AccessibleStringWrap.cxx
delete mode 100644 svx/source/dialog/hangulhanja.cxx
delete mode 100644 svx/source/dialog/impgrf.cxx
delete mode 100644 svx/source/dialog/impgrf.hrc
delete mode 100644 svx/source/dialog/impgrf.src
delete mode 100644 svx/source/dialog/lingu.src
delete mode 100644 svx/source/dialog/splwrap.cxx
delete mode 100644 svx/source/dialog/svxbox.cxx
delete mode 100644 svx/source/editeng/SvXMLAutoCorrectExport.cxx
delete mode 100644 svx/source/editeng/SvXMLAutoCorrectExport.hxx
delete mode 100644 svx/source/editeng/SvXMLAutoCorrectImport.cxx
delete mode 100644 svx/source/editeng/SvXMLAutoCorrectImport.hxx
delete mode 100644 svx/source/editeng/acorrcfg.cxx
delete mode 100644 svx/source/editeng/editattr.cxx
delete mode 100644 svx/source/editeng/editattr.hxx
delete mode 100644 svx/source/editeng/editdbg.cxx
delete mode 100644 svx/source/editeng/editdbg.hxx
delete mode 100644 svx/source/editeng/editdoc.cxx
delete mode 100644 svx/source/editeng/editdoc.hxx
delete mode 100644 svx/source/editeng/editdoc2.cxx
delete mode 100644 svx/source/editeng/editeng.cxx
delete mode 100644 svx/source/editeng/editeng.hrc
delete mode 100644 svx/source/editeng/editeng.src
delete mode 100644 svx/source/editeng/editobj.cxx
delete mode 100644 svx/source/editeng/editobj2.hxx
delete mode 100644 svx/source/editeng/editsel.cxx
delete mode 100644 svx/source/editeng/editsel.hxx
delete mode 100644 svx/source/editeng/editstt2.hxx
delete mode 100644 svx/source/editeng/editundo.cxx
delete mode 100644 svx/source/editeng/editundo.hxx
delete mode 100644 svx/source/editeng/editview.cxx
delete mode 100644 svx/source/editeng/edtspell.cxx
delete mode 100644 svx/source/editeng/eehtml.cxx
delete mode 100644 svx/source/editeng/eehtml.hxx
delete mode 100644 svx/source/editeng/eeng_pch.cxx
delete mode 100644 svx/source/editeng/eeng_pch.hxx
delete mode 100644 svx/source/editeng/eeobj.cxx
delete mode 100644 svx/source/editeng/eeobj.hxx
delete mode 100644 svx/source/editeng/eerdll.cxx
delete mode 100644 svx/source/editeng/eerdll2.hxx
delete mode 100644 svx/source/editeng/eertfpar.cxx
delete mode 100644 svx/source/editeng/eertfpar.hxx
delete mode 100644 svx/source/editeng/forbiddencharacterstable.cxx
delete mode 100644 svx/source/editeng/impedit.cxx
delete mode 100644 svx/source/editeng/impedit.hxx
delete mode 100644 svx/source/editeng/impedit2.cxx
delete mode 100644 svx/source/editeng/impedit3.cxx
delete mode 100644 svx/source/editeng/impedit4.cxx
delete mode 100644 svx/source/editeng/impedit5.cxx
delete mode 100644 svx/source/editeng/makefile.mk
delete mode 100644 svx/source/editeng/svxacorr.cxx
delete mode 100644 svx/source/editeng/swafopt.cxx
delete mode 100644 svx/source/editeng/textconv.cxx
delete mode 100644 svx/source/editeng/txtrange.cxx
delete mode 100644 svx/source/editeng/unolingu.cxx
delete mode 100644 svx/source/inc/AccessibleStringWrap.hxx
delete mode 100644 svx/source/inc/editxml.hxx
delete mode 100644 svx/source/inc/unoedprx.hxx
delete mode 100644 svx/source/inc/unopracc.hxx
delete mode 100644 svx/source/items/bulitem.cxx
delete mode 100644 svx/source/items/charhiddenitem.cxx
delete mode 100644 svx/source/items/flditem.cxx
delete mode 100644 svx/source/items/frmitems.cxx
delete mode 100644 svx/source/items/itemtype.cxx
delete mode 100644 svx/source/items/numitem.cxx
delete mode 100644 svx/source/items/page.src
delete mode 100644 svx/source/items/paperinf.cxx
delete mode 100644 svx/source/items/paraitem.cxx
delete mode 100644 svx/source/items/svxfont.cxx
delete mode 100644 svx/source/items/textitem.cxx
delete mode 100644 svx/source/items/writingmodeitem.cxx
delete mode 100644 svx/source/items/xmlcnitm.cxx
delete mode 100644 svx/source/outliner/makefile.mk
delete mode 100644 svx/source/outliner/outl_pch.cxx
delete mode 100644 svx/source/outliner/outl_pch.hxx
delete mode 100644 svx/source/outliner/outleeng.cxx
delete mode 100644 svx/source/outliner/outleeng.hxx
delete mode 100644 svx/source/outliner/outlin2.cxx
delete mode 100644 svx/source/outliner/outliner.cxx
delete mode 100644 svx/source/outliner/outliner.hrc
delete mode 100644 svx/source/outliner/outliner.src
delete mode 100644 svx/source/outliner/outlobj.cxx
delete mode 100644 svx/source/outliner/outlundo.cxx
delete mode 100644 svx/source/outliner/outlundo.hxx
delete mode 100644 svx/source/outliner/outlvw.cxx
delete mode 100644 svx/source/outliner/paralist.cxx
delete mode 100644 svx/source/outliner/paralist.hxx
delete mode 100644 svx/source/svdraw/svdfield.cxx
delete mode 100644 svx/source/svrtf/makefile.mk
delete mode 100644 svx/source/svrtf/rtfgrf.cxx
delete mode 100644 svx/source/svrtf/rtfitem.cxx
delete mode 100644 svx/source/svrtf/segincr.asm
delete mode 100644 svx/source/svrtf/svxrtf.cxx
delete mode 100644 svx/source/unodraw/unofdesc.cxx
delete mode 100644 svx/source/unodraw/unoipset.cxx
delete mode 100644 svx/source/unodraw/unonrule.cxx
delete mode 100644 svx/source/unoedit/UnoForbiddenCharsTable.cxx
delete mode 100644 svx/source/unoedit/makefile.mk
delete mode 100644 svx/source/unoedit/serviceinfohelper.cxx
delete mode 100644 svx/source/unoedit/unoedhlp.cxx
delete mode 100644 svx/source/unoedit/unoedprx.cxx
delete mode 100644 svx/source/unoedit/unoedsrc.cxx
delete mode 100644 svx/source/unoedit/unofield.cxx
delete mode 100644 svx/source/unoedit/unofored.cxx
delete mode 100644 svx/source/unoedit/unoforou.cxx
delete mode 100644 svx/source/unoedit/unopracc.cxx
delete mode 100644 svx/source/unoedit/unotext.cxx
delete mode 100644 svx/source/unoedit/unotext2.cxx
delete mode 100644 svx/source/unoedit/unoviwed.cxx
delete mode 100644 svx/source/unoedit/unoviwou.cxx
delete mode 100644 svx/source/xml/editsource.hxx
delete mode 100644 svx/source/xml/xmltxtexp.cxx
delete mode 100644 svx/source/xml/xmltxtimp.cxx
(limited to 'svx')
diff --git a/svx/inc/AccessibleSelectionBase.hxx b/svx/inc/AccessibleSelectionBase.hxx
deleted file mode 100644
index 09767025d84a..000000000000
--- a/svx/inc/AccessibleSelectionBase.hxx
+++ /dev/null
@@ -1,76 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: AccessibleSelectionBase.hxx,v $
- * $Revision: 1.6 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SVX_ACCESSIBILITY_ACCESSIBLE_SELECTION_BASE_HXX
-#define _SVX_ACCESSIBILITY_ACCESSIBLE_SELECTION_BASE_HXX
-
-#include
-#include "svx/svxdllapi.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 SVX_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
diff --git a/svx/inc/AccessibleStaticTextBase.hxx b/svx/inc/AccessibleStaticTextBase.hxx
deleted file mode 100644
index 60a31117185f..000000000000
--- a/svx/inc/AccessibleStaticTextBase.hxx
+++ /dev/null
@@ -1,562 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: AccessibleStaticTextBase.hxx,v $
- * $Revision: 1.14 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SVX_ACCESSILE_STATIC_TEXT_BASE_HXX_
-#define _SVX_ACCESSILE_STATIC_TEXT_BASE_HXX_
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "svx/svxdllapi.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 SVX_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.
-
- */
- explicit AccessibleStaticTextBase( ::std::auto_ptr< SvxEditSource > pEditSource );
- virtual ~AccessibleStaticTextBase();
-
- private:
-
- // declared, but not defined
- SVX_DLLPRIVATE AccessibleStaticTextBase( const AccessibleStaticTextBase& );
- // declared, but not defined
- SVX_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.
- */
- virtual void SetEditSource( ::std::auto_ptr< SvxEditSource > pEditSource ) SAL_THROW((::com::sun::star::uno::RuntimeException));
-
- /** 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
- childrens. 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< ::rtl::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 ::rtl::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 ::rtl::OUString SAL_CALL getText() throw (::com::sun::star::uno::RuntimeException);
- virtual ::rtl::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< ::rtl::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< ::rtl::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;
- sal_Int32 GetParagraphCount() const;
- sal_Int32 GetParagraphIndex() const;
- sal_Int32 GetLineCount( sal_Int32 nParagraph ) const;
-
- private:
-
- /// @dyn
- const std::auto_ptr< AccessibleStaticTextBase_Impl > mpImpl;
-
- };
-
-} // end of namespace accessibility
-
-#endif /* _SVX_ACCESSILE_STATIC_TEXT_BASE_HXX_ */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: AccessibleStaticTextBase.hxx,v $
- * $Revision: 1.14 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SVX_ACCESSILE_STATIC_TEXT_BASE_HXX_
-#define _SVX_ACCESSILE_STATIC_TEXT_BASE_HXX_
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-
-class SvxEditSource;
-
-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 SVX_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.
-
- */
- explicit AccessibleStaticTextBase( ::std::auto_ptr< SvxEditSource > pEditSource );
- virtual ~AccessibleStaticTextBase();
-
- private:
-
- // declared, but not defined
- SVX_DLLPRIVATE AccessibleStaticTextBase( const AccessibleStaticTextBase& );
- // declared, but not defined
- SVX_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.
- */
- virtual void SetEditSource( ::std::auto_ptr< SvxEditSource > pEditSource ) SAL_THROW((::com::sun::star::uno::RuntimeException));
-
- /** 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
- childrens. 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< ::rtl::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 ::rtl::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 ::rtl::OUString SAL_CALL getText() throw (::com::sun::star::uno::RuntimeException);
- virtual ::rtl::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< ::rtl::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< ::rtl::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
- const std::auto_ptr< AccessibleStaticTextBase_Impl > mpImpl;
-
- };
-
-} // end of namespace accessibility
-
-#endif /* _SVX_ACCESSILE_STATIC_TEXT_BASE_HXX_ */
diff --git a/svx/inc/UnoForbiddenCharsTable.hxx b/svx/inc/UnoForbiddenCharsTable.hxx
deleted file mode 100644
index 3fe2d2054da7..000000000000
--- a/svx/inc/UnoForbiddenCharsTable.hxx
+++ /dev/null
@@ -1,68 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: UnoForbiddenCharsTable.hxx,v $
- * $Revision: 1.5 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SVX_UNOFORBIDDENCHARSTABLE_HXX_
-#define _SVX_UNOFORBIDDENCHARSTABLE_HXX_
-
-#include
-#include
-#include
-
-#include
-#include "svx/svxdllapi.h"
-
-class SvxForbiddenCharactersTable;
-
-class SVX_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();
-
- vos::ORef mxForbiddenChars;
-
-public:
- SvxUnoForbiddenCharsTable(vos::ORef 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_
diff --git a/svx/inc/accessibility.hrc b/svx/inc/accessibility.hrc
index 5688f7a8033e..83274e5e566c 100644
--- a/svx/inc/accessibility.hrc
+++ b/svx/inc/accessibility.hrc
@@ -78,10 +78,8 @@
#define RID_SVXSTR_GRAPHCTRL_ACC_NAME (RID_SVXSTR_GRAPHCTRL_ACC_START + 0)
#define RID_SVXSTR_GRAPHCTRL_ACC_DESCRIPTION (RID_SVXSTR_GRAPHCTRL_ACC_START + 1)
-// text paragraphs and bullets
+// text paragraphs
#define RID_SVXSTR_A11Y_TEXTHELPER_START (RID_SVXSTR_ACCESSIBILITY_START + 70)
-#define RID_SVXSTR_A11Y_IMAGEBULLET_DESCRIPTION (RID_SVXSTR_A11Y_TEXTHELPER_START + 2)
-#define RID_SVXSTR_A11Y_IMAGEBULLET_NAME (RID_SVXSTR_A11Y_TEXTHELPER_START + 3)
// SvxShowCharSetAcc
#define RID_SVXSTR_CHARACTER_SELECTION (RID_SVXSTR_ACCESSIBILITY_START + 80)
diff --git a/svx/inc/acorrcfg.hxx b/svx/inc/acorrcfg.hxx
deleted file mode 100644
index 046cf1a6198a..000000000000
--- a/svx/inc/acorrcfg.hxx
+++ /dev/null
@@ -1,136 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: acorrcfg.hxx,v $
- * $Revision: 1.7 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVXACCFG_HXX
-#define _SVXACCFG_HXX
-
-// include ---------------------------------------------------------------
-
-#include "svx/svxdllapi.h"
-#include
-/* -----------------------------12.10.00 11:40--------------------------------
-
- ---------------------------------------------------------------------------*/
-class SvxAutoCorrect;
-class SvxAutoCorrCfg;
-class SVX_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();}
-};
-/* -----------------------------12.10.00 11:40--------------------------------
-
- ---------------------------------------------------------------------------*/
-class SVX_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();}
-};
-/*--------------------------------------------------------------------
- Beschreibung: Konfiguration fuer Auto Correction
- --------------------------------------------------------------------*/
-class SVX_DLLPUBLIC SvxAutoCorrCfg
-{
- friend class SvxBaseAutoCorrCfg;
- friend class SvxSwAutoCorrCfg;
-
- SvxAutoCorrect* pAutoCorrect;
-
- SvxBaseAutoCorrCfg aBaseConfig;
- SvxSwAutoCorrCfg aSwConfig;
-
- // Flags f"ur Autotext:
- sal_Bool bFileRel;
- sal_Bool bNetRel;
- // Tiphilfe f"ur Autotext w"ahrend der Eingabe
- 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; }
- // der Pointer geht in den Besitz des 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
diff --git a/svx/inc/bolnitem.hxx b/svx/inc/bolnitem.hxx
deleted file mode 100644
index 22040d790c71..000000000000
--- a/svx/inc/bolnitem.hxx
+++ /dev/null
@@ -1,86 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: bolnitem.hxx,v $
- * $Revision: 1.7 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_BOLNITEM_HXX
-#define _SVX_BOLNITEM_HXX
-
-// include ---------------------------------------------------------------
-
-
-
-#include
-#include "svx/svxdllapi.h"
-
-
-
-// class SvxLineItem -----------------------------------------------------
-
-
-/*
-[Beschreibung]
-Dieses Item transportiert eine SvxBorderLine.
-*/
-
-class SvxBorderLine;
-
-class SVX_DLLPUBLIC SvxLineItem : public SfxPoolItem
-{
-public:
- TYPEINFO();
-
- SvxLineItem( const USHORT nId );
- SvxLineItem( const SvxLineItem& rCpy );
- ~SvxLineItem();
- SvxLineItem &operator=( const SvxLineItem& rLine );
-
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
- virtual int ScaleMetrics( long nMult, long nDiv );
- virtual int HasMetrics() const;
-
- const SvxBorderLine* GetLine () const { return pLine; }
- void SetLine ( const SvxBorderLine *pNew );
-
-private:
- SvxBorderLine* pLine;
-};
-
-
-
-
-#endif
diff --git a/svx/inc/bulitem.hxx b/svx/inc/bulitem.hxx
deleted file mode 100644
index 6291e20caccc..000000000000
--- a/svx/inc/bulitem.hxx
+++ /dev/null
@@ -1,163 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: bulitem.hxx,v $
- * $Revision: 1.6 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_BULITEM_HXX
-#define _SVX_BULITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include "svx/svxdllapi.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
-// Erstmal nur die Werte, die vom Dialog geaendert werden...
-#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 SVX_DLLPUBLIC SvxBulletItem : public SfxPoolItem
-{
- Font aFont;
- GraphicObject* pGraphicObject;
- String aPrevText;
- String aFollowText;
- USHORT nStart;
- USHORT nStyle;
- long nWidth;
- USHORT nScale;
- sal_Unicode cSymbol;
- BYTE nJustify;
- USHORT nValidMask; // Nur temporaer fuer GetAttribs/SetAttribs, wegen des grossen Bullets
-
-#ifdef _SVX_BULITEM_CXX
- void SetDefaultFont_Impl();
- void SetDefaults_Impl();
-#endif
-
-public:
- TYPEINFO();
-
- SvxBulletItem( USHORT nWhich = 0 );
- SvxBulletItem( BYTE nStyle, const Font& rFont, USHORT nStart = 0, USHORT nWhich = 0 );
- SvxBulletItem( const Font& rFont, sal_Unicode cSymbol, USHORT nWhich=0 );
- SvxBulletItem( const Bitmap&, USHORT nWhich = 0 );
- SvxBulletItem( const GraphicObject&, USHORT nWhich = 0 );
- SvxBulletItem( SvStream& rStrm, USHORT nWhich = 0 );
- SvxBulletItem( const SvxBulletItem& );
- ~SvxBulletItem();
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT nVersion ) const;
- virtual SvStream& Store( SvStream & , USHORT nItemVersion ) const;
-
- String GetFullText() const;
- sal_Unicode GetSymbol() const { return cSymbol; }
- String GetPrevText() const { return aPrevText; }
- String GetFollowText() const { return aFollowText; }
-
- USHORT GetStart() const { return nStart; }
- long GetWidth() const { return nWidth; }
- USHORT GetStyle() const { return nStyle; }
- BYTE GetJustification() const { return nJustify; }
- Font GetFont() const { return aFont; }
- USHORT GetScale() const { return nScale; }
-
- Bitmap GetBitmap() const;
- void SetBitmap( const Bitmap& rBmp );
-
- 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( USHORT nNew ) { nStart = nNew; }
- void SetWidth( long nNew ) { nWidth = nNew; }
- void SetStyle( USHORT nNew ) { nStyle = nNew; }
- void SetJustification( BYTE nNew ) { nJustify = nNew; }
- void SetFont( const Font& rNew) { aFont = rNew; }
- void SetScale( USHORT nNew ) { nScale = nNew; }
-
- virtual USHORT GetVersion(USHORT nFileVersion) const;
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- static void StoreFont( SvStream&, const Font& );
- static Font CreateFont( SvStream&, USHORT nVer );
-
- USHORT& GetValidMask() { return nValidMask; }
- USHORT GetValidMask() const { return nValidMask; }
- USHORT IsValid( USHORT nFlag ) const { return nValidMask & nFlag; }
- void SetValid( USHORT nFlag, BOOL bValid )
- {
- if ( bValid )
- nValidMask |= nFlag;
- else
- nValidMask &= ~nFlag;
- }
- void CopyValidProperties( const SvxBulletItem& rCopyFrom );
-};
-
-
-#endif
diff --git a/svx/inc/charhiddenitem.hxx b/svx/inc/charhiddenitem.hxx
deleted file mode 100644
index c11abea5145d..000000000000
--- a/svx/inc/charhiddenitem.hxx
+++ /dev/null
@@ -1,64 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: charhiddenitem.hxx,v $
- * $Revision: 1.6 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_CHARHIDDENITEM_HXX
-#define _SVX_CHARHIDDENITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#include "svx/svxdllapi.h"
-
-// class SvxCharHiddenItem -------------------------------------------------
-/*
- [Description]
- This item marks text as hidden
-*/
-
-class SVX_DLLPUBLIC SvxCharHiddenItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxCharHiddenItem( const BOOL bHidden /*= FALSE*/, const USHORT nId );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- inline SvxCharHiddenItem& operator=(const SvxCharHiddenItem& rHidden) {
- SetValue(rHidden.GetValue());
- return *this;
- }
-};
-
-#endif
diff --git a/svx/inc/dlgutil.hxx b/svx/inc/dlgutil.hxx
index e2a54c9967c3..4367cfe945fa 100644
--- a/svx/inc/dlgutil.hxx
+++ b/svx/inc/dlgutil.hxx
@@ -31,94 +31,18 @@
#define _SVX_DLGUTIL_HXX
// include ---------------------------------------------------------------
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
+#include
+#include
// macro -----------------------------------------------------------------
// typedef ---------------------------------------------------------------
-typedef long (*FUNC_CONVERT)(long);
-
// Functions -------------------------------------------------------------
-
-// FieldUnit im MetricField oder -Box umsetzen
-SVX_DLLPUBLIC void SetFieldUnit( MetricField& rCtrl,
- FieldUnit eUnit, BOOL bAll = FALSE );
-SVX_DLLPUBLIC void SetFieldUnit( MetricBox& rCtrl,
- FieldUnit eUnit, BOOL bAll = FALSE );
+class SfxItemSet;
SVX_DLLPUBLIC FieldUnit GetModuleFieldUnit( const SfxItemSet& );
-// Metriken umrechnen
-SVX_DLLPUBLIC long CalcToUnit( float nIn, SfxMapUnit eUnit );
-SVX_DLLPUBLIC long CalcToPoint( long nIn, SfxMapUnit eUnit, USHORT nFaktor );
-
-SVX_DLLPUBLIC long ItemToControl( long nIn, SfxMapUnit eItem, SfxFieldUnit eCtrl );
-long ControlToItem( long nIn, SfxFieldUnit eCtrl, SfxMapUnit eItem );
-
-SVX_DLLPUBLIC FieldUnit MapToFieldUnit( const SfxMapUnit eUnit );
-MapUnit FieldToMapUnit( const SfxFieldUnit eUnit );
-
-long ConvertValueToMap( long nVal, SfxMapUnit eUnit );
-long ConvertValueToUnit( long nVal, SfxMapUnit eUnit );
-
-SVX_DLLPUBLIC void SetMetricValue( MetricField& rField,
- long lCoreValue, SfxMapUnit eUnit );
-SVX_DLLPUBLIC long GetCoreValue( const MetricField& rField, SfxMapUnit eUnit );
-
-// to Twips
-long CMToTwips( long nIn );
-long MMToTwips( long nIn );
-long InchToTwips( long nIn );
-SVX_DLLPUBLIC long PointToTwips( long nIn );
-long PicaToTwips( long nIn );
-
-// to CM
-long TwipsToCM( long nIn );
-long InchToCM( long nIn );
-long MMToCM( long nIn );
-long PointToCM( long nIn );
-long PicaToCM( long nIn );
-
-// to MM
-long TwipsToMM( long nIn );
-long CMToMM( long nIn );
-long InchToMM( long nIn );
-long PointToMM( long nIn );
-long PicaToMM( long nIn );
-
-// to Inch
-long TwipsToInch(long nIn );
-long CMToInch(long nIn );
-long MMToInch(long nIn );
-long PointToInch(long nIn );
-long PicaToInch(long nIn );
-
-// to Point
-long TwipsToPoint(long nIn );
-long InchToPoint(long nIn );
-long CMToPoint(long nIn );
-long MMToPoint(long nIn );
-long PicaToPoint(long nIn );
-
-// To Pica
-long TwipsToPica(long nIn );
-long InchToPica(long nIn );
-long PointToPica(long nIn );
-long CMToPica(long nIn );
-long MMToPica(long nIn );
-
-// generische Wandlung
-long TransformMetric( long nVal, FieldUnit aOld, FieldUnit aNew );
-
-// replacement of the SfxIniManager
-String ConvertPosSizeToIniString( const Point& rPos, const Size& rSize );
-sal_Bool ConvertIniStringToPosSize( const String& rIniStr, Point& rPos, Size& rSize );
-
-
#define OUTPUT_DRAWMODE_COLOR (DRAWMODE_DEFAULT)
#define OUTPUT_DRAWMODE_CONTRAST (DRAWMODE_SETTINGSLINE | DRAWMODE_SETTINGSFILL | DRAWMODE_SETTINGSTEXT | DRAWMODE_SETTINGSGRADIENT)
diff --git a/svx/inc/editstat.hxx b/svx/inc/editstat.hxx
deleted file mode 100644
index 71f65dbe6657..000000000000
--- a/svx/inc/editstat.hxx
+++ /dev/null
@@ -1,153 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: editstat.hxx,v $
- * $Revision: 1.7 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _EDITSTAT_HXX
-#define _EDITSTAT_HXX
-
-#include
-#include
-
-#define EE_CNTRL_USECHARATTRIBS 0x00000001 // Verwendung harter ZeichenAttr.
-#define EE_CNTRL_USEPARAATTRIBS 0x00000002 // Verwendung von AbsatzAttr.
-#define EE_CNTRL_CRSRLEFTPARA 0x00000004 // Cursor ist in einen anderen Absatz gewandert
-#define EE_CNTRL_DOIDLEFORMAT 0x00000008 // Idle-Formatierung
-#define EE_CNTRL_PASTESPECIAL 0x00000010 // Allow PasteSpecial
-#define EE_CNTRL_AUTOINDENTING 0x00000020 // Automatisches einruecken
-#define EE_CNTRL_UNDOATTRIBS 0x00000040 // Undo fuer Attribute....
-#define EE_CNTRL_ONECHARPERLINE 0x00000080 // Ein Zeichen pro Zeile
-#define EE_CNTRL_NOCOLORS 0x00000100 // Engine: Keine Farben
-#define EE_CNTRL_OUTLINER 0x00000200 // Sonderbehandlung Outliner/Gliederungsmodus
-#define EE_CNTRL_OUTLINER2 0x00000400 // Sonderbehandlung Outliner/Seite
-#define EE_CNTRL_ALLOWBIGOBJS 0x00000800 // PortionInfo in Textobjekten
-#define EE_CNTRL_ONLINESPELLING 0x00001000 // Waehrend des editieren Spelling
-#define EE_CNTRL_STRETCHING 0x00002000 // Stretch-Modus
-#define EE_CNTRL_MARKFIELDS 0x00004000 // Felder farblich hinterlegen
-#define EE_CNTRL_URLSFXEXECUTE 0x00008000 // !!!OLD!!!: SFX-URL-Execute.
-#define EE_CNTRL_RESTOREFONT 0x00010000 // Font im OutDev restaurieren
-#define EE_CNTRL_RTFSTYLESHEETS 0x00020000 // Stylesheets bei Import verwenden
-//#define EE_CNTRL_NOREDLINES 0x00040000 // Keine RedLines bei OnlineSpellError /* removed #i91949 */
-#define EE_CNTRL_AUTOCORRECT 0x00080000 // AutoKorrektur
-#define EE_CNTRL_AUTOCOMPLETE 0x00100000 // AutoComplete
-#define EE_CNTRL_AUTOPAGESIZEX 0x00200000 // Papierbreite an Text anpassen
-#define EE_CNTRL_AUTOPAGESIZEY 0x00400000 // Papierhoehe an Text anpassen
-#define EE_CNTRL_AUTOPAGESIZE (EE_CNTRL_AUTOPAGESIZEX|EE_CNTRL_AUTOPAGESIZEY)
-#define EE_CNTRL_TABINDENTING 0x00800000 // Einruecken mit Tab
-#define EE_CNTRL_FORMAT100 0x01000000 // Immer nach 100% formatieren
-#define EE_CNTRL_ULSPACESUMMATION 0x02000000 // MS Compat: SA und SB aufsummieren, nicht maximalwert
-#define EE_CNTRL_ULSPACEFIRSTPARA 0x04000000 // MS Compat: SB auch beim ersten Absatz auswerten
-
-#define EV_CNTRL_AUTOSCROLL 0x00000001 // Autom. Scrollen horiz.
-#define EV_CNTRL_BIGSCROLL 0x00000002 // Weiter Scrollen, als nur zum Cursor
-#define EV_CNTRL_ENABLEPASTE 0x00000004 // Paste erlauben
-#define EV_CNTRL_SINGLELINEPASTE 0x00000008 // View: Paste in Eingabezeile...
-#define EV_CNTRL_OVERWRITE 0x00000010 // Ueberschreibmodus
-#define EV_CNTRL_INVONEMORE 0x00000020 // Ein Pixel mehr invalidieren
-#define EV_CNTRL_AUTOSIZEX 0x00000040 // Automatisch an Textbreite anpassen
-#define EV_CNTRL_AUTOSIZEY 0x00000080 // Automatisch an Texthoehe anpassen
-#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
-
-// Nur fuer Update:
-#define EE_CNTRL_AUTOCENTER EE_CNTRL_AUTOPAGESIZE
-#define EE_STAT_GROWY EE_STAT_TEXTHEIGHTCHANGED
-
-/*
- EE_STAT_CRSRLEFTPARA zur Zeit bei Cursorbewegungen und Return.
-*/
-
-inline void SetFlags( ULONG& rBits, const ULONG nMask, FASTBOOL bOn )
-{
- if ( bOn )
- rBits |= nMask;
- else
- rBits &= ~nMask;
-}
-
-class EditStatus
-{
-protected:
- ULONG nStatusBits;
- ULONG nControlBits;
- USHORT nPrevPara; // fuer EE_STAT_CRSRLEFTPARA
-
-public:
- EditStatus() { nStatusBits = 0; nControlBits = 0; nPrevPara = 0xFFFF; }
-
- void Clear() { nStatusBits = 0; }
- void SetControlBits( ULONG nMask, FASTBOOL bOn )
- { SetFlags( nControlBits, nMask, bOn ); }
-
- ULONG GetStatusWord() const { return nStatusBits; }
- ULONG& GetStatusWord() { return nStatusBits; }
-
- ULONG GetControlWord() const { return nControlBits; }
- ULONG& GetControlWord() { return nControlBits; }
-
- USHORT GetPrevParagraph() const { return nPrevPara; }
- USHORT& 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
-{
- USHORT nCommand;
- String aWord;
- LanguageType eLanguage;
-
- SpellCallbackInfo( USHORT nCMD, const String& rWord )
- : aWord( rWord )
- {
- nCommand = nCMD;
- eLanguage = LANGUAGE_DONTKNOW;
- }
-
- SpellCallbackInfo( USHORT nCMD, LanguageType eLang )
- {
- nCommand = nCMD;
- eLanguage = eLang;
- }
-};
-
-#endif // _EDITSTAT_HXX
-
diff --git a/svx/inc/editund2.hxx b/svx/inc/editund2.hxx
deleted file mode 100644
index 65c83dd4f0e8..000000000000
--- a/svx/inc/editund2.hxx
+++ /dev/null
@@ -1,79 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: editund2.hxx,v $
- * $Revision: 1.5 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _EDITUND2_HXX
-#define _EDITUND2_HXX
-
-#include "svx/svxdllapi.h"
-#include
-
-class ImpEditEngine;
-
-class SVX_DLLPUBLIC EditUndoManager : public SfxUndoManager
-{
- using SfxUndoManager::Undo;
- using SfxUndoManager::Redo;
-
-private:
- ImpEditEngine* pImpEE;
-public:
- EditUndoManager( ImpEditEngine* pImpEE );
-
- virtual BOOL Undo( USHORT nCount=1 );
- virtual BOOL Redo( USHORT nCount=1 );
-};
-
-// -----------------------------------------------------------------------
-// EditUndo
-// ------------------------------------------------------------------------
-class SVX_DLLPUBLIC EditUndo : public SfxUndoAction
-{
-private:
- USHORT nId;
- ImpEditEngine* pImpEE;
-
-public:
- TYPEINFO();
- EditUndo( USHORT nI, ImpEditEngine* pImpEE );
- virtual ~EditUndo();
-
- ImpEditEngine* GetImpEditEngine() const { return pImpEE; }
-
- virtual void Undo() = 0;
- virtual void Redo() = 0;
-
- virtual BOOL CanRepeat(SfxRepeatTarget&) const;
- virtual String GetComment() const;
- virtual USHORT GetId() const;
-};
-
-#endif // _EDITUND2_HXX
-
-
diff --git a/svx/inc/edtspell.hxx b/svx/inc/edtspell.hxx
deleted file mode 100644
index 15e180342d85..000000000000
--- a/svx/inc/edtspell.hxx
+++ /dev/null
@@ -1,188 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: edtspell.hxx,v $
- * $Revision: 1.10 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _EDTSPELL_HXX
-#define _EDTSPELL_HXX
-
-#include
-#include
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-namespace com { namespace sun { namespace star { namespace linguistic2 {
- class XSpellChecker1;
-}}}}
-
-
-class EditView;
-class ImpEditEngine;
-class ContentNode;
-
-class EditSpellWrapper : public SvxSpellWrapper
-{
-private:
- EditView* pEditView;
- void CheckSpellTo();
-
-protected:
- virtual void SpellStart( SvxSpellArea eArea );
- virtual BOOL SpellContinue(); // Bereich pruefen
- virtual void ReplaceAll( const String &rNewText, INT16 nLanguage );
- virtual void SpellEnd();
- virtual BOOL SpellMore();
- virtual BOOL HasOtherCnt();
- virtual void ScrollArea();
- virtual void ChangeWord( const String& rNewWord, const USHORT nLang );
- virtual void ChangeThesWord( const String& rNewWord );
- virtual void AutoCorrect( const String& rOldWord, const String& rNewWord );
-
-public:
- EditSpellWrapper( Window* pWin,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XSpellChecker1 > &xChecker,
- BOOL bIsStart,
- BOOL bIsAllRight, EditView* pView );
-
-};
-
-
-struct WrongRange
-{
- USHORT nStart;
- USHORT nEnd;
-
- WrongRange( USHORT nS, USHORT nE ) { nStart = nS; nEnd = nE; }
-};
-
-SV_DECL_VARARR( WrongRanges, WrongRange, 4, 4 )
-#define NOT_INVALID 0xFFFF
-
-class WrongList : private WrongRanges
-{
-private:
- USHORT nInvalidStart;
- USHORT nInvalidEnd;
-
- BOOL DbgIsBuggy() const;
-
-public:
- WrongList();
- ~WrongList();
-
- BOOL IsInvalid() const { return nInvalidStart != NOT_INVALID; }
- void SetValid() { nInvalidStart = NOT_INVALID; nInvalidEnd = 0; }
- void MarkInvalid( USHORT nS, USHORT nE )
- {
- if ( ( nInvalidStart == NOT_INVALID ) || ( nInvalidStart > nS ) )
- nInvalidStart = nS;
- if ( nInvalidEnd < nE )
- nInvalidEnd = nE;
- }
-
- USHORT Count() const { return WrongRanges::Count(); }
-
- // Wenn man weiss was man tut:
- WrongRange& GetObject( USHORT n ) const { return WrongRanges::GetObject( n ); }
- void InsertWrong( const WrongRange& rWrong, USHORT nPos );
-
- USHORT GetInvalidStart() const { return nInvalidStart; }
- USHORT& GetInvalidStart() { return nInvalidStart; }
-
- USHORT GetInvalidEnd() const { return nInvalidEnd; }
- USHORT& GetInvalidEnd() { return nInvalidEnd; }
-
- void TextInserted( USHORT nPos, USHORT nChars, BOOL bPosIsSep );
- void TextDeleted( USHORT nPos, USHORT nChars );
-
- void ResetRanges() { Remove( 0, Count() ); }
- BOOL HasWrongs() const { return Count() != 0; }
- void InsertWrong( USHORT nStart, USHORT nEnd, BOOL bClearRange );
- BOOL NextWrong( USHORT& rnStart, USHORT& rnEnd ) const;
- BOOL HasWrong( USHORT nStart, USHORT nEnd ) const;
- BOOL HasAnyWrong( USHORT nStart, USHORT nEnd ) const;
- void ClearWrongs( USHORT nStart, USHORT nEnd, const ContentNode* pNode );
- void MarkWrongsInvalid();
-
- WrongList* Clone() const;
-
- // #i102062#
- bool operator==(const WrongList& rCompare) const;
-};
-
-inline void WrongList::InsertWrong( const WrongRange& rWrong, USHORT nPos )
-{
- WrongRanges::Insert( rWrong, nPos );
-#ifdef DBG_UTIL
- DBG_ASSERT( !DbgIsBuggy(), "Insert: WrongList kaputt!" );
-#endif
-}
-
-
-
-class SVX_DLLPUBLIC EdtAutoCorrDoc : public SvxAutoCorrDoc
-{
- ImpEditEngine* pImpEE;
- ContentNode* pCurNode;
- USHORT nCursor;
-
- BOOL bAllowUndoAction;
- BOOL bUndoAction;
-
-protected:
- void ImplStartUndoAction();
-
-public:
- EdtAutoCorrDoc( ImpEditEngine* pImpEE, ContentNode* pCurNode, USHORT nCrsr, xub_Unicode cIns );
- ~EdtAutoCorrDoc();
-
- virtual BOOL Delete( USHORT nStt, USHORT nEnd );
- virtual BOOL Insert( USHORT nPos, const String& rTxt );
- virtual BOOL Replace( USHORT nPos, const String& rTxt );
-
- virtual BOOL SetAttr( USHORT nStt, USHORT nEnd, USHORT nSlotId, SfxPoolItem& );
- virtual BOOL SetINetAttr( USHORT nStt, USHORT nEnd, const String& rURL );
-
- virtual BOOL HasSymbolChars( USHORT nStt, USHORT nEnd );
-
- virtual const String* GetPrevPara( BOOL bAtNormalPos );
-
- virtual BOOL ChgAutoCorrWord( USHORT& rSttPos, USHORT nEndPos,
- SvxAutoCorrect& rACorrect, const String** ppPara );
-
- virtual LanguageType GetLanguage( USHORT nPos, BOOL bPrevPara = FALSE ) const;
-
- USHORT GetCursor() const { return nCursor; }
-
-};
-
-#endif // EDTSPELL
-
diff --git a/svx/inc/eerdll.hxx b/svx/inc/eerdll.hxx
deleted file mode 100644
index 331cd1eeb6ff..000000000000
--- a/svx/inc/eerdll.hxx
+++ /dev/null
@@ -1,61 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: eerdll.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _EERDLL_HXX
-#define _EERDLL_HXX
-
-class GlobalEditData;
-
-#include
-#include
-
-class EditResId: public ResId
-{
-public:
- EditResId( USHORT 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()
-
-#endif //_EERDLL_HXX
diff --git a/svx/inc/flstitem.hxx b/svx/inc/flstitem.hxx
deleted file mode 100644
index f41970cc79da..000000000000
--- a/svx/inc/flstitem.hxx
+++ /dev/null
@@ -1,82 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: flstitem.hxx,v $
- * $Revision: 1.7 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_FLSTITEM_HXX
-#define _SVX_FLSTITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-// class SvxFontListItem -------------------------------------------------
-
-class FontList;
-
-/*
- [Beschreibung]
-
- Dieses Item dient als Transport-Medium fuer eine FontListe.
- Die Fontliste wird nicht kopiert und nicht geloescht!
-*/
-
-class SVX_DLLPUBLIC SvxFontListItem : public SfxPoolItem
-{
-private:
- const FontList* pFontList;
- com::sun::star::uno::Sequence< rtl::OUString > aFontNameSeq;
-
-public:
- TYPEINFO();
-
- SvxFontListItem( const FontList* pFontLst,
- const USHORT nId );
- SvxFontListItem( const SvxFontListItem& rItem );
-
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
-
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- const FontList* GetFontList() const { return pFontList; }
-};
-
-
-
-
-#endif
-
-
diff --git a/svx/inc/fontitem.hxx b/svx/inc/fontitem.hxx
deleted file mode 100644
index c6d0087382a5..000000000000
--- a/svx/inc/fontitem.hxx
+++ /dev/null
@@ -1,123 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: fontitem.hxx,v $
- * $Revision: 1.11 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_FONTITEM_HXX
-#define _SVX_FONTITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#ifndef _FONT_HXX //autogen
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxFontItem -----------------------------------------------------
-
-/*
- [Beschreibung]
- Dieses Item beschreibt einen Font.
-*/
-
-class SVX_DLLPUBLIC SvxFontItem : public SfxPoolItem
-{
- String aFamilyName;
- String aStyleName;
- FontFamily eFamily;
- FontPitch ePitch;
- rtl_TextEncoding eTextEncoding;
-
- static BOOL bEnableStoreUnicodeNames;
-
-public:
- TYPEINFO();
-
- SvxFontItem( const USHORT nId );
- SvxFontItem( const FontFamily eFam, const String& rFamilyName,
- const String& rStyleName,
- const FontPitch eFontPitch /*= PITCH_DONTKNOW*/,
- const rtl_TextEncoding eFontTextEncoding /*= RTL_TEXTENCODING_DONTKNOW*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- // ZugriffsMethoden:
- inline String &GetFamilyName() { return aFamilyName; }
- inline const String &GetFamilyName() const { return aFamilyName; }
-
- inline String &GetStyleName() { return aStyleName; }
- inline const String &GetStyleName() const { return aStyleName; }
-
- inline FontFamily &GetFamily() { return eFamily; }
- inline FontFamily GetFamily() const { return eFamily; }
-
- inline FontPitch &GetPitch() { return ePitch; }
- inline FontPitch GetPitch() const { return ePitch; }
-
- inline rtl_TextEncoding &GetCharSet() { return eTextEncoding; }
- inline rtl_TextEncoding GetCharSet() const { return eTextEncoding; }
-
- inline SvxFontItem& operator=(const SvxFontItem& rFont)
- {
- aFamilyName = rFont.GetFamilyName();
- aStyleName = rFont.GetStyleName();
- eFamily = rFont.GetFamily();
- ePitch = rFont.GetPitch();
- eTextEncoding = rFont.GetCharSet();
- return *this;
- }
-
- static void EnableStoreUnicodeNames( BOOL bEnable );
-
-};
-
-SVX_DLLPUBLIC void GetDefaultFonts( SvxFontItem& rLatin, SvxFontItem& rAsian,
- SvxFontItem& rComplex );
-
-#endif // #ifndef _SVX_FONTITEM_HXX
-
-
diff --git a/svx/inc/forbiddencharacterstable.hxx b/svx/inc/forbiddencharacterstable.hxx
deleted file mode 100644
index d59c93c58994..000000000000
--- a/svx/inc/forbiddencharacterstable.hxx
+++ /dev/null
@@ -1,73 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: forbiddencharacterstable.hxx,v $
- * $Revision: 1.5 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _FORBIDDENCHARACTERSTABLE_HXX
-#define _FORBIDDENCHARACTERSTABLE_HXX
-
-#ifndef _TABLE_HXX //autogen
-#include
-#endif
-
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-namespace com {
-namespace sun {
-namespace star {
-namespace lang {
- class XMultiServiceFactory;
-}}}}
-
-struct ForbiddenCharactersInfo
-{
- com::sun::star::i18n::ForbiddenCharacters aForbiddenChars;
- BOOL bTemporary;
-};
-
-DECLARE_TABLE( SvxForbiddenCharactersTableImpl, ForbiddenCharactersInfo* )
-
-class SVX_DLLPUBLIC SvxForbiddenCharactersTable : public SvxForbiddenCharactersTableImpl, public vos::OReference
-{
-private:
- ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > mxMSF;
-
-public:
- SvxForbiddenCharactersTable( ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xMSF, USHORT nISize = 4, USHORT nGrow = 4 );
- ~SvxForbiddenCharactersTable();
-
- const com::sun::star::i18n::ForbiddenCharacters* GetForbiddenCharacters( USHORT nLanuage, BOOL bGetDefault ) const;
- void SetForbiddenCharacters( USHORT nLanuage , const com::sun::star::i18n::ForbiddenCharacters& );
- void ClearForbiddenCharacters( USHORT nLanuage );
-};
-
-#endif // _FORBIDDENCHARACTERSTABLE_HXX
-
diff --git a/svx/inc/fwdtitem.hxx b/svx/inc/fwdtitem.hxx
deleted file mode 100644
index 8a02474f525c..000000000000
--- a/svx/inc/fwdtitem.hxx
+++ /dev/null
@@ -1,111 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: fwdtitem.hxx,v $
- * $Revision: 1.6 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_FWDTITEM_HXX
-#define _SVX_FWDTITEM_HXX
-
-// include ---------------------------------------------------------------
-
-
-#include
-
-
-// class SvxFontWidthItem -----------------------------------------------
-
-
-/* [Beschreibung]
-
- Dieses Item beschreibt die Font-Breite.
-*/
-
-class SvxFontWidthItem : public SfxPoolItem
-{
- UINT16 nWidth; // 0 = default
- USHORT nProp; // default 100%
-public:
- TYPEINFO();
-
- SvxFontWidthItem( const USHORT nSz /*= 0*/,
- const USHORT nPropWidth /*= 100*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual int ScaleMetrics( long nMult, long nDiv );
- virtual int HasMetrics() const;
-
- inline SvxFontWidthItem& operator=(const SvxFontWidthItem& rItem )
- {
- SetWidthValue( rItem.GetWidth() );
- SetProp( rItem.GetProp() );
- return *this;
- }
-
- void SetWidth( UINT16 nNewWidth, const USHORT nNewProp = 100 )
- {
- DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
- nWidth = UINT16(( (UINT32)nNewWidth * nNewProp ) / 100 );
- nProp = nNewProp;
- }
-
- UINT16 GetWidth() const { return nWidth; }
-
- void SetWidthValue( UINT16 nNewWidth )
- {
- DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
- nWidth = nNewWidth;
- }
-
- void SetProp( const USHORT nNewProp )
- {
- DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
- nProp = nNewProp;
- }
-
- USHORT GetProp() const { return nProp; }
-};
-
-
-
-
-
-#endif
-
-
diff --git a/svx/inc/helpid.hrc b/svx/inc/helpid.hrc
index fdb7c00ba6c0..854a5a33c4fe 100644
--- a/svx/inc/helpid.hrc
+++ b/svx/inc/helpid.hrc
@@ -37,8 +37,6 @@
// Help-Ids --------------------------------------------------------------
#define HID_ALIGN_TBX (HID_SVX_START + 1)
-#define HID_AUTOCORR_HELP_END (HID_SVX_START + 2)
-#define HID_AUTOCORR_HELP_START (HID_SVX_START + 3)
#define HID_BMPMASK_CTL_PIPETTE (HID_SVX_START + 4)
#define HID_BMPMASK_CTL_QCOL_1 (HID_SVX_START + 5)
#define HID_BMPMASK_TBI_PIPETTE (HID_SVX_START + 6)
diff --git a/svx/inc/nlbkitem.hxx b/svx/inc/nlbkitem.hxx
deleted file mode 100644
index db3298c3d5b1..000000000000
--- a/svx/inc/nlbkitem.hxx
+++ /dev/null
@@ -1,76 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: nlbkitem.hxx,v $
- * $Revision: 1.6 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_NLBKITEM_HXX
-#define _SVX_NLBKITEM_HXX
-
-// include ---------------------------------------------------------------
-
-
-#include
-#include "svx/svxdllapi.h"
-
-// class SvxNoLinebreakItem ----------------------------------------------
-
-
-/* [Beschreibung]
-
- PB: ???
-*/
-
-class SVX_DLLPUBLIC SvxNoLinebreakItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxNoLinebreakItem( const BOOL bBreak /*= TRUE*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- inline SvxNoLinebreakItem& operator=(const SvxNoLinebreakItem& rLB)
- {
- SetValue( rLB.GetValue() );
- return *this;
- }
-};
-
-
-
-#endif
-
-
diff --git a/svx/inc/opaqitem.hxx b/svx/inc/opaqitem.hxx
deleted file mode 100644
index 07a5cbb4fd36..000000000000
--- a/svx/inc/opaqitem.hxx
+++ /dev/null
@@ -1,84 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: opaqitem.hxx,v $
- * $Revision: 1.9 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_OPAQITEM_HXX
-#define _SVX_OPAQITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxOpaqueItem ---------------------------------------------------
-
-
-/*
-[Beschreibung]
-Dieses Item beschreibt eine logische Variable "Undurchsichtig ja oder nein".
-*/
-
-class SVX_DLLPUBLIC SvxOpaqueItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxOpaqueItem( const USHORT nId , const BOOL bOpa = TRUE );
- inline SvxOpaqueItem &operator=( const SvxOpaqueItem &rCpy );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-};
-
-inline SvxOpaqueItem::SvxOpaqueItem( const USHORT nId, const BOOL bOpa )
- : SfxBoolItem( nId, bOpa )
-{}
-
-inline SvxOpaqueItem &SvxOpaqueItem::operator=( const SvxOpaqueItem &rCpy )
-{
- SetValue( rCpy.GetValue() );
- return *this;
-}
-
-
-
-#endif
-
diff --git a/svx/inc/pgrditem.hxx b/svx/inc/pgrditem.hxx
deleted file mode 100644
index e1c886829d17..000000000000
--- a/svx/inc/pgrditem.hxx
+++ /dev/null
@@ -1,67 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: pgrditem.hxx,v $
- * $Revision: 1.6 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_PGRDITEM_HXX
-#define _SVX_PGRDITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include "svx/svxdllapi.h"
-
-// class SvxParaGridItem -------------------------------------------------
-
-
-/*
- [Beschreibung]
- Paragraph snap to grid
-*/
-
-class SVX_DLLPUBLIC SvxParaGridItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxParaGridItem( const BOOL bSnapToGrid /*= TRUE*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-};
-
-#endif
-
-
diff --git a/svx/inc/prntitem.hxx b/svx/inc/prntitem.hxx
deleted file mode 100644
index f9b91e12a2a7..000000000000
--- a/svx/inc/prntitem.hxx
+++ /dev/null
@@ -1,82 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: prntitem.hxx,v $
- * $Revision: 1.8 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_PRNTITEM_HXX
-#define _SVX_PRNTITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include "svx/svxdllapi.h"
-
-
-
-// class SvxPrintItem ----------------------------------------------------
-
-
-/*
-[Beschreibung]
-Dieses Item beschreibt eine logische Variable "Drucken ja oder nein".
-*/
-
-
-class SVX_DLLPUBLIC SvxPrintItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxPrintItem( const USHORT nId , const BOOL bPrt = TRUE );
- inline SvxPrintItem &operator=( const SvxPrintItem &rCpy );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-};
-
-inline SvxPrintItem::SvxPrintItem( const USHORT nId, const BOOL bPrt )
- : SfxBoolItem( nId, bPrt )
-{}
-
-inline SvxPrintItem &SvxPrintItem::operator=( const SvxPrintItem &rCpy )
-{
- SetValue( rCpy.GetValue() );
- return *this;
-}
-
-
-
-
-#endif
-
diff --git a/svx/inc/protitem.hxx b/svx/inc/protitem.hxx
deleted file mode 100644
index bb6646f9445a..000000000000
--- a/svx/inc/protitem.hxx
+++ /dev/null
@@ -1,108 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: protitem.hxx,v $
- * $Revision: 1.9 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_PROTITEM_HXX
-#define _SVX_PROTITEM_HXX
-
-// include ---------------------------------------------------------------
-
-
-#include
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxProtectItem --------------------------------------------------
-
-
-/*
-[Beschreibung]
-Dieses Item beschreibt, ob Inhalt, Groesse oder Position geschuetzt werden
-sollen.
-*/
-
-class SVX_DLLPUBLIC SvxProtectItem : public SfxPoolItem
-{
- BOOL bCntnt :1; //Inhalt geschuetzt
- BOOL bSize :1; //Groesse geschuetzt
- BOOL bPos :1; //Position geschuetzt
-
-public:
- TYPEINFO();
-
- inline SvxProtectItem( const USHORT nId );
- inline SvxProtectItem &operator=( const SvxProtectItem &rCpy );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
-
- BOOL IsCntntProtected() const { return bCntnt; }
- BOOL IsSizeProtected() const { return bSize; }
- BOOL IsPosProtected() const { return bPos; }
- void SetCntntProtect( BOOL bNew ) { bCntnt = bNew; }
- void SetSizeProtect ( BOOL bNew ) { bSize = bNew; }
- void SetPosProtect ( BOOL bNew ) { bPos = bNew; }
-
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-};
-
-inline SvxProtectItem::SvxProtectItem( const USHORT nId )
- : SfxPoolItem( nId )
-{
- bCntnt = bSize = bPos = FALSE;
-}
-
-inline SvxProtectItem &SvxProtectItem::operator=( const SvxProtectItem &rCpy )
-{
- bCntnt = rCpy.IsCntntProtected();
- bSize = rCpy.IsSizeProtected();
- bPos = rCpy.IsPosProtected();
- return *this;
-}
-
-
-
-
-#endif
-
diff --git a/svx/inc/svx/AccessibleComponentBase.hxx b/svx/inc/svx/AccessibleComponentBase.hxx
deleted file mode 100644
index b58e651edc49..000000000000
--- a/svx/inc/svx/AccessibleComponentBase.hxx
+++ /dev/null
@@ -1,150 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: AccessibleComponentBase.hxx,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-
-#ifndef _SVX_ACCESSIBILITY_ACCESSIBLE_EXTENDED_COMPONENT_BASE_HXX
-#define _SVX_ACCESSIBILITY_ACCESSIBLE_EXTENDED_COMPONENT_BASE_HXX
-
-
-#include
-#include
-#include
-#include "svx/svxdllapi.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 SVX_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 ::rtl::OUString SAL_CALL getTitledBorderText (void)
- throw (::com::sun::star::uno::RuntimeException);
- virtual ::rtl::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
diff --git a/svx/inc/svx/AccessibleContextBase.hxx b/svx/inc/svx/AccessibleContextBase.hxx
deleted file mode 100644
index 009c9b4fa619..000000000000
--- a/svx/inc/svx/AccessibleContextBase.hxx
+++ /dev/null
@@ -1,405 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: AccessibleContextBase.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SVX_ACCESSIBILITY_ACCESSIBLE_CONTEXT_BASE_HXX
-#define _SVX_ACCESSIBILITY_ACCESSIBLE_CONTEXT_BASE_HXX
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#ifndef _COM_SUN_STAR_ACCESSIBILITY_IllegalAccessibleComponentStateException_HPP_
-#include
-#endif
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-
-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 SVX_DLLPUBLIC AccessibleContextBase
- : public MutexOwner,
- public cppu::WeakComponentImplHelper4<
- ::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 ::rtl::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 ::rtl::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 ::rtl::OUString SAL_CALL
- getAccessibleDescription (void)
- throw (::com::sun::star::uno::RuntimeException);
-
- /// Return the object's current name.
- virtual ::rtl::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);
-
- //===== XComponent ========================================================
-
- using WeakComponentImplHelperBase::addEventListener;
- using WeakComponentImplHelperBase::removeEventListener;
-
- //===== XAccessibleEventBroadcaster ========================================
-
- virtual void SAL_CALL
- addEventListener (
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessibleEventListener >& xListener)
- throw (::com::sun::star::uno::RuntimeException);
-
- virtual void SAL_CALL
- removeEventListener (
- 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 ::rtl::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 ::rtl::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< ::rtl::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 ::rtl::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 ::rtl::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 sal_True, if the object is disposed or in the course
- of being disposed. Otherwise, sal_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.
- */
- ::rtl::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 the draw page's
- display mode.
- */
- ::rtl::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
diff --git a/svx/inc/svx/SpellPortions.hxx b/svx/inc/svx/SpellPortions.hxx
deleted file mode 100644
index 97c79998a536..000000000000
--- a/svx/inc/svx/SpellPortions.hxx
+++ /dev/null
@@ -1,98 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: SpellPortions.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#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.
- */
- rtl::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 informations 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.
- */
- rtl::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
diff --git a/svx/inc/svx/adjitem.hxx b/svx/inc/svx/adjitem.hxx
deleted file mode 100644
index b29a356ded63..000000000000
--- a/svx/inc/svx/adjitem.hxx
+++ /dev/null
@@ -1,150 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: adjitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_ADJITEM_HXX
-#define _SVX_ADJITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxAdjustItem ---------------------------------------------------
-
-/*
-[Beschreibung]
-Dieses Item beschreibt die Zeilenausrichtung.
-*/
-#define ADJUST_LASTBLOCK_VERSION ((USHORT)0x0001)
-
-class SVX_DLLPUBLIC SvxAdjustItem : public SfxEnumItemInterface
-{
- BOOL bLeft : 1;
- BOOL bRight : 1;
- BOOL bCenter : 1;
- BOOL bBlock : 1;
-
- // nur aktiv, wenn bBlock
- BOOL bOneBlock : 1;
- BOOL bLastCenter : 1;
- BOOL bLastBlock : 1;
-
- friend SvStream& operator<<( SvStream&, SvxAdjustItem& ); //$ ostream
-public:
- TYPEINFO();
-
- SvxAdjustItem( const SvxAdjust eAdjst /*= SVX_ADJUST_LEFT*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
-
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
- virtual USHORT GetValueCount() const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetEnumValue() const;
- virtual void SetEnumValue( USHORT nNewVal );
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
- virtual USHORT GetVersion( USHORT 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
-
diff --git a/svx/inc/svx/akrnitem.hxx b/svx/inc/svx/akrnitem.hxx
deleted file mode 100644
index cd581ced8cfa..000000000000
--- a/svx/inc/svx/akrnitem.hxx
+++ /dev/null
@@ -1,80 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: akrnitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_AKRNITEM_HXX
-#define _SVX_AKRNITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxAutoKernItem -------------------------------------------------
-
-/*
- [Beschreibung]
- Attribut fuer Pair-Kerning.
-*/
-
-class SVX_DLLPUBLIC SvxAutoKernItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxAutoKernItem( const BOOL bAutoKern /*= FALSE*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- inline SvxAutoKernItem& operator=(const SvxAutoKernItem& rAutoKern)
- {
- SetValue( rAutoKern.GetValue() );
- return *this;
- }
-};
-
-#endif
-
diff --git a/svx/inc/svx/blnkitem.hxx b/svx/inc/svx/blnkitem.hxx
deleted file mode 100644
index 1c4c3eb3985d..000000000000
--- a/svx/inc/svx/blnkitem.hxx
+++ /dev/null
@@ -1,78 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: blnkitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_BLNKITEM_HXX
-#define _SVX_BLNKITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxBlinkItem -------------------------------------------------
-
-/*
- [Beschreibung]
- Dieses Item beschreibt, ob geblinkt werden soll.
-*/
-
-class SVX_DLLPUBLIC SvxBlinkItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxBlinkItem( const BOOL bBlink /*= FALSE*/, const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- inline SvxBlinkItem& operator=(const SvxBlinkItem& rBlink) {
- SetValue(rBlink.GetValue());
- return *this;
- }
-};
-
-#endif
-
diff --git a/svx/inc/svx/borderline.hxx b/svx/inc/svx/borderline.hxx
deleted file mode 100644
index 77fae1f676d0..000000000000
--- a/svx/inc/svx/borderline.hxx
+++ /dev/null
@@ -1,137 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: borderline.hxx,v $
- * $Revision: 1.5 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef SVX_BORDERLINE_HXX
-#define SVX_BORDERLINE_HXX
-
-#include
-#include
-#include "svx/svxdllapi.h"
-
-// 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
-
-#define DEF_MAX_LINE_WIDHT DEF_LINE_WIDTH_4
-#define DEF_MAX_LINE_DIST DEF_LINE_WIDTH_2
-
-#define DEF_DOUBLE_LINE0_OUT DEF_LINE_WIDTH_0
-#define DEF_DOUBLE_LINE0_IN DEF_LINE_WIDTH_0
-#define DEF_DOUBLE_LINE0_DIST DEF_LINE_WIDTH_1
-
-#define DEF_DOUBLE_LINE1_OUT DEF_LINE_WIDTH_1
-#define DEF_DOUBLE_LINE1_IN DEF_LINE_WIDTH_1
-#define DEF_DOUBLE_LINE1_DIST DEF_LINE_WIDTH_1
-
-#define DEF_DOUBLE_LINE2_OUT DEF_LINE_WIDTH_2
-#define DEF_DOUBLE_LINE2_IN DEF_LINE_WIDTH_2
-#define DEF_DOUBLE_LINE2_DIST DEF_LINE_WIDTH_2
-
-#define DEF_DOUBLE_LINE3_OUT DEF_LINE_WIDTH_2
-#define DEF_DOUBLE_LINE3_IN DEF_LINE_WIDTH_1
-#define DEF_DOUBLE_LINE3_DIST DEF_LINE_WIDTH_2
-
-#define DEF_DOUBLE_LINE4_OUT DEF_LINE_WIDTH_1
-#define DEF_DOUBLE_LINE4_IN DEF_LINE_WIDTH_2
-#define DEF_DOUBLE_LINE4_DIST DEF_LINE_WIDTH_1
-
-#define DEF_DOUBLE_LINE5_OUT DEF_LINE_WIDTH_3
-#define DEF_DOUBLE_LINE5_IN DEF_LINE_WIDTH_2
-#define DEF_DOUBLE_LINE5_DIST DEF_LINE_WIDTH_2
-
-#define DEF_DOUBLE_LINE6_OUT DEF_LINE_WIDTH_2
-#define DEF_DOUBLE_LINE6_IN DEF_LINE_WIDTH_3
-#define DEF_DOUBLE_LINE6_DIST DEF_LINE_WIDTH_2
-
-#define DEF_DOUBLE_LINE7_OUT DEF_LINE_WIDTH_0
-#define DEF_DOUBLE_LINE7_IN DEF_LINE_WIDTH_0
-#define DEF_DOUBLE_LINE7_DIST DEF_LINE_WIDTH_2
-
-#define DEF_DOUBLE_LINE8_OUT DEF_LINE_WIDTH_1
-#define DEF_DOUBLE_LINE8_IN DEF_LINE_WIDTH_0
-#define DEF_DOUBLE_LINE8_DIST DEF_LINE_WIDTH_2
-
-#define DEF_DOUBLE_LINE9_OUT DEF_LINE_WIDTH_2
-#define DEF_DOUBLE_LINE9_IN DEF_LINE_WIDTH_0
-#define DEF_DOUBLE_LINE9_DIST DEF_LINE_WIDTH_2
-
-#define DEF_DOUBLE_LINE10_OUT DEF_LINE_WIDTH_3
-#define DEF_DOUBLE_LINE10_IN DEF_LINE_WIDTH_0
-#define DEF_DOUBLE_LINE10_DIST DEF_LINE_WIDTH_2
-
-// ============================================================================
-
-class SVX_DLLPUBLIC SvxBorderLine
-{
-protected:
- Color aColor;
- USHORT nOutWidth;
- USHORT nInWidth;
- USHORT nDistance;
-
-public:
- SvxBorderLine( const Color *pCol = 0, USHORT nOut = 0, USHORT nIn = 0, USHORT nDist = 0 );
- SvxBorderLine( const SvxBorderLine& r );
-
- SvxBorderLine& operator=( const SvxBorderLine& r );
-
- const Color& GetColor() const { return aColor; }
- USHORT GetOutWidth() const { return nOutWidth; }
- USHORT GetInWidth() const { return nInWidth; }
- USHORT GetDistance() const { return nDistance; }
-
- void SetColor( const Color &rColor ) { aColor = rColor; }
- void SetOutWidth( USHORT nNew ) { nOutWidth = nNew; }
- void SetInWidth( USHORT nNew ) { nInWidth = nNew; }
- void SetDistance( USHORT nNew ) { nDistance = nNew; }
- void ScaleMetrics( long nMult, long nDiv );
-
- BOOL operator==( const SvxBorderLine &rCmp ) const;
-
- String GetValueString( SfxMapUnit eSrcUnit, SfxMapUnit eDestUnit,
- const IntlWrapper* pIntl,
- BOOL bMetricStr = FALSE ) const;
-
- bool HasPriority( const SvxBorderLine& rOtherLine ) const;
-
- bool isEmpty() const { return (0 == nOutWidth && 0 == nInWidth && 0 == nDistance); }
- bool isDouble() const { return (0 != nOutWidth && 0 != nInWidth); }
- sal_uInt16 getWidth() const { return nOutWidth + nInWidth + nDistance; }
-};
-
-// ============================================================================
-
-#endif
-
diff --git a/svx/inc/svx/boxitem.hxx b/svx/inc/svx/boxitem.hxx
deleted file mode 100644
index 4b45eb0377c8..000000000000
--- a/svx/inc/svx/boxitem.hxx
+++ /dev/null
@@ -1,229 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: boxitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_BOXITEM_HXX
-#define _SVX_BOXITEM_HXX
-
-#include
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-namespace rtl { class OUString; }
-
-// class SvxBoxItem ------------------------------------------------------
-
-/*
-[Beschreibung]
-Dieses Item beschreibt ein Umrandungsattribut (alle vier Kanten und
-Abstand nach innen.
-*/
-
-#define BOX_LINE_TOP ((USHORT)0)
-#define BOX_LINE_BOTTOM ((USHORT)1)
-#define BOX_LINE_LEFT ((USHORT)2)
-#define BOX_LINE_RIGHT ((USHORT)3)
-
-#define BOX_4DISTS_VERSION ((USHORT)1)
-
-class SVX_DLLPUBLIC SvxBoxItem : public SfxPoolItem
-{
- SvxBorderLine *pTop,
- *pBottom,
- *pLeft,
- *pRight;
- USHORT nTopDist,
- nBottomDist,
- nLeftDist,
- nRightDist;
-
-public:
- TYPEINFO();
-
- SvxBoxItem( const USHORT nId );
- SvxBoxItem( const SvxBoxItem &rCpy );
- ~SvxBoxItem();
- SvxBoxItem &operator=( const SvxBoxItem& rBox );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
-
- virtual int ScaleMetrics( long nMult, long nDiv );
- virtual int HasMetrics() const;
-
- const SvxBorderLine* GetTop() const { return pTop; }
- const SvxBorderLine* GetBottom() const { return pBottom; }
- const SvxBorderLine* GetLeft() const { return pLeft; }
- const SvxBorderLine* GetRight() const { return pRight; }
-
- const SvxBorderLine* GetLine( USHORT nLine ) const;
-
- //Die Pointer werden kopiert!
- void SetLine( const SvxBorderLine* pNew, USHORT nLine );
-
- USHORT GetDistance( USHORT nLine ) const;
- USHORT GetDistance() const;
-
- void SetDistance( USHORT nNew, USHORT nLine );
- inline void SetDistance( USHORT nNew );
-
- //Breite der Linien plus Zwischenraum plus Abstand nach innen.
- //JP 09.06.99: bIgnoreLine = TRUE -> Distance auch returnen, wenn
- // keine Line gesetzt ist
- USHORT CalcLineSpace( USHORT nLine, BOOL bIgnoreLine = FALSE ) const;
-};
-
-inline void SvxBoxItem::SetDistance( USHORT nNew )
-{
- nTopDist = nBottomDist = nLeftDist = nRightDist = nNew;
-}
-
-// class SvxBoxInfoItem --------------------------------------------------
-
-/*
-[Beschreibung]
-Noch ein Item fuer die Umrandung. Dieses Item hat lediglich SS-Funktionalitaet.
-Einerseits wird dem allgemeinen Dialog mit diesem Item mitgeteilt, welche
-Moeglichkeiten er anbieten soll.
-Andererseits werden ueber dieses Attribut ggf. die BorderLines fuer die
-horizontalen und vertikalen innerern Linien transportiert.
-*/
-
-#define BOXINFO_LINE_HORI ((USHORT)0)
-#define BOXINFO_LINE_VERT ((USHORT)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 SVX_DLLPUBLIC SvxBoxInfoItem : public SfxPoolItem
-{
- SvxBorderLine* pHori; //innere horizontale Linie
- SvxBorderLine* pVert; //innere vertikale Linie
-
- bool mbEnableHor; /// true = Enable inner horizonal line.
- bool mbEnableVer; /// true = Enable inner vertical line.
-
- /*
- z.Z. nur fuer StarWriter: Abstand nach innen von SvxBoxItem.
- Wenn der Abstand gewuenscht ist, so muss das Feld fuer den Abstand vom
- Dialog freigeschaltet werden. nDefDist ist als Defaultwert anzusehen.
- Wenn irgendeine Linie eingeschalt ist oder wird, so muss dieser
- Abstand defaultet werden. bMinDist gibt an, ob der Wert durch den
- Anwender unterschritten werden darf. Mit nDist wird der aktuelle
- Abstand von der App zum Dialog und zurueck transportiert.
- */
-
- BOOL bDist :1; // TRUE, Abstand freischalten.
- BOOL bMinDist :1; // TRUE, Abstand darf nicht unterschritten werden.
-
- BYTE nValidFlags; // 0000 0000
- // ³³³³ ³³³ÀÄ VALID_TOP
- // ³³³³ ³³ÀÄÄ VALID_BOTTOM
- // ³³³³ ³ÀÄÄÄ VALID_LEFT
- // ³³³³ ÀÄÄÄÄ VALID_RIGHT
- // ³³³ÀÄÄÄÄÄÄ VALID_HORI
- // ³³ÀÄÄÄÄÄÄÄ VALID_VERT
- // ³ÀÄÄÄÄÄÄÄÄ VALID_DIST
- // ÀÄÄÄÄÄÄÄÄÄ VALID_DISABLE
-
- USHORT nDefDist; // Der Default- bzw. Minimalabstand.
-
-public:
- TYPEINFO();
-
- SvxBoxInfoItem( const USHORT nId );
- SvxBoxInfoItem( const SvxBoxInfoItem &rCpy );
- ~SvxBoxInfoItem();
- SvxBoxInfoItem &operator=( const SvxBoxInfoItem &rCpy );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
- virtual int ScaleMetrics( long nMult, long nDiv );
- virtual int HasMetrics() const;
-
- const SvxBorderLine* GetHori() const { return pHori; }
- const SvxBorderLine* GetVert() const { return pVert; }
-
- //Die Pointer werden kopiert!
- void SetLine( const SvxBorderLine* pNew, USHORT nLine );
-
- BOOL IsTable() const { return mbEnableHor && mbEnableVer; }
- void SetTable( 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; }
-
- BOOL IsDist() const { return bDist; }
- void SetDist( BOOL bNew ) { bDist = bNew; }
- BOOL IsMinDist() const { return bMinDist; }
- void SetMinDist( BOOL bNew ) { bMinDist = bNew; }
- USHORT GetDefDist() const { return nDefDist; }
- void SetDefDist( USHORT nNew ) { nDefDist = nNew; }
-
- BOOL IsValid( BYTE nValid ) const
- { return ( nValidFlags & nValid ) == nValid; }
- void SetValid( BYTE nValid, BOOL bValid = TRUE )
- { bValid ? ( nValidFlags |= nValid )
- : ( nValidFlags &= ~nValid ); }
- void ResetFlags();
-};
-#endif
-
diff --git a/svx/inc/svx/brkitem.hxx b/svx/inc/svx/brkitem.hxx
deleted file mode 100644
index f2241fc08d60..000000000000
--- a/svx/inc/svx/brkitem.hxx
+++ /dev/null
@@ -1,109 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: brkitem.hxx,v $
- * $Revision: 1.4.216.1 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_BRKITEM_HXX
-#define _SVX_BRKITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxFmtBreakItem -------------------------------------------------
-
-/*
- [Beschreibung]
- Dieses Item beschreibt ein Umbruch-Attribut
- Automatisch?, Seiten- oder Spaltenumbruch, davor oder danach?
-*/
-#define FMTBREAK_NOAUTO ((USHORT)0x0001)
-
-class SVX_DLLPUBLIC SvxFmtBreakItem : public SfxEnumItem
-{
-public:
- TYPEINFO();
-
- inline SvxFmtBreakItem( const SvxBreak eBrk /*= SVX_BREAK_NONE*/,
- const USHORT nWhich );
- inline SvxFmtBreakItem( const SvxFmtBreakItem& rBreak );
- inline SvxFmtBreakItem& operator=( const SvxFmtBreakItem& rCpy );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SvStream& Store( SvStream& , USHORT nItemVersion ) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT ) const;
- virtual USHORT GetValueCount() const;
-
- // MS VC4.0 kommt durcheinander
- void SetValue( USHORT nNewVal )
- {SfxEnumItem::SetValue(nNewVal); }
- SvxBreak GetBreak() const { return SvxBreak( GetValue() ); }
- void SetBreak( const SvxBreak eNew )
- { SetValue( (USHORT)eNew ); }
-};
-
-
-inline SvxFmtBreakItem::SvxFmtBreakItem( const SvxBreak eBreak,
- const USHORT _nWhich ) :
- SfxEnumItem( _nWhich, (USHORT)eBreak )
-{}
-
-inline SvxFmtBreakItem::SvxFmtBreakItem( const SvxFmtBreakItem& rBreak ) :
- SfxEnumItem( rBreak )
-{}
-
-inline SvxFmtBreakItem& SvxFmtBreakItem::operator=(
- const SvxFmtBreakItem& rBreak )
-{
- SetValue( rBreak.GetValue() );
- return *this;
-}
-
-#endif
-
diff --git a/svx/inc/svx/brshitem.hxx b/svx/inc/svx/brshitem.hxx
deleted file mode 100644
index c99128906467..000000000000
--- a/svx/inc/svx/brshitem.hxx
+++ /dev/null
@@ -1,144 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: brshitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_BRSHITEM_HXX
-#define _SVX_BRSHITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-// class SvxBrushItem ----------------------------------------------------
-
-class Graphic;
-class GraphicObject;
-class CntWallpaperItem;
-namespace rtl
-{
- class OUString;
-}
-
-#define BRUSH_GRAPHIC_VERSION ((USHORT)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 SVX_DLLPUBLIC SvxBrushItem : public SfxPoolItem
-{
- Color aColor;
- SvxBrushItem_Impl* pImpl;
- String* pStrLink;
- String* pStrFilter;
- SvxGraphicPosition eGraphicPos;
- BOOL bLoadAgain;
-
- void ApplyGraphicTransparency_Impl();
- DECL_STATIC_LINK( SvxBrushItem, DoneHdl_Impl, void *);
- // wird nur von Create benutzt
- SvxBrushItem( SvStream& rStrm,
- USHORT nVersion, USHORT nWhich );
-
-public:
- TYPEINFO();
-
- SvxBrushItem( USHORT nWhich );
- SvxBrushItem( const Color& rColor, USHORT nWhich );
-
- SvxBrushItem( const Graphic& rGraphic,
- SvxGraphicPosition ePos, USHORT nWhich );
- SvxBrushItem( const GraphicObject& rGraphicObj,
- SvxGraphicPosition ePos, USHORT nWhich );
- SvxBrushItem( const String& rLink, const String& rFilter,
- SvxGraphicPosition ePos, USHORT nWhich );
- SvxBrushItem( const SvxBrushItem& );
- SvxBrushItem( const CntWallpaperItem&, USHORT nWhich );
-
- ~SvxBrushItem();
-
-public:
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT nVersion ) const;
- virtual SvStream& Store( SvStream& , USHORT nItemVersion ) const;
- virtual USHORT GetVersion( USHORT 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 PurgeGraphic() const;
- 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 );
- CntWallpaperItem* CreateCntWallpaperItem() const;
-};
-
-#endif // #ifndef _SVX_BRSHITEM_HXX
-
diff --git a/svx/inc/svx/charreliefitem.hxx b/svx/inc/svx/charreliefitem.hxx
deleted file mode 100644
index 95685902ad9c..000000000000
--- a/svx/inc/svx/charreliefitem.hxx
+++ /dev/null
@@ -1,86 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: charreliefitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_CHARRELIEFITEM_HXX
-#define _SVX_CHARRELIEFITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// class SvxCharRotateItem ----------------------------------------------
-
-/* [Description]
-
- This item defines a character relief and has currently the values
- emboss, relief.
-
-*/
-
-class SVX_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 &, USHORT) const;
- virtual SvStream& Store(SvStream & rStrm, USHORT nIVer) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
-
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetValueCount() const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText,
- const IntlWrapper * = 0 ) const;
-
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId );
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId ) const;
-
- inline SvxCharReliefItem& operator=( const SvxCharReliefItem& rItem )
- {
- SetValue( rItem.GetValue() );
- return *this;
- }
-};
-
-#endif
-
diff --git a/svx/inc/svx/charrotateitem.hxx b/svx/inc/svx/charrotateitem.hxx
deleted file mode 100644
index 62bae4b7caa5..000000000000
--- a/svx/inc/svx/charrotateitem.hxx
+++ /dev/null
@@ -1,98 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: charrotateitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_CHARROTATEITEM_HXX
-#define _SVX_CHARROTATEITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// 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 SVX_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 &, USHORT) const;
- virtual SvStream& Store(SvStream & rStrm, USHORT nIVer) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText,
- const IntlWrapper * = 0 ) const;
-
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId );
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId ) const;
-
- 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
-
diff --git a/svx/inc/svx/charscaleitem.hxx b/svx/inc/svx/charscaleitem.hxx
deleted file mode 100644
index ed957424731c..000000000000
--- a/svx/inc/svx/charscaleitem.hxx
+++ /dev/null
@@ -1,86 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: charscaleitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_CHARSCALEITEM_HXX
-#define _SVX_CHARSCALEITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#ifndef _SFXENUMITEM_HXX
-#include
-#endif
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// 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 SVX_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 &, USHORT) const;
- virtual SvStream& Store( SvStream& , USHORT nItemVersion ) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText,
- const IntlWrapper * = 0 ) const;
-
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId );
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId ) const;
-
- inline SvxCharScaleWidthItem& operator=(const SvxCharScaleWidthItem& rItem )
- {
- SetValue( rItem.GetValue() );
- return *this;
- }
-
-};
-
-#endif
-
diff --git a/svx/inc/svx/cmapitem.hxx b/svx/inc/svx/cmapitem.hxx
deleted file mode 100644
index cec4d6e538c6..000000000000
--- a/svx/inc/svx/cmapitem.hxx
+++ /dev/null
@@ -1,95 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: cmapitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_CMAPITEM_HXX
-#define _SVX_CMAPITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxCaseMapItem --------------------------------------------------
-
-/* [Beschreibung]
-
- Dieses Item beschreibt die Schrift-Ausrichtung (Versalien, Kapitaelchen,...).
-*/
-
-class SVX_DLLPUBLIC SvxCaseMapItem : public SfxEnumItem
-{
-public:
- TYPEINFO();
-
- SvxCaseMapItem( const SvxCaseMap eMap /*= SVX_CASEMAP_NOT_MAPPED*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem + SfxEnumItem
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetValueCount() const;
-
- // MS VC4.0 kommt durcheinander
- void SetValue( USHORT 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( (USHORT)eNew ); }
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-};
-
-#endif
-
diff --git a/svx/inc/svx/cntritem.hxx b/svx/inc/svx/cntritem.hxx
deleted file mode 100644
index da5d48bf06ea..000000000000
--- a/svx/inc/svx/cntritem.hxx
+++ /dev/null
@@ -1,74 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: cntritem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_ITEM_HXX
-#define _SVX_ITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// class SvxContourItem --------------------------------------------------
-
-/*
- [Beschreibung]
- Dieses Item beschreibt, ob Konturschrift eingestellt ist.
-*/
-
-class SVX_DLLPUBLIC SvxContourItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxContourItem( const BOOL bContoured /*= FALSE*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- inline SvxContourItem& operator=(const SvxContourItem& rCont)
- {
- SetValue(rCont.GetValue());
- return *this;
- }
-};
-
-#endif
-
diff --git a/svx/inc/svx/colritem.hxx b/svx/inc/svx/colritem.hxx
deleted file mode 100644
index aea4918850d3..000000000000
--- a/svx/inc/svx/colritem.hxx
+++ /dev/null
@@ -1,103 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: colritem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_COLRITEM_HXX
-#define _SVX_COLRITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#ifndef _SV_COLOR_HXX //autogen
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxColorItem ----------------------------------------------------
-
-/* [Beschreibung]
-
- Dieses Item beschreibt eine Farbe.
-*/
-
-#define VERSION_USEAUTOCOLOR 1
-
-class SVX_DLLPUBLIC SvxColorItem : public SfxPoolItem
-{
-private:
- Color mColor;
-
-public:
- TYPEINFO();
-
- SvxColorItem( const USHORT nId );
- SvxColorItem( const Color& aColor, const USHORT nId );
- SvxColorItem( SvStream& rStrm, const USHORT nId );
- SvxColorItem( const SvxColorItem& rCopy );
- ~SvxColorItem();
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT 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
-
diff --git a/svx/inc/svx/crsditem.hxx b/svx/inc/svx/crsditem.hxx
deleted file mode 100644
index 945ae086f36e..000000000000
--- a/svx/inc/svx/crsditem.hxx
+++ /dev/null
@@ -1,99 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: crsditem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_CRSDITEM_HXX
-#define _SVX_CRSDITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxCrossedOutItem -----------------------------------------------
-
-/*
- [Beschreibung]
- Dieses Item beschreibt, ob und wie durchstrichen ist.
-*/
-
-class SVX_DLLPUBLIC SvxCrossedOutItem : public SfxEnumItem
-{
-public:
- TYPEINFO();
-
- SvxCrossedOutItem( const FontStrikeout eSt /*= STRIKEOUT_NONE*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetValueCount() const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- // MS VC4.0 kommt durcheinander
- void SetValue( USHORT nNewVal )
- {SfxEnumItem::SetValue(nNewVal); }
-
- virtual int HasBoolValue() const;
- virtual BOOL GetBoolValue() const;
- virtual void SetBoolValue( 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( (USHORT)eNew ); }
-};
-
-#endif // #ifndef _SVX_CRSDITEM_HXX
-
diff --git a/svx/inc/svx/cscoitem.hxx b/svx/inc/svx/cscoitem.hxx
deleted file mode 100644
index 120fe62a0ea2..000000000000
--- a/svx/inc/svx/cscoitem.hxx
+++ /dev/null
@@ -1,78 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: cscoitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_CSCOITEM_HXX
-#define _SVX_CSCOITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#include "svx/svxdllapi.h"
-
-// class SvxCharSetColorItem ---------------------------------------------
-
-/* [Beschreibung]
-
- PB: wird nur intern im Reader des Writers benoetigt
-*/
-
-class SVX_DLLPUBLIC SvxCharSetColorItem : public SvxColorItem
-{
- rtl_TextEncoding eFrom;
-public:
- TYPEINFO();
-
- SvxCharSetColorItem( const USHORT nId );
- SvxCharSetColorItem( const Color& aColor, const rtl_TextEncoding eFrom,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT 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
-
diff --git a/svx/inc/svx/dialogs.hrc b/svx/inc/svx/dialogs.hrc
index fa498eabfd47..faaecd816758 100644
--- a/svx/inc/svx/dialogs.hrc
+++ b/svx/inc/svx/dialogs.hrc
@@ -41,8 +41,6 @@
#define RID_SVX_FIRSTFREE 305
// some strings also used in CUI
-#define RID_SVXSTR_PAPERBIN (RID_SVX_START + 145)
-#define RID_SVXSTR_PAPERBIN_SETTINGS (RID_SVX_START + 149)
#define RID_SVXERRCTX (RID_SVX_START + 351)
#define RID_SVXSTR_COLOR (RID_SVX_START + 179)
#define RID_SVXSTR_TRANSPARENT (RID_SVX_START + 190)
@@ -179,15 +177,6 @@
#define RID_SVXPAGE_HEADER (RID_SVX_START + 27)
#define RID_SVXQBX_DELETE_HEADFOOT (RID_SVX_START + 28)
-// ResIds fuer HM-QueryBoxen und Error-Strings
-#define RID_SVXQB_THESAURUS (RID_SVX_START + 33)
-#define RID_SVXQB_CONTINUE (RID_SVX_START + 34)
-#define RID_SVXQB_BODYTEXT (RID_SVX_START + 35)
-#define RID_SVXQB_SPECIAL (RID_SVX_START + 36)
-#define RID_SVXQB_SPECIAL_FORCED (RID_SVX_START + 37)
-// + 38 ist vergeben, siehe RID_SVXDLG_THES_LANGUAGE
-#define RID_SVXQB_BW_CONTINUE (RID_SVX_START + 39)
-
// ResId's fuer Dialoge aus StarDraw
#define RID_SVXPAGE_POSITION (RID_SVX_START + 46)
#define RID_SVXPAGE_SIZE (RID_SVX_START + 47)
@@ -422,54 +411,12 @@
#define RID_SVXSTR_SEARCH (RID_SVX_START + 81)
#define RID_SVXSTR_REPLACE (RID_SVX_START + 82)
-// paper formats
-#define RID_SVXSTR_PAPER_A0 (RID_SVX_START + 100)
-#define RID_SVXSTR_PAPER_A1 (RID_SVX_START + 101)
-#define RID_SVXSTR_PAPER_A2 (RID_SVX_START + 102)
-#define RID_SVXSTR_PAPER_A3 (RID_SVX_START + 103)
-#define RID_SVXSTR_PAPER_A4 (RID_SVX_START + 104)
-#define RID_SVXSTR_PAPER_A5 (RID_SVX_START + 105)
-#define RID_SVXSTR_PAPER_B4_ISO (RID_SVX_START + 106)
-#define RID_SVXSTR_PAPER_B5_ISO (RID_SVX_START + 107)
-#define RID_SVXSTR_PAPER_LETTER (RID_SVX_START + 108)
-#define RID_SVXSTR_PAPER_LEGAL (RID_SVX_START + 109)
-#define RID_SVXSTR_PAPER_TABLOID (RID_SVX_START + 110)
-#define RID_SVXSTR_PAPER_USER (RID_SVX_START + 111)
-#define RID_SVXSTR_PAPER_B6_ISO (RID_SVX_START + 112)
-#define RID_SVXSTR_PAPER_C4 (RID_SVX_START + 113)
-#define RID_SVXSTR_PAPER_C5 (RID_SVX_START + 114)
-#define RID_SVXSTR_PAPER_C6 (RID_SVX_START + 115)
-#define RID_SVXSTR_PAPER_C65 (RID_SVX_START + 116)
-#define RID_SVXSTR_PAPER_DL (RID_SVX_START + 117)
-#define RID_SVXSTR_PAPER_DIA (RID_SVX_START + 118)
-#define RID_SVXSTR_PAPER_SCREEN (RID_SVX_START + 119)
-#define RID_SVXSTR_PAPER_C (RID_SVX_START + 120)
-#define RID_SVXSTR_PAPER_D (RID_SVX_START + 121)
-#define RID_SVXSTR_PAPER_E (RID_SVX_START + 122)
-#define RID_SVXSTR_PAPER_EXECUTIVE (RID_SVX_START + 123)
-#define RID_SVXSTR_PAPER_LEGAL2 (RID_SVX_START + 124)
-#define RID_SVXSTR_PAPER_MONARCH (RID_SVX_START + 125)
-#define RID_SVXSTR_PAPER_COM675 (RID_SVX_START + 126)
-#define RID_SVXSTR_PAPER_COM9 (RID_SVX_START + 127)
-#define RID_SVXSTR_PAPER_COM10 (RID_SVX_START + 128)
-#define RID_SVXSTR_PAPER_COM11 (RID_SVX_START + 129)
-#define RID_SVXSTR_PAPER_COM12 (RID_SVX_START + 130)
-#define RID_SVXSTR_PAPER_KAI16 (RID_SVX_START + 131)
-#define RID_SVXSTR_PAPER_KAI32 (RID_SVX_START + 132)
-#define RID_SVXSTR_PAPER_KAI32BIG (RID_SVX_START + 133)
-#define RID_SVXSTR_PAPER_B4_JIS (RID_SVX_START + 134)
-#define RID_SVXSTR_PAPER_B5_JIS (RID_SVX_START + 135)
-#define RID_SVXSTR_PAPER_B6_JIS (RID_SVX_START + 136)
-
#define RID_SVXSTR_FULLSIZE (RID_SVX_START + 144)
// ResIds fuer die verschiedenen Strings des PageDlgs
#define RID_SVXSTR_CALC_PAGE (RID_SVX_START + 146)
#define RID_SVXSTR_DRAW_PAGE (RID_SVX_START + 147)
-// HM_ERR
-#define RID_SVXSTR_HMERR_THESAURUS (RID_SVX_START + 150)
-
// Strings der ToolBox-Controls aus tbcontrl.cxx
#define RID_SVXSTR_FILLPATTERN (RID_SVX_START + 191)
#define RID_SVXSTR_FRAME (RID_SVX_START + 192)
@@ -910,11 +857,6 @@
#define RID_SVXSTR_QRY_PRINT_ALL (RID_SVX_START + 804)
#define RID_SVXSTR_QRY_PRINT_SELECTION (RID_SVX_START + 805)
-// strings for error messsages in dictionary updates
-#define RID_SVXSTR_DIC_ERR_UNKNOWN (RID_SVX_START + 810)
-#define RID_SVXSTR_DIC_ERR_FULL (RID_SVX_START + 811)
-#define RID_SVXSTR_DIC_ERR_READONLY (RID_SVX_START + 812)
-
// strings for graphic attributes/undo
#define RID_SVXSTR_GRAFCROP (RID_SVX_START + 820)
#define RID_SVXSTR_UNDO_GRAFMODE (RID_SVX_START + 821)
diff --git a/svx/inc/svx/editdata.hxx b/svx/inc/svx/editdata.hxx
deleted file mode 100644
index 8e3c9f853961..000000000000
--- a/svx/inc/svx/editdata.hxx
+++ /dev/null
@@ -1,391 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: editdata.hxx,v $
- * $Revision: 1.5 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-// MyEDITDATA, wegen exportiertem EditData
-#ifndef _MyEDITDATA_HXX
-#define _MyEDITDATA_HXX
-
-#include
-#include "svx/svxdllapi.h"
-
-#include
-
-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 usefull 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_APPEND 0xFFFF
-#define EE_INDEX_NOT_FOUND 0xFFFF
-
-// Fehlermeldungen fuer Read/Write-Methode
-#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
-
-
-#define EE_COMPATIBLEMODE_PARAGRAPHSPACING_SUMMATION 0x0001
-#define EE_COMPATIBLEMODE_PARAGRAPHSPACING_BEFOREFIRSTPARAGRAPH 0x0002
-
-class EditView;
-class EditEngine;
-class ImpEditView;
-class ImpEditEngine;
-class EditTextObject;
-class SfxStyleSheet;
-
-#define RGCHK_NONE 0 // Keine Korrektur der ViusArea beim Scrollen
-#define RGCHK_NEG 1 // Keine neg. ViusArea beim Scrollen
-#define RGCHK_PAPERSZ1 2 // VisArea muss in Papierbreite,Texthoehe liegen
-
-struct EPosition
-{
- USHORT nPara;
- xub_StrLen nIndex;
-
- EPosition() :
- nPara( EE_PARA_NOT_FOUND ),
- nIndex( EE_INDEX_NOT_FOUND )
- {
- }
-
- EPosition( USHORT nPara_, xub_StrLen nPos_ ) :
- nPara( nPara_ ),
- nIndex( nPos_ )
- {
- }
-};
-
-struct ESelection
-{
- USHORT nStartPara;
- xub_StrLen nStartPos;
- USHORT nEndPara;
- xub_StrLen nEndPos;
-
- ESelection() : nStartPara( 0 ), nStartPos( 0 ), nEndPara( 0 ), nEndPos( 0 ) {}
-
- ESelection( USHORT nStPara, xub_StrLen nStPos, USHORT nEPara, xub_StrLen nEPos ) :
- nStartPara( nStPara ),
- nStartPos( nStPos ),
- nEndPara( nEPara ),
- nEndPos( nEPos )
- {
- }
-
- ESelection( USHORT nPara, xub_StrLen nPos ) :
- nStartPara( nPara ),
- nStartPos( nPos ),
- nEndPara( nPara ),
- nEndPos( nPos )
- {
- }
-
- void Adjust();
- BOOL IsEqual( const ESelection& rS ) const;
- BOOL IsLess( const ESelection& rS ) const;
- BOOL IsGreater( const ESelection& rS ) const;
- BOOL IsZero() const;
- BOOL HasRange() const;
-};
-
-inline 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
-{
- // Selektion muss justiert sein.
- // => Nur pueffen, ob Ende von 'this' < Start von 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
-{
- // Selektion muss justiert sein.
- // => Nur pueffen, ob Ende von 'this' > Start von 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 SVX_DLLPUBLIC EFieldInfo
-{
- SvxFieldItem* pFieldItem;
- String aCurrentText;
- EPosition aPosition;
-
- EFieldInfo();
- EFieldInfo( const SvxFieldItem& rFieldItem, USHORT nPara, USHORT nPos );
- ~EFieldInfo();
-
- EFieldInfo( const EFieldInfo& );
- EFieldInfo& operator= ( const EFieldInfo& );
-};
-
-// -----------------------------------------------------------------------
-
-enum ImportState {
- RTFIMP_START, RTFIMP_END, // nur pParser, nPara, nIndex
- RTFIMP_NEXTTOKEN, RTFIMP_UNKNOWNATTR, // nToken+nTokenValue
- RTFIMP_SETATTR, // pAttrs
- RTFIMP_INSERTTEXT, // aText
- RTFIMP_INSERTPARA, // -
- HTMLIMP_START, HTMLIMP_END, // nur 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();
-};
-
-#define EE_SEARCH_WORDONLY 0x0001
-#define EE_SEARCH_EXACT 0x0002
-#define EE_SEARCH_BACKWARD 0x0004
-#define EE_SEARCH_INSELECTION 0x0008
-#define EE_SEARCH_REGEXPR 0x0010
-#define EE_SEARCH_PATTERN 0x0020
-
-struct ParagraphInfos
-{
- ParagraphInfos()
- : nParaHeight( 0 )
- , nLines( 0 )
- , nFirstLineStartX( 0 )
- , nFirstLineOffset( 0 )
- , nFirstLineHeight( 0 )
- , nFirstLineTextHeight ( 0 )
- , nFirstLineMaxAscent( 0 )
- , bValid( 0 )
- {}
- USHORT nParaHeight;
- USHORT nLines;
-
- USHORT nFirstLineStartX;
-
- USHORT nFirstLineOffset;
- USHORT nFirstLineHeight;
- USHORT nFirstLineTextHeight;
- USHORT nFirstLineMaxAscent;
-
- BOOL bValid; // Bei einer Abfrage waehrend der Formatierung ungueltig!
-};
-
-struct EECharAttrib
-{
- const SfxPoolItem* pAttr;
-
- USHORT nPara;
- xub_StrLen nStart;
- xub_StrLen nEnd;
-};
-
-SV_DECL_VARARR_VISIBILITY( EECharAttribArray, EECharAttrib, 0, 4, SVX_DLLPUBLIC )
-
-struct MoveParagraphsInfo
-{
- USHORT nStartPara;
- USHORT nEndPara;
- USHORT nDestPara;
-
- MoveParagraphsInfo( USHORT nS, USHORT nE, USHORT nD )
- { nStartPara = nS; nEndPara = nE; nDestPara = nD; }
-};
-
-#define EE_ACTION_PASTE 1
-#define EE_ACTION_DROP 2
-
-struct PasteOrDropInfos
-{
- USHORT nAction;
- USHORT nStartPara;
- USHORT 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;
-
- USHORT nParagraph; // only valid in PARAGRAPHINSERTED/EE_NOTIFY_PARAGRAPHREMOVED
-
- USHORT nParam1;
- USHORT nParam2;
-
- EENotify( EENotifyType eType )
- { eNotificationType = eType; pEditEngine = NULL; pEditView = NULL; nParagraph = EE_PARA_NOT_FOUND; nParam1 = 0; nParam2 = 0; }
-};
-
-#endif // _MyEDITDATA_HXX
diff --git a/svx/inc/svx/editeng.hxx b/svx/inc/svx/editeng.hxx
deleted file mode 100644
index ec6024e59a02..000000000000
--- a/svx/inc/svx/editeng.hxx
+++ /dev/null
@@ -1,489 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: editeng.hxx,v $
- * $Revision: 1.8.14.2 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-// MyEDITENG, wegen exportiertem EditEng
-#ifndef _MyEDITENG_HXX
-#define _MyEDITENG_HXX
-
-class ImpEditEngine;
-class EditView;
-class OutputDevice;
-class EditUndo;
-class SvxFont;
-class SfxUndoManager;
-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 SvUShorts;
-class SfxPoolItem;
-class SvxNumBulletItem;
-class SvxBulletItem;
-class SvxLRSpaceItem;
-class SvKeyValueIterator;
-class SvxForbiddenCharactersTable;
-class SvxNumberFormat;
-class FontList;
-
-#include
-#include
-#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 basegfx { class B2DPolyPolygon; }
-#include
-#ifndef _EDITDATA_HXX
-#include
-#endif
-#include
-#include "svx/svxdllapi.h"
-
-#include // wegen typedef TypeId
-
-#include
-class SvxFieldData;
-
-//////////////////////////////////////////////////////////////////////////////
-
-/** 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 SVX_DLLPUBLIC EditEngine
-{
- friend class EditView;
- friend class ImpEditView;
- friend class EditDbg;
- friend class Outliner;
-
-private:
- ImpEditEngine* pImpEditEngine;
-
- SVX_DLLPRIVATE EditEngine( const EditEngine& );
- SVX_DLLPRIVATE EditEngine& operator=( const EditEngine& );
-
-//#if 0 // _SOLAR__PRIVATE
- SVX_DLLPRIVATE BOOL PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pView );
-//#endif
-
-protected:
-
-
-public:
- EditEngine( SfxItemPool* pItemPool );
- virtual ~EditEngine();
-
- const SfxItemSet& GetEmptyItemSet();
-
- void SetDefTab( USHORT nDefTab );
- USHORT GetDefTab() const;
-
- void SetRefDevice( OutputDevice* pRefDef );
- OutputDevice* GetRefDevice() const;
-
- void SetRefMapMode( const MapMode& rMapMode );
- MapMode GetRefMapMode();
-
- void SetUpdateMode( BOOL bUpdate );
- BOOL GetUpdateMode() const;
-
- void SetBackgroundColor( const Color& rColor );
- Color GetBackgroundColor() const;
- Color GetAutoColor() const;
- void EnableAutoColor( BOOL b );
- BOOL IsAutoColorEnabled() const;
- void ForceAutoColor( BOOL b );
- BOOL IsForceAutoColor() const;
-
- void InsertView( EditView* pEditView, USHORT nIndex = EE_APPEND );
- EditView* RemoveView( EditView* pEditView );
- EditView* RemoveView( USHORT nIndex = EE_APPEND );
- EditView* GetView( USHORT nIndex = 0 ) const;
- USHORT GetViewCount() const;
- 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( BOOL bUseFixedCellHeight );
- BOOL IsFixedCellHeight() const;
-
- void SetDefaultHorizontalTextDirection( EEHorizontalTextDirection eHTextDir );
- EEHorizontalTextDirection GetDefaultHorizontalTextDirection() const;
-
- USHORT GetScriptType( const ESelection& rSelection ) const;
- LanguageType GetLanguage( USHORT nPara, USHORT nPos ) const;
-
- void TransliterateText( const ESelection& rSelection, sal_Int32 nTransliterationMode );
-
- void SetAsianCompressionMode( USHORT nCompression );
- USHORT GetAsianCompressionMode() const;
-
- void SetKernAsianPunctuation( BOOL bEnabled );
- BOOL IsKernAsianPunctuation() const;
-
- void SetAddExtLeading( BOOL b );
- BOOL IsAddExtLeading() const;
-
- void SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon );
- void SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon, const basegfx::B2DPolyPolygon* pLinePolyPolygon);
- void ClearPolygon();
- const PolyPolygon* GetPolygon();
-
- const Size& GetMinAutoPaperSize() const;
- void SetMinAutoPaperSize( const Size& rSz );
-
- const Size& GetMaxAutoPaperSize() const;
- void SetMaxAutoPaperSize( const Size& rSz );
-
- String 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 CalcTextWidth();
-
- String GetText( USHORT nParagraph ) const;
- xub_StrLen GetTextLen( USHORT nParagraph ) const;
- sal_uInt32 GetTextHeight( USHORT nParagraph ) const;
-
- USHORT GetParagraphCount() const;
-
- USHORT GetLineCount( USHORT nParagraph ) const;
- xub_StrLen GetLineLen( USHORT nParagraph, USHORT nLine ) const;
- void GetLineBoundaries( /*out*/USHORT &rStart, /*out*/USHORT &rEnd, USHORT nParagraph, USHORT nLine ) const;
- USHORT GetLineNumberAtIndex( USHORT nPara, USHORT nIndex ) const;
- sal_uInt32 GetLineHeight( USHORT nParagraph, USHORT nLine = 0 );
- USHORT GetFirstLineOffset( USHORT nParagraph );
- ParagraphInfos GetParagraphInfos( USHORT nPara );
- USHORT FindParagraph( long nDocPosY );
- EPosition FindDocPosition( const Point& rDocPos ) const;
- Rectangle GetCharacterBounds( const EPosition& rPos ) const;
-
- String GetWord( USHORT nPara, xub_StrLen nIndex );
-
- ESelection GetWord( const ESelection& rSelection, USHORT nWordType ) const;
- ESelection WordLeft( const ESelection& rSelection, USHORT nWordType ) const;
- ESelection WordRight( const ESelection& rSelection, USHORT nWordType ) const;
- ESelection CursorLeft( const ESelection& rSelection, USHORT nCharacterIteratorMode ) const;
- ESelection CursorRight( const ESelection& rSelection, USHORT nCharacterIteratorMode ) const;
-
- void Clear();
- void SetText( const String& rStr );
-
- EditTextObject* CreateTextObject();
- EditTextObject* CreateTextObject( USHORT nPara, USHORT nParas = 1 );
- EditTextObject* CreateTextObject( const ESelection& rESelection );
- void SetText( const EditTextObject& rTextObject );
-
- void RemoveParagraph( USHORT nPara );
- void InsertParagraph( USHORT nPara, const EditTextObject& rTxtObj );
- void InsertParagraph( USHORT nPara, const String& rText);
-
- void SetText( USHORT nPara, const EditTextObject& rTxtObj );
- void SetText( USHORT nPara, const String& rText);
-
- virtual void SetParaAttribs( USHORT nPara, const SfxItemSet& rSet );
- virtual const SfxItemSet& GetParaAttribs( USHORT nPara ) const;
-
- void GetCharAttribs( USHORT nPara, EECharAttribArray& rLst ) const;
-
- SfxItemSet GetAttribs( USHORT nPara, USHORT nStart, USHORT nEnd, sal_uInt8 nFlags = 0xFF ) const;
- SfxItemSet GetAttribs( const ESelection& rSel, BOOL bOnlyHardAttrib = EditEngineAttribs_All );
-
- BOOL HasParaAttrib( USHORT nPara, USHORT nWhich ) const;
- const SfxPoolItem& GetParaAttrib( USHORT nPara, USHORT nWhich );
-
- Font GetStandardFont( USHORT nPara );
- SvxFont GetStandardSvxFont( USHORT nPara );
-
- void RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich );
-
- void ShowParagraph( USHORT nParagraph, BOOL bShow = TRUE );
- BOOL IsParagraphVisible( USHORT nParagraph );
-
- SfxUndoManager& GetUndoManager();
- void UndoActionStart( USHORT nId );
- void UndoActionEnd( USHORT nId );
- BOOL IsInUndo();
-
- void EnableUndo( BOOL bEnable );
- 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();
- BOOL IsModified() const;
-
- void SetModifyHdl( const Link& rLink );
- Link GetModifyHdl() const;
-
- BOOL IsInSelectionMode() const;
- void StopSelectionMode();
-
- void StripPortions();
- void GetPortions( USHORT nPara, SvUShorts& rList );
-
- long GetFirstLineStartX( USHORT nParagraph );
- Point GetDocPosTopLeft( USHORT nParagraph );
- Point GetDocPos( const Point& rPaperPos ) const;
- BOOL IsTextPos( const Point& rPaperPos, USHORT nBorder = 0 );
-
- // StartDocPos entspr. 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, BOOL bClip );
- void Draw( OutputDevice* pOutDev, const Point& rStartPos, short nOrientation = 0 );
-
-// ULONG: Fehlercode des Streams.
- ULONG Read( SvStream& rInput, const String& rBaseURL, EETextFormat, SvKeyValueIterator* pHTTPHeaderAttrs = NULL );
- 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;
-
- // Flat-Mode: Keine Zeichenformatierung auswerten => Fuer Outliner
- BOOL IsFlatMode() const;
- void SetFlatMode( BOOL bFlat );
-
- void SetControlWord( sal_uInt32 nWord );
- sal_uInt32 GetControlWord() const;
-
- void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel );
- void QuickRemoveCharAttribs( USHORT nPara, USHORT nWhich = 0 );
- void QuickMarkInvalid( const ESelection& rSel );
- void QuickFormatDoc( BOOL bFull = 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( USHORT nPara );
-
- void SetGlobalCharStretching( USHORT nX = 100, USHORT nY = 100 );
- void GetGlobalCharStretching( USHORT& rX, USHORT& rY );
- void DoStretchChars( USHORT nX, USHORT nY );
-
- void SetEditTextObjectPool( SfxItemPool* pPool );
- SfxItemPool* GetEditTextObjectPool() const;
-
- void SetStyleSheetPool( SfxStyleSheetPool* pSPool );
- SfxStyleSheetPool* GetStyleSheetPool();
-
- void SetStyleSheet( USHORT nPara, SfxStyleSheet* pStyle );
- SfxStyleSheet* GetStyleSheet( USHORT nPara ) const;
-
- void SetWordDelimiters( const String& rDelimiters );
- String GetWordDelimiters() const;
-
- void SetGroupChars( const String& rChars );
- String GetGroupChars() const;
-
- void EnablePasteSpecial( BOOL bEnable );
- BOOL IsPasteSpecialEnabled() const;
-
- void EnableIdleFormatter( BOOL bEnable );
- BOOL IsIdleFormatterEnabled() 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();
- ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XHyphenator >
- GetHyphenator() const;
- void SetHyphenator( ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XHyphenator >& xHyph );
-
- void SetForbiddenCharsTable( vos::ORef xForbiddenChars );
- vos::ORef GetForbiddenCharsTable() const;
-
- void SetDefaultLanguage( LanguageType eLang );
- LanguageType GetDefaultLanguage() const;
-
- BOOL HasOnlineSpellErrors() const;
- void CompleteOnlineSpelling();
-
- void SetBigTextObjectStart( USHORT nStartAtPortionCount );
- USHORT GetBigTextObjectStart() const;
- BOOL ShouldCreateBigTextObject() const;
-
- // Zum schnellen Vorab-Pruefen ohne View:
- EESpellState HasSpellErrors();
- 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 bIsGrammarChecking );
- //deinitialize sentence spelling
- void EndSpelling();
-
- // for text conversion (see also HasSpellErrors)
- sal_Bool HasConvertibleTextPortion( LanguageType nLang );
- virtual BOOL ConvertNextDocument();
-
- BOOL UpdateFields();
- void RemoveFields( BOOL bKeepFieldText, TypeId aType = NULL );
-
- USHORT GetFieldCount( USHORT nPara ) const;
- EFieldInfo GetFieldInfo( USHORT nPara, USHORT nField ) const;
-
- BOOL IsRightToLeft( USHORT 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( USHORT nPara, const Point& rStartPos, long nBaseLineY, const Point& rOrigin, short nOrientation, OutputDevice* pOutDev );
- virtual void ParagraphInserted( USHORT nNewParagraph );
- virtual void ParagraphDeleted( USHORT nDeletedParagraph );
- virtual void ParagraphConnected( USHORT nLeftParagraph, USHORT nRightParagraph );
- virtual void ParaAttribsChanged( USHORT nParagraph );
- virtual void StyleSheetChanged( SfxStyleSheet* pStyle );
- virtual void ParagraphHeightChanged( USHORT nPara );
-
- // #101498#
- virtual void DrawingText(
- const Point& rStartPos, const String& rText, USHORT nTextStart, USHORT nTextLen, const sal_Int32* pDXArray,
- const SvxFont& rFont, USHORT nPara, xub_StrLen nIndex, BYTE 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 String GetUndoComment( USHORT nUndoId ) const;
- virtual BOOL FormattingParagraph( USHORT nPara );
- virtual BOOL SpellNextDocument();
- virtual void FieldClicked( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos );
- virtual void FieldSelected( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos );
- virtual String CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos, Color*& rTxtColor, Color*& rFldColor );
-
- // to be overloaded if access to bullet information needs to be provided
- virtual const SvxNumberFormat * GetNumberFormat( USHORT nPara ) const;
-
- virtual Rectangle GetBulletArea( USHORT nPara );
-
- static SfxItemPool* CreatePool( BOOL bLoadRefCounts = TRUE );
- static SfxItemPool& GetGlobalItemPool();
- static sal_uInt32 RegisterClipboardFormatName();
- static BOOL DoesKeyChangeText( const KeyEvent& rKeyEvent );
- static BOOL DoesKeyMoveCursor( const KeyEvent& rKeyEvent );
- static BOOL IsSimpleCharInput( const KeyEvent& rKeyEvent );
- static USHORT GetAvailableSearchOptions();
- static void SetFontInfoInItemSet( SfxItemSet& rItemSet, const Font& rFont );
- static void SetFontInfoInItemSet( SfxItemSet& rItemSet, const SvxFont& rFont );
- static Font CreateFontFromItemSet( const SfxItemSet& rItemSet );
- static Font CreateFontFromItemSet( const SfxItemSet& rItemSet, USHORT nScriptType );
- static SvxFont CreateSvxFontFromItemSet( const SfxItemSet& rItemSet );
- static void ImportBulletItem( SvxNumBulletItem& rNumBullet, USHORT nLevel, const SvxBulletItem* pOldBullet, const SvxLRSpaceItem* pOldLRSpace );
- static BOOL IsPrintable( sal_Unicode c ) { return ( ( c >= 32 ) && ( c != 127 ) ); }
- static 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( BOOL bCapitalize );
- BOOL IsFirstWordCapitalization() const;
-};
-
-#endif // _MyEDITENG_HXX
diff --git a/svx/inc/svx/editobj.hxx b/svx/inc/svx/editobj.hxx
deleted file mode 100644
index 31a62225ced1..000000000000
--- a/svx/inc/svx/editobj.hxx
+++ /dev/null
@@ -1,129 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: editobj.hxx,v $
- * $Revision: 1.5 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _EDITOBJ_HXX
-#define _EDITOBJ_HXX
-
-#include
-#include
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-DBG_NAMEEX( EE_EditTextObject )
-
-class SfxItemPool;
-class SfxStyleSheetPool;
-class SvxFieldItem;
-class EECharAttribArray;
-
-#define EDTOBJ_SETTINGS_ULITEMSUMMATION 0x00000001
-#define EDTOBJ_SETTINGS_ULITEMFIRSTPARA 0x00000002
-
-class SVX_DLLPUBLIC EditTextObject
-{
-private:
- USHORT nWhich;
- SVX_DLLPRIVATE EditTextObject& operator=( const EditTextObject& );
-
-protected:
- EditTextObject( USHORT nWhich );
- EditTextObject( const EditTextObject& r );
-
- virtual void StoreData( SvStream& rOStream ) const;
- virtual void CreateData( SvStream& rIStream );
-
-public:
- virtual ~EditTextObject();
-
- USHORT Which() const { return nWhich; }
-
- virtual USHORT GetUserType() const; // Fuer OutlinerMode, der kann das aber nicht kompatibel speichern
- virtual void SetUserType( USHORT n );
-
- virtual ULONG GetObjectSettings() const;
- virtual void SetObjectSettings( ULONG n );
-
- virtual BOOL IsVertical() const;
- virtual void SetVertical( BOOL bVertical );
-
- virtual USHORT GetScriptType() const;
-
- virtual USHORT GetVersion() const; // Solange der Outliner keine Recordlaenge speichert
-
- virtual EditTextObject* Clone() const = 0;
-
- BOOL Store( SvStream& rOStream ) const;
- static EditTextObject* Create( SvStream& rIStream,
- SfxItemPool* pGlobalTextObjectPool = 0 );
- void Skip( SvStream& rIStream );
-
- virtual USHORT GetParagraphCount() const;
-
- virtual XubString GetText( USHORT nParagraph ) const;
- virtual void Insert( const EditTextObject& rObj, USHORT nPara );
- virtual void RemoveParagraph( USHORT nPara );
- virtual EditTextObject* CreateTextObject( USHORT nPara, USHORT nParas = 1 ) const;
-
- virtual BOOL HasPortionInfo() const;
- virtual void ClearPortionInfo();
-
- virtual BOOL HasOnlineSpellErrors() const;
-
- virtual BOOL HasCharAttribs( USHORT nWhich = 0 ) const;
- virtual void GetCharAttribs( USHORT nPara, EECharAttribArray& rLst ) const;
-
- virtual BOOL RemoveCharAttribs( USHORT nWhich = 0 );
- virtual BOOL RemoveParaAttribs( USHORT nWhich = 0 );
-
- virtual void MergeParaAttribs( const SfxItemSet& rAttribs, USHORT nStart = EE_CHAR_START, USHORT nEnd = EE_CHAR_END );
-
- virtual BOOL IsFieldObject() const;
- virtual const SvxFieldItem* GetField() const;
- virtual BOOL HasField( TypeId aType = NULL ) const;
-
- virtual SfxItemSet GetParaAttribs( USHORT nPara ) const;
- virtual void SetParaAttribs( USHORT nPara, const SfxItemSet& rAttribs );
-
- virtual BOOL HasStyleSheet( const XubString& rName, SfxStyleFamily eFamily ) const;
- virtual void GetStyleSheet( USHORT nPara, XubString& rName, SfxStyleFamily& eFamily ) const;
- virtual void SetStyleSheet( USHORT nPara, const XubString& rName, const SfxStyleFamily& eFamily );
- virtual BOOL ChangeStyleSheets( const XubString& rOldName, SfxStyleFamily eOldFamily,
- const XubString& rNewName, SfxStyleFamily eNewFamily );
- virtual void ChangeStyleSheetName( SfxStyleFamily eFamily, const XubString& rOldName, const XubString& rNewName );
-
- bool operator==( const EditTextObject& rCompare ) const;
-
- // #i102062#
- bool isWrongListEqual(const EditTextObject& rCompare) const;
-};
-
-#endif // _EDITOBJ_HXX
diff --git a/svx/inc/svx/editview.hxx b/svx/inc/svx/editview.hxx
deleted file mode 100644
index 79deaab4dc36..000000000000
--- a/svx/inc/svx/editview.hxx
+++ /dev/null
@@ -1,251 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: editview.hxx,v $
- * $Revision: 1.4.198.1 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-// MyEDITVIEW, wegen exportiertem EditView
-#ifndef _MyEDITVIEW_HXX
-#define _MyEDITVIEW_HXX
-
-#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;
-
-#ifndef _EDITDATA_HXX
-#include
-#endif
-#include
-#include "svx/svxdllapi.h"
-
-namespace com {
-namespace sun {
-namespace star {
-namespace datatransfer {
- class XTransferable;
-}}}}
-
-class SVX_DLLPUBLIC EditView
-{
- friend class EditEngine;
- friend class ImpEditEngine;
- friend class EditSelFunctionSet;
-
-public: // brauche ich fuer Undo
- ImpEditView* GetImpEditView() const { return pImpEditView; }
- ImpEditEngine* GetImpEditEngine() const;
-
-private:
- ImpEditView* pImpEditView;
-
- SVX_DLLPRIVATE EditView( const EditView& );
- SVX_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 );
- void Invalidate();
- Pair Scroll( long nHorzScroll, long nVertScroll, BYTE nRangeCheck = RGCHK_NEG );
-
- void ShowCursor( BOOL bGotoCursor = TRUE, BOOL bForceVisCursor = TRUE );
- void HideCursor();
-
- EESelectionMode GetSelectionMode() const;
- void SetSelectionMode( EESelectionMode eMode );
-
- void SetReadOnly( BOOL bReadOnly );
- BOOL IsReadOnly() const;
-
- BOOL HasSelection() const;
- ESelection GetSelection() const;
- void SetSelection( const ESelection& rNewSel );
- BOOL SelectCurrentWord();
-
- void IndentBlock();
- void UnindentBlock();
-
- BOOL IsInsertMode() const;
- void SetInsertMode( BOOL bInsert );
-
- void ReplaceSelected( const String& rStr );
- String GetSelected();
- void DeleteSelected();
-
- USHORT GetSelectedScriptType() const;
-
- // Position der VisArea im Ausgabefenster.
- // Eine Groessenaenderung betrifft auch die VisArea
- void SetOutputArea( const Rectangle& rRec );
- const Rectangle& GetOutputArea() const;
-
- // Dokumentposition.
- // Eine Groessenaenderung betrifft auch die VisArea
- void SetVisArea( const Rectangle& rRec );
- const Rectangle& GetVisArea() const;
-
- void SetPointer( const Pointer& rPointer );
- const Pointer& GetPointer() const;
-
- void SetCursor( const Cursor& rCursor );
- Cursor* GetCursor() const;
-
- void InsertText( const String& rNew, BOOL bSelect = FALSE );
-
- BOOL PostKeyEvent( const KeyEvent& rKeyEvent );
-
- BOOL MouseButtonUp( const MouseEvent& rMouseEvent );
- BOOL MouseButtonDown( const MouseEvent& rMouseEvent );
- BOOL MouseMove( const MouseEvent& rMouseEvent );
- void Command( const CommandEvent& rCEvt );
-
- BOOL Drop( const DropEvent& rEvt );
- BOOL QueryDrop( DropEvent& rEvt );
- ESelection GetDropPos();
-
- void Cut();
- void Copy();
- void Paste();
- void PasteSpecial();
-
- void EnablePaste( BOOL bEnable );
- BOOL IsPasteEnabled() const;
-
- void Undo();
- void Redo();
-
- // speziell fuer Olli
- USHORT GetParagraph( const Point& rMousePosPixel );
- Point GetWindowPosTopLeft( USHORT nParagraph );
- void MoveParagraphs( Range aParagraphs, USHORT nNewPos );
- void MoveParagraphs( long nDiff );
-
- const SfxItemSet& GetEmptyItemSet();
- SfxItemSet GetAttribs();
- void SetAttribs( const SfxItemSet& rSet );
- void SetParaAttribs( const SfxItemSet& rSet, USHORT nPara );
- void RemoveAttribs( BOOL bRemoveParaAttribs = FALSE, USHORT nWhich = 0 );
- void RemoveCharAttribs( USHORT nPara, USHORT nWhich = 0 );
- void RemoveAttribsKeepLanguages( BOOL bRemoveParaAttribs = FALSE );
-
- ULONG Read( SvStream& rInput, const String& rBaseURL, EETextFormat eFormat, BOOL bSelect = FALSE, SvKeyValueIterator* pHTTPHeaderAttrs = NULL );
- ULONG Write( SvStream& rOutput, EETextFormat eFormat );
-
- 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, BOOL bUseSpecial );
-
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > GetTransferable();
-
- // An EditView, damit bei TRUE flackerfreies Update:
- void SetEditEngineUpdateMode( BOOL bUpdate );
- void ForceUpdate();
-
- SfxStyleSheet* GetStyleSheet() const;
- void SetStyleSheet( SfxStyleSheet* pStyle );
-
- void SetAnchorMode( EVAnchorMode eMode );
- EVAnchorMode GetAnchorMode() const;
-
- BOOL MatchGroup();
-
- void CompleteAutoCorrect();
-
- EESpellState StartSpeller( BOOL bMultipleDoc = FALSE );
- EESpellState StartThesaurus();
- USHORT StartSearchAndReplace( const SvxSearchItem& rSearchItem );
-
- // for text conversion
- void StartTextConversion( LanguageType nSrcLang, LanguageType nDestLang, const Font *pDestFont, INT32 nOptions, BOOL bIsInteractive, BOOL bMultipleDoc );
- sal_Bool HasConvertibleTextPortion( LanguageType nLang );
-
- void TransliterateText( sal_Int32 nTransliterationMode );
-
- BOOL IsCursorAtWrongSpelledWord( BOOL bMarkIfWrong = FALSE );
- BOOL IsWrongSpelledWordAtPos( const Point& rPosPixel, BOOL bMarkIfWrong = FALSE );
- void SpellIgnoreWord();
- void ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack = 0 );
-
- void InsertField( const SvxFieldItem& rFld );
- const SvxFieldItem* GetFieldUnderMousePointer() const;
- const SvxFieldItem* GetFieldUnderMousePointer( USHORT& nPara, xub_StrLen& nPos ) const;
- const SvxFieldItem* GetField( const Point& rPos, USHORT* pnPara = NULL, xub_StrLen* pnPos = NULL ) const;
-
- const SvxFieldItem* GetFieldAtSelection() const;
-
- String GetWordUnderMousePointer() const;
- String GetWordUnderMousePointer( Rectangle& rWordRect ) const;
-
- void SetInvalidateMore( USHORT nPixel );
- USHORT 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;
-};
-
-#endif // _MyEDITVIEW_HXX
diff --git a/svx/inc/svx/eedata.hxx b/svx/inc/svx/eedata.hxx
deleted file mode 100644
index 33e542746d56..000000000000
--- a/svx/inc/svx/eedata.hxx
+++ /dev/null
@@ -1,78 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: eedata.hxx,v $
- *
- * $Revision: 1.2 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#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
-
-//////////////////////////////////////////////////////////////////////////////
-// eof
diff --git a/svx/inc/svx/eeitem.hxx b/svx/inc/svx/eeitem.hxx
deleted file mode 100644
index 53202b795170..000000000000
--- a/svx/inc/svx/eeitem.hxx
+++ /dev/null
@@ -1,102 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: eeitem.hxx,v $
- * $Revision: 1.3.212.1 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _EEITEM_HXX
-#define _EEITEM_HXX
-
-#define EE_ITEMS_START 3989
-
-// Absatzattribute:
-#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_END (EE_ITEMS_START+15)
-
-// Zeichenattribute:
-#define EE_CHAR_START (EE_ITEMS_START+16)
-#define EE_CHAR_COLOR (EE_ITEMS_START+16)
-#define EE_CHAR_FONTINFO (EE_ITEMS_START+17)
-#define EE_CHAR_FONTHEIGHT (EE_ITEMS_START+18)
-#define EE_CHAR_FONTWIDTH (EE_ITEMS_START+19)
-#define EE_CHAR_WEIGHT (EE_ITEMS_START+20)
-#define EE_CHAR_UNDERLINE (EE_ITEMS_START+21)
-#define EE_CHAR_STRIKEOUT (EE_ITEMS_START+22)
-#define EE_CHAR_ITALIC (EE_ITEMS_START+23)
-#define EE_CHAR_OUTLINE (EE_ITEMS_START+24)
-#define EE_CHAR_SHADOW (EE_ITEMS_START+25)
-#define EE_CHAR_ESCAPEMENT (EE_ITEMS_START+26)
-#define EE_CHAR_PAIRKERNING (EE_ITEMS_START+27)
-#define EE_CHAR_KERNING (EE_ITEMS_START+28)
-#define EE_CHAR_WLM (EE_ITEMS_START+29)
-#define EE_CHAR_LANGUAGE (EE_ITEMS_START+30)
-#define EE_CHAR_LANGUAGE_CJK (EE_ITEMS_START+31)
-#define EE_CHAR_LANGUAGE_CTL (EE_ITEMS_START+32)
-#define EE_CHAR_FONTINFO_CJK (EE_ITEMS_START+33)
-#define EE_CHAR_FONTINFO_CTL (EE_ITEMS_START+34)
-#define EE_CHAR_FONTHEIGHT_CJK (EE_ITEMS_START+35)
-#define EE_CHAR_FONTHEIGHT_CTL (EE_ITEMS_START+36)
-#define EE_CHAR_WEIGHT_CJK (EE_ITEMS_START+37)
-#define EE_CHAR_WEIGHT_CTL (EE_ITEMS_START+38)
-#define EE_CHAR_ITALIC_CJK (EE_ITEMS_START+39)
-#define EE_CHAR_ITALIC_CTL (EE_ITEMS_START+40)
-#define EE_CHAR_EMPHASISMARK (EE_ITEMS_START+41)
-#define EE_CHAR_RELIEF (EE_ITEMS_START+42)
-#define EE_CHAR_RUBI_DUMMY (EE_ITEMS_START+43)
-#define EE_CHAR_XMLATTRIBS (EE_ITEMS_START+44)
-#define EE_CHAR_OVERLINE (EE_ITEMS_START+45)
-#define EE_CHAR_END (EE_ITEMS_START+45)
-
-
-#define EE_FEATURE_START (EE_ITEMS_START+46)
-#define EE_FEATURE_TAB (EE_ITEMS_START+46)
-#define EE_FEATURE_LINEBR (EE_ITEMS_START+47)
-#define EE_FEATURE_NOTCONV (EE_ITEMS_START+48)
-#define EE_FEATURE_FIELD (EE_ITEMS_START+49)
-#define EE_FEATURE_END (EE_ITEMS_START+49)
-
-#define EE_ITEMS_END (EE_ITEMS_START+49)
-
-#define EDITITEMCOUNT ( EE_ITEMS_END - EE_ITEMS_START + 1 )
-
-#endif // _EEITEM_HXX
diff --git a/svx/inc/svx/eeitemid.hxx b/svx/inc/svx/eeitemid.hxx
deleted file mode 100644
index 088762f7fe10..000000000000
--- a/svx/inc/svx/eeitemid.hxx
+++ /dev/null
@@ -1,139 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: eeitemid.hxx,v $
- * $Revision: 1.3.212.1 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#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
-
-// Zeichenattribute....
-#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
-
-// Absatzattribute
-#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
-
diff --git a/svx/inc/svx/emphitem.hxx b/svx/inc/svx/emphitem.hxx
deleted file mode 100644
index c6956a819dc3..000000000000
--- a/svx/inc/svx/emphitem.hxx
+++ /dev/null
@@ -1,94 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: emphitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_EMPHITEM_HXX
-#define _SVX_EMPHITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxEmphasisMarkItem ----------------------------------------------
-
-/* [Beschreibung]
-
- Dieses Item beschreibt die Font-Betonung.
-*/
-
-class SVX_DLLPUBLIC SvxEmphasisMarkItem : public SfxUInt16Item
-{
-public:
- TYPEINFO();
-
- SvxEmphasisMarkItem( const FontEmphasisMark eVal /*= EMPHASISMARK_NONE*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem + SfxEnumItem
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText,
- const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
-
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE 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( (USHORT)eNew ); }
-};
-
-#endif // #ifndef _SVX_EMPHITEM_HXX
-
diff --git a/svx/inc/svx/escpitem.hxx b/svx/inc/svx/escpitem.hxx
deleted file mode 100644
index f96c3479dd0f..000000000000
--- a/svx/inc/svx/escpitem.hxx
+++ /dev/null
@@ -1,120 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: escpitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_ESCPITEM_HXX
-#define _SVX_ESCPITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxEscapementItem -----------------------------------------------
-
-#define DFLT_ESC_SUPER 33 // 1/3
-#define DFLT_ESC_SUB -33 // auch 1/3 fr"uher 8/100
-#define DFLT_ESC_PROP 58
-#define DFLT_ESC_AUTO_SUPER 101
-#define DFLT_ESC_AUTO_SUB -101
-
-/* [Beschreibung]
-
- Dieses Item beschreibt die Schrift-Position.
-*/
-
-class SVX_DLLPUBLIC SvxEscapementItem : public SfxEnumItemInterface
-{
- short nEsc;
- BYTE nProp;
-public:
- TYPEINFO();
-
- SvxEscapementItem( const USHORT nId );
- SvxEscapementItem( const SvxEscapement eEscape,
- const USHORT nId );
- SvxEscapementItem( const short nEsc, const BYTE nProp,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT 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 BYTE &GetProp() { return nProp; }
- inline BYTE GetProp() const { return nProp; }
-
- inline SvxEscapementItem& operator=(const SvxEscapementItem& rEsc)
- {
- nEsc = rEsc.GetEsc();
- nProp = rEsc.GetProp();
- return *this;
- }
-
- virtual USHORT GetValueCount() const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetEnumValue() const;
- virtual void SetEnumValue( USHORT nNewVal );
-};
-
-#endif
-
diff --git a/svx/inc/svx/fhgtitem.hxx b/svx/inc/svx/fhgtitem.hxx
deleted file mode 100644
index e77457a94e61..000000000000
--- a/svx/inc/svx/fhgtitem.hxx
+++ /dev/null
@@ -1,122 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: fhgtitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_FHGTITEM_HXX
-#define _SVX_FHGTITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxFontHeightItem -----------------------------------------------
-
-// Achtung: Twips-Werte
-
-/* [Beschreibung]
-
- Dieses Item beschreibt die Font-Hoehe.
-*/
-
-#define FONTHEIGHT_16_VERSION ((USHORT)0x0001)
-#define FONTHEIGHT_UNIT_VERSION ((USHORT)0x0002)
-
-class SVX_DLLPUBLIC SvxFontHeightItem : public SfxPoolItem
-{
- UINT32 nHeight;
- USHORT nProp; // default 100%
- SfxMapUnit ePropUnit; // Percent, Twip, ...
-public:
- TYPEINFO();
-
- SvxFontHeightItem( const ULONG nSz /*= 240*/, const USHORT nPropHeight /*= 100*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual USHORT GetVersion( USHORT nItemVersion) const;
- virtual int ScaleMetrics( long nMult, long nDiv );
- virtual int HasMetrics() const;
-
- inline SvxFontHeightItem& operator=(const SvxFontHeightItem& rSize)
- {
- SetHeightValue( rSize.GetHeight() );
- SetProp( rSize.GetProp(), ePropUnit );
- return *this;
- }
-
- void SetHeight( UINT32 nNewHeight, const USHORT nNewProp = 100,
- SfxMapUnit eUnit = SFX_MAPUNIT_RELATIVE );
-
- void SetHeight( UINT32 nNewHeight, USHORT nNewProp,
- SfxMapUnit eUnit, SfxMapUnit eCoreUnit );
-
- UINT32 GetHeight() const { return nHeight; }
-
- void SetHeightValue( UINT32 nNewHeight )
- {
- DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
- nHeight = nNewHeight;
- }
-
- void SetProp( const USHORT nNewProp,
- SfxMapUnit eUnit = SFX_MAPUNIT_RELATIVE )
- {
- DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
- nProp = nNewProp;
- ePropUnit = eUnit;
- }
-
- USHORT GetProp() const { return nProp; }
-
- SfxMapUnit GetPropUnit() const { return ePropUnit; } // Percent, Twip, ...
-};
-
-#endif
-
diff --git a/svx/inc/svx/flditem.hxx b/svx/inc/svx/flditem.hxx
deleted file mode 100644
index 1d14870d33d3..000000000000
--- a/svx/inc/svx/flditem.hxx
+++ /dev/null
@@ -1,430 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: flditem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_FLDITEM_HXX
-#define _SVX_FLDITEM_HXX
-
-#include
-#include
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-class SvNumberFormatter;
-class MetaAction;
-
-// class SvxFieldItem ---------------------------------------------------
-
-
-
-class SVX_DLLPUBLIC SvxFieldData : public SvPersistBase
-{
-public:
- SV_DECL_PERSIST1( SvxFieldData, SvPersistBase, 1 )
-
- SvxFieldData();
- virtual ~SvxFieldData();
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-
- virtual MetaAction* createBeginComment() const;
- virtual MetaAction* createEndComment() const;
-};
-
-/*
-[Beschreibung]
-In diesem Item wird ein Feld (SvxFieldData) gespeichert.
-Das Feld gehoert dem Item.
-Das Feld selbst wird durch eine Ableitung von SvxFieldData bestimmt. (RTTI)
-*/
-
-class SVX_DLLPUBLIC SvxFieldItem : public SfxPoolItem
-{
-private:
- SvxFieldData* pField;
-
- SVX_DLLPRIVATE SvxFieldItem( SvxFieldData* pField, const USHORT nId );
-
-public:
- TYPEINFO();
-
- SvxFieldItem( const SvxFieldData& rField, const USHORT nId );
- SvxFieldItem( const SvxFieldItem& rItem );
- ~SvxFieldItem();
-
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT nVer ) const;
- virtual SvStream& Store( SvStream& , USHORT nItemVersion ) const;
-
- const SvxFieldData* GetField() const { return pField; }
- static SvClassManager& GetClassManager();
-};
-
-// =================================================================
-// Es folgen die Ableitungen von SvxFieldData...
-// =================================================================
-
-#define SVX_DATEFIELD 2
-#define SVX_URLFIELD 3
-
-#define SVX_PAGEFIELD 100 // Ex-Calc-Felder
-#define SVX_PAGESFIELD 101
-#define SVX_TIMEFIELD 102
-#define SVX_FILEFIELD 103
-#define SVX_TABLEFIELD 104
-#define SVX_EXT_TIMEFIELD 105
-#define SVX_EXT_FILEFIELD 106
-#define SVX_AUTHORFIELD 107
-#define SVX_HEADERFIELD 108
-#define SVX_FOOTERFIELD 109
-#define SVX_DATEFIMEFIELD 110
-
-#define SVX_USERFIELD 200 // Ab hier eigene Felder, nicht im SVX
-
-enum SvxDateType { SVXDATETYPE_FIX, SVXDATETYPE_VAR };
-enum SvxDateFormat { SVXDATEFORMAT_APPDEFAULT, // Wie in App eingestellt
- SVXDATEFORMAT_SYSTEM, // Wie im System eingestellt
- SVXDATEFORMAT_STDSMALL,
- SVXDATEFORMAT_STDBIG,
- SVXDATEFORMAT_A, // 13.02.96
- SVXDATEFORMAT_B, // 13.02.1996
- SVXDATEFORMAT_C, // 13.Feb 1996
- SVXDATEFORMAT_D, // 13.Februar 1996
- SVXDATEFORMAT_E, // Die, 13.Februar 1996
- SVXDATEFORMAT_F // Dienstag, 13.Februar 1996
- };
-
-class SVX_DLLPUBLIC SvxDateField : public SvxFieldData
-{
- sal_uInt32 nFixDate;
- SvxDateType eType;
- SvxDateFormat eFormat;
-
-public:
- SV_DECL_PERSIST1( SvxDateField, SvxFieldData, SVX_DATEFIELD )
-
- SvxDateField();
- 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; }
-
- // deprecated, to be removed
- String GetFormatted( LanguageType eLanguage, LanguageType eFormat ) const;
- // use this instead
- // If eLanguage==LANGUAGE_DONTKNOW the language/country
- // used in number formatter initialization is taken.
- String GetFormatted( SvNumberFormatter& rFormatter, LanguageType eLanguage ) const;
- static String 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, // Wie in App eingestellt
- SVXURLFORMAT_URL, // URL darstellen
- SVXURLFORMAT_REPR // Repraesentation darstellen
- };
-
-class SVX_DLLPUBLIC SvxURLField : public SvxFieldData
-{
-private:
- SvxURLFormat eFormat;
- XubString aURL; // URL-Adresse
- XubString aRepresentation; // Was wird dargestellt
- XubString aTargetFrame; // In welchem Frame
-
-public:
- SV_DECL_PERSIST1( SvxURLField, SvxFieldData, SVX_URLFIELD )
-
- SvxURLField();
- SvxURLField( const XubString& rURL, const XubString& rRepres, SvxURLFormat eFmt = SVXURLFORMAT_URL );
-
- const XubString& GetURL() const { return aURL; }
- void SetURL( const XubString& rURL ) { aURL = rURL; }
-
- const XubString& GetRepresentation() const { return aRepresentation; }
- void SetRepresentation( const XubString& rRep ) { aRepresentation= rRep; }
-
- const XubString& GetTargetFrame() const { return aTargetFrame; }
- void SetTargetFrame( const XubString& 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 SVX_DLLPUBLIC SvxPageField : public SvxFieldData
-{
-public:
- SV_DECL_PERSIST1( SvxPageField, SvxFieldData, SVX_PAGEFIELD )
- SvxPageField() {}
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-
- virtual MetaAction* createBeginComment() const;
-};
-
-class SVX_DLLPUBLIC SvxPagesField : public SvxFieldData
-{
-public:
- SV_DECL_PERSIST1( SvxPagesField, SvxFieldData, SVX_PAGESFIELD )
- SvxPagesField() {}
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-};
-
-class SVX_DLLPUBLIC SvxTimeField : public SvxFieldData
-{
-public:
- SV_DECL_PERSIST1( SvxTimeField, SvxFieldData, SVX_TIMEFIELD )
- SvxTimeField() {}
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-
- virtual MetaAction* createBeginComment() const;
-};
-
-class SVX_DLLPUBLIC SvxFileField : public SvxFieldData
-{
-public:
- SV_DECL_PERSIST1( SvxFileField, SvxFieldData, SVX_FILEFIELD )
- SvxFileField() {}
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-};
-
-class SVX_DLLPUBLIC SvxTableField : public SvxFieldData
-{
-public:
- SV_DECL_PERSIST1( SvxTableField, SvxFieldData, SVX_TABLEFIELD )
- SvxTableField() {}
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-};
-
-
-enum SvxTimeType { SVXTIMETYPE_FIX, SVXTIMETYPE_VAR };
-enum SvxTimeFormat { SVXTIMEFORMAT_APPDEFAULT, // Wie in App eingestellt
- SVXTIMEFORMAT_SYSTEM, // Wie im System eingestellt
- 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 SVX_DLLPUBLIC SvxExtTimeField : public SvxFieldData
-{
-private:
- sal_uInt32 nFixTime;
- SvxTimeType eType;
- SvxTimeFormat eFormat;
-
-public:
- SV_DECL_PERSIST1( SvxExtTimeField, SvxFieldData, SVX_EXT_TIMEFIELD )
- SvxExtTimeField();
- 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; }
-
- // deprecated, to be removed
- XubString GetFormatted( LanguageType eLanguage, LanguageType eFormat ) const;
- // use this instead
- // If eLanguage==LANGUAGE_DONTKNOW the language/country
- // used in number formatter initialization is taken.
- String GetFormatted( SvNumberFormatter& rFormatter, LanguageType eLanguage ) const;
- static String 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, // Dateiname mit Extension
- SVXFILEFORMAT_FULLPATH, // vollst„ndiger Pfad
- SVXFILEFORMAT_PATH, // nur Pfad
- SVXFILEFORMAT_NAME // nur Dateiname
- };
-
-
-
-class SVX_DLLPUBLIC SvxExtFileField : public SvxFieldData
-{
-private:
- XubString aFile;
- SvxFileType eType;
- SvxFileFormat eFormat;
-
-public:
- SV_DECL_PERSIST1( SvxExtFileField, SvxFieldData, SVX_EXT_FILEFIELD )
- SvxExtFileField();
- SvxExtFileField( const XubString& rString,
- SvxFileType eType = SVXFILETYPE_VAR,
- SvxFileFormat eFormat = SVXFILEFORMAT_FULLPATH );
-
- String GetFile() const { return aFile; }
- void SetFile( const XubString& 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; }
-
- XubString GetFormatted() const;
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-};
-
-
-enum SvxAuthorType { SVXAUTHORTYPE_FIX, SVXAUTHORTYPE_VAR };
-enum SvxAuthorFormat { SVXAUTHORFORMAT_FULLNAME, // vollst„ndiger Name
- SVXAUTHORFORMAT_NAME, // nur Nachname
- SVXAUTHORFORMAT_FIRSTNAME, // nur Vorname
- SVXAUTHORFORMAT_SHORTNAME // Initialen
- };
-
-class SVX_DLLPUBLIC SvxAuthorField : public SvxFieldData
-{
-private:
- XubString aName;
- XubString aFirstName;
- XubString aShortName;
- SvxAuthorType eType;
- SvxAuthorFormat eFormat;
-
-public:
- SV_DECL_PERSIST1( SvxAuthorField, SvxFieldData, SVX_AUTHORFIELD )
- SvxAuthorField();
- SvxAuthorField(
- const XubString& rFirstName,
- const XubString& rLastName,
- const XubString& rShortName,
- SvxAuthorType eType = SVXAUTHORTYPE_VAR,
- SvxAuthorFormat eFormat = SVXAUTHORFORMAT_FULLNAME );
-
- XubString GetName() const { return aName; }
- void SetName( const XubString& rString ) { aName = rString; }
-
- XubString GetFirstName() const { return aFirstName; }
- void SetFirstName( const XubString& rString ) { aFirstName = rString; }
-
- XubString GetShortName() const { return aShortName; }
- void SetShortName( const XubString& 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; }
-
- XubString 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 SVX_DLLPUBLIC SvxHeaderField : public SvxFieldData
-{
-public:
- SV_DECL_PERSIST1( SvxHeaderField, SvxFieldData, SVX_HEADERFIELD )
- 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 SVX_DLLPUBLIC SvxFooterField : public SvxFieldData
-{
-public:
- SV_DECL_PERSIST1( SvxFooterField, SvxFieldData, SVX_FOOTERFIELD )
- 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 SVX_DLLPUBLIC SvxDateTimeField : public SvxFieldData
-{
-public:
- SV_DECL_PERSIST1( SvxDateTimeField, SvxFieldData, SVX_DATEFIMEFIELD )
- SvxDateTimeField() {}
-
- static String GetFormatted( Date& rDate, Time& rTime, int eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
-
- virtual SvxFieldData* Clone() const;
- virtual int operator==( const SvxFieldData& ) const;
-};
-
-
-
-
-#endif
-
diff --git a/svx/inc/svx/forbiddenruleitem.hxx b/svx/inc/svx/forbiddenruleitem.hxx
deleted file mode 100644
index 24010eacc5ed..000000000000
--- a/svx/inc/svx/forbiddenruleitem.hxx
+++ /dev/null
@@ -1,75 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: forbiddenruleitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_FORBIDDENRULEITEM_HXX
-#define _SVX_FORBIDDENRULEITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// class SvxForbiddenRuleItem -----------------------------------------
-
-/* [Description]
-
- This item describe how to handle the last character of a line.
-*/
-
-class SVX_DLLPUBLIC SvxForbiddenRuleItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxForbiddenRuleItem( sal_Bool bOn /*= sal_False*/,
- const sal_uInt16 nId );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText,
- const IntlWrapper * = 0 ) const;
-
- inline SvxForbiddenRuleItem& operator=(
- const SvxForbiddenRuleItem& rItem )
- {
- SetValue( rItem.GetValue() );
- return *this;
- }
-};
-
-#endif
-
diff --git a/svx/inc/svx/frmdir.hxx b/svx/inc/svx/frmdir.hxx
deleted file mode 100644
index 04cdcc78ee23..000000000000
--- a/svx/inc/svx/frmdir.hxx
+++ /dev/null
@@ -1,63 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: frmdir.hxx,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SVX_FRMDIR_HXX
-#define _SVX_FRMDIR_HXX
-
-// ----------------------------------------------------------------------------
-
-/** Defines possible text directions in frames. */
-enum SvxFrameDirection
-{
- /** Horizontal, from left to right, from top to bottom
- (typical for western languages). */
- FRMDIR_HORI_LEFT_TOP,
-
- /** Horizontal, from right to left, from top to bottom
- (typical for ararbic/hebrew languages). */
- FRMDIR_HORI_RIGHT_TOP,
-
- /** Vertical, from top to bottom, from right to left
- (typical for asian languages). */
- FRMDIR_VERT_TOP_RIGHT,
-
- /** Vertical, from top to bottom, from left to right
- (typical for mongol language). */
- FRMDIR_VERT_TOP_LEFT,
-
- /** Use the value from the environment, can only be used in frames. */
- FRMDIR_ENVIRONMENT
-};
-
-// ----------------------------------------------------------------------------
-
-#endif // #ifndef _SVX_FRMDIR_HXX
-
-
diff --git a/svx/inc/svx/frmdiritem.hxx b/svx/inc/svx/frmdiritem.hxx
deleted file mode 100644
index e82638c94d95..000000000000
--- a/svx/inc/svx/frmdiritem.hxx
+++ /dev/null
@@ -1,86 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: frmdiritem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_FRMDIRITEM_HXX
-#define _SVX_FRMDIRITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// class SvxFrameDirectionItem ----------------------------------------------
-
-/* [Description]
-
- This item defines a frame direction, which place the content inside
- a frame. It exist different kind of directions which are used to the
- layout text for Western, CJK and CTL languages.
-*/
-
-class SVX_DLLPUBLIC SvxFrameDirectionItem : public SfxUInt16Item
-{
-public:
- TYPEINFO();
-
- SvxFrameDirectionItem( USHORT nWhich );
- SvxFrameDirectionItem( SvxFrameDirection nValue /*= FRMDIR_HORI_LEFT_TOP*/,
- USHORT nWhich );
- virtual ~SvxFrameDirectionItem();
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream & rStrm, USHORT nIVer) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
- virtual int operator==( const SfxPoolItem& ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText,
- const IntlWrapper * = 0 ) const;
-
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId );
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId ) const;
-
- inline SvxFrameDirectionItem& operator=( const SvxFrameDirectionItem& rItem )
- {
- SetValue( rItem.GetValue() );
- return *this;
- }
-};
-
-#endif // #ifndef _SVX_FRMDIRITEM_HXX
-
diff --git a/svx/inc/svx/hangulhanja.hxx b/svx/inc/svx/hangulhanja.hxx
deleted file mode 100644
index 239edb9e74a2..000000000000
--- a/svx/inc/svx/hangulhanja.hxx
+++ /dev/null
@@ -1,305 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: hangulhanja.hxx,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef SVX_HANGUL_HANJA_CONVERSION_HXX
-#define SVX_HANGUL_HANJA_CONVERSION_HXX
-
-#include
-#include
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-//.............................................................................
-namespace svx
-{
-//.............................................................................
-
- class HangulHanjaConversion_Impl;
-
- //=========================================================================
- //= HangulHanjaConversion
- //=========================================================================
- /** encapsulates Hangul-Hanja conversion functionality
-
- terminology:
-
- A text portion is some (potentially large) piece of text
- which is to be analyzed for convertible sub-strings.
- - A text unit is a sub string in a text portion, which is
- to be converted as a whole.
-
- For instance, you could have two independent selections within your document, which are then
- two text portions. A text unit would be single Hangul/Hanja words within a portion, or even
- single Hangul syllabills when "replace by character" is enabled.
-
- */
- class SVX_DLLPUBLIC HangulHanjaConversion
- {
- friend class HangulHanjaConversion_Impl;
-
- public:
- enum ReplacementAction
- {
- eExchange, // simply exchange one text with another
- eReplacementBracketed, // keep the original, and put the replacement in brackets after it
- eOriginalBracketed, // replace the original text, but put it in brackeds after the replacement
- eReplacementAbove, // keep the original, and put the replacement text as ruby text above it
- eOriginalAbove, // replace the original text, but put it as ruby text above it
- eReplacementBelow, // keep the original, and put the replacement text as ruby text below it
- eOriginalBelow // replace the original text, but put it as ruby text below it
- };
-
- enum ConversionType // does not specify direction...
- {
- eConvHangulHanja, // Korean Hangul/Hanja conversion
- eConvSimplifiedTraditional // Chinese simplified / Chinese traditional conversion
- };
-
- // Note: conversion direction for eConvSimplifiedTraditional is
- // specified by source language.
- // This one is for Hangul/Hanja where source and target language
- // are the same.
- enum ConversionDirection
- {
- eHangulToHanja,
- eHanjaToHangul
- };
-
- enum ConversionFormat
- {
- eSimpleConversion, // used for simplified / traditional Chinese as well
- eHangulBracketed,
- eHanjaBracketed,
- eRubyHanjaAbove,
- eRubyHanjaBelow,
- eRubyHangulAbove,
- eRubyHangulBelow
- };
-
- private:
- ::std::auto_ptr< HangulHanjaConversion_Impl > m_pImpl;
-
- // used to set initial values of m_pImpl object from saved ones
- static sal_Bool m_bUseSavedValues; // defines if the followng two values should be used for initialization
- static sal_Bool m_bTryBothDirectionsSave;
- static ConversionDirection m_ePrimaryConversionDirectionSave;
-
- // Forbidden and not implemented.
- HangulHanjaConversion (const HangulHanjaConversion &);
- HangulHanjaConversion & operator= (const HangulHanjaConversion &);
-
- public:
- HangulHanjaConversion(
- Window* _pUIParent,
- const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB,
- const ::com::sun::star::lang::Locale& _rSourceLocale,
- const ::com::sun::star::lang::Locale& _rTargetLocale,
- const Font* _pTargetFont,
- sal_Int32 nOptions,
- sal_Bool _bIsInteractive
- );
-
- virtual ~HangulHanjaConversion( );
-
- // converts the whole document
- void ConvertDocument();
-
- LanguageType GetSourceLanguage() const;
- LanguageType GetTargetLanguage() const;
- const Font * GetTargetFont() const;
- sal_Int32 GetConversionOptions() const;
- sal_Bool IsInteractive() const;
-
- // chinese text conversion
- static inline sal_Bool IsSimplified( LanguageType nLang );
- static inline sal_Bool IsTraditional( LanguageType nLang );
- static inline sal_Bool IsChinese( LanguageType nLang );
- static inline sal_Bool IsSimilarChinese( LanguageType nLang1, LanguageType nLang2 );
-
- // used to specify that the conversion direction states from the
- // last incarnation should be used as
- // initial conversion direction for the next incarnation.
- // (A hack used to transport a state information from
- // one incarnation to the next. Used in Writers text conversion...)
- static void SetUseSavedConversionDirectionState( sal_Bool bVal );
- static sal_Bool IsUseSavedConversionDirectionState();
-
- protected:
- /** retrieves the next text portion which is to be analyzed
-
- pseudo-abstract, needs to be overridden
-
- @param _rNextPortion
- upon return, this must contain the next text portion
- @param _rLangOfPortion
- upon return, this must contain the language for the found text portion.
- (necessary for Chinese translation since there are 5 language variants
- too look for even if the 'source' language usually is only 'simplified'
- or 'traditional'.)
- */
- virtual void GetNextPortion(
- ::rtl::OUString& /* [out] */ _rNextPortion,
- LanguageType& /* [out] */ _rLangOfPortion,
- sal_Bool /* [in] */ _bAllowImplicitChangesForNotConvertibleText );
-
- /** announces a new "current unit"
-
- This will be called whenever it is necessary to interactively ask the user for
- a conversion. In such a case, a range within the current portion (see GetNextPortion)
- is presented to the user for chosing a substitution. Additionally, this method is called,
- so that derived classes can e.g. highlight this text range in a document view.
-
- Note that the indexes are relative to the most recent replace action. See
- ReplaceUnit for details.
-
- @param _nUnitStart
- the start index of the unit
-
- @param _nUnitEnd
- the start index (exclusively!) of the unit.
-
- @param _bAllowImplicitChangesForNotConvertibleText
- allows implicit changes other than the text itself for the
- text parts not being convertible.
- Used for chinese translation to attribute all not convertible
- text (e.g. western text, empty paragraphs, spaces, ...) to
- the target language and target font of the conversion.
- This is to ensure that after the conversion any new text entered
- anywhere in the document will have the target language (of course
- CJK Language only) and target font (CJK font only) set.
-
- @see GetNextPortion
- */
- virtual void HandleNewUnit( const sal_Int32 _nUnitStart, const sal_Int32 _nUnitEnd );
-
- /** replaces a text unit within a text portion with a new text
-
- pseudo-abstract, needs to be overridden
-
- Note an important thing about the indicies: They are always relative to the previous
- call of ReplaceUnit. This means whe you get a call to ReplaceUnit, and replace some text
- in your document, than you have to remember the document position immediately behind
- the changed text. In a next call to ReplaceUnit, an index of 0 will denote exactly
- this position behind the previous replacement
- The reaons for this is that this class here does not know anything about your document structure,
- so after a replacement took place, it's impossible to address anything in the range from the
- beginning of the portion up to the replaced text.
- In the very first call to ReplaceUnit, an index of 0 denotes the very first position of
- the current portion.
-
- If the language of the text to be replaced is different from
- the target language (as given by 'GetTargetLanguage') for example
- when converting simplified Chinese from/to traditional Chinese
- the language attribute of the new text has to be changed as well,
- **and** the font is to be set to the default (document) font for
- that language.
-
- @param _nUnitStart
- the start index of the range to replace
-
- @param _nUnitEnd
- the end index (exclusively!) of the range to replace. E.g., an index
- pair (4,5) indicates a range of length 1.
-
- @param _rOrigText
- the original text to be replaced (as returned by GetNextPortion).
- Since in Chinese conversion the original text is needed as well
- in order to only do the minimal necassry text changes and to keep
- as much attributes as possible this is supplied here as well.
-
- @param _rReplaceWith
- The replacement text
-
- @param _rOffsets
- An sequence matching the indices (characters) of _rReplaceWith
- to the indices of the characters in the original text they are
- replacing.
- This is necessary since some portions of the text may get
- converted in portions of different length than the original.
- The sequence will be empty if all conversions in the text are
- of equal length. That is if always the character at index i in
- _rOffsets is replacing the character at index i in the original
- text for all valid index values of i.
-
- @param _eAction
- replacement action to take
-
- @param pNewUnitLanguage
- if the replacement unit is required to have a new language that
- is specified here. If the language is to be left unchanged this
- is the 0 pointer.
- */
- virtual void ReplaceUnit(
- const sal_Int32 _nUnitStart, const sal_Int32 _nUnitEnd,
- const ::rtl::OUString& _rOrigText,
- const ::rtl::OUString& _rReplaceWith,
- const ::com::sun::star::uno::Sequence< sal_Int32 > &_rOffsets,
- ReplacementAction _eAction,
- LanguageType *pNewUnitLanguage
- );
-
- /** specifies if rubies are supported by the document implementing
- this class.
-
- @return
- if rubies are supported.
- */
- virtual sal_Bool HasRubySupport() const;
- };
-
- sal_Bool HangulHanjaConversion::IsSimplified( LanguageType nLang )
- {
- return nLang == LANGUAGE_CHINESE_SIMPLIFIED ||
- nLang == LANGUAGE_CHINESE_SINGAPORE;
- }
-
- sal_Bool HangulHanjaConversion::IsTraditional( LanguageType nLang )
- {
- return nLang == LANGUAGE_CHINESE_TRADITIONAL ||
- nLang == LANGUAGE_CHINESE_HONGKONG ||
- nLang == LANGUAGE_CHINESE_MACAU;
- }
-
- sal_Bool HangulHanjaConversion::IsChinese( LanguageType nLang )
- {
- return IsTraditional( nLang ) || IsSimplified( nLang );
- }
-
- sal_Bool HangulHanjaConversion::IsSimilarChinese( LanguageType nLang1, LanguageType nLang2 )
- {
- return (IsTraditional(nLang1) && IsTraditional(nLang2)) ||
- (IsSimplified(nLang1) && IsSimplified(nLang2));
- }
-
-//.............................................................................
-} // namespace svx
-//.............................................................................
-
-#endif // SVX_HANGUL_HANJA_CONVERSION_HXX
diff --git a/svx/inc/svx/hngpnctitem.hxx b/svx/inc/svx/hngpnctitem.hxx
deleted file mode 100644
index dad568857bab..000000000000
--- a/svx/inc/svx/hngpnctitem.hxx
+++ /dev/null
@@ -1,75 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: hngpnctitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_HNGPNCTITEM_HXX
-#define _SVX_HNGPNCTITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// class SvxHangingPunctuationItem -----------------------------------------
-
-/* [Description]
-
- This item describe how to handle the last character of a line.
-*/
-
-class SVX_DLLPUBLIC SvxHangingPunctuationItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxHangingPunctuationItem( sal_Bool bOn /*= sal_False*/,
- const sal_uInt16 nId );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText,
- const IntlWrapper * = 0 ) const;
-
- inline SvxHangingPunctuationItem& operator=(
- const SvxHangingPunctuationItem& rItem )
- {
- SetValue( rItem.GetValue() );
- return *this;
- }
-};
-
-#endif
-
diff --git a/svx/inc/svx/hyznitem.hxx b/svx/inc/svx/hyznitem.hxx
deleted file mode 100644
index 0c6f46e09e8c..000000000000
--- a/svx/inc/svx/hyznitem.hxx
+++ /dev/null
@@ -1,112 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: hyznitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_HYZNITEM_HXX
-#define _SVX_HYZNITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxHyphenZoneItem -----------------------------------------------
-
-/*
-[Beschreibung]
-Dieses Item beschreibt ein Silbentrennungsattribut (Automatisch?, Anzahl der
-Zeichen am Zeilenende und -anfang).
-*/
-
-class SVX_DLLPUBLIC SvxHyphenZoneItem : public SfxPoolItem
-{
- BOOL bHyphen: 1;
- BOOL bPageEnd: 1;
- BYTE nMinLead;
- BYTE nMinTrail;
- BYTE nMaxHyphens;
-
- friend SvStream & operator<<( SvStream & aS, SvxHyphenZoneItem & );
-
-public:
- TYPEINFO();
-
- SvxHyphenZoneItem( const BOOL bHyph /*= FALSE*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
-
- inline void SetHyphen( const BOOL bNew ) { bHyphen = bNew; }
- inline BOOL IsHyphen() const { return bHyphen; }
-
- inline void SetPageEnd( const BOOL bNew ) { bPageEnd = bNew; }
- inline BOOL IsPageEnd() const { return bPageEnd; }
-
- inline BYTE &GetMinLead() { return nMinLead; }
- inline BYTE GetMinLead() const { return nMinLead; }
-
- inline BYTE &GetMinTrail() { return nMinTrail; }
- inline BYTE GetMinTrail() const { return nMinTrail; }
-
- inline BYTE &GetMaxHyphens() { return nMaxHyphens; }
- inline BYTE GetMaxHyphens() const { return nMaxHyphens; }
-
- inline SvxHyphenZoneItem &operator=( const SvxHyphenZoneItem &rNew )
- {
- bHyphen = rNew.IsHyphen();
- bPageEnd = rNew.IsPageEnd();
- nMinLead = rNew.GetMinLead();
- nMinTrail = rNew.GetMinTrail();
- nMaxHyphens = rNew.GetMaxHyphens();
- return *this;
- }
-};
-
-#endif
-
diff --git a/svx/inc/svx/impgrf.hxx b/svx/inc/svx/impgrf.hxx
deleted file mode 100644
index d99bbd04d1ea..000000000000
--- a/svx/inc/svx/impgrf.hxx
+++ /dev/null
@@ -1,65 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: impgrf.hxx,v $
- * $Revision: 1.7 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_IMPGRF_HXX
-#define _SVX_IMPGRF_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-
-#ifndef _BUTTON_HXX //autogen
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// Funktionen ------------------------------------------------------------
-
-// returnt einen static Graphic-Filter, wird einmalig angelegt,
-// steht immer zur Verfuegung, DARF NIE geloescht werden!!!!
-SVX_DLLPUBLIC GraphicFilter* GetGrfFilter();
-SVX_DLLPUBLIC int LoadGraphic( const String& rPath, const String& rFilter,
- Graphic& rGraphic,
- GraphicFilter* pFilter = NULL,
- USHORT* pDeterminedFormat = NULL );
-
-// class SvxImportGraphicDialog ------------------------------------------
-#ifndef SV_NODIALOG
-
-#define ENABLE_STANDARD ((USHORT)0x0001) // Standard-Button
-#define ENABLE_LINK ((USHORT)0x0002) // Verkn"upfungs-Box
-#define ENABLE_STD_AND_LINK (ENABLE_STANDARD | ENABLE_LINK)
-#define ENABLE_PROPERTY ((USHORT)0x0004) // Eigenschaften-Button
-#define ENABLE_ALL ((USHORT)0x0007) // alle
-#define ENABLE_PROP_WITHOUTLINK ((USHORT)0x0008) // Eigenschaften ohne Link
-#define ENABLE_EMPTY_FILENAMES ((USHORT)0x0010) // Leere Dateinamen zulassen
-
-#endif // SV_NODIALOG
-
-#endif
diff --git a/svx/inc/svx/itemtype.hxx b/svx/inc/svx/itemtype.hxx
deleted file mode 100644
index a01bea487147..000000000000
--- a/svx/inc/svx/itemtype.hxx
+++ /dev/null
@@ -1,83 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: itemtype.hxx,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_ITEMTYPE_HXX
-#define _SVX_ITEMTYPE_HXX
-
-// include ---------------------------------------------------------------
-
-#ifndef _SVXITEMS_HRC
-#include
-#endif
-
-// forward ---------------------------------------------------------------
-#include
-#include
-#include
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-class Color;
-class XColorTable;
-class IntlWrapper;
-// static and prototypes -------------------------------------------------
-
-static const sal_Unicode cDelim = ',';
-static const sal_Unicode cpDelim[] = { ',' , ' ', '\0' };
-
-SVX_DLLPUBLIC String GetSvxString( USHORT nId );
-SVX_DLLPUBLIC String GetMetricText( long nVal, SfxMapUnit eSrcUnit, SfxMapUnit eDestUnit, const IntlWrapper * pIntl );
-#ifndef SVX_LIGHT
-String GetColorString( const Color& rCol );
-#endif
-SVX_DLLPUBLIC USHORT GetMetricId( SfxMapUnit eUnit );
-
-// -----------------------------------------------------------------------
-
-inline String GetBoolString( BOOL bVal )
-{
- return String( ResId( bVal ? RID_SVXITEMS_TRUE
- : RID_SVXITEMS_FALSE, DIALOG_MGR() ) );
-}
-
-// -----------------------------------------------------------------------
-
-inline long Scale( long nVal, long nMult, long nDiv )
-{
- BigInt aVal( nVal );
- aVal *= nMult;
- aVal += nDiv/2;
- aVal /= nDiv;
- return aVal;
-}
-
-#endif
-
diff --git a/svx/inc/svx/keepitem.hxx b/svx/inc/svx/keepitem.hxx
deleted file mode 100644
index f12f6a79e413..000000000000
--- a/svx/inc/svx/keepitem.hxx
+++ /dev/null
@@ -1,84 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: keepitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_KEEPITEM_HXX
-#define _SVX_KEEPITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxFmtKeepItem ------------------------------------------------
-
-/*
-[Beschreibung]
-Dieses Item beschreibt eine logische Variable "Absaetze zusammenhalten?".
-*/
-
-class SVX_DLLPUBLIC SvxFmtKeepItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- inline SvxFmtKeepItem( const BOOL bKeep /*= FALSE*/,
- const USHORT _nWhich );
- inline SvxFmtKeepItem& operator=( const SvxFmtKeepItem& rSplit );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT ) const;
- virtual SvStream& Store( SvStream& , USHORT nItemVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-};
-
-inline SvxFmtKeepItem::SvxFmtKeepItem( const BOOL bKeep, const USHORT _nWhich ) :
- SfxBoolItem( _nWhich, bKeep )
-{}
-
-inline SvxFmtKeepItem& SvxFmtKeepItem::operator=( const SvxFmtKeepItem& rKeep )
-{
- SetValue( rKeep.GetValue() );
- return *this;
-}
-
-#endif
-
diff --git a/svx/inc/svx/kernitem.hxx b/svx/inc/svx/kernitem.hxx
deleted file mode 100644
index 9e6f5b81da2b..000000000000
--- a/svx/inc/svx/kernitem.hxx
+++ /dev/null
@@ -1,86 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: kernitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_KERNITEM_HXX
-#define _SVX_KERNITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxKerningItem --------------------------------------------------
-
-// Achtung: Twips-Werte
-// Twips: 0 = kein Kerning
-
-/* [Beschreibung]
-
- Dieses Item beschreibt die Schrift-Laufweite.
-*/
-
-class SVX_DLLPUBLIC SvxKerningItem : public SfxInt16Item
-{
-public:
- TYPEINFO();
-
- SvxKerningItem( const short nKern /*= 0*/, const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual int ScaleMetrics( long nMult, long nDiv );
- virtual int HasMetrics() const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- inline SvxKerningItem& operator=(const SvxKerningItem& rKern) {
- SetValue( rKern.GetValue() );
- return *this;
- }
-
- virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-};
-
-#endif
-
diff --git a/svx/inc/svx/langitem.hxx b/svx/inc/svx/langitem.hxx
deleted file mode 100644
index 5345fede13f7..000000000000
--- a/svx/inc/svx/langitem.hxx
+++ /dev/null
@@ -1,90 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: langitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_LANGITEM_HXX
-#define _SVX_LANGITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxLanguageItem -------------------------------------------------
-
-/* [Beschreibung]
-
- Dieses Item beschreibt eine Sprache.
-*/
-
-class SVX_DLLPUBLIC SvxLanguageItem : public SfxEnumItem
-{
-public:
- TYPEINFO();
-
- SvxLanguageItem( const LanguageType eLang /*= LANGUAGE_GERMAN*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual USHORT GetValueCount() const;
-
- inline SvxLanguageItem& operator=(const SvxLanguageItem& rLang)
- {
- SetValue( rLang.GetValue() );
- return *this;
- }
-
- // enum cast
- LanguageType GetLanguage() const
- { return (LanguageType)GetValue(); }
- void SetLanguage( const LanguageType eLang )
- { SetValue( (USHORT)eLang ); }
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-};
-
-#endif
-
diff --git a/svx/inc/svx/lcolitem.hxx b/svx/inc/svx/lcolitem.hxx
deleted file mode 100644
index cd110dd19d3a..000000000000
--- a/svx/inc/svx/lcolitem.hxx
+++ /dev/null
@@ -1,69 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: lcolitem.hxx,v $
- * $Revision: 1.5 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_LCOLITEM_HXX
-#define _SVX_LCOLITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#include "svx/svxdllapi.h"
-
-/*
- * dummy-Item fuer ToolBox-Controller:
- *
- */
-
-class SVX_DLLPUBLIC SvxLineColorItem : public SvxColorItem
-{
-public:
- TYPEINFO();
-
- SvxLineColorItem( const USHORT nId );
- SvxLineColorItem( const Color& aColor, const USHORT nId );
- SvxLineColorItem( SvStream& rStrm, const USHORT nId );
- SvxLineColorItem( const SvxLineColorItem& rCopy );
- ~SvxLineColorItem();
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText,
- const IntlWrapper * pIntlWrapper = 0 )
- const;
-
- inline SvxLineColorItem& operator=(const SvxLineColorItem& rColor)
- { return (SvxLineColorItem&)SvxColorItem::
- operator=((const SvxColorItem&)rColor); }
-
-};
-
-#endif
-
diff --git a/svx/inc/svx/lrspitem.hxx b/svx/inc/svx/lrspitem.hxx
deleted file mode 100644
index 1f54209cc82a..000000000000
--- a/svx/inc/svx/lrspitem.hxx
+++ /dev/null
@@ -1,185 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: lrspitem.hxx,v $
- * $Revision: 1.5 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_LRSPITEM_HXX
-#define _SVX_LRSPITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxLRSpaceItem --------------------------------------------------
-
-/*
-[Beschreibung]
-Linker/Rechter Rand sowie Erstzeileneinzug
-
-SvxLRSpaceItem bietet zwei Schnittstellen zur Befragung des linken
-Randes und des Erstzeileneinzuges an. Die Get-Methoden liefern
-die Member zurueck, wie sie das Layout bisher auch erwartete:
-Der linke Rand verschiebt sich beim negativem Erstzeileneinzug
-nach links. Die SetTxt/GetTxt-Methoden setzen voraus, dass der
-linke Rand der 0-Punkt des Erstzeileneinzugs darstellt:
-
- UI UI LAYOUT UI/TEXT UI/TEXT (Wo?)
-SetTxtLeft SetTxtFirst GetLeft GetTxtLeft GetTxtFirst (Was?)
- 500 -500 0 500 -500 (Wieviel?)
- 500 0 500 500 0
- 500 +500 500 500 +500
- 700 -500 200 700 -500
-*/
-
-#define LRSPACE_16_VERSION ((USHORT)0x0001)
-#define LRSPACE_TXTLEFT_VERSION ((USHORT)0x0002)
-#define LRSPACE_AUTOFIRST_VERSION ((USHORT)0x0003)
-#define LRSPACE_NEGATIVE_VERSION ((USHORT)0x0004)
-
-class SVX_DLLPUBLIC SvxLRSpaceItem : public SfxPoolItem
-{
- short nFirstLineOfst; // Erstzeileneinzug _immer_ relativ zu nTxtLeft
- long nTxtLeft; // wir spendieren einen USHORT
- long nLeftMargin; // nLeft oder der neg. Erstzeileneinzug
- long nRightMargin; // der unproblematische rechte Rand
-
- USHORT nPropFirstLineOfst, nPropLeftMargin, nPropRightMargin;
- BOOL bAutoFirst : 1; // Automatische Berechnung der Erstzeileneinzugs
-
- void AdjustLeft(); // nLeftMargin und nTxtLeft werden angepasst.
-
-public:
- TYPEINFO();
-
- SvxLRSpaceItem( const USHORT nId );
- SvxLRSpaceItem( const long nLeft, const long nRight,
- const long nTLeft /*= 0*/, const short nOfset /*= 0*/,
- const USHORT nId );
- inline SvxLRSpaceItem& operator=( const SvxLRSpaceItem &rCpy );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
-
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
- virtual int ScaleMetrics( long nMult, long nDiv );
- virtual int HasMetrics() const;
-
- // Die "Layout-Schnittstelle":
- inline void SetLeft ( const long nL, const USHORT nProp = 100 );
- inline void SetRight( const long nR, const USHORT nProp = 100 );
-
- // abfragen / direktes setzen der absoluten Werte
- inline long GetLeft() const { return nLeftMargin; }
- inline long GetRight() const { return nRightMargin;}
- inline void SetLeftValue( const long nL ) { nTxtLeft = nLeftMargin = nL; }
- inline void SetRightValue( const long nR ) { nRightMargin = nR; }
- inline BOOL IsAutoFirst() const { return bAutoFirst; }
- inline void SetAutoFirst( const BOOL bNew ) { bAutoFirst = bNew; }
-
- // abfragen / setzen der Prozent-Werte
- inline void SetPropLeft( const USHORT nProp = 100 )
- { nPropLeftMargin = nProp; }
- inline void SetPropRight( const USHORT nProp = 100 )
- { nPropRightMargin = nProp;}
- inline USHORT GetPropLeft() const { return nPropLeftMargin; }
- inline USHORT GetPropRight() const { return nPropRightMargin;}
-
- // Die "UI/Text-Schnittstelle":
- inline void SetTxtLeft( const long nL, const USHORT nProp = 100 );
- inline long GetTxtLeft() const { return nTxtLeft; }
-
- inline void SetTxtFirstLineOfst( const short nF, const USHORT nProp = 100 );
- inline short GetTxtFirstLineOfst() const { return nFirstLineOfst; }
- inline void SetPropTxtFirstLineOfst( const USHORT nProp = 100 )
- { nPropFirstLineOfst = nProp; }
- inline USHORT GetPropTxtFirstLineOfst() const
- { return nPropFirstLineOfst; }
- inline void SetTxtFirstLineOfstValue( const short nValue )
- { nFirstLineOfst = nValue; }
-};
-
-inline SvxLRSpaceItem &SvxLRSpaceItem::operator=( const SvxLRSpaceItem &rCpy )
-{
- nFirstLineOfst = rCpy.nFirstLineOfst;
- nTxtLeft = rCpy.nTxtLeft;
- nLeftMargin = rCpy.nLeftMargin;
- nRightMargin = rCpy.nRightMargin;
- nPropFirstLineOfst = rCpy.nPropFirstLineOfst;
- nPropLeftMargin = rCpy.nPropLeftMargin;
- nPropRightMargin = rCpy.nPropRightMargin;
- bAutoFirst = rCpy.bAutoFirst;
- return *this;
-}
-
-inline void SvxLRSpaceItem::SetLeft( const long nL, const USHORT nProp )
-{
- nLeftMargin = (nL * nProp) / 100;
- nTxtLeft = nLeftMargin;
- nPropLeftMargin = nProp;
-}
-inline void SvxLRSpaceItem::SetRight( const long nR, const USHORT nProp )
-{
- nRightMargin = (nR * nProp) / 100;
- nPropRightMargin = nProp;
-}
-inline void SvxLRSpaceItem::SetTxtFirstLineOfst( const short nF,
- const USHORT nProp )
-{
- nFirstLineOfst = short((long(nF) * nProp ) / 100);
- nPropFirstLineOfst = nProp;
- AdjustLeft();
-}
-
-inline void SvxLRSpaceItem::SetTxtLeft( const long nL, const USHORT nProp )
-{
- nTxtLeft = (nL * nProp) / 100;
- nPropLeftMargin = nProp;
- AdjustLeft();
-}
-
-#endif
-
diff --git a/svx/inc/svx/lspcitem.hxx b/svx/inc/svx/lspcitem.hxx
deleted file mode 100644
index e73a3aed11f7..000000000000
--- a/svx/inc/svx/lspcitem.hxx
+++ /dev/null
@@ -1,130 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: lspcitem.hxx,v $
- * $Revision: 1.4.216.1 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_LSPCITEM_HXX
-#define _SVX_LSPCITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxLineSpacingItem ----------------------------------------------
-
-/*
-[Beschreibung]
-Dieses Item beschreibt den Abstand zwischen den Zeilen.
-*/
-
-#define LINE_SPACE_DEFAULT_HEIGHT 200
-class SVX_DLLPUBLIC SvxLineSpacingItem : public SfxEnumItemInterface
-{
- friend SvStream& operator<<( SvStream&, SvxLineSpacingItem& ); //$ ostream
-
- short nInterLineSpace;
- USHORT nLineHeight;
- BYTE nPropLineSpace;
- SvxLineSpace eLineSpace;
- SvxInterLineSpace eInterLineSpace;
-
-public:
- TYPEINFO();
-
- // Der Writer verlaesst sich auf eine Default-Hoehe von 200!
- // Eigentlich wuerde ich alle Werte mit 0 initialisieren, aber wer kann
- // die Folgen beim Writer absehen ?
- // => lieber einen krummen Wert als Default, aber der Programmierer
- // sieht, dass dort etwas besonderes passiert.
-
- SvxLineSpacingItem( USHORT nHeight /*= LINE_SPACE_DEFAULT_HEIGHT*/, const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
-
- // Methoden zum Abfragen und Aendern
- // Interlinespace wird zur Hoehe addiert.
- inline short GetInterLineSpace() const { return nInterLineSpace; }
- inline void SetInterLineSpace( const short nSpace )
- {
- nInterLineSpace = nSpace;
- eInterLineSpace = SVX_INTER_LINE_SPACE_FIX;
- }
-
- // Bestimmt absolute oder minimale Zeilenhoehe.
- inline USHORT GetLineHeight() const { return nLineHeight; }
- inline void SetLineHeight( const USHORT nHeight )
- {
- nLineHeight = nHeight;
- eLineSpace = SVX_LINE_SPACE_MIN;
- }
-
- // Vergroessert oder verkleinert die Zeilenhoehe.
- BYTE GetPropLineSpace() const { return nPropLineSpace; }
- inline void SetPropLineSpace( const BYTE nProp )
- {
- nPropLineSpace = nProp;
- eInterLineSpace = SVX_INTER_LINE_SPACE_PROP;
- }
-
- inline SvxLineSpace &GetLineSpaceRule() { return eLineSpace; }
- inline SvxLineSpace GetLineSpaceRule() const { return eLineSpace; }
-
- inline SvxInterLineSpace &GetInterLineSpaceRule() { return eInterLineSpace; }
- inline SvxInterLineSpace GetInterLineSpaceRule() const { return eInterLineSpace; }
-
- virtual USHORT GetValueCount() const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetEnumValue() const;
- virtual void SetEnumValue( USHORT nNewVal );
-};
-
-#endif
-
diff --git a/svx/inc/svx/mutxhelp.hxx b/svx/inc/svx/mutxhelp.hxx
deleted file mode 100644
index 559eed80914f..000000000000
--- a/svx/inc/svx/mutxhelp.hxx
+++ /dev/null
@@ -1,47 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: mutxhelp.hxx,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SVX_MUTXHELP_HXX
-#define _SVX_MUTXHELP_HXX
-
-#include
-
-class SvxMutexHelper
-{
-private:
- ::osl::Mutex maMutex;
-
-public:
- ::osl::Mutex& getMutex() { return maMutex; }
-};
-
-#endif
-
-
diff --git a/svx/inc/svx/nhypitem.hxx b/svx/inc/svx/nhypitem.hxx
deleted file mode 100644
index 6cca0508a53d..000000000000
--- a/svx/inc/svx/nhypitem.hxx
+++ /dev/null
@@ -1,74 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: nhypitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_NHYPITEM_HXX
-#define _SVX_NHYPITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// class SvxNoHyphenItem -------------------------------------------------
-
-/* [Beschreibung]
-
- PB: ???
-*/
-
-class SVX_DLLPUBLIC SvxNoHyphenItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxNoHyphenItem( const BOOL bHyphen /*= TRUE*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- inline SvxNoHyphenItem& operator=(const SvxNoHyphenItem& rNHH)
- {
- SetValue( rNHH.GetValue() );
- return *this;
- }
-};
-
-#endif
-
diff --git a/svx/inc/svx/numdef.hxx b/svx/inc/svx/numdef.hxx
deleted file mode 100644
index 72e5edcde5b7..000000000000
--- a/svx/inc/svx/numdef.hxx
+++ /dev/null
@@ -1,33 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: numdef.hxx,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#define SVX_MAX_NUM 10 // max. moegliche Numerierungsebenen
-#define SVX_DEF_BULLET (0xF000 + 149)// Charakter fuer Aufzaehlungen
-
diff --git a/svx/inc/svx/numitem.hxx b/svx/inc/svx/numitem.hxx
deleted file mode 100644
index 86f1eee764a7..000000000000
--- a/svx/inc/svx/numitem.hxx
+++ /dev/null
@@ -1,402 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: numitem.hxx,v $
- * $Revision: 1.5 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_NUMITEM_HXX
-#define _SVX_NUMITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#include
-#include
-#include
-#ifndef _SVX_NUMDEF_HXX //autogen
-#include
-#endif
-#ifndef _SV_COLOR_HXX //autogen
-#include
-#endif
-#include
-#include
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-class SvxBrushItem;
-class Font;
-class Graphic;
-class SvxNodeNum;
-class BitmapEx;
-namespace com{namespace sun{ namespace star{
- namespace text{
- class XNumberingFormatter;
- }
-}}}
-
-// -----------------------------------------------------------------------
-//Feature-Flags (only USHORT!)
-#define NUM_CONTINUOUS 0x0001 // fortlaufende Numerierung moeglich?
-#define NUM_CHAR_TEXT_DISTANCE 0x0002 // Abstand Symbol<->Text?
-#define NUM_CHAR_STYLE 0x0004 // Zeichenvorlagen?
-#define NUM_BULLET_REL_SIZE 0x0008 // rel. Bulletgroesse?
-#define NUM_BULLET_COLOR 0x0010 // Bullet color
-#define NUM_SYMBOL_ALIGNMENT 0x0040 // alignment soll unter den Optionen angezeigt werden
-#define NUM_NO_NUMBERS 0x0080 // Numberierungen sind nicht erlaubt
-#define NUM_ENABLE_LINKED_BMP 0x0100 // linked bitmaps are available
-#define NUM_ENABLE_EMBEDDED_BMP 0x0200 // embedded bitmaps are available
-
-#define SVX_NO_NUM 200 // Markierung fuer keine Numerierung
-#define SVX_NO_NUMLEVEL 0x20
-
-#define LINK_TOKEN 0x80 //indicate linked bitmaps - for use in dialog only
-class SVX_DLLPUBLIC SvxNumberType
-{
- static sal_Int32 nRefCount;
- static com::sun::star::uno::Reference xFormatter;
-
- sal_Int16 nNumType;
- sal_Bool bShowSymbol; // Symbol auch anzeigen?
-
-public:
- SvxNumberType(sal_Int16 nType = com::sun::star::style::NumberingType::ARABIC);
- SvxNumberType(const SvxNumberType& rType);
- ~SvxNumberType();
-
- String GetNumStr( ULONG nNo ) const;
- String GetNumStr( ULONG nNo, const com::sun::star::lang::Locale& rLocale ) const;
-
- void SetNumberingType(sal_Int16 nSet) {nNumType = nSet;}
- sal_Int16 GetNumberingType() const {return nNumType;}
-
- void SetShowSymbol(sal_Bool bSet) {bShowSymbol = bSet;}
- sal_Bool IsShowSymbol()const{return bShowSymbol;}
-
- sal_Bool IsTxtFmt() const
- {
- return com::sun::star::style::NumberingType::NUMBER_NONE != nNumType &&
- com::sun::star::style::NumberingType::CHAR_SPECIAL != nNumType &&
- com::sun::star::style::NumberingType::BITMAP != nNumType;
- }
-};
-
-class SVX_DLLPUBLIC SvxNumberFormat : public SvxNumberType
-{
-public:
- // --> OD 2008-01-08 #newlistlevelattrs#
- enum SvxNumPositionAndSpaceMode
- {
- LABEL_WIDTH_AND_POSITION,
- LABEL_ALIGNMENT
- };
- enum SvxNumLabelFollowedBy
- {
- LISTTAB,
- SPACE,
- NOTHING
- };
- // <--
-
-private:
- String sPrefix;
- String sSuffix;
-
- SvxAdjust eNumAdjust;
-
- BYTE nInclUpperLevels; //Nummern aus der vorigen Ebenen uebernehmen
- USHORT nStart; //Start der Zaehlung
-
- sal_Unicode cBullet; //Symbol
- USHORT nBulletRelSize; //proz. Groesse des Bullets
- Color nBulletColor; //Bullet color
-
- // --> OD 2008-01-08 #newlistlevelattrs#
- // mode indicating, if the position and spacing of the list label is
- // determined by the former attributes (nFirstLineOffset, nAbsLSpace,
- // nLSpace and nCharTextDistance) called position and spacing via label
- // width and position (LABEL_WIDTH_AND_POSITION) or by the new attributes
- // (meLabelFollowedBy, mnListtabPos, mnFirstLineIndent and mnIndentAt)
- // called position and spacing via label alignment.
- // Note 1: Attribute is relevant for both modes.
- // Note 2: The values of the former attributes are treated as 0, if mode
- // LABEL_ALIGNMENT is active.
- SvxNumPositionAndSpaceMode mePositionAndSpaceMode;
- // <--
-
- short nFirstLineOffset; //Erstzeileneinzug
- short nAbsLSpace; //Abstand Rand<->Nummer
- short nLSpace; //relative Einrueckung zum Vorgaenger
- short nCharTextDistance; //Abstand Nummer<->Text
-
- // --> OD 2008-01-08 #newlistlevelattrs#
- // specifies what follows the list label before the text of the first line
- // of the list item starts
- SvxNumLabelFollowedBy meLabelFollowedBy;
- // specifies an additional list tab stop position for meLabelFollowedBy = LISTTAB
- long mnListtabPos;
- // specifies the first line indent
- long mnFirstLineIndent;
- // specifies the indent before the text, e.g. in L2R-layout the left margin
- long mnIndentAt;
- // <--
-
- SvxBrushItem* pGraphicBrush; //
- sal_Int16 eVertOrient; // vert. Ausrichtung einer Bitmap
-
- Size aGraphicSize; // immer! in 1/100 mm
- Font* pBulletFont; // Pointer auf den BulletFont
-
- String sCharStyleName; // Zeichenvorlage
-
- BitmapEx* pScaledImageCache; // Image scaled to aGraphicSize, only cached for WINDOW/VDEV
-
- DECL_STATIC_LINK( SvxNumberFormat, GraphicArrived, void * );
- virtual void NotifyGraphicArrived();
-public:
- // --> OD 2008-01-09 #newlistlevelattrs#
- SvxNumberFormat( sal_Int16 nNumberingType,
- SvxNumPositionAndSpaceMode ePositionAndSpaceMode = LABEL_WIDTH_AND_POSITION );
- // <--
- SvxNumberFormat(const SvxNumberFormat& rFormat);
- SvxNumberFormat(SvStream &rStream);
- virtual ~SvxNumberFormat();
-
- SvStream& Store(SvStream &rStream, FontToSubsFontConverter pConverter);
-
- SvxNumberFormat& operator=( const SvxNumberFormat& );
- BOOL operator==( const SvxNumberFormat& ) const;
- BOOL operator!=( const SvxNumberFormat& rFmt) const {return !(*this == rFmt);}
-
- void SetNumAdjust(SvxAdjust eSet) {eNumAdjust = eSet;}
- SvxAdjust GetNumAdjust() const {return eNumAdjust;}
- void SetPrefix(const String& rSet) { sPrefix = rSet;}
- const String& GetPrefix() const { return sPrefix;}
- void SetSuffix(const String& rSet) { sSuffix = rSet;}
- const String& GetSuffix() const { return sSuffix;}
-
- void SetCharFmtName(const String& rSet){ sCharStyleName = rSet; }
- virtual const String& GetCharFmtName()const;
-
- void SetBulletFont(const Font* pFont);
- const Font* GetBulletFont() const {return pBulletFont;}
- void SetBulletChar(sal_Unicode cSet){cBullet = cSet;}
- sal_Unicode GetBulletChar()const {return cBullet;}
- void SetBulletRelSize(USHORT nSet) {nBulletRelSize = nSet;}
- USHORT GetBulletRelSize() const { return nBulletRelSize;}
- void SetBulletColor(Color nSet){nBulletColor = nSet;}
- Color GetBulletColor()const {return nBulletColor;}
-
- void SetIncludeUpperLevels( BYTE nSet ) { nInclUpperLevels = nSet;}
- BYTE GetIncludeUpperLevels()const { return nInclUpperLevels;}
- void SetStart(USHORT nSet) {nStart = nSet;}
- USHORT GetStart() const {return nStart;}
-
- virtual void SetGraphicBrush( const SvxBrushItem* pBrushItem, const Size* pSize = 0, const sal_Int16* pOrient = 0);
- const SvxBrushItem* GetBrush() const {return pGraphicBrush;}
- void SetGraphic( const String& rName );
- virtual void SetVertOrient(sal_Int16 eSet);
- virtual sal_Int16 GetVertOrient() const;
- void SetGraphicSize(const Size& rSet) {aGraphicSize = rSet;}
- const Size& GetGraphicSize() const {return aGraphicSize;}
-
- // --> OD 2008-01-09 #newlistlevelattrs#
- SvxNumPositionAndSpaceMode GetPositionAndSpaceMode() const;
- void SetPositionAndSpaceMode( SvxNumPositionAndSpaceMode ePositionAndSpaceMode );
- // <--
-
- void SetLSpace(short nSet) {nLSpace = nSet;}
- // --> OD 2008-01-09 #newlistlevelattrs#
- short GetLSpace() const;
- // <--
- void SetAbsLSpace(short nSet) {nAbsLSpace = nSet;}
- // --> OD 2008-01-09 #newlistlevelattrs#
- short GetAbsLSpace() const;
- // <--
- void SetFirstLineOffset(short nSet) { nFirstLineOffset = nSet;}
- // --> OD 2008-01-09 #newlistlevelattrs#
- short GetFirstLineOffset() const;
- // <--
- void SetCharTextDistance(short nSet) { nCharTextDistance = nSet; }
- // --> OD 2008-01-09 #newlistlevelattrs#
- short GetCharTextDistance() const;
- // <--
-
- // --> OD 2008-01-09 #newlistlevelattrs#
- void SetLabelFollowedBy( const SvxNumLabelFollowedBy eLabelFollowedBy );
- SvxNumLabelFollowedBy GetLabelFollowedBy() const;
- void SetListtabPos( const long nListtabPos );
- long GetListtabPos() const;
- void SetFirstLineIndent( const long nFirstLineIndent );
- long GetFirstLineIndent() const;
- void SetIndentAt( const long nIndentAt );
- long GetIndentAt() const;
- // <--
-
- static Size GetGraphicSizeMM100(const Graphic* pGraphic);
- static String CreateRomanString( ULONG nNo, BOOL bUpper );
-};
-
-enum SvxNumRuleType
-{
- SVX_RULETYPE_NUMBERING,
- SVX_RULETYPE_OUTLINE_NUMBERING,
- SVX_RULETYPE_PRESENTATION_NUMBERING,
- SVX_RULETYPE_END
-};
-
-class SVX_DLLPUBLIC SvxNumRule
-{
- USHORT nLevelCount; // Anzahl der unterstuetzten Levels
- ULONG nFeatureFlags; // was wird unterstuetzt?
- SvxNumRuleType eNumberingType; // was fuer eine Numerierung
- BOOL bContinuousNumbering; // fortlaufende Numerierung
-
- SvxNumberFormat* aFmts[SVX_MAX_NUM];
- BOOL aFmtsSet[SVX_MAX_NUM]; //Flags ueber Gueltigkeit der Ebenen
-
- static sal_Int32 nRefCount;
- com::sun::star::lang::Locale aLocale;
-public:
- // --> OD 2008-02-11 #newlistlevelattrs#
- SvxNumRule( ULONG nFeatures,
- USHORT nLevels,
- BOOL bCont,
- SvxNumRuleType eType = SVX_RULETYPE_NUMBERING,
- SvxNumberFormat::SvxNumPositionAndSpaceMode
- eDefaultNumberFormatPositionAndSpaceMode
- = SvxNumberFormat::LABEL_WIDTH_AND_POSITION );
- // <--
- SvxNumRule(const SvxNumRule& rCopy);
- SvxNumRule(SvStream &rStream);
- virtual ~SvxNumRule();
-
- int operator==( const SvxNumRule& ) const;
- int operator!=( const SvxNumRule& rRule ) const {return !(*this == rRule);}
-
- SvxNumRule& operator=( const SvxNumRule& );
-
- SvStream& Store(SvStream &rStream);
-
- const SvxNumberFormat* Get(USHORT nLevel)const;
- const SvxNumberFormat& GetLevel(USHORT nLevel)const;
- void SetLevel(USHORT nLevel, const SvxNumberFormat& rFmt, BOOL bIsValid = TRUE);
- void SetLevel(USHORT nLevel, const SvxNumberFormat* pFmt);
-
- BOOL IsContinuousNumbering()const
- {return bContinuousNumbering;}
- void SetContinuousNumbering(BOOL bSet)
- {bContinuousNumbering = bSet;}
-
- USHORT GetLevelCount() const {return nLevelCount;}
- BOOL IsFeatureSupported(ULONG nFeature) const
- {return 0 != (nFeatureFlags & nFeature);}
- ULONG GetFeatureFlags() const {return nFeatureFlags;}
- void SetFeatureFlag( ULONG nFlag, BOOL bSet = TRUE ) { if(bSet) nFeatureFlags |= nFlag; else nFeatureFlags &= ~nFlag; }
-
- String MakeNumString( const SvxNodeNum&, BOOL bInclStrings = TRUE ) const;
-
- SvxNumRuleType GetNumRuleType() const { return eNumberingType; }
- void SetNumRuleType( const SvxNumRuleType& rType ) { eNumberingType = rType; }
-
- BOOL UnLinkGraphics();
-};
-/* -----------------27.10.98 13:04-------------------
- *
- * --------------------------------------------------*/
-class SVX_DLLPUBLIC SvxNumBulletItem : public SfxPoolItem
-{
- SvxNumRule* pNumRule;
-public:
- SvxNumBulletItem(SvxNumRule& rRule);
- SvxNumBulletItem(SvxNumRule& rRule, USHORT nWhich );
- SvxNumBulletItem(const SvxNumBulletItem& rCopy);
- virtual ~SvxNumBulletItem();
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- USHORT GetVersion( USHORT nFileVersion ) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
- virtual int operator==( const SfxPoolItem& ) const;
-
- SvxNumRule* GetNumRule() const {return pNumRule;}
-
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-};
-/* -----------------28.10.98 15:21-------------------
- *
- * --------------------------------------------------*/
-class SvxNodeNum
-{
- USHORT nLevelVal[ SVX_MAX_NUM ]; // Nummern aller Levels
- USHORT nSetValue; // vorgegebene Nummer
- BYTE nMyLevel; // akt. Level
- BOOL bStartNum; // Numerierung neu starten
-
-public:
- inline SvxNodeNum( BYTE nLevel = SVX_NO_NUM, USHORT nSetVal = USHRT_MAX );
- inline SvxNodeNum& operator=( const SvxNodeNum& rCpy );
-
- BYTE GetLevel() const { return nMyLevel; }
- void SetLevel( BYTE nVal ) { nMyLevel = nVal; }
-
- BOOL IsStart() const { return bStartNum; }
- void SetStart( BOOL bFlag = TRUE ) { bStartNum = bFlag; }
-
- USHORT GetSetValue() const { return nSetValue; }
- void SetSetValue( USHORT nVal ) { nSetValue = nVal; }
-
- const USHORT* GetLevelVal() const { return nLevelVal; }
- USHORT* GetLevelVal() { return nLevelVal; }
-};
-
-SvxNodeNum::SvxNodeNum( BYTE nLevel, USHORT nSetVal )
- : nSetValue( nSetVal ), nMyLevel( nLevel ), bStartNum( FALSE )
-{
- memset( nLevelVal, 0, sizeof( nLevelVal ) );
-}
-
-inline SvxNodeNum& SvxNodeNum::operator=( const SvxNodeNum& rCpy )
-{
- nSetValue = rCpy.nSetValue;
- nMyLevel = rCpy.nMyLevel;
- bStartNum = rCpy.bStartNum;
-
- memcpy( nLevelVal, rCpy.nLevelVal, sizeof( nLevelVal ) );
- return *this;
-}
-
-/* --------------------------------------------------
- *
- * --------------------------------------------------*/
-SvxNumRule* SvxConvertNumRule( const SvxNumRule* pRule, USHORT nLevel, SvxNumRuleType eType );
-
-#endif
-
diff --git a/svx/inc/svx/orphitem.hxx b/svx/inc/svx/orphitem.hxx
deleted file mode 100644
index 676e245c3770..000000000000
--- a/svx/inc/svx/orphitem.hxx
+++ /dev/null
@@ -1,80 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: orphitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_ORPHITEM_HXX
-#define _SVX_ORPHITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-#include "svx/svxdllapi.h"
-
-// class SvxOrphansItem --------------------------------------------------
-
-/*
-[Beschreibung]
-Dieses Item beschreibt die Anzahl der Zeilen fuer die Schusterjungenregelung.
-*/
-
-class SVX_DLLPUBLIC SvxOrphansItem: public SfxByteItem
-{
- friend SvStream & operator<<( SvStream & aS, SvxOrphansItem & );
-public:
- TYPEINFO();
-
- SvxOrphansItem( const BYTE nL /*= 0*/, const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- inline SvxOrphansItem& operator=( const SvxOrphansItem& rOrphans )
- {
- SetValue( rOrphans.GetValue() );
- return *this;
- }
-};
-
-#endif
-
diff --git a/svx/inc/svx/outliner.hxx b/svx/inc/svx/outliner.hxx
deleted file mode 100644
index 3e8023572633..000000000000
--- a/svx/inc/svx/outliner.hxx
+++ /dev/null
@@ -1,1050 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: outliner.hxx,v $
- * $Revision: 1.6.16.2 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _OUTLINER_HXX
-#define _OUTLINER_HXX
-
-#include
-#include
-#include
-
-#include
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-#include
-
-#include // wegen typedef TypeId
-#include
-
-class OutlinerEditEng;
-class Outliner;
-class EditView;
-class EditUndo;
-class ParagraphList;
-class OutlinerParaObject;
-class SvStream;
-class SvxBulletItem;
-class SvxFont;
-class SvxSearchItem;
-class SvxFieldItem;
-class OLUndoRemove;
-class Window;
-class KeyEvent;
-class MouseEvent;
-class Pointer;
-class CommandEvent;
-class MapMode;
-class OutputDevice;
-class PolyPolygon;
-class SfxStyleSheetPool;
-class SfxStyleSheet;
-class SfxItemPool;
-class SfxItemSet;
-class SvxNumBulletItem;
-class SvxNumberFormat;
-class SvxLRSpaceItem;
-class SfxUndoManager;
-class EditEngine;
-class SvKeyValueIterator;
-class SvxForbiddenCharactersTable;
-#include
-
-#include
-#include
-#include
-#include
-
-class SvxFieldData;
-//////////////////////////////////////////////////////////////////////////////
-
-namespace com { namespace sun { namespace star { namespace linguistic2 {
- class XSpellChecker1;
- class XHyphenator;
-}}}}
-namespace svx{
-struct SpellPortion;
-typedef std::vector SpellPortions;
-}
-
-namespace basegfx { class B2DPolyPolygon; }
-
-// nur interner Gebrauch!
-#define PARAFLAG_DROPTARGET 0x1000
-#define PARAFLAG_DROPTARGET_EMPTY 0x2000
-#define PARAFLAG_HOLDDEPTH 0x4000
-#define PARAFLAG_SETBULLETTEXT 0x8000
-#define PARAFLAG_ISPAGE 0x0100
-
-// Undo-Action-Ids
-#define OLUNDO_DEPTH EDITUNDO_USER
-// #define OLUNDO_HEIGHT EDITUNDO_USER+1
-#define OLUNDO_EXPAND EDITUNDO_USER+2
-#define OLUNDO_COLLAPSE EDITUNDO_USER+3
-// #define OLUNDO_REMOVE EDITUNDO_USER+4
-#define OLUNDO_ATTR EDITUNDO_USER+5
-#define OLUNDO_INSERT EDITUNDO_USER+6
-// #define OLUNDO_MOVEPARAGRAPHS EDITUNDO_USER+7
-#define OLUNDO_CHECKPARA EDITUNDO_USER+8
-
-class Paragraph : protected ParagraphData
-{
-private:
- friend class Outliner;
- friend class ParagraphList;
- friend class OutlinerView;
- friend class OutlinerParaObject;
- friend class OutlinerEditEng;
- friend class OLUndoDepth;
- friend class OutlinerUndoCheckPara;
- friend class OutlinerUndoChangeParaFlags;
-
- Paragraph& operator=(const Paragraph& rPara );
-
- USHORT nFlags;
- XubString aBulText;
- Size aBulSize;
- BOOL bVisible;
-
- BOOL IsVisible() const { return bVisible; }
- void SetText( const XubString& rText ) { aBulText = rText; aBulSize.Width() = -1; }
- void Invalidate() { aBulSize.Width() = -1; }
- void SetDepth( sal_Int16 nNewDepth ) { nDepth = nNewDepth; aBulSize.Width() = -1; }
- const XubString& GetText() const { return aBulText; }
-
- Paragraph( sal_Int16 nDepth );
- Paragraph( const Paragraph& );
- Paragraph( const ParagraphData& );
- ~Paragraph();
-
- sal_Int16 GetDepth() const { return nDepth; }
-
- sal_Int16 GetNumberingStartValue() const { return mnNumberingStartValue; }
- void SetNumberingStartValue( sal_Int16 nNumberingStartValue );
-
- sal_Bool IsParaIsNumberingRestart() const { return mbParaIsNumberingRestart; }
- void SetParaIsNumberingRestart( sal_Bool bParaIsNumberingRestart );
-
- void SetFlag( USHORT nFlag ) { nFlags |= nFlag; }
- void RemoveFlag( USHORT nFlag ) { nFlags &= ~nFlag; }
- bool HasFlag( USHORT nFlag ) const { return (nFlags & nFlag) != 0; }
-};
-
-struct ParaRange
-{
- USHORT nStartPara;
- USHORT nEndPara;
-
- ParaRange( USHORT nS, USHORT nE ) { nStartPara = nS, nEndPara = nE; }
-
- void Adjust();
- USHORT Len() const { return 1 + ( ( nEndPara > nStartPara ) ? (nEndPara-nStartPara) : (nStartPara-nEndPara) ); }
-};
-
-inline void ParaRange::Adjust()
-{
- if ( nStartPara > nEndPara )
- {
- USHORT nTmp = nStartPara;
- nStartPara = nEndPara;
- nEndPara = nTmp;
- }
-}
-
-#define OL_ROOTPARENT (Paragraph*)NULL
-
-class SVX_DLLPUBLIC OutlinerView
-{
- friend class Outliner;
-
-private:
-
- Outliner* pOwner;
- EditView* pEditView;
-
- // Drag & Drop
- BOOL bBeginDragAtMove_OLDMEMBER;
- BOOL bInDragMode;
- Point aDDStartPosRef;
- Point aDDStartPosPix;
- ULONG nDDStartPara;
- ULONG nDDStartParaVisChildCount;
- ULONG nDDCurPara;
- USHORT nDDStartDepth;
- USHORT nDDCurDepth;
- USHORT nDDMaxDepth;
- BOOL bDDChangingDepth;
- BOOL bDDCursorVisible;
- long* pHorTabArrDoc;
- long nDDScrollLRBorderWidthWin; // Left Right
- long nDDScrollTBBorderWidthWin; // Top Bottom
- long nDDScrollLROffs;
- long nDDScrollTDOffs;
-
- void* pDummy;
- ULONG nDummy;
-
- enum MouseTarget {
- MouseText = 0,
- MouseBullet = 1,
- MouseHypertext = 2, // ausserhalb OutputArea
- MouseOutside = 3, // ausserhalb OutputArea
- MouseDontKnow = 4
- };
- MouseTarget OLD_ePrevMouseTarget;
-
-#ifdef _OUTLINER_CXX
-
- SVX_DLLPRIVATE void ImplExpandOrCollaps( USHORT nStartPara, USHORT nEndPara, BOOL bExpand );
-
- SVX_DLLPRIVATE ULONG ImpCheckMousePos( const Point& rPosPixel, MouseTarget& reTarget);
- SVX_DLLPRIVATE void ImpToggleExpand( Paragraph* pParentPara );
- SVX_DLLPRIVATE ParaRange ImpGetSelectedParagraphs( BOOL bIncludeHiddenChilds );
- SVX_DLLPRIVATE void ImpHideDDCursor();
- SVX_DLLPRIVATE void ImpShowDDCursor();
- SVX_DLLPRIVATE void ImpPaintDDCursor();
-
- SVX_DLLPRIVATE void ImpDragScroll( const Point& rPosPix );
- SVX_DLLPRIVATE void ImpScrollLeft();
- SVX_DLLPRIVATE void ImpScrollRight();
- SVX_DLLPRIVATE void ImpScrollUp();
- SVX_DLLPRIVATE void ImpScrollDown();
-
- SVX_DLLPRIVATE ULONG ImpGetInsertionPara( const Point& rPosPixel );
- SVX_DLLPRIVATE Point ImpGetDocPos( const Point& rPosPixel );
- SVX_DLLPRIVATE Pointer ImpGetMousePointer( MouseTarget eTarget );
- SVX_DLLPRIVATE USHORT ImpInitPaste( ULONG& rStart );
- SVX_DLLPRIVATE void ImpPasted( ULONG nStart, ULONG nPrevParaCount, USHORT nSize);
- SVX_DLLPRIVATE USHORT ImpCalcSelectedPages( BOOL bIncludeFirstSelected );
- SVX_DLLPRIVATE BOOL ImpIsIndentingPages();
-
-#endif
-
-public:
- OutlinerView( Outliner* pOut, Window* pWindow );
- virtual ~OutlinerView();
-
- EditView& GetEditView() const { return *pEditView; }
-
- void Scroll( long nHorzScroll, long nVertScroll );
-
- void Paint( const Rectangle& rRect );
- BOOL PostKeyEvent( const KeyEvent& rKEvt );
- BOOL MouseButtonDown( const MouseEvent& );
- BOOL MouseButtonUp( const MouseEvent& );
- BOOL MouseMove( const MouseEvent& );
-
- void ShowCursor( BOOL bGotoCursor = TRUE );
- void HideCursor();
-
- void SetOutliner( Outliner* pOutliner );
- Outliner* GetOutliner() const { return pOwner; }
-
- void SetWindow( Window* pWindow );
- Window* GetWindow() const;
-
- void SetReadOnly( BOOL bReadOnly );
- BOOL IsReadOnly() const;
-
- void SetOutputArea( const Rectangle& rRect );
- Rectangle GetOutputArea() const;
-
- Rectangle GetVisArea() const;
-
- List* CreateSelectionList();
-
- // gibt Anzahl selektierter Absaetze zurueck
- // MT 07/00: Who needs this?
- ULONG Select( Paragraph* pParagraph,
- BOOL bSelect=TRUE,
- BOOL bWChilds=TRUE);
-
- String GetSelected() const;
- void SelectRange( ULONG nFirst, USHORT nCount );
- void SetAttribs( const SfxItemSet& );
- void Indent( short nDiff );
- void AdjustDepth( short nDX ); // Spaeter gegeb Indent ersetzen!
-
- BOOL AdjustHeight( long nDY );
- void AdjustDepth( Paragraph* pPara, short nDX,
- BOOL bWithChilds = FALSE );
- void AdjustHeight( Paragraph* pPara, long nDY,
- BOOL bWithChilds=FALSE );
-
- ULONG Read( SvStream& rInput, const String& rBaseURL, EETextFormat eFormat, BOOL bSelect = FALSE, SvKeyValueIterator* pHTTPHeaderAttrs = NULL );
- ULONG Write( SvStream& rOutput, EETextFormat eFormat );
-
- void InsertText( const String& rNew, BOOL bSelect = FALSE );
- void InsertText( const OutlinerParaObject& rParaObj );
- void Expand();
- void Collapse();
- void Expand( Paragraph* );
- void Collapse( Paragraph* );
- void ExpandAll();
- void CollapseAll();
-
- void SetBackgroundColor( const Color& rColor );
- Color GetBackgroundColor();
-
- SfxItemSet GetAttribs();
-
- void Cut();
- void Copy();
- void Paste();
- void PasteSpecial();
- void EnablePaste( BOOL bEnable );
-
- void Undo();
- void Redo();
-
- void SetStyleSheet( SfxStyleSheet* );
- SfxStyleSheet* GetStyleSheet() const;
-
- void SetControlWord( ULONG nWord );
- ULONG GetControlWord() const;
-
- void SetAnchorMode( EVAnchorMode eMode );
- EVAnchorMode GetAnchorMode() const;
-
- Pointer GetPointer( const Point& rPosPixel );
- void Command( const CommandEvent& rCEvt );
- void RemoveCharAttribs( ULONG nPara, USHORT nWhich = 0 );
-
- void CompleteAutoCorrect();
-
- EESpellState StartSpeller( BOOL bMultipleDoc = FALSE );
- EESpellState StartThesaurus();
- USHORT StartSearchAndReplace( const SvxSearchItem& rSearchItem );
-
- // for text conversion
- void StartTextConversion( LanguageType nSrcLang, LanguageType nDestLang, const Font *pDestFont, INT32 nOptions, BOOL bIsInteractive, BOOL bMultipleDoc );
-
- void TransliterateText( sal_Int32 nTransliterationMode );
-
- ESelection GetSelection();
-
- USHORT GetSelectedScriptType() const;
-
- void SetVisArea( const Rectangle& rRec );
- void SetSelection( const ESelection& );
-
- void RemoveAttribs( BOOL bRemoveParaAttribs = FALSE, USHORT nWhich = 0, BOOL bKeepLanguages = FALSE );
- void RemoveAttribsKeepLanguages( BOOL bRemoveParaAttribs );
- BOOL HasSelection() const;
-
- void InsertField( const SvxFieldItem& rFld );
- const SvxFieldItem* GetFieldUnderMousePointer() const;
- const SvxFieldItem* GetFieldUnderMousePointer( USHORT& nPara, xub_StrLen& nPos ) const;
- const SvxFieldItem* GetFieldAtSelection() const;
-
- /** enables numbering for the selected paragraphs if the numbering of the first paragraph is off
- or disables numbering for the selected paragraphs if the numbering of the first paragraph is on
- */
- void ToggleBullets();
-
- /** enables numbering for the selected paragraphs that are not enabled and ignore all selected
- paragraphs that already have numbering enabled.
- */
- void EnableBullets();
-
- BOOL IsCursorAtWrongSpelledWord( BOOL bMarkIfWrong = FALSE );
- BOOL IsWrongSpelledWordAtPos( const Point& rPosPixel, BOOL bMarkIfWrong = FALSE );
- void SpellIgnoreWord();
- void ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack = 0 );
-
- void SetInvalidateMore( USHORT nPixel );
- USHORT GetInvalidateMore() const;
-
- String GetSurroundingText() const;
- Selection GetSurroundingTextSelection() const;
-};
-
-//#if 0 // _SOLAR__PRIVATE
-DECLARE_LIST(ViewList,OutlinerView*)
-//#else
-//typedef List ViewList;
-//#endif
-
-class SVX_DLLPUBLIC DrawPortionInfo
-{
-public:
- const Point& mrStartPos;
- const String& mrText;
- sal_uInt16 mnTextStart;
- sal_uInt16 mnTextLen;
- sal_uInt16 mnPara;
- xub_StrLen mnIndex;
- const SvxFont& mrFont;
- const sal_Int32* mpDXArray;
-
- const EEngineData::WrongSpellVector* mpWrongSpellVector;
- const SvxFieldData* mpFieldData;
- const ::com::sun::star::lang::Locale* mpLocale;
- const Color maOverlineColor;
- const Color maTextLineColor;
-
- // #101498# BiDi level needs to be transported, too.
- BYTE mnBiDiLevel;
-
- // bitfield
- unsigned mbEndOfLine : 1;
- unsigned mbEndOfParagraph : 1;
- unsigned mbEndOfBullet : 1;
-
- BYTE GetBiDiLevel() const { return mnBiDiLevel; }
- sal_Bool IsRTL() const;
-
- DrawPortionInfo(
- const Point& rPos,
- const String& rTxt,
- sal_uInt16 nTxtStart,
- sal_uInt16 nTxtLen,
- const SvxFont& rFnt,
- sal_uInt16 nPar,
- xub_StrLen nIdx,
- const sal_Int32* pDXArr,
- const EEngineData::WrongSpellVector* pWrongSpellVector,
- const SvxFieldData* pFieldData,
- const ::com::sun::star::lang::Locale* pLocale,
- const Color& rOverlineColor,
- const Color& rTextLineColor,
- BYTE nBiDiLevel,
- bool bEndOfLine,
- bool bEndOfParagraph,
- bool bEndOfBullet)
- : mrStartPos(rPos),
- mrText(rTxt),
- mnTextStart(nTxtStart),
- mnTextLen(nTxtLen),
- mnPara(nPar),
- mnIndex(nIdx),
- mrFont(rFnt),
- mpDXArray(pDXArr),
- mpWrongSpellVector(pWrongSpellVector),
- mpFieldData(pFieldData),
- mpLocale(pLocale),
- maOverlineColor(rOverlineColor),
- maTextLineColor(rTextLineColor),
- mnBiDiLevel(nBiDiLevel),
- mbEndOfLine(bEndOfLine),
- mbEndOfParagraph(bEndOfParagraph),
- mbEndOfBullet(bEndOfBullet)
- {}
-};
-
-class SVX_DLLPUBLIC DrawBulletInfo
-{
-public:
- const GraphicObject maBulletGraphicObject;
- Point maBulletPosition;
- Size maBulletSize;
-
- DrawBulletInfo(
- const GraphicObject& rBulletGraphicObject,
- const Point& rBulletPosition,
- const Size& rBulletSize)
- : maBulletGraphicObject(rBulletGraphicObject),
- maBulletPosition(rBulletPosition),
- maBulletSize(rBulletSize)
- {}
-};
-
-struct SVX_DLLPUBLIC PaintFirstLineInfo
-{
- USHORT mnPara;
- const Point& mrStartPos;
- long mnBaseLineY;
- const Point& mrOrigin;
- short mnOrientation;
- OutputDevice* mpOutDev;
-
- PaintFirstLineInfo( USHORT nPara, const Point& rStartPos, long nBaseLineY, const Point& rOrigin, short nOrientation, OutputDevice* pOutDev )
- : mnPara( nPara ), mrStartPos( rStartPos ), mnBaseLineY( nBaseLineY ), mrOrigin( rOrigin ), mnOrientation( nOrientation ), mpOutDev( pOutDev )
- {}
-};
-
-class SdrPage;
-
-class EditFieldInfo
-{
-private:
- Outliner* pOutliner;
- const SvxFieldItem& rFldItem;
-
- Color* pTxtColor;
- Color* pFldColor;
-
- String aRepresentation;
-
- USHORT nPara;
- xub_StrLen nPos;
- BOOL bSimpleClick;
-
- EditFieldInfo();
- EditFieldInfo( const EditFieldInfo& );
-
- SdrPage* mpSdrPage;
-
-public:
- EditFieldInfo( Outliner* pOutl, const SvxFieldItem& rFItem, USHORT nPa, xub_StrLen nPo )
- : rFldItem( rFItem )
- {
- pOutliner = pOutl;
- nPara = nPa; nPos = nPo;
- pTxtColor = 0; pFldColor = 0; bSimpleClick = FALSE;
- mpSdrPage = 0;
- }
- ~EditFieldInfo()
- {
- delete pTxtColor;
- delete pFldColor;
- }
-
- Outliner* GetOutliner() const { return pOutliner; }
-
- const SvxFieldItem& GetField() const { return rFldItem; }
-
- Color* GetTxtColor() const { return pTxtColor; }
- void SetTxtColor( const Color& rColor )
- { delete pTxtColor; pTxtColor = new Color( rColor ); }
-
- Color* GetFldColor() const { return pFldColor; }
- void SetFldColor( const Color& rColor )
- { delete pFldColor; pFldColor = new Color( rColor ); }
- void ClearFldColor()
- { delete pFldColor; pFldColor = 0; }
-
- USHORT GetPara() const { return nPara; }
- xub_StrLen GetPos() const { return nPos; }
-
- BOOL IsSimpleClick() const { return bSimpleClick; }
- void SetSimpleClick( BOOL bSimple ) { bSimpleClick = bSimple; }
-
- const String& GetRepresentation() const { return aRepresentation; }
- String& GetRepresentation() { return aRepresentation; }
- void SetRepresentation( const String& rStr ) { aRepresentation = rStr; }
-
- void SetSdrPage( SdrPage* pPage ) { mpSdrPage = pPage; }
- SdrPage* GetSdrPage() const { return mpSdrPage; }
-};
-
-struct EBulletInfo
-{
- BOOL bVisible;
- USHORT nType; // see SvxNumberType
- String aText;
- SvxFont aFont;
- Graphic aGraphic;
- USHORT nParagraph;
- Rectangle aBounds;
-
- EBulletInfo() : bVisible( FALSE ), nType( 0 ), nParagraph( EE_PARA_NOT_FOUND ) {}
-};
-
-#define OUTLINERMODE_DONTKNOW 0x0000
-#define OUTLINERMODE_TEXTOBJECT 0x0001
-#define OUTLINERMODE_TITLEOBJECT 0x0002
-#define OUTLINERMODE_OUTLINEOBJECT 0x0003
-#define OUTLINERMODE_OUTLINEVIEW 0x0004
-
-#define OUTLINERMODE_USERMASK 0x00FF
-
-#define OUTLINERMODE_SUBTITLE (0x0100|OUTLINERMODE_TEXTOBJECT)
-#define OUTLINERMODE_NOTE (0x0200|OUTLINERMODE_TEXTOBJECT)
-
-class SVX_DLLPUBLIC Outliner : public SfxBroadcaster
-{
- friend class OutlinerView;
- friend class OutlinerEditEng;
- friend class OutlinerParaObject;
- friend class OLUndoExpand;
- friend class OutlinerUndoChangeDepth;
- friend class OutlinerUndoCheckPara;
- friend class OutlinerUndoChangeParaFlags;
-
- OutlinerEditEng* pEditEngine;
-
- ParagraphList* pParaList;
- ViewList aViewList;
-
- Paragraph* pHdlParagraph;
- ULONG mnFirstSelPage;
- Link aDrawPortionHdl;
- Link aDrawBulletHdl;
- Link aExpandHdl;
- Link aParaInsertedHdl;
- Link aParaRemovingHdl;
- Link aDepthChangedHdl;
- Link aWidthArrReqHdl;
- Link aBeginMovingHdl;
- Link aEndMovingHdl;
- Link aIndentingPagesHdl;
- Link aRemovingPagesHdl;
- Link aFieldClickedHdl;
- Link aCalcFieldValueHdl;
- Link maPaintFirstLineHdl;
- Link maBeginPasteOrDropHdl;
- Link maEndPasteOrDropHdl;
-
- sal_Int16 nDepthChangedHdlPrevDepth;
- USHORT mnDepthChangeHdlPrevFlags;
- sal_Int16 nMaxDepth;
- const sal_Int16 nMinDepth;
- USHORT nFirstPage;
-
- USHORT nOutlinerMode;
-
- BOOL bIsExpanding; // Nur in Expand/Collaps-Hdl gueltig, mal umstellen
- BOOL bFirstParaIsEmpty;
- BOOL bBlockInsCallback;
- BOOL bStrippingPortions;
- BOOL bPasting;
-
- ULONG nDummy;
-
-#ifdef _OUTLINER_CXX
-
- DECL_LINK( ParaVisibleStateChangedHdl, Paragraph* );
- DECL_LINK( BeginMovingParagraphsHdl, MoveParagraphsInfo* );
- DECL_LINK( EndMovingParagraphsHdl, MoveParagraphsInfo* );
- DECL_LINK( BeginPasteOrDropHdl, PasteOrDropInfos* );
- DECL_LINK( EndPasteOrDropHdl, PasteOrDropInfos* );
- DECL_LINK( EditEngineNotifyHdl, EENotify* );
- void ImplCheckParagraphs( USHORT nStart, USHORT nEnd );
- BOOL ImplHasBullet( USHORT nPara ) const;
- Size ImplGetBulletSize( USHORT nPara );
- sal_uInt16 ImplGetNumbering( USHORT nPara, const SvxNumberFormat* pParaFmt );
- void ImplCalcBulletText( USHORT nPara, BOOL bRecalcLevel, BOOL bRecalcChilds );
- String ImplGetBulletText( USHORT nPara );
- void ImplCheckNumBulletItem( USHORT nPara );
- void ImplInitDepth( USHORT nPara, sal_Int16 nDepth, BOOL bCreateUndo, BOOL bUndoAction = FALSE );
- void ImplSetLevelDependendStyleSheet( USHORT nPara, SfxStyleSheet* pLevelStyle = NULL );
-
- void ImplBlockInsertionCallbacks( BOOL b );
-
- void ImplCheckStyleSheet( USHORT nPara, BOOL bReplaceExistingStyle );
- void ImpRecalcBulletIndent( ULONG nPara );
-
- const SvxBulletItem& ImpGetBullet( ULONG nPara, USHORT& );
- void ImpFilterIndents( ULONG nFirstPara, ULONG nLastPara );
- bool ImpConvertEdtToOut( sal_uInt32 nPara, EditView* pView = 0 );
-
- void ImpTextPasted( ULONG nStartPara, USHORT nCount );
- long ImpCalcMaxBulletWidth( USHORT nPara, const SvxBulletItem& rBullet );
- Font ImpCalcBulletFont( USHORT nPara ) const;
- Rectangle ImpCalcBulletArea( USHORT nPara, BOOL bAdjust, BOOL bReturnPaperPos );
- long ImpGetTextIndent( ULONG nPara );
- BOOL ImpCanIndentSelectedPages( OutlinerView* pCurView );
- BOOL ImpCanDeleteSelectedPages( OutlinerView* pCurView );
- BOOL ImpCanDeleteSelectedPages( OutlinerView* pCurView, USHORT nFirstPage, USHORT nPages );
-
- USHORT ImplGetOutlinerMode() const { return nOutlinerMode & OUTLINERMODE_USERMASK; }
- void ImplCheckDepth( sal_Int16& rnDepth ) const;
-#endif
-
-protected:
- void ParagraphInserted( USHORT nParagraph );
- void ParagraphDeleted( USHORT nParagraph );
- void ParaAttribsChanged( USHORT nParagraph );
-
- virtual void StyleSheetChanged( SfxStyleSheet* pStyle );
-
- void InvalidateBullet( Paragraph* pPara, ULONG nPara );
- void PaintBullet( USHORT nPara, const Point& rStartPos,
- const Point& rOrigin, short nOrientation,
- OutputDevice* pOutDev );
-
- // used by OutlinerEditEng. Allows Outliner objects to provide
- // bullet access to the EditEngine.
- virtual const SvxNumberFormat* GetNumberFormat( USHORT nPara ) const;
-
-public:
-
- Outliner( SfxItemPool* pPool, USHORT nOutlinerMode );
- virtual ~Outliner();
-
- void Init( USHORT nOutlinerMode );
- USHORT GetMode() const { return nOutlinerMode; }
-
- void SetVertical( BOOL bVertical );
- BOOL IsVertical() const;
-
- void SetFixedCellHeight( BOOL bUseFixedCellHeight );
- BOOL IsFixedCellHeight() const;
-
- void SetDefaultHorizontalTextDirection( EEHorizontalTextDirection eHTextDir );
- EEHorizontalTextDirection GetDefaultHorizontalTextDirection() const;
-
- USHORT GetScriptType( const ESelection& rSelection ) const;
- LanguageType GetLanguage( USHORT nPara, USHORT nPos ) const;
-
- void SetAsianCompressionMode( USHORT nCompressionMode );
- USHORT GetAsianCompressionMode() const;
-
- void SetKernAsianPunctuation( BOOL bEnabled );
- BOOL IsKernAsianPunctuation() const;
-
- void SetAddExtLeading( BOOL b );
- BOOL IsAddExtLeading() const;
-
- ULONG InsertView( OutlinerView* pView, ULONG nIndex=LIST_APPEND);
- OutlinerView* RemoveView( OutlinerView* pView );
- OutlinerView* RemoveView( ULONG nIndex );
- OutlinerView* GetView( ULONG nIndex ) const;
- ULONG GetViewCount() const;
-
- Paragraph* Insert( const String& rText, ULONG nAbsPos = LIST_APPEND, sal_Int16 nDepth = 0 );
- void SetText( const OutlinerParaObject& );
- void AddText( const OutlinerParaObject& );
- void SetText( const String& rText, Paragraph* pParagraph );
- String GetText( Paragraph* pPara, ULONG nParaCount=1 ) const;
-
- OutlinerParaObject* CreateParaObject( USHORT nStartPara = 0, USHORT nParaCount = 0xFFFF ) const;
-
- const SfxItemSet& GetEmptyItemSet() const;
-
- void SetRefMapMode( const MapMode& );
- MapMode GetRefMapMode() const;
-
- void SetBackgroundColor( const Color& rColor );
- Color GetBackgroundColor() const;
-
- sal_Int16 GetMinDepth() const { return -1; }
-
- void SetMaxDepth( sal_Int16 nDepth, BOOL bCheckParas = FALSE );
- sal_Int16 GetMaxDepth() const { return nMaxDepth; }
-
- void SetUpdateMode( BOOL bUpdate );
- BOOL GetUpdateMode() const;
-
- void Clear();
-
- void RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich );
-
- ULONG GetParagraphCount() const;
- Paragraph* GetParagraph( ULONG nAbsPos ) const;
-
- BOOL HasParent( Paragraph* pParagraph ) const;
- BOOL HasChilds( Paragraph* pParagraph ) const;
- ULONG GetChildCount( Paragraph* pParent ) const;
- BOOL IsExpanded( Paragraph* pPara ) const;
-// Paragraph* GetParagraph( Paragraph* pParent, ULONG nRelPos ) const;
- Paragraph* GetParent( Paragraph* pParagraph ) const;
-// ULONG GetRelPos( Paragraph* pParent, Paragraph* pPara ) const;
- ULONG GetAbsPos( Paragraph* pPara );
-
- sal_Int16 GetDepth( ULONG nPara ) const;
- void SetDepth( Paragraph* pParagraph, sal_Int16 nNewDepth );
-
- void SetVisible( Paragraph* pPara, BOOL bVisible );
- BOOL IsVisible( Paragraph* pPara ) const { return pPara->IsVisible(); }
-
- void EnableUndo( BOOL bEnable );
- BOOL IsUndoEnabled() const;
- void UndoActionStart( USHORT nId );
- void UndoActionEnd( USHORT nId );
- void InsertUndo( EditUndo* pUndo );
- BOOL IsInUndo();
-
- void ClearModifyFlag();
- BOOL IsModified() const;
-
- Paragraph* GetHdlParagraph() const { return pHdlParagraph; }
- BOOL IsExpanding() const { return bIsExpanding; }
-
- virtual void ExpandHdl();
- void SetExpandHdl( const Link& rLink ) { aExpandHdl = rLink; }
- Link GetExpandHdl() const { return aExpandHdl; }
-
- virtual void ParagraphInsertedHdl();
- void SetParaInsertedHdl(const Link& rLink){aParaInsertedHdl=rLink;}
- Link GetParaInsertedHdl() const { return aParaInsertedHdl; }
-
- virtual void ParagraphRemovingHdl();
- void SetParaRemovingHdl(const Link& rLink){aParaRemovingHdl=rLink;}
- Link GetParaRemovingHdl() const { return aParaRemovingHdl; }
-
- virtual void DepthChangedHdl();
- void SetDepthChangedHdl(const Link& rLink){aDepthChangedHdl=rLink;}
- Link GetDepthChangedHdl() const { return aDepthChangedHdl; }
- sal_Int16 GetPrevDepth() const { return nDepthChangedHdlPrevDepth; }
- USHORT GetPrevFlags() const { return mnDepthChangeHdlPrevFlags; }
-
- virtual long RemovingPagesHdl( OutlinerView* );
- void SetRemovingPagesHdl(const Link& rLink){aRemovingPagesHdl=rLink;}
- Link GetRemovingPagesHdl() const { return aRemovingPagesHdl; }
- virtual long IndentingPagesHdl( OutlinerView* );
- void SetIndentingPagesHdl(const Link& rLink){aIndentingPagesHdl=rLink;}
- Link GetIndentingPagesHdl() const { return aIndentingPagesHdl; }
- // nur gueltig in den beiden oberen Handlern
- USHORT GetSelPageCount() const { return nDepthChangedHdlPrevDepth; }
- // nur gueltig in den beiden oberen Handlern
- ULONG GetFirstSelPage() const { return mnFirstSelPage; }
-
- void SetCalcFieldValueHdl(const Link& rLink ) { aCalcFieldValueHdl= rLink; }
- Link GetCalcFieldValueHdl() const { return aCalcFieldValueHdl; }
-
- void SetFieldClickedHdl(const Link& rLink ) { aFieldClickedHdl= rLink; }
- Link GetFieldClickedHdl() const { return aFieldClickedHdl; }
-
- void SetDrawPortionHdl(const Link& rLink){aDrawPortionHdl=rLink;}
- Link GetDrawPortionHdl() const { return aDrawPortionHdl; }
-
- void SetDrawBulletHdl(const Link& rLink){aDrawBulletHdl=rLink;}
- Link GetDrawBulletHdl() const { return aDrawBulletHdl; }
-
- void SetPaintFirstLineHdl(const Link& rLink) { maPaintFirstLineHdl = rLink; }
- Link GetPaintFirstLineHdl() const { return maPaintFirstLineHdl; }
-
- void SetModifyHdl( const Link& rLink );
- Link GetModifyHdl() const;
-
- void SetNotifyHdl( const Link& rLink );
- Link GetNotifyHdl() const;
-
- void SetStatusEventHdl( const Link& rLink );
- Link GetStatusEventHdl() const;
-
- void Draw( OutputDevice* pOutDev, const Rectangle& rOutRect );
- void Draw( OutputDevice* pOutDev, const Rectangle& rOutRect, const Point& rStartDocPos );
- void Draw( OutputDevice* pOutDev, const Point& rStartPos, short nOrientation = 0 );
-
- const Size& GetPaperSize() const;
- void SetPaperSize( const Size& rSize );
-
- void SetFirstPageNumber( USHORT n ) { nFirstPage = n; }
- USHORT GetFirstPageNumber() const { return nFirstPage; }
-
- void SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon );
- void SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon, const basegfx::B2DPolyPolygon* pLinePolyPolygon);
- void ClearPolygon();
- const PolyPolygon* GetPolygon();
-
- const Size& GetMinAutoPaperSize() const;
- void SetMinAutoPaperSize( const Size& rSz );
-
- const Size& GetMaxAutoPaperSize() const;
- void SetMaxAutoPaperSize( const Size& rSz );
-
- void SetDefTab( USHORT nTab );
- USHORT GetDefTab() const;
-
- BOOL IsFlatMode() const;
- void SetFlatMode( BOOL bFlat );
-
- void EnableAutoColor( BOOL b );
- BOOL IsAutoColorEnabled() const;
-
- void ForceAutoColor( BOOL b );
- BOOL IsForceAutoColor() const;
-
- EBulletInfo GetBulletInfo( USHORT nPara );
-
- void SetWordDelimiters( const String& rDelimiters );
- String GetWordDelimiters() const;
- String GetWord( USHORT nPara, xub_StrLen nIndex );
-
- void StripPortions();
-
- // #101498#
- virtual void DrawingText(
- const Point& rStartPos, const String& rText, USHORT nTextStart, USHORT nTextLen,
- const sal_Int32* pDXArray, const SvxFont& rFont, USHORT nPara, xub_StrLen nIndex, BYTE 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);
-
- Size CalcTextSize();
-
- Point GetDocPos( Paragraph* pPara );
-
- void SetStyleSheetPool( SfxStyleSheetPool* pSPool );
- SfxStyleSheetPool* GetStyleSheetPool();
-
- BOOL IsInSelectionMode() const;
-
- void SetStyleSheet( ULONG nPara, SfxStyleSheet* pStyle );
- SfxStyleSheet* GetStyleSheet( ULONG nPara );
-
- void SetParaAttribs( USHORT nPara, const SfxItemSet& );
- SfxItemSet GetParaAttribs( USHORT nPara );
-
- void Remove( Paragraph* pPara, ULONG nParaCount );
- BOOL Expand( Paragraph* );
- BOOL Collapse( Paragraph* );
-
- void SetParaFlag( Paragraph* pPara, sal_uInt16 nFlag );
- void RemoveParaFlag( Paragraph* pPara, sal_uInt16 nFlag );
- bool HasParaFlag( const Paragraph* pPara, sal_uInt16 nFlag ) const;
-
- // gibt ein Array mit den Bulletbreiten der n Einrueckebenen
- // zurueck. Letzter Wert muss -1 sein. Wird vom Outliner geloescht.
- Link GetWidthArrReqHdl() const{ return aWidthArrReqHdl; }
- void SetWidthArrReqHdl(const Link& rLink){aWidthArrReqHdl=rLink; }
-
- void SetControlWord( ULONG nWord );
- ULONG GetControlWord() const;
-
- Link GetBeginMovingHdl() const { return aBeginMovingHdl; }
- void SetBeginMovingHdl(const Link& rLink) {aBeginMovingHdl=rLink;}
- Link GetEndMovingHdl() const {return aEndMovingHdl;}
- void SetEndMovingHdl( const Link& rLink){aEndMovingHdl=rLink;}
-
- ULONG GetLineCount( ULONG nParagraph ) const;
- USHORT GetLineLen( ULONG nParagraph, USHORT nLine ) const;
- ULONG GetLineHeight( ULONG nParagraph, ULONG nLine = 0 );
-
- // nFormat muss ein Wert aus dem enum EETextFormat sein (wg.CLOOKS)
- ULONG Read( SvStream& rInput, const String& rBaseURL, USHORT, SvKeyValueIterator* pHTTPHeaderAttrs = NULL );
-
- SfxUndoManager& GetUndoManager();
-
- void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel );
- void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel );
- void QuickInsertLineBreak( const ESelection& rSel );
-
- // nur fuer EditEngine-Modus
- void QuickInsertText( const String& rText, const ESelection& rSel );
- void QuickDelete( const ESelection& rSel );
- void QuickRemoveCharAttribs( USHORT nPara, USHORT nWhich = 0 );
- void QuickFormatDoc( BOOL bFull = FALSE );
-
- BOOL UpdateFields();
- void RemoveFields( BOOL bKeepFieldText, TypeId aType = NULL );
-
- virtual void FieldClicked( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos );
- virtual void FieldSelected( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos );
- virtual String CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos, Color*& rTxtColor, Color*& rFldColor );
-
- void SetSpeller( ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XSpellChecker1 > &xSpeller );
- ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XSpellChecker1 >
- GetSpeller();
- ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XHyphenator >
- GetHyphenator() const;
- void SetHyphenator( ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XHyphenator >& xHyph );
-
- void SetForbiddenCharsTable( vos::ORef xForbiddenChars );
- vos::ORef GetForbiddenCharsTable() const;
-
- // Depricated
- void SetDefaultLanguage( LanguageType eLang );
- LanguageType GetDefaultLanguage() const;
-
- BOOL HasOnlineSpellErrors() const;
- void CompleteOnlineSpelling();
-
- EESpellState HasSpellErrors();
- BOOL HasText( const SvxSearchItem& rSearchItem );
- virtual BOOL SpellNextDocument();
-
- // for text conversion
- sal_Bool HasConvertibleTextPortion( LanguageType nLang );
- virtual BOOL ConvertNextDocument();
-
- void SetEditTextObjectPool( SfxItemPool* pPool );
- SfxItemPool* GetEditTextObjectPool() const;
-
- void SetRefDevice( OutputDevice* pRefDev );
- OutputDevice* GetRefDevice() const;
-
- USHORT GetFirstLineOffset( ULONG nParagraph );
-
- ULONG GetTextHeight() const;
- ULONG GetTextHeight( ULONG nParagraph ) const;
- Point GetDocPosTopLeft( ULONG nParagraph );
- Point GetDocPos( const Point& rPaperPos ) const;
- BOOL IsTextPos( const Point& rPaperPos, USHORT nBorder = 0 );
- BOOL IsTextPos( const Point& rPaperPos, USHORT nBorder, BOOL* pbBuuletPos );
-
- void SetGlobalCharStretching( USHORT nX = 100, USHORT nY = 100 );
- void GetGlobalCharStretching( USHORT& rX, USHORT& rY );
- void DoStretchChars( USHORT nX, USHORT nY );
- void EraseVirtualDevice();
-
- void SetBigTextObjectStart( USHORT nStartAtPortionCount );
- USHORT GetBigTextObjectStart() const;
- BOOL ShouldCreateBigTextObject() const;
-
- const EditEngine& GetEditEngine() const { return *((EditEngine*)pEditEngine); }
-
- // this is needed for StarOffice Api
- void SetLevelDependendStyleSheet( USHORT nPara );
-
- USHORT GetOutlinerMode() const { return nOutlinerMode & OUTLINERMODE_USERMASK; }
-
- 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 bIsGrammarChecking );
- void EndSpelling();
-
- /** 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;
-
- /** sets a link that is called before a drop or paste operation. */
- void SetBeginPasteOrDropHdl( const Link& rLink );
- Link GetBeginPasteOrDropHdl() const { return maBeginPasteOrDropHdl; }
-
- /** sets a link that is called after a drop or paste operation. */
- void SetEndPasteOrDropHdl( const Link& rLink );
- Link GetEndPasteOrDropHdl() const { return maEndPasteOrDropHdl; }
-
- virtual sal_Int16 GetNumberingStartValue( sal_uInt16 nPara );
- virtual void SetNumberingStartValue( sal_uInt16 nPara, sal_Int16 nNumberingStartValue );
-
- virtual sal_Bool IsParaIsNumberingRestart( sal_uInt16 nPara );
- virtual void SetParaIsNumberingRestart( sal_uInt16 nPara, sal_Bool bParaIsNumberingRestart );
-};
-
-#endif
-
diff --git a/svx/inc/svx/outlobj.hxx b/svx/inc/svx/outlobj.hxx
deleted file mode 100644
index 0311fa914422..000000000000
--- a/svx/inc/svx/outlobj.hxx
+++ /dev/null
@@ -1,99 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: outlobj.hxx,v $
- * $Revision: 1.5.78.1 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _OUTLOBJ_HXX
-#define _OUTLOBJ_HXX
-
-//////////////////////////////////////////////////////////////////////////////
-
-#include
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-class EditTextObject;
-class ImplOutlinerParaObject;
-
-//////////////////////////////////////////////////////////////////////////////
-
-class SVX_DLLPUBLIC OutlinerParaObject
-{
-private:
- ImplOutlinerParaObject* mpImplOutlinerParaObject;
-
- void ImplMakeUnique();
-
-public:
- // constructors/destructor
- OutlinerParaObject(
- const EditTextObject& rEditTextObject,
- const ParagraphDataVector& rParagraphDataVector = ParagraphDataVector(),
- bool bIsEditDoc = true);
- OutlinerParaObject(const OutlinerParaObject& rCandidate);
- ~OutlinerParaObject();
-
- // assignment operator
- OutlinerParaObject& operator=(const OutlinerParaObject& rCandidate);
-
- // compare operator
- bool operator==(const OutlinerParaObject& rCandidate) const;
- bool operator!=(const OutlinerParaObject& rCandidate) const { return !operator==(rCandidate); }
-
- // #i102062#
- bool isWrongListEqual(const OutlinerParaObject& rCompare) const;
-
- // outliner mode access
- sal_uInt16 GetOutlinerMode() const;
- void SetOutlinerMode(sal_uInt16 nNew);
-
- // vertical access
- bool IsVertical() const;
- void SetVertical(bool bNew);
-
- // data read access
- sal_uInt32 Count() const;
- sal_Int16 GetDepth(sal_uInt16 nPara) const;
- const EditTextObject& GetTextObject() const;
- bool IsEditDoc() const;
- const ParagraphData& GetParagraphData(sal_uInt32 nIndex) const;
-
- // portion info support
- void ClearPortionInfo();
-
- // StyleSheet support
- bool ChangeStyleSheets(const XubString& rOldName, SfxStyleFamily eOldFamily, const XubString& rNewName, SfxStyleFamily eNewFamily);
- void ChangeStyleSheetName(SfxStyleFamily eFamily, const XubString& rOldName, const XubString& rNewName);
- void SetStyleSheets(sal_uInt16 nLevel, const XubString rNewName, const SfxStyleFamily& rNewFamily);
-};
-
-//////////////////////////////////////////////////////////////////////////////
-
-#endif
diff --git a/svx/inc/svx/paperinf.hxx b/svx/inc/svx/paperinf.hxx
deleted file mode 100644
index 9e2503a56ea8..000000000000
--- a/svx/inc/svx/paperinf.hxx
+++ /dev/null
@@ -1,76 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: paperinf.hxx,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_PAPERINF_HXX
-#define _SVX_PAPERINF_HXX
-
-// INCLUDE ---------------------------------------------------------------
-
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-// forward ---------------------------------------------------------------
-
-class Printer;
-class Size;
-class String;
-
-// class SvxPaperInfo -----------------------------------------------------
-
-class SVX_DLLPUBLIC SvxPaperInfo
-{
-public:
- static Size GetDefaultPaperSize( MapUnit eUnit = MAP_TWIP );
- static Size GetPaperSize( Paper ePaper, MapUnit eUnit = MAP_TWIP );
- static Size GetPaperSize( const Printer* pPrinter );
- static Paper GetSvxPaper( const Size &rSize, MapUnit eUnit = MAP_TWIP, bool bSloppy = FALSE );
- static long GetSloppyPaperDimension( long nSize, MapUnit eUnit = MAP_TWIP );
- static String GetName( Paper ePaper );
-};
-
-// INLINE -----------------------------------------------------------------
-
-inline Size &Swap(Size &rSize)
-{
- const long lVal = rSize.Width();
- rSize.Width() = rSize.Height();
- rSize.Height() = lVal;
- return rSize;
-}
-
-inline Size &LandscapeSwap(Size &rSize)
-{
- if ( rSize.Height() > rSize.Width() )
- Swap( rSize );
- return rSize;
-}
-
-#endif
diff --git a/svx/inc/svx/paragraphdata.hxx b/svx/inc/svx/paragraphdata.hxx
deleted file mode 100644
index ddd98a15e176..000000000000
--- a/svx/inc/svx/paragraphdata.hxx
+++ /dev/null
@@ -1,75 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: outlobj.hxx,v $
- * $Revision: 1.5.78.1 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _PARAGRAPH_DATA_HXX
-#define _PARAGRAPH_DATA_HXX
-
-#include
-#include
-
-//////////////////////////////////////////////////////////////////////////////
-// MT 07/00: Only for internal use, oder some kind like hPara for the few
-// functions where you need it outside ( eg. moving paragraphs... )
-//
-// AW: Unfortunately NOT only local (formally in outliner.hxx), but also
-// used in outlobj.hxx. Moved to own header
-
-class ParagraphData
-{
- friend class Paragraph;
- friend class OutlinerParaObject;
-
-protected:
- sal_Int16 nDepth;
- sal_Int16 mnNumberingStartValue;
- sal_Bool mbParaIsNumberingRestart;
-
-public:
- ParagraphData( const ParagraphData& );
- ParagraphData();
-
- ParagraphData& operator=( const ParagraphData& );
-
- // compare operator
- bool operator==(const ParagraphData& rCandidate) const;
-
- // data read access
- sal_Int16 getDepth() const { return nDepth; }
-};
-
-//////////////////////////////////////////////////////////////////////////////
-
-typedef ::std::vector< ParagraphData > ParagraphDataVector;
-
-//////////////////////////////////////////////////////////////////////////////
-
-#endif // _PARAGRAPH_DATA_HXX
-
-// eof
diff --git a/svx/inc/svx/paravertalignitem.hxx b/svx/inc/svx/paravertalignitem.hxx
deleted file mode 100644
index a7026422cc97..000000000000
--- a/svx/inc/svx/paravertalignitem.hxx
+++ /dev/null
@@ -1,86 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: paravertalignitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_PARAVERTALIGNITEM_HXX
-#define _SVX_PARAVERTALIGNITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// class SvxParaVertAlignItem ----------------------------------------------
-
-/* [Description]
-
- This item defines the character alignment in the lines of a paragraph.
- Currently the alignment can be none (i.e. baseline), top, center or bottom.
-
-*/
-
-class SVX_DLLPUBLIC SvxParaVertAlignItem : public SfxUInt16Item
-{
-public:
- enum { AUTOMATIC, BASELINE, TOP, CENTER, BOTTOM };
- TYPEINFO();
-
- SvxParaVertAlignItem( sal_uInt16 nValue /*= 0*/,
- const sal_uInt16 nId );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream & rStrm, USHORT nIVer) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText,
- const IntlWrapper * = 0 ) const;
-
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId );
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId ) const;
-
- inline SvxParaVertAlignItem& operator=( const SvxParaVertAlignItem& rItem )
- {
- SetValue( rItem.GetValue() );
- return *this;
- }
-
- virtual int operator==( const SfxPoolItem& ) const;
-
-};
-
-#endif
-
diff --git a/svx/inc/svx/pbinitem.hxx b/svx/inc/svx/pbinitem.hxx
deleted file mode 100644
index f6a490cd8316..000000000000
--- a/svx/inc/svx/pbinitem.hxx
+++ /dev/null
@@ -1,83 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: pbinitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_PBINITEM_HXX
-#define _SVX_PBINITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// define ----------------------------------------------------------------
-
-#define PAPERBIN_PRINTER_SETTINGS ((BYTE)0xFF)
-
-// class SvxPaperBinItem -------------------------------------------------
-
-/* [Beschreibung]
-
- Dieses Item beschreibt die Auswahl eines Papierschachts des Drucker.
-*/
-
-class SVX_DLLPUBLIC SvxPaperBinItem : public SfxByteItem
-{
-public:
- TYPEINFO();
-
- inline SvxPaperBinItem( const USHORT nId ,
- const BYTE nTray = PAPERBIN_PRINTER_SETTINGS );
- inline SvxPaperBinItem &operator=( const SvxPaperBinItem &rCpy );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream &, USHORT ) const;
- virtual SvStream& Store( SvStream &, USHORT nItemVersion ) const;
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-};
-
-inline SvxPaperBinItem::SvxPaperBinItem( const USHORT nId, const BYTE nT )
- : SfxByteItem( nId, nT )
-{}
-
-inline SvxPaperBinItem &SvxPaperBinItem::operator=(
- const SvxPaperBinItem &rCpy )
-{
- SetValue( rCpy.GetValue() );
- return *this;
-}
-
-#endif
-
diff --git a/svx/inc/svx/pmdlitem.hxx b/svx/inc/svx/pmdlitem.hxx
deleted file mode 100644
index edbf627c516b..000000000000
--- a/svx/inc/svx/pmdlitem.hxx
+++ /dev/null
@@ -1,92 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: pmdlitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_PMDLITEM_HXX
-#define _SVX_PMDLITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// class SvxPageModelItem ------------------------------------------------
-
-/*
-[Beschreibung]
-Dieses Item enthaelt einen Namen einer Seitenvorlage.
-*/
-
-class SVX_DLLPUBLIC SvxPageModelItem : public SfxStringItem
-{
-private:
- BOOL bAuto;
-
-public:
- TYPEINFO();
-
- inline SvxPageModelItem( USHORT nWh );
- inline SvxPageModelItem( const String& rModel, BOOL bA /*= FALSE*/,
- USHORT nWh );
- inline SvxPageModelItem& operator=( const SvxPageModelItem& rModel );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
- BOOL IsAuto() const { return bAuto; }
-};
-
-inline SvxPageModelItem::SvxPageModelItem( USHORT nWh )
- : bAuto( FALSE )
-{
- SetWhich( nWh );
-}
-
-inline SvxPageModelItem::SvxPageModelItem( const String& rModel, BOOL bA,
- USHORT nWh ) :
- SfxStringItem( nWh, rModel ),
- bAuto( bA )
-{}
-
-inline SvxPageModelItem& SvxPageModelItem::operator=( const SvxPageModelItem& rModel )
-{
- SetValue( rModel.GetValue() );
- return *this;
-}
-
-#endif
-
diff --git a/svx/inc/svx/postitem.hxx b/svx/inc/svx/postitem.hxx
deleted file mode 100644
index b662f64116b5..000000000000
--- a/svx/inc/svx/postitem.hxx
+++ /dev/null
@@ -1,95 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: postitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_POSTITEM_HXX
-#define _SVX_POSTITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxPostureItem --------------------------------------------------
-
-/*
- [Beschreibung]
- Dieses Item beschreibt die Font-Stellung (Italic)
-*/
-
-class SVX_DLLPUBLIC SvxPostureItem : public SfxEnumItem
-{
-public:
- TYPEINFO();
-
- SvxPostureItem( const FontItalic ePost /*= ITALIC_NONE*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem + SwEnumItem
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetValueCount() const;
-
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual int HasBoolValue() const;
- virtual BOOL GetBoolValue() const;
- virtual void SetBoolValue( BOOL bVal );
-
- inline SvxPostureItem& operator=(const SvxPostureItem& rPost) {
- SetValue( rPost.GetValue() );
- return *this;
- }
-
- // enum cast
- FontItalic GetPosture() const
- { return (FontItalic)GetValue(); }
- void SetPosture( FontItalic eNew )
- { SetValue( (USHORT)eNew ); }
-};
-
-#endif // #ifndef _SVX_POSTITEM_HXX
-
diff --git a/svx/inc/svx/prszitem.hxx b/svx/inc/svx/prszitem.hxx
deleted file mode 100644
index f075358f7a24..000000000000
--- a/svx/inc/svx/prszitem.hxx
+++ /dev/null
@@ -1,74 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: prszitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_PRSZITEM_HXX
-#define _SVX_PRSZITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// class SvxPropSizeItem -------------------------------------------------
-
-/* [Beschreibung]
-
- Dieses Item beschreibt die relative Schriftgroesse.
-*/
-
-class SVX_DLLPUBLIC SvxPropSizeItem : public SfxUInt16Item
-{
-public:
- TYPEINFO();
-
- SvxPropSizeItem( const USHORT nPercent /*= 100*/,
- const USHORT nID );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- inline SvxPropSizeItem& operator=(const SvxPropSizeItem& rPropSize)
- {
- SetValue( rPropSize.GetValue() );
- return *this;
- }
-};
-
-#endif
-
diff --git a/svx/inc/svx/scriptspaceitem.hxx b/svx/inc/svx/scriptspaceitem.hxx
deleted file mode 100644
index 660d3c9c2019..000000000000
--- a/svx/inc/svx/scriptspaceitem.hxx
+++ /dev/null
@@ -1,76 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: scriptspaceitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_SRIPTSPACEITEM_HXX
-#define _SVX_SRIPTSPACEITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// class SvxScriptSpaceItem ----------------------------------------------
-
-/* [Description]
-
- This item describe the scriptype of the selected text and is only
- used for the user interface.
-*/
-
-class SVX_DLLPUBLIC SvxScriptSpaceItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxScriptSpaceItem( sal_Bool bOn /*= sal_False*/,
- const sal_uInt16 nId );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText,
- const IntlWrapper * = 0 ) const;
-
- inline SvxScriptSpaceItem& operator=(const SvxScriptSpaceItem& rItem )
- {
- SetValue( rItem.GetValue() );
- return *this;
- }
-
-};
-
-#endif
-
diff --git a/svx/inc/svx/scripttypeitem.hxx b/svx/inc/svx/scripttypeitem.hxx
deleted file mode 100644
index 75af8bcd8397..000000000000
--- a/svx/inc/svx/scripttypeitem.hxx
+++ /dev/null
@@ -1,97 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: scripttypeitem.hxx,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_SCRIPTTYPEITEM_HXX
-#define _SVX_SCRIPTTYPEITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include
-#include "svx/svxdllapi.h"
-
-// class SvxScriptTypeItem ----------------------------------------------
-
-/* [Description]
-
- This item describe the scriptype of the selected text and is only
- used for the user interface.
-*/
-
-SVX_DLLPUBLIC USHORT GetI18NScriptTypeOfLanguage( USHORT nLang );
-USHORT GetItemScriptType( short nI18NType );
-short GetI18NScriptType( USHORT nItemType );
-
-class SvxScriptTypeItem : public SfxUInt16Item
-{
-public:
- TYPEINFO();
-
- SvxScriptTypeItem( sal_uInt16 nType = SCRIPTTYPE_LATIN );
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
-
-};
-
-class SVX_DLLPUBLIC SvxScriptSetItem : public SfxSetItem
-{
-public:
- TYPEINFO();
-
- SvxScriptSetItem( USHORT nSlotId, SfxItemPool& rPool );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream &, USHORT nVersion ) const;
-
- static const SfxPoolItem* GetItemOfScriptSet( const SfxItemSet& rSet,
- USHORT nWhich );
- inline const SfxPoolItem* GetItemOfScriptSet( USHORT _nWhich ) const
- { return SvxScriptSetItem::GetItemOfScriptSet( GetItemSet(), _nWhich ); }
-
- static const SfxPoolItem* GetItemOfScript( USHORT nSlotId, const SfxItemSet& rSet, USHORT nScript );
-
- const SfxPoolItem* GetItemOfScript( USHORT nScript ) const;
-
- void PutItemForScriptType( USHORT nScriptType, const SfxPoolItem& rItem );
-
- static void GetWhichIds( USHORT nSlotId, const SfxItemSet& rSet, USHORT& rLatin, USHORT& rAsian, USHORT& rComplex);
-
- void GetWhichIds( USHORT& rLatin, USHORT& rAsian, USHORT& rComplex) const;
-
- static void GetSlotIds( USHORT nSlotId, USHORT& rLatin, USHORT& rAsian,
- USHORT& rComplex );
- inline void GetSlotIds( USHORT& rLatin, USHORT& rAsian,
- USHORT& rComplex ) const
- { GetSlotIds( Which(), rLatin, rAsian, rComplex ); }
-};
-
-#endif
-
diff --git a/svx/inc/svx/serviceinfohelper.hxx b/svx/inc/svx/serviceinfohelper.hxx
deleted file mode 100644
index 076a87ed3e05..000000000000
--- a/svx/inc/svx/serviceinfohelper.hxx
+++ /dev/null
@@ -1,63 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: unoprov.hxx,v $
- * $Revision: 1.5 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef SVX_UNOPROV_HXX
-#define SVX_UNOPROV_HXX
-
-#include
-#include "svx/svxdllapi.h"
-
-/***********************************************************************
-* class SvxServiceInfoHelper *
-***********************************************************************/
-
-/** this class provides a basic helper for classes suporting the XServiceInfo Interface.
- *
- * you can overload the getSupprotedServiceNames
to implement a XServiceInfo.
- * you can use the static helper methods to combine your services with that of parent
- * or aggregatet classes.
- */
-class SVX_DLLPUBLIC SvxServiceInfoHelper : public ::com::sun::star::lang::XServiceInfo
-{
-public:
- // XServiceInfo
- virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
-
- // helper
- static ::com::sun::star::uno::Sequence< ::rtl::OUString > concatSequences( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rSeq1,
- const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rSeq2 ) throw();
- static void addToSequence( ::com::sun::star::uno::Sequence< ::rtl::OUString >& rSeq, sal_uInt16 nServices, /* sal_Char* */... ) throw();
- static sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& SupportedServices ) throw();
-};
-
-#endif
-
diff --git a/svx/inc/svx/shaditem.hxx b/svx/inc/svx/shaditem.hxx
deleted file mode 100644
index 90c33aef2410..000000000000
--- a/svx/inc/svx/shaditem.hxx
+++ /dev/null
@@ -1,117 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: shaditem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_SHADITEM_HXX
-#define _SVX_SHADITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxShadowItem ---------------------------------------------------
-
-/* [Beschreibung]
-
- Dieses Item beschreibt ein Schattenattribut (Farbe, Breite, Lage).
-*/
-
-#define SHADOW_TOP ((USHORT)0)
-#define SHADOW_BOTTOM ((USHORT)1)
-#define SHADOW_LEFT ((USHORT)2)
-#define SHADOW_RIGHT ((USHORT)3)
-
-class SVX_DLLPUBLIC SvxShadowItem : public SfxEnumItemInterface
-{
- Color aShadowColor;
- USHORT nWidth;
- SvxShadowLocation eLocation;
-public:
- TYPEINFO();
-
- SvxShadowItem( const USHORT nId ,
- const Color *pColor = 0, const USHORT nWidth = 100 /*5pt*/,
- const SvxShadowLocation eLoc = SVX_SHADOW_NONE );
-
- inline SvxShadowItem& operator=( const SvxShadowItem& rFmtShadow );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
- virtual int ScaleMetrics( long nMult, long nDiv );
- virtual int HasMetrics() const;
-
- const Color& GetColor() const { return aShadowColor;}
- void SetColor( const Color &rNew ) { aShadowColor = rNew; }
-
- USHORT GetWidth() const { return nWidth; }
- SvxShadowLocation GetLocation() const { return eLocation; }
-
- void SetWidth( USHORT nNew ) { nWidth = nNew; }
- void SetLocation( SvxShadowLocation eNew ) { eLocation = eNew; }
-
- //Breite des Schattens auf der jeweiligen Seite berechnen.
- USHORT CalcShadowSpace( USHORT nShadow ) const;
-
- virtual USHORT GetValueCount() const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetEnumValue() const;
- virtual void SetEnumValue( USHORT nNewVal );
-};
-
-inline SvxShadowItem &SvxShadowItem::operator=( const SvxShadowItem& rFmtShadow )
-{
- aShadowColor = rFmtShadow.aShadowColor;
- nWidth = rFmtShadow.GetWidth();
- eLocation = rFmtShadow.GetLocation();
- return *this;
-}
-
-#endif // #ifndef _SVX_SHADITEM_HXX
-
diff --git a/svx/inc/svx/shdditem.hxx b/svx/inc/svx/shdditem.hxx
deleted file mode 100644
index f37f58ba048c..000000000000
--- a/svx/inc/svx/shdditem.hxx
+++ /dev/null
@@ -1,80 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: shdditem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_SHDDITEM_HXX
-#define _SVX_SHDDITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxShadowedItem -------------------------------------------------
-
-/*
- [Beschreibung]
- Dieses Item beschreibt, ob und wie schattiert ist.
-*/
-
-class SVX_DLLPUBLIC SvxShadowedItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
-
- SvxShadowedItem( const BOOL bShadowed /*= FALSE*/,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- inline SvxShadowedItem& operator=(const SvxShadowedItem& rShadow) {
- SetValue(rShadow.GetValue());
- return *this;
- }
-
-};
-
-#endif
-
diff --git a/svx/inc/svx/sizeitem.hxx b/svx/inc/svx/sizeitem.hxx
deleted file mode 100644
index d99ed038a600..000000000000
--- a/svx/inc/svx/sizeitem.hxx
+++ /dev/null
@@ -1,89 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: sizeitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_SIZEITEM_HXX
-#define _SVX_SIZEITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// class SvxSizeItem -----------------------------------------------------
-
-/*
-[Beschreibung]
-Dieses Item beschreibt eine zweidimensionale Groesse (Size).
-*/
-
-class SVX_DLLPUBLIC SvxSizeItem : public SfxPoolItem
-{
-
- Size aSize;
-
-public:
- TYPEINFO();
-
- SvxSizeItem( const USHORT nId );
- SvxSizeItem( const USHORT nId, const Size& rSize);
-
- inline SvxSizeItem& operator=( const SvxSizeItem &rCpy );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
- virtual int ScaleMetrics( long nMult, long nDiv );
- virtual int HasMetrics() const;
-
- const Size& GetSize() const { return aSize; }
- void SetSize(const Size& rSize) { aSize = rSize; }
-};
-
-inline SvxSizeItem& SvxSizeItem::operator=( const SvxSizeItem &rCpy )
-{
- aSize = rCpy.aSize;
- return *this;
-}
-
-#endif
-
diff --git a/svx/inc/svx/spltitem.hxx b/svx/inc/svx/spltitem.hxx
deleted file mode 100644
index 7cf18a02ca93..000000000000
--- a/svx/inc/svx/spltitem.hxx
+++ /dev/null
@@ -1,87 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: spltitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_SPLTITEM_HXX
-#define _SVX_SPLTITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxFmtSplitItem -------------------------------------------------
-
-/*
-[Beschreibung]
-Dieses Item beschreibt eine logische Variable "Absatz trennen ja oder nein".
-*/
-
-class SVX_DLLPUBLIC SvxFmtSplitItem : public SfxBoolItem
-{
-public:
- TYPEINFO();
- ~SvxFmtSplitItem();
-
- inline SvxFmtSplitItem( const BOOL bSplit /*= TRUE*/,
- const USHORT nWh );
- inline SvxFmtSplitItem& operator=( const SvxFmtSplitItem& rSplit );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT ) const;
- virtual SvStream& Store( SvStream& , USHORT nItemVersion ) const;
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-};
-
-inline SvxFmtSplitItem::SvxFmtSplitItem( const BOOL bSplit, const USHORT nWh ) :
- SfxBoolItem( nWh, bSplit )
-{}
-
-inline SvxFmtSplitItem& SvxFmtSplitItem::operator=(
- const SvxFmtSplitItem& rSplit )
-{
- SetValue( rSplit.GetValue() );
- return *this;
-}
-
-#endif
-
diff --git a/svx/inc/svx/splwrap.hxx b/svx/inc/svx/splwrap.hxx
deleted file mode 100644
index 731e2ba24991..000000000000
--- a/svx/inc/svx/splwrap.hxx
+++ /dev/null
@@ -1,162 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: splwrap.hxx,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_SPLWRAP_HXX
-#define _SVX_SPLWRAP_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-// forward ---------------------------------------------------------------
-
-namespace com { namespace sun { namespace star { namespace linguistic2 {
- class XDictionary;
- class XSpellChecker1;
- class XHyphenator;
-}}}}
-
-class Window;
-
-// misc functions ---------------------------------------------------------------
-
-void SVX_DLLPUBLIC SvxPrepareAutoCorrect( String &rOldText, String &rNewText );
-
-/*--------------------------------------------------------------------
- Beschreibung: Der SpellWrapper
- --------------------------------------------------------------------*/
-
-class SVX_DLLPUBLIC SvxSpellWrapper {
-private:
- friend class SvxSpellCheckDialog;
- friend class SvxHyphenWordDialog;
-
- Window* pWin;
- ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface > xLast; // result of last spelling/hyphenation attempt
- ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XSpellChecker1 > xSpell;
- ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XHyphenator > xHyph;
- sal_uInt16 nOldLang; // Sprache merken, nur bei Aenderung SetLanguage rufen
- sal_Bool bOtherCntnt : 1; // gesetzt => Sonderbereiche zunaechst pruefen
- sal_Bool bDialog : 1; // Ist pWin der Svx...Dialog?
- sal_Bool bHyphen : 1; // Trennen statt Spellen
- sal_Bool bAuto : 1; // Autokorrektur vorhanden?
- sal_Bool bReverse : 1; // Rueckwaerts Spellen
- sal_Bool bStartDone : 1; // Vorderen Teil bereits korrigiert
- sal_Bool bEndDone : 1; // Hinteren Teil bereits korrigiert
- sal_Bool bStartChk : 1; // Vorderen Teil pruefen
- sal_Bool bRevAllowed : 1; // Niemals rueckwaerts spellen
- sal_Bool bAllRight : 1; // falsche Woerter in geignetes Woerterbuch
- // aufnehmen und nicht den Dialog starten.
-
- SVX_DLLPRIVATE sal_Bool SpellNext(); // naechsten Bereich anwaehlen
- sal_Bool FindSpellError(); // Suche nach Fehlern ( ueber Bereiche hinweg )
-
-public:
- SvxSpellWrapper( Window* pWn,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XSpellChecker1 > &xSpellChecker,
- const sal_Bool bStart = sal_False, const sal_Bool bIsAllRight = sal_False,
- const sal_Bool bOther = sal_False, const sal_Bool bRevAllow = sal_True );
- SvxSpellWrapper( Window* pWn,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XHyphenator > &xHyphenator,
- const sal_Bool bStart = sal_False, const sal_Bool bOther = sal_False );
-
- virtual ~SvxSpellWrapper();
-
- static sal_Int16 CheckSpellLang(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XSpellChecker1 > xSpell,
- sal_Int16 nLang );
- static sal_Int16 CheckHyphLang(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XHyphenator > xHyph,
- sal_Int16 nLang );
-
- static void ShowLanguageErrors();
-
- void SpellDocument(); // Rechtschreibpruefung durchfuehren
- inline sal_Bool IsStartDone(){ return bStartDone; }
- inline sal_Bool IsEndDone(){ return bEndDone; }
- inline sal_Bool IsReverse(){ return bReverse; }
- inline sal_Bool IsDialog(){ return bDialog; } // SvxSpellCheckDialog OnScreen
- inline sal_Bool IsHyphen(){ return bHyphen; } // Trennen statt Spellen
- inline void SetHyphen( const sal_Bool bNew = sal_True ){ bHyphen = bNew; }
- inline ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XSpellChecker1 >
- GetXSpellChecker() { return xSpell; }
- inline ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XHyphenator >
- GetXHyphenator() { return xHyph; }
- inline sal_Bool IsAllRight() { return bAllRight; }
- inline Window* GetWin() { return pWin; }
- // kann evtl entfallen in ONE_LINGU:
- inline void SetOldLang( const sal_uInt16 nNew ){ nOldLang = nNew; }
- // kann evtl entfallen in ONE_LINGU:
- inline void ChangeLanguage( const sal_uInt16 nNew ) // rufe ggf. SetLanguage
- { if ( nNew != nOldLang ) { SetLanguage( nNew ); nOldLang = nNew; } }
- inline void EnableAutoCorrect() { bAuto = sal_True; }
-
-protected:
- ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >
- GetLast() { return xLast; }
- void SetLast(const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface > &xNewLast)
- { xLast = xNewLast; }
- virtual sal_Bool SpellMore(); // weitere Dokumente pruefen?
- virtual sal_Bool HasOtherCnt(); // gibt es ueberhaupt Sonderbereiche
- virtual void SpellStart( SvxSpellArea eSpell ); // Bereich vorbereiten
- virtual sal_Bool SpellContinue(); // Bereich pruefen
- // Ergebnis mit GetLast verfuegbar
- virtual void ReplaceAll( const String &rNewText, sal_Int16 nLanguage ); // Wort aus Replace-Liste ersetzen
- virtual void StartThesaurus( const String &rWord, sal_uInt16 nLang ); // Thesaurus starten
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XDictionary >
- GetAllRightDic() const;
- virtual void SpellEnd(); // Bereich abschliessen
- virtual void ScrollArea(); // ScrollArea einstellen
- // Wort ersetzen
- virtual void ChangeWord( const String& rNewWord, const sal_uInt16 nLang );
- virtual String GetThesWord();
- // Wort via Thesaurus ersetzen
- virtual void ChangeThesWord( const String& rNewWord );
- virtual void SetLanguage( const sal_uInt16 nLang ); // Sprache aendern
- virtual void AutoCorrect( const String& rAktStr, const String& rNewStr );
- virtual void InsertHyphen( const sal_uInt16 nPos ); // Hyphen einfuegen
-
-};
-
-#endif
diff --git a/svx/inc/svx/svdfield.hxx b/svx/inc/svx/svdfield.hxx
deleted file mode 100644
index 78868fa8030e..000000000000
--- a/svx/inc/svx/svdfield.hxx
+++ /dev/null
@@ -1,74 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: svdfield.hxx,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SVDFIELD_HXX
-#define _SVDFIELD_HXX
-
-#include
-
-#ifndef _FLDITEM_HXX
-#ifndef ITEMID_FIELD
-#ifndef _EDITDATA_HXX
-#include /* das include wird wg. EE_FEATURE_FIELD benoetigt */
-#endif
-#define ITEMID_FIELD EE_FEATURE_FIELD /* wird fuer #include benoetigt */
-#endif
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-////////////////////////////////////////////////////////////////////////////////////////////////////
-// Do not remove this, it is still used in src536a!
-void SVX_DLLPUBLIC SdrRegisterFieldClasses();
-////////////////////////////////////////////////////////////////////////////////////////////////////
-
-#define SDR_MEASUREFIELD 50
-
-class SdrMeasureObj;
-
-enum SdrMeasureFieldKind {SDRMEASUREFIELD_VALUE,SDRMEASUREFIELD_UNIT,SDRMEASUREFIELD_ROTA90BLANCS};
-
-class SVX_DLLPUBLIC SdrMeasureField: public SvxFieldData {
- SdrMeasureFieldKind eMeasureFieldKind;
-public:
- SV_DECL_PERSIST1(SdrMeasureField,SvxFieldData,SDR_MEASUREFIELD)
- SdrMeasureField(): eMeasureFieldKind(SDRMEASUREFIELD_VALUE) {}
- SdrMeasureField(SdrMeasureFieldKind eNewKind): eMeasureFieldKind(eNewKind) {}
- virtual ~SdrMeasureField();
- virtual SvxFieldData* Clone() const;
- virtual int operator==(const SvxFieldData&) const;
- SdrMeasureFieldKind GetMeasureFieldKind() const { return eMeasureFieldKind; }
- void SetMeasureFieldKind(SdrMeasureFieldKind eNewKind) { eMeasureFieldKind=eNewKind; }
-};
-
-////////////////////////////////////////////////////////////////////////////////////////////////////
-
-#endif //_SVDFIELD_HXX
-
diff --git a/svx/inc/svx/svxacorr.hxx b/svx/inc/svx/svxacorr.hxx
deleted file mode 100644
index 5d61f303972d..000000000000
--- a/svx/inc/svx/svxacorr.hxx
+++ /dev/null
@@ -1,396 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: svxacorr.hxx,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _MySVXACORR_HXX
-#define _MySVXACORR_HXX
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-class CharClass;
-class SfxPoolItem;
-class SvxAutoCorrect;
-class SvStringsISortDtor;
-class SfxObjectShell;
-class SvxAutoCorrLanguageTable_Impl;
-class SvxAutoCorrLastFileAskTable_Impl;
-class SotStorageRef;
-class SotStorage;
-
-// Flags fuer die AutoKorrekt-Flags
-const long CptlSttSntnc = 0x00000001; // Gross-Buchstaben am SatzAnfang
-const long CptlSttWrd = 0x00000002; // keine 2 Gr.-Buchst. am WordAnfang
-const long ChgFractionSymbol= 0x00000004; // 1/2, 1/4, .. ersetzen
-const long ChgOrdinalNumber = 0x00000008; // Ordinal-Number 1st, 2nd,..
-const long ChgToEnEmDash = 0x00000010; // - -> Endash/Emdash
-const long ChgWeightUnderl = 0x00000020; // * -> Fett, _ -> unterstreichen
-const long SetINetAttr = 0x00000040; // INetAttribut setzen
-const long Autocorrect = 0x00000080; // Autokorrektur aufrufen
-const long ChgQuotes = 0x00000100; // doppelte Quotes ersetzen
-const long SaveWordCplSttLst= 0x00000200; // GrB. am SatzAnf. auto. aufnehmen
-const long SaveWordWrdSttLst= 0x00000400; // 2 GrB. am WortAnf. auto. aufnehmen
-const long IngnoreDoubleSpace= 0x00000800; // 2 Spaces ignorieren
-const long ChgSglQuotes = 0x00001000; // einfache Quotes ersetzen
-
-const long ChgWordLstLoad = 0x20000000; // Ersetzungsliste geladen
-const long CplSttLstLoad = 0x40000000; // Exceptionlist fuer CplStart geladen
-const long WrdSttLstLoad = 0x80000000; // Exceptionlist fuer WordStart geladen
-
-// TODO: handle unicodes > U+FFFF and check users of this class
-
-// nur eine Mappingklasse
-class SVX_DLLPUBLIC SvxAutoCorrDoc
-{
-public:
- SvxAutoCorrDoc() {}
- virtual ~SvxAutoCorrDoc();
-
- virtual BOOL Delete( xub_StrLen nStt, xub_StrLen nEnd ) = 0;
- virtual BOOL Insert( xub_StrLen nPos, const String& rTxt ) = 0;
- virtual BOOL Replace( xub_StrLen nPos, const String& rTxt ) = 0;
-
- virtual BOOL SetAttr( xub_StrLen nStt, xub_StrLen nEnd, USHORT nSlotId,
- SfxPoolItem& ) = 0;
-
- virtual BOOL SetINetAttr( xub_StrLen nStt, xub_StrLen nEnd, const String& rURL ) = 0;
-
- // returne den Text eines vorherigen Absatzes.
- // Dieser darf nicht leer sein!
- // Gibt es diesen nicht oder gibt es davor nur Leere, dann returne 0
- // Das Flag gibt an:
- // TRUE: den, vor der normalen Einfuegeposition (TRUE)
- // FALSE: den, in den das korrigierte Wort eingfuegt wurde.
- // (Muss nicht der gleiche Absatz sein!!!!)
- virtual const String* GetPrevPara( BOOL bAtNormalPos ) = 0;
-
- virtual BOOL ChgAutoCorrWord( xub_StrLen& rSttPos, xub_StrLen nEndPos,
- SvxAutoCorrect& rACorrect,
- const String** ppPara ) = 0;
- // wird nach dem austauschen der Zeichen von den Funktionen
- // - FnCptlSttWrd
- // - FnCptlSttSntnc
- // gerufen. Dann koennen die Worte ggfs. in die Ausnahmelisten
- // aufgenommen werden.
- virtual void SaveCpltSttWord( ULONG nFlag, xub_StrLen nPos,
- const String& rExceptWord,
- sal_Unicode cChar );
-
- // welche Sprache gilt an der Position?
- virtual LanguageType GetLanguage( xub_StrLen nPos, BOOL bPrevPara = FALSE ) const;
-};
-
-
-class SVX_DLLPUBLIC SvxAutocorrWord
-{
- String sShort, sLong;
- BOOL bIsTxtOnly; // ist reiner ASCII - Text
-public:
- SvxAutocorrWord( const String& rS, const String& rL, BOOL bFlag = TRUE )
- : sShort( rS ), sLong( rL ), bIsTxtOnly( bFlag )
- {}
-
- const String& GetShort() const { return sShort; }
- const String& GetLong() const { return sLong; }
- BOOL IsTextOnly() const { return bIsTxtOnly; }
-};
-
-typedef SvxAutocorrWord* SvxAutocorrWordPtr;
-SV_DECL_PTRARR_SORT_DEL_VISIBILITY( SvxAutocorrWordList, SvxAutocorrWordPtr, 10, 10 , SVX_DLLPUBLIC)
-
-class SVX_DLLPUBLIC SvxAutoCorrectLanguageLists
-{
- String sShareAutoCorrFile, sUserAutoCorrFile;
- // falls die AutoCorr Datei neuer ist
- Date aModifiedDate;
- Time aModifiedTime, aLastCheckTime;
-
- LanguageType eLanguage; //LANGUAGE_DONTKNOW fuer alle Sprachen verwenden
- SvStringsISortDtor* pCplStt_ExcptLst;
- SvStringsISortDtor* pWrdStt_ExcptLst;
- SvxAutocorrWordList* pAutocorr_List;
- SvxAutoCorrect& rAutoCorrect;
-
- long nFlags;
-
- BOOL IsFileChanged_Imp();
- void LoadXMLExceptList_Imp( SvStringsISortDtor*& rpLst,
- const sal_Char* pStrmName,
- SotStorageRef& rStg);
- void SaveExceptList_Imp( const SvStringsISortDtor& rLst,
- const sal_Char* pStrmName,
- SotStorageRef& rStg,
- BOOL bConvert = FALSE);
-
- BOOL MakeBlocklist_Imp( SotStorage& rStg );
- void RemoveStream_Imp( const String& rName );
- void MakeUserStorage_Impl();
-
-public:
- SvxAutoCorrectLanguageLists( SvxAutoCorrect& rParent,
- const String& rShareAutoCorrectFile,
- const String& rUserAutoCorrectFile,
- LanguageType eLang);
- ~SvxAutoCorrectLanguageLists();
-
- // Lade, Setze, Gebe - die Ersetzungsliste
- SvxAutocorrWordList* LoadAutocorrWordList();
- void SetAutocorrWordList( SvxAutocorrWordList* pList );
- const SvxAutocorrWordList* GetAutocorrWordList();
-
- // Lade, Setze, Gebe - die Ausnahmeliste fuer Grossbuchstabe am
- // Satzanfang
- SvStringsISortDtor* LoadCplSttExceptList();
- void SaveCplSttExceptList();
- void SetCplSttExceptList( SvStringsISortDtor* pList );
- SvStringsISortDtor* GetCplSttExceptList();
- BOOL AddToCplSttExceptList(const String& rNew);
-
- // Lade, Setze, Gebe die Ausnahmeliste fuer 2 Grossbuchstaben am
- // Wortanfang
- SvStringsISortDtor* LoadWrdSttExceptList();
- void SaveWrdSttExceptList();
- void SetWrdSttExceptList( SvStringsISortDtor* pList );
- SvStringsISortDtor* GetWrdSttExceptList();
- BOOL AddToWrdSttExceptList(const String& rNew);
-
- // Speichern von Wortersetzungen:
- // Diese speichern direkt im Storage. Die Wortliste wird
- // entsprechend aktualisiert!
- // - purer Text
- BOOL PutText( const String& rShort, const String& rLong );
- // - Text mit Attributierung (kann nur der SWG - SWG-Format!)
- BOOL PutText( const String& rShort, SfxObjectShell& );
- // - loesche einen Eintrag
- BOOL DeleteText( const String& rShort );
-};
-
-
-class SVX_DLLPUBLIC SvxAutoCorrect
-{
- friend class SvxAutoCorrectLanguageLists;
-
- String sShareAutoCorrFile, sUserAutoCorrFile;
-
- SvxSwAutoFmtFlags aSwFlags; // StarWriter AutoFormat-Flags
-
- // alle Sprachen in einer Tabelle
- SvxAutoCorrLanguageTable_Impl* pLangTable;
- SvxAutoCorrLastFileAskTable_Impl* pLastFileTable;
- CharClass* pCharClass;
-
- LanguageType eCharClassLang;
-
- long nFlags;
- sal_Unicode cStartDQuote, cEndDQuote, cStartSQuote, cEndSQuote,
- c1Div2, c1Div4, c3Div4,
- cEmDash, cEnDash;
-
-
- // private methods
- SvxAutoCorrectLanguageLists& _GetLanguageList( LanguageType eLang );
-
- void _GetCharClass( LanguageType eLang );
-
-protected:
- // - Text mit Attributierung (kann nur der SWG - SWG-Format!)
- // rShort ist der Stream-Name - gecryptet!
- virtual BOOL PutText( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& rStg, const String& rFileName, const String& rShort, SfxObjectShell& ,
- String& );
-
- // geforderte Sprache in die Tabelle eintragen gfs. nur wenn das file existiert
- BOOL CreateLanguageFile(LanguageType eLang, BOOL bNewFile = TRUE);
- // - return den Ersetzungstext (nur fuer SWG-Format, alle anderen
- // koennen aus der Wortliste herausgeholt werden!)
- // rShort ist der Stream-Name - gecryptet!
-public:
- //The method below is changed from private to public by BerryJia for Bug95846 Time:2002-8-13 15:50
- sal_Unicode GetQuote( sal_Unicode cInsChar, BOOL bSttQuote,
- LanguageType eLang ) const;
- virtual BOOL GetLongText( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& rStg, const String& rFileName, const String& rShort, String& rLong );
-
- TYPEINFO();
-
- SvxAutoCorrect( const String& rShareAutocorrFile,
- const String& rUserAutocorrFile );
- SvxAutoCorrect( const SvxAutoCorrect& );
- virtual ~SvxAutoCorrect();
-
- // fuehre eine AutoKorrektur aus.
- // returnt was ausgefuehrt wurde; entsprechend den obigen Flags
- ULONG AutoCorrect( SvxAutoCorrDoc& rDoc, const String& rTxt,
- xub_StrLen nPos, sal_Unicode cInsChar, BOOL bInsert );
-
- // return fuer die Autotext Expandierung das vorherige Wort, was dem
- // AutoCorrect - Algorythmus entspricht.
- BOOL GetPrevAutoCorrWord( SvxAutoCorrDoc& rDoc, const String& rTxt,
- xub_StrLen nPos, String& rWord ) const;
-
- // suche das oder die Worte in der ErsetzungsTabelle.
- // rText - ueberpruefe in diesem Text die Worte der Liste
- // rStt - die gefundene Startposition
- // nEnd - zu ueberpruefende Position - ab dieser Pos nach vorne
- // rLang - Input: in welcher Sprache wird gesucht
- // Output: in welcher "Sprach-Liste" wurde es gefunden
- const SvxAutocorrWord* SearchWordsInList( const String& rTxt,
- xub_StrLen& rStt, xub_StrLen nEndPos,
- SvxAutoCorrDoc& rDoc,
- LanguageType& rLang );
-
- // erfrage / setze die Zeichen fuer die Quote-Ersetzung
- sal_Unicode GetStartSingleQuote() const { return cStartSQuote; }
- sal_Unicode GetEndSingleQuote() const { return cEndSQuote; }
- sal_Unicode GetStartDoubleQuote() const { return cStartDQuote; }
- sal_Unicode GetEndDoubleQuote() const { return cEndDQuote; }
-
- void SetStartSingleQuote( const sal_Unicode cStart ) { cStartSQuote = cStart; }
- void SetEndSingleQuote( const sal_Unicode cEnd ) { cEndSQuote = cEnd; }
- void SetStartDoubleQuote( const sal_Unicode cStart ) { cStartDQuote = cStart; }
- void SetEndDoubleQuote( const sal_Unicode cEnd ) { cEndDQuote = cEnd; }
-
- String GetQuote( SvxAutoCorrDoc& rDoc, xub_StrLen nInsPos,
- sal_Unicode cInsChar, BOOL bSttQuote );
- void InsertQuote( SvxAutoCorrDoc& rDoc, xub_StrLen nInsPos,
- sal_Unicode cInsChar, BOOL bSttQuote, BOOL bIns );
-
- // erfrage / setze den Namen der AutoKorrektur-Datei
- // defaultet auf "autocorr.dat"
- String GetAutoCorrFileName( LanguageType eLang = LANGUAGE_SYSTEM,
- BOOL bNewFile = FALSE,
- BOOL bTstUserExist = FALSE ) const;
- void SetUserAutoCorrFileName( const String& rNew );
- void SetShareAutoCorrFileName( const String& rNew );
-
- // erfrage / setze die aktuellen Einstellungen der AutoKorrektur
- long GetFlags() const { return nFlags; }
- inline SvxSwAutoFmtFlags& GetSwFlags() { return aSwFlags;}
- BOOL IsAutoCorrFlag( long nFlag ) const
- { return nFlags & nFlag ? TRUE : FALSE; }
- void SetAutoCorrFlag( long nFlag, BOOL bOn = TRUE );
-
- // Lade, Setze, Gebe - die Ersetzungsliste
- SvxAutocorrWordList* LoadAutocorrWordList(
- LanguageType eLang = LANGUAGE_SYSTEM )
- { return _GetLanguageList( eLang ).LoadAutocorrWordList(); }
- const SvxAutocorrWordList* GetAutocorrWordList(
- LanguageType eLang = LANGUAGE_SYSTEM )
- { return _GetLanguageList( eLang ).GetAutocorrWordList(); }
-
- // Speichern von Wortersetzungen:
- // Diese speichern direkt im Storage. Die Wortliste wird
- // entsprechend aktualisiert!
- // - purer Text
- BOOL PutText( const String& rShort, const String& rLong, LanguageType eLang = LANGUAGE_SYSTEM );
- // - Text mit Attributierung (kann nur der SWG - SWG-Format!)
- BOOL PutText( const String& rShort, SfxObjectShell& rShell,
- LanguageType eLang = LANGUAGE_SYSTEM )
- { return _GetLanguageList( eLang ).PutText(rShort, rShell ); }
-
- // - loesche einen Eintrag
- BOOL DeleteText( const String& rShort, LanguageType eLang = LANGUAGE_SYSTEM);
-
- // Lade, Setze, Gebe - die Ausnahmeliste fuer Grossbuchstabe am
- // Satzanfang
- void SaveCplSttExceptList( LanguageType eLang = LANGUAGE_SYSTEM );
- SvStringsISortDtor* LoadCplSttExceptList(
- LanguageType eLang = LANGUAGE_SYSTEM)
- { return _GetLanguageList( eLang ).LoadCplSttExceptList(); }
- const SvStringsISortDtor* GetCplSttExceptList(
- LanguageType eLang = LANGUAGE_SYSTEM )
- { return _GetLanguageList( eLang ).GetCplSttExceptList(); }
-
- // fuegt ein einzelnes Wort hinzu. Die Liste wird sofort
- // in die Datei geschrieben!
- BOOL AddCplSttException( const String& rNew,
- LanguageType eLang = LANGUAGE_SYSTEM );
-
- // Lade, Setze, Gebe die Ausnahmeliste fuer 2 Grossbuchstaben am
- // Wortanfang
- void SaveWrdSttExceptList( LanguageType eLang = LANGUAGE_SYSTEM );
- SvStringsISortDtor* LoadWrdSttExceptList(
- LanguageType eLang = LANGUAGE_SYSTEM )
- { return _GetLanguageList( eLang ).LoadWrdSttExceptList(); }
- const SvStringsISortDtor* GetWrdSttExceptList(
- LanguageType eLang = LANGUAGE_SYSTEM )
- { return _GetLanguageList( eLang ).GetWrdSttExceptList(); }
- // fuegt ein einzelnes Wort hinzu. Die Liste wird sofort
- // in die Datei geschrieben!
- BOOL AddWrtSttException( const String& rNew, LanguageType eLang = LANGUAGE_SYSTEM);
-
- //ueber die Sprachen nach dem Eintrag suchen
- BOOL FindInWrdSttExceptList( LanguageType eLang, const String& sWord );
- BOOL FindInCplSttExceptList( LanguageType eLang, const String& sWord,
- BOOL bAbbreviation = FALSE);
-
- // die einzelnen Methoden fuer die Autokorrektur
- BOOL FnCptlSttWrd( SvxAutoCorrDoc&, const String&,
- xub_StrLen nSttPos, xub_StrLen nEndPos,
- LanguageType eLang = LANGUAGE_SYSTEM );
- BOOL FnChgFractionSymbol( SvxAutoCorrDoc&, const String&,
- xub_StrLen nSttPos, xub_StrLen nEndPos );
- BOOL FnChgOrdinalNumber( SvxAutoCorrDoc&, const String&,
- xub_StrLen nSttPos, xub_StrLen nEndPos,
- LanguageType eLang = LANGUAGE_SYSTEM );
- BOOL FnChgToEnEmDash( SvxAutoCorrDoc&, const String&,
- xub_StrLen nSttPos, xub_StrLen nEndPos,
- LanguageType eLang = LANGUAGE_SYSTEM );
- BOOL FnSetINetAttr( SvxAutoCorrDoc&, const String&,
- xub_StrLen nSttPos, xub_StrLen nEndPos,
- LanguageType eLang = LANGUAGE_SYSTEM );
- BOOL FnChgWeightUnderl( SvxAutoCorrDoc&, const String&,
- xub_StrLen nSttPos, xub_StrLen nEndPos,
- LanguageType eLang = LANGUAGE_SYSTEM );
- BOOL FnCptlSttSntnc( SvxAutoCorrDoc&, const String&, BOOL bNormalPos,
- xub_StrLen nSttPos, xub_StrLen nEndPos,
- LanguageType eLang = LANGUAGE_SYSTEM);
-
- static long GetDefaultFlags();
-
-// returns TRUE for charcters where the function
-// 'SvxAutoCorrect::AutoCorrect' should be called.
-// (used to avoid occasional 'collisions' with (Thai) input-sequence-checking)
- static sal_Bool IsAutoCorrectChar( sal_Unicode cChar );
-
- CharClass& GetCharClass( LanguageType eLang )
- {
- if( !pCharClass || eLang != eCharClassLang )
- _GetCharClass( eLang );
- return *pCharClass;
- }
-};
-
-#endif
-
diff --git a/svx/inc/svx/svxbox.hxx b/svx/inc/svx/svxbox.hxx
deleted file mode 100644
index f5b1bd21c148..000000000000
--- a/svx/inc/svx/svxbox.hxx
+++ /dev/null
@@ -1,205 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: svxbox.hxx,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_BOX_HXX
-#define _SVX_BOX_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-
-#ifndef _LSTBOX_HXX //autogen
-#include
-#endif
-
-#ifndef _COMBOBOX_HXX //autogen
-#include
-#endif
-
-// forward ---------------------------------------------------------------
-
-class SvxBoxEntry;
-class SvxListBase;
-
-//#if 0 // _SOLAR__PRIVATE
-SV_DECL_PTRARR( SvxEntryLst, SvxBoxEntry*, 10, 10 )
-//#else
-//typedef SvPtrarr SvxEntryLst;
-//#endif
-
-// class SvxBoxEntry -----------------------------------------------------
-
-class SvxBoxEntry
-{
- friend class SvxListBox;
- friend class SvxComboBox;
-
-public:
- SvxBoxEntry( const String& aName, USHORT nId=0 );
- SvxBoxEntry( const SvxBoxEntry& rOrg );
- SvxBoxEntry();
-
- String aName;
- USHORT nId;
-
-private:
- BOOL bModified;
- BOOL bNew;
-};
-
-// class SvxListBox ------------------------------------------------------
-
-class SvxListBox : public ListBox
-{
- using ListBox::InsertEntry;
- using ListBox::RemoveEntry;
- using ListBox::GetEntryPos;
- using ListBox::IsEntrySelected;
- using ListBox::SelectEntry;
-
-public:
- SvxListBox( Window* pParent, WinBits nBits = WB_BORDER );
- SvxListBox( Window* pParent, const ResId& rId );
- ~SvxListBox();
-
- void InsertNewEntry( const SvxBoxEntry& rEntry );
- void InsertEntry( const SvxBoxEntry& rEntry,
- USHORT nId = LISTBOX_ENTRY_NOTFOUND );
-
- void RemoveEntry( USHORT nPos );
- void RemoveEntry( const SvxBoxEntry& rEntry );
-
- void Clear();
-
- USHORT GetEntryPos( const SvxBoxEntry& rEntry ) const;
- const SvxBoxEntry& GetSvxBoxEntry( USHORT nIdx ) const;
-
- inline BOOL IsEntrySelected( const SvxBoxEntry& rEntry ) const;
- const SvxBoxEntry& GetSelectSvxBoxEntry( USHORT nIdx = 0 ) const;
- inline void SelectEntry( const SvxBoxEntry& rEntry,
- BOOL bSelect = TRUE );
-
- void ModifyEntry( USHORT nPos, const String& aName );
- USHORT GetModifiedCount() const;
- const SvxBoxEntry& GetModifiedEntry( USHORT nPos ) const;
-
- USHORT GetRemovedCount() const;
- const SvxBoxEntry& GetRemovedEntry( USHORT nPos ) const;
-
- USHORT GetNewCount() const;
- const SvxBoxEntry& GetNewEntry( USHORT nPos ) const;
-
-private:
- SvxEntryLst aEntryLst;
- SvxEntryLst aDelEntryLst;
- SvxBoxEntry aDefault;
-
- void InitListBox();
- void InsertSorted( SvxBoxEntry* pEntry );
-};
-
-// inlines ---------------------------------------------------------------
-
-inline BOOL SvxListBox::IsEntrySelected( const SvxBoxEntry& aEntry ) const
- { return ListBox::IsEntrySelected( aEntry.aName ); }
-
-inline void SvxListBox::SelectEntry( const SvxBoxEntry& aEntry, BOOL bSelect )
- { ListBox::SelectEntry( aEntry.aName, bSelect ); }
-
-// enum SvxComboBoxStyle -------------------------------------------------
-
-enum SvxComboBoxStyle
-{
- SVX_CBS_UPPER = 0x01,
- SVX_CBS_LOWER = 0x02,
- SVX_CBS_ALL = 0x04,
- SVX_CBS_FILENAME = 0x08,
-#ifdef WIN
- SVX_CBS_SW_FILENAME = SVX_CBS_FILENAME | SVX_CBS_LOWER
-#else
- SVX_CBS_SW_FILENAME = SVX_CBS_FILENAME
-#endif
-};
-
-// class SvxComboBox -----------------------------------------------------
-
-class SvxComboBox : public ComboBox
-{
- using ComboBox::InsertEntry;
- using ComboBox::RemoveEntry;
- using ComboBox::GetEntryPos;
- using Window::SetStyle;
-
-public:
- SvxComboBox( Window* pParent,
- WinBits nBits = WB_BORDER, USHORT nStyleBits = SVX_CBS_ALL );
- SvxComboBox( Window* pParent, const ResId& rId, USHORT nStyleBits = SVX_CBS_ALL );
- ~SvxComboBox();
-
- void InsertNewEntry( const SvxBoxEntry& );
- void InsertEntry( const SvxBoxEntry& );
-
- void RemoveEntry( USHORT nPos );
- void RemoveEntry( const SvxBoxEntry& rEntry );
-
- void Clear();
-
- USHORT GetEntryPos( const SvxBoxEntry& rEntry ) const;
- const SvxBoxEntry& GetEntry( USHORT nIdx ) const;
-
- void ModifyEntry( USHORT nPos, const String& aName );
- USHORT GetModifiedCount() const;
- const SvxBoxEntry& GetModifiedEntry( USHORT nPos ) const;
-
- USHORT GetRemovedCount() const;
- const SvxBoxEntry& GetRemovedEntry( USHORT nPos ) const;
-
- USHORT GetNewCount() const;
- const SvxBoxEntry& GetNewEntry( USHORT nPos ) const;
-
- USHORT GetStyle() const { return nStyle; }
- void SetStyle( const USHORT nSt ) { nStyle = nSt; }
-
- String GetText() const;
-
-private:
- SvxEntryLst aEntryLst;
- SvxEntryLst aDelEntryLst;
- SvxBoxEntry aDefault;
- USHORT nStyle;
-
- virtual void KeyInput( const KeyEvent& rKEvt );
-
- void InitComboBox();
- void InsertSorted( SvxBoxEntry* pEntry );
-};
-
-#endif
-
diff --git a/svx/inc/svx/svxdlg.hxx b/svx/inc/svx/svxdlg.hxx
index 6f287153f0f8..fbc8f372b557 100644
--- a/svx/inc/svx/svxdlg.hxx
+++ b/svx/inc/svx/svxdlg.hxx
@@ -32,7 +32,8 @@
// include ---------------------------------------------------------------
#include
-#include //add for HangulHanjaConversionDialog
+#include
+
class SdrModel;
class SdrView;
using namespace svx;
@@ -77,49 +78,6 @@ public:
virtual SvxDistributeVertical GetDistributeVer() const = 0;
};
-class AbstractHangulHanjaConversionDialog : public VclAbstractTerminatedDialog //add for HangulHanjaConversionDialog
-{
- public:
- virtual void EnableRubySupport( sal_Bool _bVal ) = 0;
- virtual void SetByCharacter( sal_Bool _bByCharacter ) = 0;
- virtual void SetConversionDirectionState( sal_Bool _bTryBothDirections, HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection ) = 0;
- virtual void SetConversionFormat( 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 sal_Bool GetUseBothDirections( ) const= 0;
- virtual HangulHanjaConversion::ConversionDirection GetDirection( HangulHanjaConversion::ConversionDirection _eDefaultDirection ) const = 0;
- virtual void SetCurrentString(
- const String& _rNewString,
- const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rSuggestions,
- bool _bOriginatesFromDocument = true )=0;
- virtual String GetCurrentString( ) const =0;
- virtual HangulHanjaConversion::ConversionFormat GetConversionFormat( ) const =0;
- virtual void FocusSuggestion( )= 0;
- virtual String GetCurrentSuggestion( ) const =0;
-};
-
-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 AbstractFmShowColsDialog : public VclAbstractDialog //add for FmShowColsDialog
{
public:
@@ -376,7 +334,7 @@ public:
//-------------------------------------------------------------
-class SVX_DLLPUBLIC SvxAbstractDialogFactory : public SfxAbstractDialogFactory
+class SVX_DLLPUBLIC SvxAbstractDialogFactory : public SfxAbstractDialogFactory, public EditAbstractDialogFactory
{
public:
static SvxAbstractDialogFactory* Create();
@@ -398,17 +356,6 @@ public:
SvxDistributeHorizontal eHor = SvxDistributeHorizontalNone,
SvxDistributeVertical eVer = SvxDistributeVerticalNone)= 0;
- virtual AbstractHangulHanjaConversionDialog * CreateHangulHanjaConversionDialog( Window* _pParent, //add for HangulHanjaConversionDialog CHINA001
- HangulHanjaConversion::ConversionDirection _ePrimaryDirection ) = 0;
-
- 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 AbstractFmShowColsDialog * CreateFmShowColsDialog( Window* pParent ) = 0;
virtual AbstractSvxZoomDialog * CreateSvxZoomDialog( Window* pParent, //add for SvxZoomDialog
diff --git a/svx/inc/svx/svxenum.hxx b/svx/inc/svx/svxenum.hxx
deleted file mode 100644
index 01a7d80d1351..000000000000
--- a/svx/inc/svx/svxenum.hxx
+++ /dev/null
@@ -1,221 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: svxenum.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_SVXENUM_HXX
-#define _SVX_SVXENUM_HXX
-
-// -----------------------------------------------------------------------
-
-enum SvxCaseMap
-{
- SVX_CASEMAP_NOT_MAPPED,
- SVX_CASEMAP_VERSALIEN,
- SVX_CASEMAP_GEMEINE,
- SVX_CASEMAP_TITEL,
- SVX_CASEMAP_KAPITAELCHEN,
- SVX_CASEMAP_END
-};
-
-enum SvxEscapement
-{
- SVX_ESCAPEMENT_OFF,
- SVX_ESCAPEMENT_SUPERSCRIPT,
- SVX_ESCAPEMENT_SUBSCRIPT,
- SVX_ESCAPEMENT_END
-};
-
-enum SvxShadowLocation
-{
- SVX_SHADOW_NONE,
- SVX_SHADOW_TOPLEFT,
- SVX_SHADOW_TOPRIGHT,
- SVX_SHADOW_BOTTOMLEFT,
- SVX_SHADOW_BOTTOMRIGHT,
- SVX_SHADOW_END
-};
-
-enum SvxTabAdjust
-{
- SVX_TAB_ADJUST_LEFT = 0,
- SVX_TAB_ADJUST_RIGHT,
- SVX_TAB_ADJUST_DECIMAL,
- SVX_TAB_ADJUST_CENTER,
- SVX_TAB_ADJUST_DEFAULT,
- SVX_TAB_ADJUST_END
-};
-
-enum SvxLineSpace
-{
- SVX_LINE_SPACE_AUTO,
- SVX_LINE_SPACE_FIX,
- SVX_LINE_SPACE_MIN,
- SVX_LINE_SPACE_END
-};
-
-enum SvxInterLineSpace
-{
- SVX_INTER_LINE_SPACE_OFF,
- SVX_INTER_LINE_SPACE_PROP,
- SVX_INTER_LINE_SPACE_FIX,
- SVX_INTER_LINE_SPACE_END
-};
-
-enum SvxAdjust
-{
- SVX_ADJUST_LEFT,
- SVX_ADJUST_RIGHT,
- SVX_ADJUST_BLOCK,
- SVX_ADJUST_CENTER,
- SVX_ADJUST_BLOCKLINE,
- SVX_ADJUST_END
-};
-
-enum SvxSpecialLineSpace
-{
- SVX_LINESPACE_USER,
- SVX_LINESPACE_ONE_LINE,
- SVX_LINESPACE_ONE_POINT_FIVE_LINES,
- SVX_LINESPACE_TWO_LINES,
- SVX_LINESPACE_END
-};
-
-enum SvxBreak
-{
- SVX_BREAK_NONE,
- SVX_BREAK_COLUMN_BEFORE,
- SVX_BREAK_COLUMN_AFTER,
- SVX_BREAK_COLUMN_BOTH,
- SVX_BREAK_PAGE_BEFORE,
- SVX_BREAK_PAGE_AFTER,
- SVX_BREAK_PAGE_BOTH,
- SVX_BREAK_END
-};
-
-enum SvxCellHorJustify
-{
- SVX_HOR_JUSTIFY_STANDARD,
- SVX_HOR_JUSTIFY_LEFT,
- SVX_HOR_JUSTIFY_CENTER,
- SVX_HOR_JUSTIFY_RIGHT,
- SVX_HOR_JUSTIFY_BLOCK,
- SVX_HOR_JUSTIFY_REPEAT
-};
-
-enum SvxCellVerJustify
-{
- SVX_VER_JUSTIFY_STANDARD,
- SVX_VER_JUSTIFY_TOP,
- SVX_VER_JUSTIFY_CENTER,
- SVX_VER_JUSTIFY_BOTTOM
-};
-
-enum SvxCellOrientation
-{
- SVX_ORIENTATION_STANDARD,
- SVX_ORIENTATION_TOPBOTTOM,
- SVX_ORIENTATION_BOTTOMTOP,
- SVX_ORIENTATION_STACKED
-};
-
-enum SvxDrawToolEnum
-{
- SVX_SNAP_DRAW_SELECT,
- //
- SVX_SNAP_DRAW_LINE,
- SVX_SNAP_DRAW_RECT,
- SVX_SNAP_DRAW_ELLIPSE,
- SVX_SNAP_DRAW_POLYGON_NOFILL,
- SVX_SNAP_DRAW_BEZIER_NOFILL,
- SVX_SNAP_DRAW_FREELINE_NOFILL,
- SVX_SNAP_DRAW_ARC,
- SVX_SNAP_DRAW_PIE,
- SVX_SNAP_DRAW_CIRCLECUT,
- SVX_SNAP_DRAW_TEXT,
- SVX_SNAP_DRAW_TEXT_VERTICAL,
- SVX_SNAP_DRAW_TEXT_MARQUEE,
- SVX_SNAP_DRAW_CAPTION,
- SVX_SNAP_DRAW_CAPTION_VERTICAL
-};
-
-enum SvxDrawAlignEnum
-{
- SVX_OBJECT_ALIGN_LEFT,
- SVX_OBJECT_ALIGN_CENTER,
- SVX_OBJECT_ALIGN_RIGHT,
- SVX_OBJECT_ALIGN_UP,
- SVX_OBJECT_ALIGN_MIDDLE,
- SVX_OBJECT_ALIGN_DOWN
-};
-
-enum SvxDrawBezierEnum
-{
- SVX_BEZIER_MOVE,
- SVX_BEZIER_INSERT,
- SVX_BEZIER_DELETE,
- SVX_BEZIER_CUTLINE,
- SVX_BEZIER_CONVERT,
- SVX_BEZIER_EDGE,
- SVX_BEZIER_SMOOTH,
- SVX_BEZIER_SYMMTR,
- SVX_BEZIER_CLOSE,
- SVX_BEZIER_ELIMINATE_POINTS
-};
-
-enum SvxSpellArea
-{
- SVX_SPELL_BODY = 0,
- SVX_SPELL_BODY_END,
- SVX_SPELL_BODY_START,
- SVX_SPELL_OTHER
-};
-
-enum SvxFrameAnchor
-{
- SVX_FLY_AT_CNTNT, //Absatzgebundener Rahmen
- SVX_FLY_IN_CNTNT, //Zeichengebundener Rahmen
- SVX_FLY_PAGE //Seitengebundener Rahmen
-};
-
-enum SvxExtNumType
-{
- SVX_NUM_CHARS_UPPER_LETTER, // zaehlt von a-z, aa - az, ba - bz, ...
- SVX_NUM_CHARS_LOWER_LETTER,
- SVX_NUM_ROMAN_UPPER,
- SVX_NUM_ROMAN_LOWER,
- SVX_NUM_ARABIC,
- SVX_NUM_NUMBER_NONE,
- SVX_NUM_CHAR_SPECIAL, //Bullet
- SVX_NUM_PAGEDESC, // Numerierung aus der Seitenvorlage
- SVX_NUM_BITMAP,
- SVX_NUM_CHARS_UPPER_LETTER_N, // zaehlt von a-z, aa-zz, aaa-zzz
- SVX_NUM_CHARS_LOWER_LETTER_N
-};
-
-
-#endif
diff --git a/svx/inc/svx/svxfont.hxx b/svx/inc/svx/svxfont.hxx
deleted file mode 100644
index cab43c06628c..000000000000
--- a/svx/inc/svx/svxfont.hxx
+++ /dev/null
@@ -1,129 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: svxfont.hxx,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_SVXFONT_HXX
-#define _SVX_SVXFONT_HXX
-
-#include // USHRT_MAX
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-class SvxDoCapitals;
-class OutputDevice;
-class Printer;
-
-class SVX_DLLPUBLIC SvxFont : public Font
-{
- LanguageType eLang; // Language
- SvxCaseMap eCaseMap; // Textauszeichnung
- short nEsc; // Grad der Hoch-/Tiefstellung
- BYTE nPropr; // Grad der Verkleinerung der Fonthoehe
- short nKern; // Kerning in Pt
-
-public:
- SvxFont();
- SvxFont( const Font &rFont );
- SvxFont( const SvxFont &rFont );
-
- // Methoden fuer die Hoch-/Tiefstellung
- inline short GetEscapement() const { return nEsc; }
- inline void SetEscapement( const short nNewEsc ) { nEsc = nNewEsc; }
-
- inline BYTE GetPropr() const { return nPropr; }
- inline void SetPropr( const BYTE nNewPropr ) { nPropr = nNewPropr; }
- inline void SetProprRel( const BYTE nNewPropr )
- { SetPropr( (BYTE)( (long)nNewPropr * (long)nPropr / 100L ) ); }
-
- // Kerning
- inline short GetFixKerning() const { return nKern; }
- inline void SetFixKerning( const short nNewKern ) { nKern = nNewKern; }
-
- inline SvxCaseMap GetCaseMap() const { return eCaseMap; }
- inline void SetCaseMap( const SvxCaseMap eNew ) { eCaseMap = eNew; }
-
- inline LanguageType GetLanguage() const { return eLang; }
- inline void SetLanguage( const LanguageType eNewLan )
- { eLang = eNewLan; Font::SetLanguage(eNewLan); }
-
- // Is-Methoden:
- inline BOOL IsCaseMap() const { return SVX_CASEMAP_NOT_MAPPED != eCaseMap; }
- inline BOOL IsCapital() const { return SVX_CASEMAP_KAPITAELCHEN == eCaseMap; }
- inline BOOL IsKern() const { return 0 != nKern; }
- inline BOOL IsEsc() const { return 0 != nEsc; }
-
- // Versalien, Gemeine etc. beruecksichtigen
- String CalcCaseMap( const String &rTxt ) const;
-
-// Der folgende Bereich wird nicht von jedem benoetigt, er kann deshalb
-// ausgeklammert werden.
-#ifndef REDUCEDSVXFONT
- // Kapitaelchenbearbeitung
- void DoOnCapitals( SvxDoCapitals &rDo,
- const USHORT nPartLen = USHRT_MAX ) const;
-
- void SetPhysFont( OutputDevice *pOut ) const;
- Font ChgPhysFont( OutputDevice *pOut ) const;
-
- Size GetCapitalSize( const OutputDevice *pOut, const String &rTxt,
- const USHORT nIdx, const USHORT nLen) const;
- void DrawCapital( OutputDevice *pOut, const Point &rPos, const String &rTxt,
- const USHORT nIdx, const USHORT nLen ) const;
-
- Size GetPhysTxtSize( const OutputDevice *pOut, const String &rTxt,
- const USHORT nIdx, const USHORT nLen ) const;
-
- Size GetPhysTxtSize( const OutputDevice *pOut, const String &rTxt );
-
- Size GetTxtSize( const OutputDevice *pOut, const String &rTxt,
- const USHORT nIdx = 0, const USHORT nLen = STRING_LEN );
-
- void DrawText( OutputDevice *pOut, const Point &rPos, const String &rTxt,
- const USHORT nIdx = 0, const USHORT nLen = STRING_LEN ) const;
-
- void QuickDrawText( OutputDevice *pOut, const Point &rPos, const String &rTxt,
- const USHORT nIdx = 0, const USHORT nLen = STRING_LEN, const sal_Int32* pDXArray = NULL ) const;
-
- Size QuickGetTextSize( const OutputDevice *pOut, const String &rTxt,
- const USHORT nIdx, const USHORT nLen, sal_Int32* pDXArray = NULL ) const;
-
- void DrawPrev( OutputDevice* pOut, Printer* pPrinter,
- const Point &rPos, const String &rTxt,
- const USHORT nIdx = 0, const USHORT nLen = STRING_LEN ) const;
-
-#endif // !REDUCEDSVXFONT
- static void DrawArrow( OutputDevice &rOut, const Rectangle& rRect,
- const Size& rSize, const Color& rCol, BOOL bLeft );
- SvxFont& operator=( const SvxFont& rFont );
- SvxFont& operator=( const Font& rFont );
-};
-
-#endif // #ifndef _SVX_SVXFONT_HXX
-
diff --git a/svx/inc/svx/svxids.hrc b/svx/inc/svx/svxids.hrc
index 5c541b3b24dd..abddc5d4ac0c 100644
--- a/svx/inc/svx/svxids.hrc
+++ b/svx/inc/svx/svxids.hrc
@@ -55,7 +55,6 @@
#define MID_APPFLAG 0x20
#define MID_AUTOBREAK 0x21
-#define MID_BG_COLOR 0x22
#define MID_BREAKxxx 0x22
#define MID_BRUSHSTYLE 0x23
#define MID_CELLTYPE 0x24
@@ -63,32 +62,26 @@
#define MID_COMMAND 0x26
#define MID_CONTENT 0x27
#define MID_DESCNAMExxx 0x28
-#define MID_DISTANCE 0x29
+
#define MID_ESCAPEMENT 0x2a
#define MID_FAMILY 0x2b
-#define MID_FG_COLOR 0x2c
#define MID_FIRSTLINE_OFFSET 0x2d
-#define MID_FLAGS 0x2e
#define MID_FONTFAMILY 0x2f
#define MID_FONTFAMILYNAME 0x30
#define MID_FONTPITCH 0x31
#define MID_FONTSTYLE 0x32
#define MID_PERCENT 0x33
#define MID_HYPHEN 0x34
-#define MID_INNER_WIDTH 0x35
#define MID_INTER_LINESPACE 0x36
#define MID_INTER_SPACE 0x37
#define MID_LANDSCAPE 0x38
#define MID_LEFT_MARGIN 0x3a
-#define MID_LINESPACE 0x3b
-#define MID_LOCATION 0x3c
#define MID_LOWER 0x3d
#define MID_MAXHYPHENS 0x3e
#define MID_MINLEAD 0x3f
#define MID_MINTRAIL 0x40
#define MID_NUMTYPExxx 0x41
-#define MID_OUTER_WIDTH 0x41
#define MID_PAGEEND 0x42
#define MID_POS 0x43
#define MID_PROPORTIONAL 0x44
@@ -97,7 +90,6 @@
#define MID_RIGHT_MARGIN 0x47
#define MID_ROW_DIRECTION 0x48
#define MID_SIZE 0x4a
-#define MID_TRANSPARENT 0x4b
#define MID_TYPE 0x4c
#define MID_UPPER 0x4d
#define MID_USExxx 0x4e
@@ -426,8 +418,6 @@
// --------------------------------------------------------------------------
#define SID_ATTR_ZOOM ( SID_SVX_START + 0 )
-#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 )
@@ -449,8 +439,6 @@
//#define SID_ATTR_CHAR_ESCAPEMENT ( SID_SVX_START + 21 ) -> sfxsids.hrc
//#define SID_ATTR_CHAR_FONTLIST ( SID_SVX_START + 22 ) -> sfxsids.hrc
#define SID_ATTR_BORDER_INNER ( SID_SVX_START + 23 )
-#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 )
@@ -926,7 +914,6 @@
#define SID_OFA_REL_DESIGNVIEW ( SID_SVX_START + 588 )
#define SID_OFA_MANUAL_SQL ( SID_SVX_START + 589 )
#define SID_PARA_BACKGRND_DESTINATION ( SID_SVX_START + 590 )
-#define SID_ATTR_BRUSH_CHAR ( SID_SVX_START + 591 )
#define SID_FMSLOTS_START ( SID_SVX_START + 592 )
#define SID_FM_CONFIG ( SID_SVX_START + 593 )
#define SID_FM_PUSHBUTTON ( SID_SVX_START + 594 )
@@ -1117,7 +1104,6 @@
#define SID_HLINKBAR_BOOKMARK ( SID_SVX_START + 852 )
#define SID_HLINKBAR_SEARCH ( SID_SVX_START + 853 )
#define SID_HLINKBAR_TARGET ( SID_SVX_START + 854 )
-#define SID_ATTR_NUMBERING_RULE ( SID_SVX_START + 855 )
#define SID_PARAM_NUM_PRESET ( SID_SVX_START + 856 )
#define SID_PARAM_CUR_NUMBER ( SID_SVX_START + 857 )
#define SID_PARAM_CHILD_LEVELS ( SID_SVX_START + 858 )
@@ -1180,7 +1166,6 @@
#define SID_LANGUAGE_OPTIONS ( SID_SVX_START + 921 )
#define SID_GETUNDOSTRINGS ( SID_SVX_START + 923 )
#define SID_GETREDOSTRINGS ( SID_SVX_START + 924 )
-#define SID_PARA_VERTALIGN ( SID_SVX_START + 925 )
#define SID_INSERT_IMAGECONTROL ( SID_SVX_START + 926 )
#define SID_INSERT_PROGRESSBAR ( SID_SVX_START + 927 )
#define SID_INSERT_HFIXEDLINE ( SID_SVX_START + 928 )
diff --git a/svx/inc/svx/svxitems.hrc b/svx/inc/svx/svxitems.hrc
index 5d554cf67ebf..435466b6745a 100644
--- a/svx/inc/svx/svxitems.hrc
+++ b/svx/inc/svx/svxitems.hrc
@@ -34,11 +34,8 @@
#ifndef _SOLAR_HRC
#include
-#endif
-// BOOL ---------------------------------------------------------------------
-#define RID_SVXITEMS_TRUE (RID_SVXITEMS_START + 0)
-#define RID_SVXITEMS_FALSE (RID_SVXITEMS_START + 1)
+#endif
// Extras -------------------------------------------------------------------
#define RID_SVXITEMS_EXTRAS_CHARCOLOR (RID_SVXITEMS_START + 2)
@@ -68,73 +65,20 @@
#define RID_SVXITEMS_SEARCHAPP_DRAW (RID_SVXITEMS_START + 27)
#define RID_SVXITEMS_SEARCHAPP_BASE (RID_SVXITEMS_START + 28)
-// enum SvxBreak ------------------------------------------------------------
-#define RID_SVXITEMS_BREAK_BEGIN (RID_SVXITEMS_START + 30)
-#define RID_SVXITEMS_BREAK_NONE (RID_SVXITEMS_START + 30)
-#define RID_SVXITEMS_BREAK_COLUMN_BEFORE (RID_SVXITEMS_START + 31)
-#define RID_SVXITEMS_BREAK_COLUMN_AFTER (RID_SVXITEMS_START + 32)
-#define RID_SVXITEMS_BREAK_COLUMN_BOTH (RID_SVXITEMS_START + 33)
-#define RID_SVXITEMS_BREAK_PAGE_BEFORE (RID_SVXITEMS_START + 34)
-#define RID_SVXITEMS_BREAK_PAGE_AFTER (RID_SVXITEMS_START + 35)
-#define RID_SVXITEMS_BREAK_PAGE_BOTH (RID_SVXITEMS_START + 36)
-
-// enum SvxShadowLocation ---------------------------------------------------
-#define RID_SVXITEMS_SHADOW_BEGIN (RID_SVXITEMS_START + 40)
-#define RID_SVXITEMS_SHADOW_NONE (RID_SVXITEMS_START + 40)
-#define RID_SVXITEMS_SHADOW_TOPLEFT (RID_SVXITEMS_START + 41)
-#define RID_SVXITEMS_SHADOW_TOPRIGHT (RID_SVXITEMS_START + 42)
-#define RID_SVXITEMS_SHADOW_BOTTOMLEFT (RID_SVXITEMS_START + 43)
-#define RID_SVXITEMS_SHADOW_BOTTOMRIGHT (RID_SVXITEMS_START + 44)
-
// enum BrushStyle ----------------------------------------------------------
-#define RID_SVXITEMS_BRUSHSTYLE_BEGIN (RID_SVXITEMS_START + 45)
-#define RID_SVXITEMS_BRUSHSTYLE_NULL (RID_SVXITEMS_START + 45)
-#define RID_SVXITEMS_BRUSHSTYLE_SOLID (RID_SVXITEMS_START + 46)
-#define RID_SVXITEMS_BRUSHSTYLE_HORZ (RID_SVXITEMS_START + 47)
-#define RID_SVXITEMS_BRUSHSTYLE_VERT (RID_SVXITEMS_START + 48)
-#define RID_SVXITEMS_BRUSHSTYLE_CROSS (RID_SVXITEMS_START + 49)
-#define RID_SVXITEMS_BRUSHSTYLE_DIAGCROSS (RID_SVXITEMS_START + 50)
-#define RID_SVXITEMS_BRUSHSTYLE_UPDIAG (RID_SVXITEMS_START + 51)
-#define RID_SVXITEMS_BRUSHSTYLE_DOWNDIAG (RID_SVXITEMS_START + 52)
-#define RID_SVXITEMS_BRUSHSTYLE_25 (RID_SVXITEMS_START + 53)
-#define RID_SVXITEMS_BRUSHSTYLE_50 (RID_SVXITEMS_START + 54)
-#define RID_SVXITEMS_BRUSHSTYLE_75 (RID_SVXITEMS_START + 55)
-#define RID_SVXITEMS_BRUSHSTYLE_BITMAP (RID_SVXITEMS_START + 56)
-
-// enum ColorName -----------------------------------------------------------
-#define RID_SVXITEMS_COLOR_BEGIN (RID_SVXITEMS_START + 60)
-#define RID_SVXITEMS_COLOR (RID_SVXITEMS_START + 60)
-#define RID_SVXITEMS_COLOR_BLACK (RID_SVXITEMS_START + 61)
-#define RID_SVXITEMS_COLOR_BLUE (RID_SVXITEMS_START + 62)
-#define RID_SVXITEMS_COLOR_GREEN (RID_SVXITEMS_START + 63)
-#define RID_SVXITEMS_COLOR_CYAN (RID_SVXITEMS_START + 64)
-#define RID_SVXITEMS_COLOR_RED (RID_SVXITEMS_START + 65)
-#define RID_SVXITEMS_COLOR_MAGENTA (RID_SVXITEMS_START + 66)
-#define RID_SVXITEMS_COLOR_BROWN (RID_SVXITEMS_START + 67)
-#define RID_SVXITEMS_COLOR_GRAY (RID_SVXITEMS_START + 68)
-#define RID_SVXITEMS_COLOR_LIGHTGRAY (RID_SVXITEMS_START + 69)
-#define RID_SVXITEMS_COLOR_LIGHTBLUE (RID_SVXITEMS_START + 70)
-#define RID_SVXITEMS_COLOR_LIGHTGREEN (RID_SVXITEMS_START + 71)
-#define RID_SVXITEMS_COLOR_LIGHTCYAN (RID_SVXITEMS_START + 72)
-#define RID_SVXITEMS_COLOR_LIGHTRED (RID_SVXITEMS_START + 73)
-#define RID_SVXITEMS_COLOR_LIGHTMAGENTA (RID_SVXITEMS_START + 74)
-#define RID_SVXITEMS_COLOR_YELLOW (RID_SVXITEMS_START + 75)
-#define RID_SVXITEMS_COLOR_WHITE (RID_SVXITEMS_START + 76)
-#define RID_SVXITEMS_COLOR_MENUBAR (RID_SVXITEMS_START + 77)
-#define RID_SVXITEMS_COLOR_MENUBARTEXT (RID_SVXITEMS_START + 78)
-#define RID_SVXITEMS_COLOR_POPUPMENU (RID_SVXITEMS_START + 79)
-#define RID_SVXITEMS_COLOR_POPUPMENUTEXT (RID_SVXITEMS_START + 80)
-#define RID_SVXITEMS_COLOR_WINDOWTEXT (RID_SVXITEMS_START + 81)
-#define RID_SVXITEMS_COLOR_WINDOWWORKSPACE (RID_SVXITEMS_START + 82)
-#define RID_SVXITEMS_COLOR_HIGHLIGHT (RID_SVXITEMS_START + 83)
-#define RID_SVXITEMS_COLOR_HIGHLIGHTTEXT (RID_SVXITEMS_START + 84)
-#define RID_SVXITEMS_COLOR_3DTEXT (RID_SVXITEMS_START + 85)
-#define RID_SVXITEMS_COLOR_3DFACE (RID_SVXITEMS_START + 86)
-#define RID_SVXITEMS_COLOR_3DLIGHT (RID_SVXITEMS_START + 87)
-#define RID_SVXITEMS_COLOR_3DSHADOW (RID_SVXITEMS_START + 88)
-#define RID_SVXITEMS_COLOR_SCROLLBAR (RID_SVXITEMS_START + 89)
-#define RID_SVXITEMS_COLOR_FIELD (RID_SVXITEMS_START + 90)
-#define RID_SVXITEMS_COLOR_FIELDTEXT (RID_SVXITEMS_START + 91)
+//#define RID_SVXITEMS_BRUSHSTYLE_BEGIN (RID_SVXITEMS_START + 45)
+//#define RID_SVXITEMS_BRUSHSTYLE_NULL (RID_SVXITEMS_START + 45)
+//#define RID_SVXITEMS_BRUSHSTYLE_SOLID (RID_SVXITEMS_START + 46)
+//#define RID_SVXITEMS_BRUSHSTYLE_HORZ (RID_SVXITEMS_START + 47)
+//#define RID_SVXITEMS_BRUSHSTYLE_VERT (RID_SVXITEMS_START + 48)
+//#define RID_SVXITEMS_BRUSHSTYLE_CROSS (RID_SVXITEMS_START + 49)
+//#define RID_SVXITEMS_BRUSHSTYLE_DIAGCROSS (RID_SVXITEMS_START + 50)
+//#define RID_SVXITEMS_BRUSHSTYLE_UPDIAG (RID_SVXITEMS_START + 51)
+//#define RID_SVXITEMS_BRUSHSTYLE_DOWNDIAG (RID_SVXITEMS_START + 52)
+//#define RID_SVXITEMS_BRUSHSTYLE_25 (RID_SVXITEMS_START + 53)
+//#define RID_SVXITEMS_BRUSHSTYLE_50 (RID_SVXITEMS_START + 54)
+//#define RID_SVXITEMS_BRUSHSTYLE_75 (RID_SVXITEMS_START + 55)
+//#define RID_SVXITEMS_BRUSHSTYLE_BITMAP (RID_SVXITEMS_START + 56)
// enum FontFamily -------------------------------------------------------
#define RID_SVXITEMS_FONTFAMILY_BEGIN (RID_SVXITEMS_START + 100)
@@ -152,36 +96,6 @@
#define RID_SVXITEMS_FONTPITCH_FIXED (RID_SVXITEMS_START + 111)
#define RID_SVXITEMS_FONTPITCH_VARIABLE (RID_SVXITEMS_START + 112)
-// enum FontItalic -------------------------------------------------------
-#define RID_SVXITEMS_ITALIC_BEGIN (RID_SVXITEMS_START + 115)
-#define RID_SVXITEMS_ITALIC_NONE (RID_SVXITEMS_START + 115)
-#define RID_SVXITEMS_ITALIC_OBLIQUE (RID_SVXITEMS_START + 116)
-#define RID_SVXITEMS_ITALIC_NORMAL (RID_SVXITEMS_START + 117)
-
-// enum FontWeight -------------------------------------------------------
-#define RID_SVXITEMS_WEIGHT_BEGIN (RID_SVXITEMS_START + 120)
-#define RID_SVXITEMS_WEIGHT_DONTKNOW (RID_SVXITEMS_START + 120)
-#define RID_SVXITEMS_WEIGHT_THIN (RID_SVXITEMS_START + 121)
-#define RID_SVXITEMS_WEIGHT_ULTRALIGHT (RID_SVXITEMS_START + 122)
-#define RID_SVXITEMS_WEIGHT_LIGHT (RID_SVXITEMS_START + 123)
-#define RID_SVXITEMS_WEIGHT_SEMILIGHT (RID_SVXITEMS_START + 124)
-#define RID_SVXITEMS_WEIGHT_NORMAL (RID_SVXITEMS_START + 125)
-#define RID_SVXITEMS_WEIGHT_MEDIUM (RID_SVXITEMS_START + 126)
-#define RID_SVXITEMS_WEIGHT_SEMIBOLD (RID_SVXITEMS_START + 127)
-#define RID_SVXITEMS_WEIGHT_BOLD (RID_SVXITEMS_START + 128)
-#define RID_SVXITEMS_WEIGHT_ULTRABOLD (RID_SVXITEMS_START + 129)
-#define RID_SVXITEMS_WEIGHT_BLACK (RID_SVXITEMS_START + 130)
-
-// enum FontStrikeout ----------------------------------------------------
-#define RID_SVXITEMS_STRIKEOUT_BEGIN (RID_SVXITEMS_START + 135)
-#define RID_SVXITEMS_STRIKEOUT_NONE (RID_SVXITEMS_START + 135)
-#define RID_SVXITEMS_STRIKEOUT_SINGLE (RID_SVXITEMS_START + 136)
-#define RID_SVXITEMS_STRIKEOUT_DOUBLE (RID_SVXITEMS_START + 137)
-#define RID_SVXITEMS_STRIKEOUT_DONTKNOW (RID_SVXITEMS_START + 138)
-#define RID_SVXITEMS_STRIKEOUT_BOLD (RID_SVXITEMS_START + 139)
-#define RID_SVXITEMS_STRIKEOUT_SLASH (RID_SVXITEMS_START + 140)
-#define RID_SVXITEMS_STRIKEOUT_X (RID_SVXITEMS_START + 141)
-
// enum CharSet ----------------------------------------------------------
#define RID_SVXITEMS_CHARSET_BEGIN (RID_SVXITEMS_START + 145)
#define RID_SVXITEMS_CHARSET_DONTKNOW (RID_SVXITEMS_START + 145)
@@ -196,83 +110,6 @@
#define RID_SVXITEMS_CHARSET_SYSTEM (RID_SVXITEMS_START + 154)
#define RID_SVXITEMS_CHARSET_SYMBOL (RID_SVXITEMS_START + 155)
-// enum CASEMAP ----------------------------------------------------------
-#define RID_SVXITEMS_CASEMAP_BEGIN (RID_SVXITEMS_START + 160)
-#define RID_SVXITEMS_CASEMAP_NONE (RID_SVXITEMS_START + 160)
-#define RID_SVXITEMS_CASEMAP_VERSALIEN (RID_SVXITEMS_START + 161)
-#define RID_SVXITEMS_CASEMAP_GEMEINE (RID_SVXITEMS_START + 162)
-#define RID_SVXITEMS_CASEMAP_TITEL (RID_SVXITEMS_START + 163)
-#define RID_SVXITEMS_CASEMAP_KAPITAELCHEN (RID_SVXITEMS_START + 164)
-
-// enum ESCAPEMENT -------------------------------------------------------
-#define RID_SVXITEMS_ESCAPEMENT_BEGIN (RID_SVXITEMS_START + 166)
-#define RID_SVXITEMS_ESCAPEMENT_OFF (RID_SVXITEMS_START + 166)
-#define RID_SVXITEMS_ESCAPEMENT_SUPER (RID_SVXITEMS_START + 167)
-#define RID_SVXITEMS_ESCAPEMENT_SUB (RID_SVXITEMS_START + 168)
-#define RID_SVXITEMS_ESCAPEMENT_AUTO (RID_SVXITEMS_START + 169)
-
-// enum FontUnderline - used for underline -------------------------------
-#define RID_SVXITEMS_UL_BEGIN (RID_SVXITEMS_START + 170)
-#define RID_SVXITEMS_UL_NONE (RID_SVXITEMS_START + 170)
-#define RID_SVXITEMS_UL_SINGLE (RID_SVXITEMS_START + 171)
-#define RID_SVXITEMS_UL_DOUBLE (RID_SVXITEMS_START + 172)
-#define RID_SVXITEMS_UL_DOTTED (RID_SVXITEMS_START + 173)
-#define RID_SVXITEMS_UL_DONTKNOW (RID_SVXITEMS_START + 174)
-#define RID_SVXITEMS_UL_DASH (RID_SVXITEMS_START + 175)
-#define RID_SVXITEMS_UL_LONGDASH (RID_SVXITEMS_START + 176)
-#define RID_SVXITEMS_UL_DASHDOT (RID_SVXITEMS_START + 177)
-#define RID_SVXITEMS_UL_DASHDOTDOT (RID_SVXITEMS_START + 178)
-#define RID_SVXITEMS_UL_SMALLWAVE (RID_SVXITEMS_START + 179)
-#define RID_SVXITEMS_UL_WAVE (RID_SVXITEMS_START + 180)
-#define RID_SVXITEMS_UL_DOUBLEWAVE (RID_SVXITEMS_START + 181)
-#define RID_SVXITEMS_UL_BOLD (RID_SVXITEMS_START + 182)
-#define RID_SVXITEMS_UL_BOLDDOTTED (RID_SVXITEMS_START + 183)
-#define RID_SVXITEMS_UL_BOLDDASH (RID_SVXITEMS_START + 184)
-#define RID_SVXITEMS_UL_BOLDLONGDASH (RID_SVXITEMS_START + 185)
-#define RID_SVXITEMS_UL_BOLDDASHDOT (RID_SVXITEMS_START + 186)
-#define RID_SVXITEMS_UL_BOLDDASHDOTDOT (RID_SVXITEMS_START + 187)
-#define RID_SVXITEMS_UL_BOLDWAVE (RID_SVXITEMS_START + 188)
-
-// enum FontUnderline - used for overline --------------------------------
-#define RID_SVXITEMS_OL_BEGIN (RID_SVXITEMS_START + 200)
-#define RID_SVXITEMS_OL_NONE (RID_SVXITEMS_START + 200)
-#define RID_SVXITEMS_OL_SINGLE (RID_SVXITEMS_START + 201)
-#define RID_SVXITEMS_OL_DOUBLE (RID_SVXITEMS_START + 202)
-#define RID_SVXITEMS_OL_DOTTED (RID_SVXITEMS_START + 203)
-#define RID_SVXITEMS_OL_DONTKNOW (RID_SVXITEMS_START + 204)
-#define RID_SVXITEMS_OL_DASH (RID_SVXITEMS_START + 205)
-#define RID_SVXITEMS_OL_LONGDASH (RID_SVXITEMS_START + 206)
-#define RID_SVXITEMS_OL_DASHDOT (RID_SVXITEMS_START + 207)
-#define RID_SVXITEMS_OL_DASHDOTDOT (RID_SVXITEMS_START + 208)
-#define RID_SVXITEMS_OL_SMALLWAVE (RID_SVXITEMS_START + 209)
-#define RID_SVXITEMS_OL_WAVE (RID_SVXITEMS_START + 210)
-#define RID_SVXITEMS_OL_DOUBLEWAVE (RID_SVXITEMS_START + 211)
-#define RID_SVXITEMS_OL_BOLD (RID_SVXITEMS_START + 212)
-#define RID_SVXITEMS_OL_BOLDDOTTED (RID_SVXITEMS_START + 213)
-#define RID_SVXITEMS_OL_BOLDDASH (RID_SVXITEMS_START + 214)
-#define RID_SVXITEMS_OL_BOLDLONGDASH (RID_SVXITEMS_START + 215)
-#define RID_SVXITEMS_OL_BOLDDASHDOT (RID_SVXITEMS_START + 216)
-#define RID_SVXITEMS_OL_BOLDDASHDOTDOT (RID_SVXITEMS_START + 217)
-#define RID_SVXITEMS_OL_BOLDWAVE (RID_SVXITEMS_START + 218)
-
-// enum SvxAdjust -----------------------------------------------------------
-#define RID_SVXITEMS_ADJUST_BEGIN (RID_SVXITEMS_START + 230)
-#define RID_SVXITEMS_ADJUST_LEFT (RID_SVXITEMS_START + 230)
-#define RID_SVXITEMS_ADJUST_RIGHT (RID_SVXITEMS_START + 231)
-#define RID_SVXITEMS_ADJUST_BLOCK (RID_SVXITEMS_START + 232)
-#define RID_SVXITEMS_ADJUST_CENTER (RID_SVXITEMS_START + 233)
-#define RID_SVXITEMS_ADJUST_BLOCKLINE (RID_SVXITEMS_START + 234)
-
-// enum SvxAdjust -----------------------------------------------------------
-#define RID_SVXITEMS_TAB_DECIMAL_CHAR (RID_SVXITEMS_START + 243)
-#define RID_SVXITEMS_TAB_FILL_CHAR (RID_SVXITEMS_START + 244)
-#define RID_SVXITEMS_TAB_ADJUST_BEGIN (RID_SVXITEMS_START + 245)
-#define RID_SVXITEMS_TAB_ADJUST_LEFT (RID_SVXITEMS_START + 245)
-#define RID_SVXITEMS_TAB_ADJUST_RIGHT (RID_SVXITEMS_START + 246)
-#define RID_SVXITEMS_TAB_ADJUST_DECIMAL (RID_SVXITEMS_START + 247)
-#define RID_SVXITEMS_TAB_ADJUST_CENTER (RID_SVXITEMS_START + 248)
-#define RID_SVXITEMS_TAB_ADJUST_DEFAULT (RID_SVXITEMS_START + 249)
-
// type names of slots; needed for attribute list on search & replace dialogue
#define RID_ATTR_BEGIN (RID_SVXITEMS_START + 250)
#define RID_ATTR_ZOOM (RID_ATTR_BEGIN + 0)
@@ -281,23 +118,23 @@
#define RID_ATTR_TABSTOP_DEFAULTS (RID_ATTR_BEGIN + 3)
#define RID_ATTR_TABSTOP_POS (RID_ATTR_BEGIN + 4)
#define RID_ATTR_TABSTOP_OFFSET (RID_ATTR_BEGIN + 5)
-#define RID_ATTR_CHAR (RID_ATTR_BEGIN + 6)
-#define RID_ATTR_CHAR_FONT (RID_ATTR_BEGIN + 7)
-#define RID_ATTR_CHAR_POSTURE (RID_ATTR_BEGIN + 8)
-#define RID_ATTR_CHAR_WEIGHT (RID_ATTR_BEGIN + 9)
-#define RID_ATTR_CHAR_SHADOWED (RID_ATTR_BEGIN + 10)
-#define RID_ATTR_CHAR_WORDLINEMODE (RID_ATTR_BEGIN + 11)
-#define RID_ATTR_CHAR_CONTOUR (RID_ATTR_BEGIN + 12)
-#define RID_ATTR_CHAR_STRIKEOUT (RID_ATTR_BEGIN + 13)
-#define RID_ATTR_CHAR_UNDERLINE (RID_ATTR_BEGIN + 14)
-#define RID_ATTR_CHAR_FONTHEIGHT (RID_ATTR_BEGIN + 15)
-#define RID_ATTR_CHAR_PROPSIZE (RID_ATTR_BEGIN + 16)
-#define RID_ATTR_CHAR_COLOR (RID_ATTR_BEGIN + 17)
-#define RID_ATTR_CHAR_KERNING (RID_ATTR_BEGIN + 18)
-#define RID_ATTR_CHAR_CASEMAP (RID_ATTR_BEGIN + 19)
-#define RID_ATTR_CHAR_LANGUAGE (RID_ATTR_BEGIN + 20)
-#define RID_ATTR_CHAR_ESCAPEMENT (RID_ATTR_BEGIN + 21)
-#define RID_ATTR_CHAR_FONTLIST (RID_ATTR_BEGIN + 22)
+//#define RID_ATTR_CHAR (RID_ATTR_BEGIN + 6)
+//#define RID_ATTR_CHAR_FONT (RID_ATTR_BEGIN + 7)
+//#define RID_ATTR_CHAR_POSTURE (RID_ATTR_BEGIN + 8)
+//#define RID_ATTR_CHAR_WEIGHT (RID_ATTR_BEGIN + 9)
+//#define RID_ATTR_CHAR_SHADOWED (RID_ATTR_BEGIN + 10)
+//#define RID_ATTR_CHAR_WORDLINEMODE (RID_ATTR_BEGIN + 11)
+//#define RID_ATTR_CHAR_CONTOUR (RID_ATTR_BEGIN + 12)
+//#define RID_ATTR_CHAR_STRIKEOUT (RID_ATTR_BEGIN + 13)
+//#define RID_ATTR_CHAR_UNDERLINE (RID_ATTR_BEGIN + 14)
+//#define RID_ATTR_CHAR_FONTHEIGHT (RID_ATTR_BEGIN + 15)
+//#define RID_ATTR_CHAR_PROPSIZE (RID_ATTR_BEGIN + 16)
+//#define RID_ATTR_CHAR_COLOR (RID_ATTR_BEGIN + 17)
+//#define RID_ATTR_CHAR_KERNING (RID_ATTR_BEGIN + 18)
+//#define RID_ATTR_CHAR_CASEMAP (RID_ATTR_BEGIN + 19)
+//#define RID_ATTR_CHAR_LANGUAGE (RID_ATTR_BEGIN + 20)
+//#define RID_ATTR_CHAR_ESCAPEMENT (RID_ATTR_BEGIN + 21)
+//#define RID_ATTR_CHAR_FONTLIST (RID_ATTR_BEGIN + 22)
#define RID_ATTR_BORDER_INNER (RID_ATTR_BEGIN + 23)
#define RID_ATTR_BORDER_OUTER (RID_ATTR_BEGIN + 24)
#define RID_ATTR_BORDER_SHADOW (RID_ATTR_BEGIN + 25)
@@ -361,7 +198,6 @@
#define RID_ATTR_CHAR_CTL_POSTURE (RID_ATTR_BEGIN + 895)
#define RID_ATTR_CHAR_CTL_WEIGHT (RID_ATTR_BEGIN + 896)
#define RID_ATTR_CHAR_TWO_LINES (RID_ATTR_BEGIN + 897)
-#define RID_ATTR_CHAR_EMPHASISMARK (RID_ATTR_BEGIN + 899)
#define RID_ATTR_PARA_SCRIPTSPACE (RID_ATTR_BEGIN + 901)
#define RID_ATTR_PARA_HANGPUNCTUATION (RID_ATTR_BEGIN + 902)
@@ -372,32 +208,6 @@
#define RID_PARA_VERTALIGN (RID_ATTR_BEGIN + 925)
-// Umrandungslinien
-#define RID_SINGLE_LINE0 (RID_SVXITEMS_START + 360)
-#define RID_SINGLE_LINE1 (RID_SVXITEMS_START + 361)
-#define RID_SINGLE_LINE2 (RID_SVXITEMS_START + 362)
-#define RID_SINGLE_LINE3 (RID_SVXITEMS_START + 363)
-#define RID_SINGLE_LINE4 (RID_SVXITEMS_START + 364)
-#define RID_DOUBLE_LINE0 (RID_SVXITEMS_START + 365)
-#define RID_DOUBLE_LINE1 (RID_SVXITEMS_START + 366)
-#define RID_DOUBLE_LINE2 (RID_SVXITEMS_START + 367)
-#define RID_DOUBLE_LINE3 (RID_SVXITEMS_START + 368)
-#define RID_DOUBLE_LINE4 (RID_SVXITEMS_START + 369)
-#define RID_DOUBLE_LINE5 (RID_SVXITEMS_START + 370)
-#define RID_DOUBLE_LINE6 (RID_SVXITEMS_START + 371)
-#define RID_DOUBLE_LINE7 (RID_SVXITEMS_START + 372)
-#define RID_DOUBLE_LINE8 (RID_SVXITEMS_START + 373)
-#define RID_DOUBLE_LINE9 (RID_SVXITEMS_START + 374)
-#define RID_DOUBLE_LINE10 (RID_SVXITEMS_START + 375)
-
-// Metric-Texte
-#define RID_SVXITEMS_METRIC_MM (RID_SVXITEMS_START + 380)
-#define RID_SVXITEMS_METRIC_CM (RID_SVXITEMS_START + 381)
-#define RID_SVXITEMS_METRIC_INCH (RID_SVXITEMS_START + 382)
-#define RID_SVXITEMS_METRIC_POINT (RID_SVXITEMS_START + 383)
-#define RID_SVXITEMS_METRIC_TWIP (RID_SVXITEMS_START + 384)
-#define RID_SVXITEMS_METRIC_PIXEL (RID_SVXITEMS_START + 385)
-
// enum SvxCellHorJustify
#define RID_SVXITEMS_HORJUST_STANDARD (RID_SVXITEMS_START + 400)
#define RID_SVXITEMS_HORJUST_LEFT (RID_SVXITEMS_START + 401)
@@ -419,46 +229,12 @@
#define RID_SVXITEMS_ORI_STACKED (RID_SVXITEMS_START + 413)
// Id's fuer BoolItems
-#define RID_SVXITEMS_SHADOWED_TRUE (RID_SVXITEMS_START + 415)
-#define RID_SVXITEMS_SHADOWED_FALSE (RID_SVXITEMS_START + 416)
-#define RID_SVXITEMS_AUTOKERN_TRUE (RID_SVXITEMS_START + 417)
-#define RID_SVXITEMS_AUTOKERN_FALSE (RID_SVXITEMS_START + 418)
-#define RID_SVXITEMS_WORDLINE_TRUE (RID_SVXITEMS_START + 419)
-#define RID_SVXITEMS_WORDLINE_FALSE (RID_SVXITEMS_START + 420)
-#define RID_SVXITEMS_CONTOUR_TRUE (RID_SVXITEMS_START + 421)
-#define RID_SVXITEMS_CONTOUR_FALSE (RID_SVXITEMS_START + 422)
-#define RID_SVXITEMS_NOLINEBREAK_TRUE (RID_SVXITEMS_START + 423)
-#define RID_SVXITEMS_NOLINEBREAK_FALSE (RID_SVXITEMS_START + 424)
-#define RID_SVXITEMS_NOHYPHEN_TRUE (RID_SVXITEMS_START + 425)
-#define RID_SVXITEMS_NOHYPHEN_FALSE (RID_SVXITEMS_START + 426)
-#define RID_SVXITEMS_PRINT_TRUE (RID_SVXITEMS_START + 427)
-#define RID_SVXITEMS_PRINT_FALSE (RID_SVXITEMS_START + 428)
-#define RID_SVXITEMS_OPAQUE_TRUE (RID_SVXITEMS_START + 429)
-#define RID_SVXITEMS_OPAQUE_FALSE (RID_SVXITEMS_START + 430)
-#define RID_SVXITEMS_FMTKEEP_TRUE (RID_SVXITEMS_START + 431)
-#define RID_SVXITEMS_FMTKEEP_FALSE (RID_SVXITEMS_START + 432)
-#define RID_SVXITEMS_FMTSPLIT_TRUE (RID_SVXITEMS_START + 433)
-#define RID_SVXITEMS_FMTSPLIT_FALSE (RID_SVXITEMS_START + 434)
-#define RID_SVXITEMS_PROT_CONTENT_TRUE (RID_SVXITEMS_START + 435)
-#define RID_SVXITEMS_PROT_CONTENT_FALSE (RID_SVXITEMS_START + 436)
-#define RID_SVXITEMS_PROT_SIZE_TRUE (RID_SVXITEMS_START + 437)
-#define RID_SVXITEMS_PROT_SIZE_FALSE (RID_SVXITEMS_START + 438)
-#define RID_SVXITEMS_PROT_POS_TRUE (RID_SVXITEMS_START + 439)
-#define RID_SVXITEMS_PROT_POS_FALSE (RID_SVXITEMS_START + 440)
-#define RID_SVXITEMS_TRANSPARENT_TRUE (RID_SVXITEMS_START + 441)
-#define RID_SVXITEMS_TRANSPARENT_FALSE (RID_SVXITEMS_START + 442)
#define RID_SVXITEMS_BOXINF_TABLE_TRUE (RID_SVXITEMS_START + 443)
#define RID_SVXITEMS_BOXINF_TABLE_FALSE (RID_SVXITEMS_START + 444)
#define RID_SVXITEMS_BOXINF_DIST_TRUE (RID_SVXITEMS_START + 445)
#define RID_SVXITEMS_BOXINF_DIST_FALSE (RID_SVXITEMS_START + 446)
#define RID_SVXITEMS_BOXINF_MDIST_TRUE (RID_SVXITEMS_START + 447)
#define RID_SVXITEMS_BOXINF_MDIST_FALSE (RID_SVXITEMS_START + 448)
-#define RID_SVXITEMS_HYPHEN_TRUE (RID_SVXITEMS_START + 449)
-#define RID_SVXITEMS_HYPHEN_FALSE (RID_SVXITEMS_START + 450)
-#define RID_SVXITEMS_PAGE_END_TRUE (RID_SVXITEMS_START + 451)
-#define RID_SVXITEMS_PAGE_END_FALSE (RID_SVXITEMS_START + 452)
-#define RID_SVXITEMS_BLINK_TRUE (RID_SVXITEMS_START + 453)
-#define RID_SVXITEMS_BLINK_FALSE (RID_SVXITEMS_START + 454)
// Complete-Texte -----------------------------------------------------------
@@ -466,20 +242,6 @@
#define RID_SVXITEMS_MARGIN_TOP (RID_SVXITEMS_START + 481)
#define RID_SVXITEMS_MARGIN_RIGHT (RID_SVXITEMS_START + 482)
#define RID_SVXITEMS_MARGIN_BOTTOM (RID_SVXITEMS_START + 483)
-#define RID_SVXITEMS_SIZE_WIDTH (RID_SVXITEMS_START + 484)
-#define RID_SVXITEMS_SIZE_HEIGHT (RID_SVXITEMS_START + 485)
-#define RID_SVXITEMS_LRSPACE_LEFT (RID_SVXITEMS_START + 486)
-#define RID_SVXITEMS_LRSPACE_FLINE (RID_SVXITEMS_START + 487)
-#define RID_SVXITEMS_LRSPACE_RIGHT (RID_SVXITEMS_START + 488)
-#define RID_SVXITEMS_SHADOW_COMPLETE (RID_SVXITEMS_START + 489)
-#define RID_SVXITEMS_BORDER_COMPLETE (RID_SVXITEMS_START + 490)
-#define RID_SVXITEMS_BORDER_TOP (RID_SVXITEMS_START + 491)
-#define RID_SVXITEMS_BORDER_BOTTOM (RID_SVXITEMS_START + 492)
-#define RID_SVXITEMS_BORDER_LEFT (RID_SVXITEMS_START + 493)
-#define RID_SVXITEMS_BORDER_RIGHT (RID_SVXITEMS_START + 494)
-#define RID_SVXITEMS_BORDER_DISTANCE (RID_SVXITEMS_START + 495)
-#define RID_SVXITEMS_ULSPACE_UPPER (RID_SVXITEMS_START + 496)
-#define RID_SVXITEMS_ULSPACE_LOWER (RID_SVXITEMS_START + 497)
#define RID_SVXITEMS_PAGE_COMPLETE (RID_SVXITEMS_START + 498)
#define RID_SVXITEMS_PAGE_NUM_BEGIN (RID_SVXITEMS_START + 499)
#define RID_SVXITEMS_PAGE_NUM_CHR_UPPER (RID_SVXITEMS_START + 499)
@@ -494,80 +256,13 @@
#define RID_SVXITEMS_PAGE_USAGE_RIGHT (RID_SVXITEMS_START + 508)
#define RID_SVXITEMS_PAGE_USAGE_ALL (RID_SVXITEMS_START + 509)
#define RID_SVXITEMS_PAGE_USAGE_MIRROR (RID_SVXITEMS_START + 510)
-#define RID_SVXITEMS_LINES (RID_SVXITEMS_START + 511)
-#define RID_SVXITEMS_WIDOWS_COMPLETE (RID_SVXITEMS_START + 512)
-#define RID_SVXITEMS_ORPHANS_COMPLETE (RID_SVXITEMS_START + 513)
-#define RID_SVXITEMS_HYPHEN_MINLEAD (RID_SVXITEMS_START + 514)
-#define RID_SVXITEMS_HYPHEN_MINTRAIL (RID_SVXITEMS_START + 515)
-#define RID_SVXITEMS_HYPHEN_MAX (RID_SVXITEMS_START + 516)
-#define RID_SVXITEMS_PAGEMODEL_COMPLETE (RID_SVXITEMS_START + 517)
-#define RID_SVXITEMS_KERNING_COMPLETE (RID_SVXITEMS_START + 518)
-#define RID_SVXITEMS_KERNING_EXPANDED (RID_SVXITEMS_START + 519)
-#define RID_SVXITEMS_KERNING_CONDENSED (RID_SVXITEMS_START + 520)
#define RID_SVXITEMS_AUTHOR_COMPLETE (RID_SVXITEMS_START + 521)
#define RID_SVXITEMS_DATE_COMPLETE (RID_SVXITEMS_START + 522)
#define RID_SVXITEMS_TEXT_COMPLETE (RID_SVXITEMS_START + 523)
#define RID_SVXITEMS_BACKGROUND_COLOR (RID_SVXITEMS_START + 524)
#define RID_SVXITEMS_PATTERN_COLOR (RID_SVXITEMS_START + 525)
-#define RID_SVXITEMS_GRAPHIC (RID_SVXITEMS_START + 526)
#define RID_SVXITEMS_BRUSH_CHAR (RID_SVXITEMS_START + 527)
-#define RID_SVXITEMS_BORDER_NONE (RID_SVXITEMS_START + 528)
-
-// enum FontEmphasisMark ---------------------------------------------------
-#define RID_SVXITEMS_EMPHASIS_BEGIN_STYLE (RID_SVXITEMS_START + 530)
-#define RID_SVXITEMS_EMPHASIS_NONE_STYLE (RID_SVXITEMS_START + 530)
-#define RID_SVXITEMS_EMPHASIS_DOT_STYLE (RID_SVXITEMS_START + 531)
-#define RID_SVXITEMS_EMPHASIS_CIRCLE_STYLE (RID_SVXITEMS_START + 532)
-#define RID_SVXITEMS_EMPHASIS_DISC_STYLE (RID_SVXITEMS_START + 533)
-#define RID_SVXITEMS_EMPHASIS_ACCENT_STYLE (RID_SVXITEMS_START + 534)
-
-#define RID_SVXITEMS_EMPHASIS_ABOVE_POS (RID_SVXITEMS_START + 540)
-#define RID_SVXITEMS_EMPHASIS_BELOW_POS (RID_SVXITEMS_START + 541)
-
-#define RID_SVXITEMS_TWOLINES_OFF (RID_SVXITEMS_START + 545)
-#define RID_SVXITEMS_TWOLINES (RID_SVXITEMS_START + 546)
-
-#define RID_SVXITEMS_SCRPTSPC_OFF (RID_SVXITEMS_START + 550)
-#define RID_SVXITEMS_SCRPTSPC_ON (RID_SVXITEMS_START + 551)
-#define RID_SVXITEMS_HNGPNCT_OFF (RID_SVXITEMS_START + 552)
-#define RID_SVXITEMS_HNGPNCT_ON (RID_SVXITEMS_START + 553)
-
-#define RID_SVXITEMS_FORBIDDEN_RULE_OFF (RID_SVXITEMS_START + 554)
-#define RID_SVXITEMS_FORBIDDEN_RULE_ON (RID_SVXITEMS_START + 555)
-
-#define RID_SVXITEMS_CHARROTATE_OFF (RID_SVXITEMS_START + 556)
-#define RID_SVXITEMS_CHARROTATE (RID_SVXITEMS_START + 557)
-#define RID_SVXITEMS_CHARROTATE_FITLINE (RID_SVXITEMS_START + 558)
-
-#define RID_SVXITEMS_CHARSCALE_OFF (RID_SVXITEMS_START + 559)
-#define RID_SVXITEMS_CHARSCALE (RID_SVXITEMS_START + 560)
-
-#define RID_SVXITEMS_RELIEF_BEGIN (RID_SVXITEMS_START + 561)
-#define RID_SVXITEMS_RELIEF_NONE (RID_SVXITEMS_START + 561)
-#define RID_SVXITEMS_RELIEF_EMBOSSED (RID_SVXITEMS_START + 562)
-#define RID_SVXITEMS_RELIEF_ENGRAVED (RID_SVXITEMS_START + 563)
-#define RID_SVXITEMS_RELIEF_END (RID_SVXITEMS_START + 564)
-
-#define RID_SVXITEMS_PARAVERTALIGN_AUTO (RID_SVXITEMS_START + 565)
-#define RID_SVXITEMS_PARAVERTALIGN_BASELINE (RID_SVXITEMS_START + 566)
-#define RID_SVXITEMS_PARAVERTALIGN_TOP (RID_SVXITEMS_START + 567)
-#define RID_SVXITEMS_PARAVERTALIGN_CENTER (RID_SVXITEMS_START + 568)
-#define RID_SVXITEMS_PARAVERTALIGN_BOTTOM (RID_SVXITEMS_START + 569)
-
-#define RID_SVXITEMS_FRMDIR_BEGIN (RID_SVXITEMS_START + 570)
-#define RID_SVXITEMS_FRMDIR_HORI_LEFT_TOP (RID_SVXITEMS_START + 570)
-#define RID_SVXITEMS_FRMDIR_HORI_RIGHT_TOP (RID_SVXITEMS_START + 571)
-#define RID_SVXITEMS_FRMDIR_VERT_TOP_RIGHT (RID_SVXITEMS_START + 572)
-#define RID_SVXITEMS_FRMDIR_VERT_TOP_LEFT (RID_SVXITEMS_START + 573)
-#define RID_SVXITEMS_FRMDIR_ENVIRONMENT (RID_SVXITEMS_START + 574)
-#define RID_SVXITEMS_FRMDIR_END (RID_SVXITEMS_START + 574)
-
-#define RID_SVXITEMS_PARASNAPTOGRID_ON (RID_SVXITEMS_START + 575)
-#define RID_SVXITEMS_PARASNAPTOGRID_OFF (RID_SVXITEMS_START + 576)
-
-#define RID_SVXITEMS_CHARHIDDEN_FALSE (RID_SVXITEMS_START + 577)
-#define RID_SVXITEMS_CHARHIDDEN_TRUE (RID_SVXITEMS_START + 578)
// Ueberlaufpruefung --------------------------------------------------------
diff --git a/svx/inc/svx/swafopt.hxx b/svx/inc/svx/swafopt.hxx
deleted file mode 100644
index 86f569e46221..000000000000
--- a/svx/inc/svx/swafopt.hxx
+++ /dev/null
@@ -1,109 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: swafopt.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVXSWAFOPT_HXX
-#define _SVXSWAFOPT_HXX
-
-#include
-#include "svx/svxdllapi.h"
-
-class SvStringsISortDtor;
-class SmartTagMgr;
-
-// Klasse fuer Optionen vom Autoformat
-struct SVX_DLLPUBLIC SvxSwAutoFmtFlags
-{
- Font aBulletFont;
- Font aByInputBulletFont;
- const SvStringsISortDtor* pAutoCmpltList; // only valid inside the Dialog!!!
- SmartTagMgr* pSmartTagMgr;
-
- sal_Unicode cBullet;
- sal_Unicode cByInputBullet;
-
- USHORT nAutoCmpltWordLen, nAutoCmpltListLen;
- USHORT nAutoCmpltExpandKey;
-
- BYTE nRightMargin;
-
- BOOL bReplaceQuote : 1;
- BOOL bAutoCorrect : 1;
- BOOL bCptlSttSntnc : 1;
- BOOL bCptlSttWrd : 1;
- BOOL bChkFontAttr : 1;
-
- BOOL bChgUserColl : 1;
- BOOL bChgEnumNum : 1;
-
- BOOL bAFmtByInput : 1;
- BOOL bDelEmptyNode : 1;
- BOOL bSetNumRule : 1;
-
- BOOL bChgFracionSymbol : 1;
- BOOL bChgOrdinalNumber : 1;
- BOOL bChgToEnEmDash : 1;
- BOOL bChgWeightUnderl : 1;
- BOOL bSetINetAttr : 1;
-
- BOOL bSetBorder : 1;
- BOOL bCreateTable : 1;
- BOOL bReplaceStyles : 1;
- BOOL bDummy : 1;
-
- BOOL bWithRedlining : 1;
-
- BOOL bRightMargin : 1;
-
- BOOL bAutoCompleteWords : 1;
- BOOL bAutoCmpltCollectWords : 1;
- BOOL bAutoCmpltEndless : 1;
-// -- under NT hier starts a new long
- BOOL bAutoCmpltAppendBlanc : 1;
- BOOL bAutoCmpltShowAsTip : 1;
-
- BOOL bAFmtDelSpacesAtSttEnd : 1;
- BOOL bAFmtDelSpacesBetweenLines : 1;
- BOOL bAFmtByInpDelSpacesAtSttEnd : 1;
- BOOL bAFmtByInpDelSpacesBetweenLines : 1;
-
- BOOL bAutoCmpltKeepList : 1;
-
- // some dummies for any new options
- BOOL bDummy6 : 1,
- bDummy7 : 1,
- bDummy8 : 1
- ;
-
- SvxSwAutoFmtFlags();
- SvxSwAutoFmtFlags( const SvxSwAutoFmtFlags& rAFFlags ) { *this = rAFFlags; }
- SvxSwAutoFmtFlags& operator=( const SvxSwAutoFmtFlags& );
-};
-
-#endif
-
diff --git a/svx/inc/svx/tstpitem.hxx b/svx/inc/svx/tstpitem.hxx
deleted file mode 100644
index b910b1b1e704..000000000000
--- a/svx/inc/svx/tstpitem.hxx
+++ /dev/null
@@ -1,191 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: tstpitem.hxx,v $
- * $Revision: 1.5 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_TSPTITEM_HXX
-#define _SVX_TSPTITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-// class SvxTabStop ------------------------------------------------------
-
-#define SVX_TAB_DEFCOUNT 10
-#define SVX_TAB_DEFDIST 1134 // 2cm in twips
-#define SVX_TAB_NOTFOUND USHRT_MAX
-#define cDfltDecimalChar (sal_Unicode(0x00)) // aus IntlWrapper besorgen
-#define cDfltFillChar (sal_Unicode(' '))
-
-class SVX_DLLPUBLIC SvxTabStop
-{
-private:
- long nTabPos;
-
- SvxTabAdjust eAdjustment;
- mutable sal_Unicode m_cDecimal;
- sal_Unicode cFill;
-
- SVX_DLLPRIVATE friend SvStream& operator<<( SvStream&, SvxTabStop& );
-
- void fillDecimal() const;
-
-public:
- SvxTabStop();
-#if (_MSC_VER < 1300)
- SvxTabStop( const long nPos,
- const SvxTabAdjust eAdjst = SVX_TAB_ADJUST_LEFT,
- const sal_Unicode cDec = cDfltDecimalChar,
- const sal_Unicode cFil = cDfltFillChar );
-#else
- SvxTabStop::SvxTabStop( const long nPos,
- const SvxTabAdjust eAdjst = SVX_TAB_ADJUST_LEFT,
- const sal_Unicode cDec = cDfltDecimalChar,
- const sal_Unicode cFil = cDfltFillChar );
-#endif
-
- long& GetTabPos() { return nTabPos; }
- long GetTabPos() const { return nTabPos; }
-
- SvxTabAdjust& GetAdjustment() { return eAdjustment; }
- SvxTabAdjust GetAdjustment() const { return eAdjustment; }
-
- sal_Unicode& GetDecimal() { fillDecimal(); return m_cDecimal; }
- sal_Unicode GetDecimal() const { fillDecimal(); return m_cDecimal; }
-
- sal_Unicode& GetFill() { return cFill; }
- sal_Unicode GetFill() const { return cFill; }
-
- String GetValueString() const;
-
- // das "alte" operator==()
- BOOL IsEqual( const SvxTabStop& rTS ) const
- {
- return ( nTabPos == rTS.nTabPos &&
- eAdjustment == rTS.eAdjustment &&
- m_cDecimal == rTS.m_cDecimal &&
- cFill == rTS.cFill );
- }
-
- // Fuer das SortedArray:
- BOOL operator==( const SvxTabStop& rTS ) const
- { return nTabPos == rTS.nTabPos; }
- BOOL operator <( const SvxTabStop& rTS ) const
- { return nTabPos < rTS.nTabPos; }
-
- SvxTabStop& operator=( const SvxTabStop& rTS )
- {
- nTabPos = rTS.nTabPos;
- eAdjustment = rTS.eAdjustment;
- m_cDecimal = rTS.m_cDecimal;
- cFill = rTS.cFill;
- return *this;
- }
-};
-
-// class SvxTabStopItem --------------------------------------------------
-
-SV_DECL_VARARR_SORT_VISIBILITY( SvxTabStopArr, SvxTabStop, SVX_TAB_DEFCOUNT, 1, SVX_DLLPUBLIC )
-
-/*
-[Beschreibung]
-Dieses Item beschreibt eine Liste von TabStops.
-*/
-
-class SVX_DLLPUBLIC SvxTabStopItem : public SfxPoolItem, private SvxTabStopArr
-{
-//friend class SvxTabStopObject_Impl;
-
-public:
- TYPEINFO();
-
- SvxTabStopItem( USHORT nWhich );
- SvxTabStopItem( const USHORT nTabs,
- const USHORT nDist,
- const SvxTabAdjust eAdjst /*= SVX_TAB_ADJUST_DEFAULT*/,
- USHORT nWhich );
- SvxTabStopItem( const SvxTabStopItem& rTSI );
-
- // Liefert Index-Position des Tabs zurueck oder TAB_NOTFOUND
- USHORT GetPos( const SvxTabStop& rTab ) const;
-
- // Liefert Index-Position des Tabs an nPos zurueck oder TAB_NOTFOUND
- USHORT GetPos( const long nPos ) const;
-
- // entprivatisiert:
- USHORT Count() const { return SvxTabStopArr::Count(); }
- BOOL Insert( const SvxTabStop& rTab );
- void Insert( const SvxTabStopItem* pTabs, USHORT nStart = 0,
- USHORT nEnd = USHRT_MAX );
- void Remove( SvxTabStop& rTab )
- { SvxTabStopArr::Remove( rTab ); }
- void Remove( const USHORT nPos, const USHORT nLen = 1 )
- { SvxTabStopArr::Remove( nPos, nLen ); }
-
- // Zuweisungsoperator, Gleichheitsoperator (vorsicht: teuer!)
- SvxTabStopItem& operator=( const SvxTabStopItem& rTSI );
-
- // this is already included in SfxPoolItem declaration
- //int operator!=( const SvxTabStopItem& rTSI ) const
- // { return !( operator==( rTSI ) ); }
-
- // SortedArrays liefern nur Stackobjekte zurueck!
- const SvxTabStop& operator[]( const USHORT nPos ) const
- {
- DBG_ASSERT( GetStart() &&
- nPos < Count(), "op[]" );
- return *( GetStart() + nPos );
- }
- const SvxTabStop* GetStart() const
- { return SvxTabStopArr::GetData(); }
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT ) const;
- virtual SvStream& Store( SvStream& , USHORT nItemVersion ) const;
-
- using SvxTabStopArr::Insert;
- using SvxTabStopArr::Remove;
-};
-
-#endif
-
diff --git a/svx/inc/svx/twolinesitem.hxx b/svx/inc/svx/twolinesitem.hxx
deleted file mode 100644
index 5c0094db0f42..000000000000
--- a/svx/inc/svx/twolinesitem.hxx
+++ /dev/null
@@ -1,96 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: twolinesitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_TWOLINESITEM_HXX
-#define _SVX_TWOLINESITEM_HXX
-
-#include
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-class SVX_DLLPUBLIC SvxTwoLinesItem : public SfxPoolItem
-{
- sal_Unicode cStartBracket, cEndBracket;
- sal_Bool bOn;
-public:
- TYPEINFO();
- SvxTwoLinesItem( sal_Bool bOn /*= TRUE*/,
- sal_Unicode nStartBracket /*= 0*/,
- sal_Unicode nEndBracket /*= 0*/,
- sal_uInt16 nId );
- SvxTwoLinesItem( const SvxTwoLinesItem& rAttr );
- virtual ~SvxTwoLinesItem();
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT nVer) const;
- virtual SvStream& Store(SvStream &, USHORT nIVer) const;
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText,
- const IntlWrapper* pIntl = 0 ) const;
-
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId = 0 );
-
- virtual USHORT GetVersion( USHORT nFFVer ) const;
-
- SvxTwoLinesItem& operator=( const SvxTwoLinesItem& rCpy )
- {
- SetValue( rCpy.GetValue() );
- SetStartBracket( rCpy.GetStartBracket() );
- SetEndBracket( rCpy.GetEndBracket() );
- return *this;
- }
-
- sal_Bool GetValue() const { return bOn; }
- void SetValue( sal_Bool bFlag ) { bOn = bFlag; }
-
- sal_Unicode GetStartBracket() const { return cStartBracket; }
- void SetStartBracket( sal_Unicode c ) { cStartBracket = c; }
-
- sal_Unicode GetEndBracket() const { return cEndBracket; }
- void SetEndBracket( sal_Unicode c ) { cEndBracket = c; }
-};
-
-#endif
-
diff --git a/svx/inc/svx/udlnitem.hxx b/svx/inc/svx/udlnitem.hxx
deleted file mode 100644
index 33d5d59e3ff6..000000000000
--- a/svx/inc/svx/udlnitem.hxx
+++ /dev/null
@@ -1,139 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: udlnitem.hxx,v $
- * $Revision: 1.4.212.1 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_UDLNITEM_HXX
-#define _SVX_UDLNITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include
-#include
-#include "svx/svxdllapi.h"
-
-class SvXMLUnitConverter;
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxTextLineItem ------------------------------------------------
-
-/* Value container for underline and overline font effects */
-
-class SVX_DLLPUBLIC SvxTextLineItem : public SfxEnumItem
-{
- Color mColor;
-public:
- TYPEINFO();
-
- SvxTextLineItem( const FontUnderline eSt,
- const USHORT nId );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetValueCount() const;
-
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId = 0 );
-
- // MS VC4.0 kommt durcheinander
- void SetValue( USHORT nNewVal )
- {SfxEnumItem::SetValue(nNewVal); }
- virtual int HasBoolValue() const;
- virtual BOOL GetBoolValue() const;
- virtual void SetBoolValue( BOOL bVal );
-
- virtual int operator==( const SfxPoolItem& ) const;
-
- inline SvxTextLineItem& operator=(const SvxTextLineItem& rTextLine)
- {
- SetValue( rTextLine.GetValue() );
- SetColor( rTextLine.GetColor() );
- return *this;
- }
-
- // enum cast
- FontUnderline GetLineStyle() const
- { return (FontUnderline)GetValue(); }
- void SetLineStyle( FontUnderline eNew )
- { SetValue((USHORT) eNew); }
-
- const Color& GetColor() const { return mColor; }
- void SetColor( const Color& rCol ) { mColor = rCol; }
-};
-
-// class SvxUnderlineItem ------------------------------------------------
-
-/* Value container for underline font effects */
-
-class SVX_DLLPUBLIC SvxUnderlineItem : public SvxTextLineItem
-{
-public:
- TYPEINFO();
-
- SvxUnderlineItem( const FontUnderline eSt,
- const USHORT nId );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
-};
-
-// class SvxOverlineItem ------------------------------------------------
-
-/* Value container for overline font effects */
-
-class SVX_DLLPUBLIC SvxOverlineItem : public SvxTextLineItem
-{
-public:
- TYPEINFO();
-
- SvxOverlineItem( const FontUnderline eSt,
- const USHORT nId );
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
-};
-
-#endif // #ifndef _SVX_UDLNITEM_HXX
diff --git a/svx/inc/svx/ulspitem.hxx b/svx/inc/svx/ulspitem.hxx
deleted file mode 100644
index 9c57a445a0a7..000000000000
--- a/svx/inc/svx/ulspitem.hxx
+++ /dev/null
@@ -1,119 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: ulspitem.hxx,v $
- * $Revision: 1.4 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_ULSPITEM_HXX
-#define _SVX_ULSPITEM_HXX
-
-// include ---------------------------------------------------------------
-
-#include
-#ifndef _SVX_SVXIDS_HRC
-#include
-#endif
-#include "svx/svxdllapi.h"
-
-namespace rtl
-{
- class OUString;
-}
-
-// class SvxULSpaceItem --------------------------------------------------
-
-/*
-[Beschreibung]
-Dieses Item beschreibt den oberen und unteren Rand einer Seite oder Absatz.
-*/
-
-#define ULSPACE_16_VERSION ((USHORT)0x0001)
-
-class SVX_DLLPUBLIC SvxULSpaceItem : public SfxPoolItem
-{
- USHORT nUpper; //Oberer Rand
- USHORT nLower; //Unterer Rand
- USHORT nPropUpper, nPropLower; // relativ oder absolut (=100%)
-public:
- TYPEINFO();
-
- SvxULSpaceItem( const USHORT nId );
- SvxULSpaceItem( const USHORT nUp, const USHORT nLow,
- const USHORT nId );
- inline SvxULSpaceItem& operator=( const SvxULSpaceItem &rCpy );
-
- // "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
-
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
-
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- String &rText, const IntlWrapper * = 0 ) const;
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
- virtual int ScaleMetrics( long nMult, long nDiv );
- virtual int HasMetrics() const;
-
- inline void SetUpper( const USHORT nU, const USHORT nProp = 100 );
- inline void SetLower( const USHORT nL, const USHORT nProp = 100 );
-
- void SetUpperValue( const USHORT nU ) { nUpper = nU; }
- void SetLowerValue( const USHORT nL ) { nLower = nL; }
- void SetPropUpper( const USHORT nU ) { nPropUpper = nU; }
- void SetPropLower( const USHORT nL ) { nPropLower = nL; }
-
- USHORT GetUpper() const { return nUpper; }
- USHORT GetLower() const { return nLower; }
- USHORT GetPropUpper() const { return nPropUpper; }
- USHORT GetPropLower() const { return nPropLower; }
-};
-
-inline SvxULSpaceItem &SvxULSpaceItem::operator=( const SvxULSpaceItem &rCpy )
-{
- nUpper = rCpy.GetUpper();
- nLower = rCpy.GetLower();
- nPropUpper = rCpy.GetPropUpper();
- nPropLower = rCpy.GetPropLower();
- return *this;
-}
-
-inline void SvxULSpaceItem::SetUpper( const USHORT nU, const USHORT nProp )
-{
- nUpper = USHORT((ULONG(nU) * nProp ) / 100); nPropUpper = nProp;
-}
-inline void SvxULSpaceItem::SetLower( const USHORT nL, const USHORT nProp )
-{
- nLower = USHORT((ULONG(nL) * nProp ) / 100); nPropLower = nProp;
-}
-
-#endif
-
diff --git a/svx/inc/svx/unoedsrc.hxx b/svx/inc/svx/unoedsrc.hxx
deleted file mode 100644
index 6c3025072e3c..000000000000
--- a/svx/inc/svx/unoedsrc.hxx
+++ /dev/null
@@ -1,554 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: unoedsrc.hxx,v $
- * $Revision: 1.6 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SVX_UNOEDSRC_HXX
-#define _SVX_UNOEDSRC_HXX
-
-#include
-
-#include
-#include
-#include
-#include
-#include
-#include
-#ifndef _SV_COLOR_HXX //autogen
-#include
-#endif
-#include
-#include
-#include "svx/svxdllapi.h"
-
-#include
-
-struct ESelection;
-struct EFieldInfo;
-struct EBulletInfo;
-class OutputDevice;
-class String;
-class SfxItemSet;
-class SvUShorts;
-class SvxTextForwarder;
-class SvxViewForwarder;
-class SvxEditViewForwarder;
-class SvxFieldItem;
-class SfxBroadcaster;
-class EECharAttribArray;
-class SvxUnoTextRangeBase;
-
-typedef std::list< SvxUnoTextRangeBase* > SvxUnoTextRangeBaseList;
-
-/** Wrapper class for unified EditEngine/Outliner access
-
- This class wraps a textual object, which might or might not
- contain an EditEngine/Outliner. Is used e.g. for filling an
- EditEngine with the content of a cell, note page or page template.
-*/
-class SVX_DLLPUBLIC SvxEditSource
-{
-public:
- virtual ~SvxEditSource();
-
- /// Returns a new reference to the same object. This is a shallow copy
- virtual SvxEditSource* Clone() const = 0;
-
- /** Query the text forwarder
-
- @return the text forwarder, or NULL if the underlying object is dead
- */
- virtual SvxTextForwarder* GetTextForwarder() = 0;
-
- /** Query the view forwarder
-
- @return the view forwarder, or NULL if the underlying object
- is dead, or if no view is available
-
- @derive default implementation provided, overriding is optional
- */
- virtual SvxViewForwarder* GetViewForwarder();
-
- /** Query the edit view forwarder
-
- @param bCreate
- Determines whether an EditView should be created, if there is
- none active. If set to sal_True, and the underlying object is
- not in EditMode, the text forwarder changes and the object is
- set to EditMode.
-
- @return the edit view forwarder, or NULL if the underlying
- object is dead, or if no view is available (if bCreate is
- sal_False, NULL is also returned if the object is not in
- EditMode)
-
- @derive default implementation provided, overriding is optional
-
- @attention If this method is called with bCreate equal to
- sal_True, all previously returned text forwarder can become
- invalid
- */
- virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool bCreate = sal_False );
-
- /// Write back data to model
- virtual void UpdateData() = 0;
-
- /** Returns broadcaster the underlying edit engine's events are sent from
-
- @derive default implementation provided, overriding is optional
- */
- virtual SfxBroadcaster& GetBroadcaster() const;
-
- /** adds the given SvxUnoTextRangeBase to the text object
- capsulated by this SvxEditSource. This allows the text
- object to inform all created text ranges about changes
- and also allows to re use already created instances.
- All SvxUnoTextRangeBase must remove itself with
- removeRange() before theire deleted. */
- virtual void addRange( SvxUnoTextRangeBase* pNewRange );
-
- /** removes the given SvxUnoTextRangeBase from the text
- object capsulated by this SvxEditSource. This text range
- will not be informed any longer of changes on the underlying
- text and will also not re used anymore. */
- virtual void removeRange( SvxUnoTextRangeBase* pOldRange );
-
- /** returns a const list of all text ranges that are registered
- for the underlying text object. */
- virtual const SvxUnoTextRangeBaseList& getRanges() const;
-};
-
-
-/** Contains an EditEngine or an Outliner and unifies access to them.
-
- The EditEngine-UNO objects use this class only. To reflect changes
- not only in the EditEngine, but also in the model data, call
- SvxEditSource::UpdateData(). This copies back the data to the model's
- EditTextObject/OutlinerParaObject.
- */
-class SVX_DLLPUBLIC SvxTextForwarder
-{
-public:
- virtual ~SvxTextForwarder();
-
- virtual USHORT GetParagraphCount() const = 0;
- virtual USHORT GetTextLen( USHORT nParagraph ) const = 0;
- virtual String GetText( const ESelection& rSel ) const = 0;
- virtual SfxItemSet GetAttribs( const ESelection& rSel, BOOL bOnlyHardAttrib = 0 ) const = 0;
- virtual SfxItemSet GetParaAttribs( USHORT nPara ) const = 0;
- virtual void SetParaAttribs( USHORT nPara, const SfxItemSet& rSet ) = 0;
- virtual void RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich ) = 0;
- virtual void GetPortions( USHORT nPara, SvUShorts& rList ) const = 0;
-
- virtual USHORT GetItemState( const ESelection& rSel, USHORT nWhich ) const = 0;
- virtual USHORT GetItemState( USHORT nPara, USHORT nWhich ) const = 0;
-
- virtual void QuickInsertText( const String& rText, const ESelection& rSel ) = 0;
- virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel ) = 0;
- virtual void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel ) = 0;
- virtual void QuickInsertLineBreak( const ESelection& rSel ) = 0;
-
- virtual XubString CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, USHORT nPos, Color*& rpTxtColor, Color*& rpFldColor ) = 0;
-
- virtual SfxItemPool* GetPool() const = 0;
-
- virtual const SfxItemSet* GetEmptyItemSetPtr() = 0;
-
- // implementation functions for XParagraphAppend and XTextPortionAppend
- virtual void AppendParagraph() = 0;
- virtual xub_StrLen AppendTextPortion( USHORT nPara, const String &rText, const SfxItemSet &rSet ) = 0;
-
- // XTextCopy
- virtual void CopyText(const SvxTextForwarder& rSource) = 0;
-
- /** Query state of forwarder
-
- @return sal_False, if no longer valid
- */
- virtual BOOL IsValid() const = 0;
-
- /** Query language of character at given position on the underlying edit engine
-
- @param nPara[0 .. n-1]
- Index of paragraph to query language in
-
- @param nIndex[0 .. m-1]
- Index of character to query language of
- */
- virtual LanguageType GetLanguage( USHORT nPara, USHORT nIndex ) const = 0;
-
- /** Query number of fields in the underlying edit engine
-
- @param nPara[0 .. n-1]
- Index of paragraph to query field number in
- */
- virtual USHORT GetFieldCount( USHORT nPara ) const = 0;
-
- /** Query information for given field number in the underlying edit engine
-
- @param nPara[0 .. n-1]
- Index of paragraph to query field info in
-
- @param nField[0 .. m-1]
- Index of field to query information of
- */
- virtual EFieldInfo GetFieldInfo( USHORT nPara, USHORT nField ) const = 0;
-
- /** Query information regarding bullets for given paragraph on the underlying edit engine
-
- @param nPara[0 .. n-1]
- Index of paragraph to query bullet info on
- */
- virtual EBulletInfo GetBulletInfo( USHORT nPara ) const = 0;
-
- /** Query the bounding rectangle of the given character
-
- @param nPara[0 .. n]
- Index of paragraph to query the bounds in. The virtual
- character after the last character of the represented text,
- i.e. the one at position n is a special case. Because it does
- not represent an existing character its bounding box is
- defined in relation to preceding characters. It should be
- rougly equivalent to the bounding box of some character when
- inserted at the end of the text. Its height typically being
- the maximal height of all the characters in the text or the
- height of the preceding character, its width being at least
- one pixel so that the bounding box is not degenerate.
-
- @param nIndex[0 .. m-1]
- Index of character to query the bounds of
-
- @return rectangle in logical coordinates, relative to upper
- left corner of text. The coordinates returned here are to be
- interpreted in the map mode given by GetMapMode().
- */
- virtual Rectangle GetCharBounds( USHORT nPara, USHORT nIndex ) const = 0;
-
- /** Query the bounding rectangle of the given paragraph
-
- @param nPara[0 .. n-1]
- Index of paragraph to query the bounds of
-
- @return rectangle in logical coordinates, relative to upper
- left corner of text. The coordinates returned here are to be
- interpreted in the map mode given by GetMapMode().
- */
- virtual Rectangle GetParaBounds( USHORT nPara ) const = 0;
-
- /** Query the map mode of the underlying EditEngine/Outliner
-
- @return the map mode used on the EditEngine/Outliner. The
- values returned by GetParaBounds() and GetCharBounds() are to
- be interpreted in this map mode, the point given to
- GetIndexAtPoint() is interpreted in this map mode.
- */
- virtual MapMode GetMapMode() const = 0;
-
- /** Query the reference output device of the underlying EditEngine/Outliner
-
- @return the OutputDevice used from the EditEngine/Outliner to
- format the text. It should be used when performing e.g. font
- calculations, since this is usually a printer with fonts and
- resolution different from the screen.
- */
- virtual OutputDevice* GetRefDevice() const = 0;
-
- /** Query paragraph and character index of the character at the
- given point. Returns sal_True on success, sal_False otherwise
-
- @param rPoint
- Point to query text position of. Is interpreted in logical
- coordinates, relativ to the upper left corner of the text, and
- in the map mode given by GetMapMode()
-
- @param rPara[0 .. n-1]
- Index of paragraph the point is within
-
- @param rIndex[0 .. m-1]
- Index of character the point is over
-
- @return sal_True, if the point is over any text and both rPara and rIndex are valid
-
- */
- virtual sal_Bool GetIndexAtPoint( const Point& rPoint, USHORT& rPara, USHORT& rIndex ) const = 0;
-
- /** Get the start and the end index of the word at the given index
-
- An index value on a word leads from the first character of
- that word up to and including the last space before the next
- word. The index values returned do not contain any leading or
- trailing white-space. If the input indices are invalid,
- sal_False is returned.
-
- @param nPara[0 .. n-1]
- Index of paragraph to start the search in
-
- @param nIndex[0 .. m-1]
- Index of character to query the search on
-
- @param rStart
- Start index (in the same paragraph)
-
- @param rEnd
- End index (in the same paragraph), this point to the last
- character still contained in the query
-
- @return sal_True, if the result is non-empty
- */
- virtual sal_Bool GetWordIndices( USHORT nPara, USHORT nIndex, USHORT& rStart, USHORT& rEnd ) const = 0;
-
- /** Query range of similar attributes
-
- Please note that the range returned is half-open: [nStartIndex,nEndIndex)
-
- @param nStartIndex
- Herein, the start index of the range of similar attributes is returned
-
- @param nEndIndex
- Herein, the end index (exclusive) of the range of similar attributes is returned
-
- @param nIndex
- The character index from which the range of similar attributed characters is requested
-
- @return sal_True, if the range has been successfully determined
- */
- virtual sal_Bool GetAttributeRun( USHORT& nStartIndex, USHORT& nEndIndex, USHORT nPara, USHORT nIndex ) const = 0;
-
- /** Query number of lines in the formatted paragraph
-
- @param nPara[0 .. n-1]
- Index of paragraph to query number of lines in
-
- @return number of lines in given paragraph
-
- */
- virtual USHORT GetLineCount( USHORT nPara ) const = 0;
-
- /** Query line length
-
- @param nPara[0 .. n-1]
- Index of paragraph to query line length in
-
- @param nLine[0 .. m-1]
- Index of line in paragraph to query line length of
-
- */
- virtual USHORT GetLineLen( USHORT nPara, USHORT nLine ) const = 0;
-
- /** Query bounds of line in paragraph
-
- @param rStart [output param; 0 .. text_len]
- The index in the paragraph text that belongs to the chara at the start of the line
-
- @param rEnd [output param; 0 .. text_len]
- The index in the paragraph text that follows the last chara in the line
-
- @param nParagraph[0 .. n-1]
- Index of paragraph to query line length in
-
- @param nLine[0 .. m-1]
- Index of line in paragraph to query line length of
-
- */
- virtual void GetLineBoundaries( /*out*/USHORT &rStart, /*out*/USHORT &rEnd, USHORT nParagraph, USHORT nLine ) const = 0;
-
- /** Query the line number for a index in the paragraphs text
-
- @param nPara[0 .. n-1]
- Index of paragraph to query line length in
-
- @param nIndex[0 .. m-1]
- Index of of the chara in the paragraph text
-
- @returns [0 .. k-1]
- The line number of the chara in the paragraph
- */
- virtual USHORT GetLineNumberAtIndex( USHORT nPara, USHORT nIndex ) const = 0;
-
- /** Delete given text range and reformat text
-
- @param rSelection
- The text range to be deleted
-
- @return sal_True if text has been successfully deleted
- */
- virtual sal_Bool Delete( const ESelection& rSelection ) = 0;
-
- /** Insert/Replace given text in given range and reformat text
-
- @param rText
- Text to insert/replace
-
- @param rSel
- Selection where text should be replaced. The empty selection inserts
-
- @return sal_True if text has been successfully inserted
- */
- virtual sal_Bool InsertText( const String& rText, const ESelection& rSel ) = 0;
-
- /** Updates the formatting
-
- @see EditEngine::QuickFormatDoc() for details
-
- @return sal_True if text have been successfully reformatted
- */
- virtual sal_Bool QuickFormatDoc( BOOL bFull=FALSE ) = 0;
-
- /** Get the outline depth of given paragraph
-
- @param nPara
- Index of the paragraph to query the depth of
-
- @return the outline level of the given paragraph. The range is
- [0,n), where n is the maximal outline level.
- */
- virtual sal_Int16 GetDepth( USHORT nPara ) const = 0;
-
- /** Set the outline depth of given paragraph
-
- @param nPara
- Index of the paragraph to set the depth of
-
- @param nNewDepth
- The depth to set on the given paragraph. The range is
- [0,n), where n is the maximal outline level.
-
- @return TRUE, if depth could be successfully set. Reasons for
- failure are e.g. the text does not support outline level
- (EditEngine), or the depth range is exceeded.
- */
- virtual sal_Bool SetDepth( USHORT nPara, sal_Int16 nNewDepth ) = 0;
-
- virtual sal_Int16 GetNumberingStartValue( sal_uInt16 nPara );
- virtual void SetNumberingStartValue( sal_uInt16 nPara, sal_Int16 nNumberingStartValue );
-
- virtual sal_Bool IsParaIsNumberingRestart( sal_uInt16 nPara );
- virtual void SetParaIsNumberingRestart( sal_uInt16 nPara, sal_Bool bParaIsNumberingRestart );
-};
-
-/** Encapsulates the document view for the purpose of unified
- EditEngine/Outliner access.
-
- This one has to be different from the SvxEditViewForwarder, since
- the latter is only valid in edit mode.
- */
-class SVX_DLLPUBLIC SvxViewForwarder
-{
-public:
- virtual ~SvxViewForwarder();
-
- /** Query state of forwarder
-
- @return sal_False, if no longer valid
- */
- virtual BOOL IsValid() const = 0;
-
- /** Query visible area of the view containing the text
-
- @return the visible rectangle of the text, i.e. the part of
- the EditEngine or Outliner that is currently on screen. The
- values are already in screen coordinates (pixel), and have to
- be relative to the EditEngine/Outliner's upper left corner.
- */
- virtual Rectangle GetVisArea() const = 0;
-
- /** Convert from logical, EditEngine-relative coordinates to screen coordinates
-
- @param rPoint
- Point in logical, EditEngine-relative coordinates.
-
- @param rMapMode
- The map mode to interpret the coordinates in.
-
- @return the point in screen coordinates
- */
- virtual Point LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const = 0;
-
- /** Convert from screen to logical, EditEngine-relative coordinates
-
- @param rPoint
- Point in screen coordinates
-
- @param rMapMode
- The map mode to interpret the coordinates in.
-
- @return the point in logical coordinates.
- */
- virtual Point PixelToLogic( const Point& rPoint, const MapMode& rMapMode ) const = 0;
-
-};
-
-
-/** Encapsulates EditView and OutlinerView for the purpose of unified
- EditEngine/Outliner access
- */
-class SvxEditViewForwarder : public SvxViewForwarder
-{
-public:
-
- /** Query current selection.
-
- @param rSelection
- Contains the current selection after method call
-
- @return sal_False, if there is no view or no selection (the empty selection _is_ a selection)
-
- */
- virtual sal_Bool GetSelection( ESelection& rSelection ) const = 0;
-
- /** Set selection in view.
-
- @param rSelection
- The selection to set
-
- @return sal_False, if there is no view or selection is invalid
- */
- virtual sal_Bool SetSelection( const ESelection& rSelection ) = 0;
-
- /** Copy current selection to clipboard.
-
- @return sal_False if no selection or no view (the empty selection _is_ a selection)
- */
- virtual sal_Bool Copy() = 0;
-
- /** Cut current selection to clipboard.
-
- @eturn sal_False if no selection or no view (the empty selection _is_ a selection)
- */
- virtual sal_Bool Cut() = 0;
-
- /** Paste clipboard into current selection.
-
- @return sal_False if no view or no selection (the empty selection _is_ a selection)
- */
- virtual sal_Bool Paste() = 0;
-
-};
-
-#endif
-
diff --git a/svx/inc/svx/unofield.hxx b/svx/inc/svx/unofield.hxx
deleted file mode 100644
index 2dc0379e3d1f..000000000000
--- a/svx/inc/svx/unofield.hxx
+++ /dev/null
@@ -1,140 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: unofield.hxx,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SVX_UNOFIELD_HXX
-#define _SVX_UNOFIELD_HXX
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include "svx/svxdllapi.h"
-
-#include
-
-#include
-
-// ids usable for the constructor
-#define ID_DATEFIELD 0
-#define ID_URLFIELD 1
-#define ID_PAGEFIELD 2
-#define ID_PAGESFIELD 3
-#define ID_TIMEFIELD 4
-#define ID_FILEFIELD 5
-#define ID_TABLEFIELD 6
-#define ID_EXT_TIMEFIELD 7
-#define ID_EXT_FILEFIELD 8
-#define ID_AUTHORFIELD 9
-#define ID_MEASUREFIELD 10
-#define ID_EXT_DATEFIELD 11
-#define ID_HEADERFIELD 12
-#define ID_FOOTERFIELD 13
-#define ID_DATETIMEFIELD 14
-#define ID_UNKNOWN 15 // this must be the last entry
-
-class SvxUnoFieldData_Impl;
-class SfxItemPropertySet;
-class SvxFieldData;
-
-com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL SvxUnoTextCreateTextField(
- const ::rtl::OUString& ServiceSpecifier ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
-
-class SVX_DLLPUBLIC SvxUnoTextField : public SvxMutexHelper,
- public ::cppu::OComponentHelper,
- public ::com::sun::star::text::XTextField,
- public ::com::sun::star::beans::XPropertySet,
- public ::com::sun::star::lang::XServiceInfo,
- public ::com::sun::star::lang::XUnoTunnel
-{
-private:
- ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > mxAnchor;
- const SfxItemPropertySet* mpPropSet;
- sal_Int32 mnServiceId;
- SvxUnoFieldData_Impl* mpImpl;
-
-protected:
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > maTypeSequence;
-
-public:
- SvxUnoTextField( sal_Int32 nServiceId ) throw();
- SvxUnoTextField( ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > xAnchor, const ::rtl::OUString& rPresentation, const SvxFieldData* pFieldData ) throw();
- virtual ~SvxUnoTextField() throw();
-
- // Intern
- virtual sal_Int32 GetFieldId( const SvxFieldData* pFieldData ) const throw();
- SvxFieldData* CreateFieldData() const throw();
- void SetAnchor( ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > xAnchor ) { mxAnchor = xAnchor; }
-
- UNO3_GETIMPLEMENTATION_DECL( SvxUnoTextField )
-
- // ::com::sun::star::uno::XInterface
- virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL acquire() throw();
- virtual void SAL_CALL release() throw();
-
- // ::com::sun::star::lang::XTypeProvider
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException);
-
- // XTextField
- virtual ::rtl::OUString SAL_CALL getPresentation( sal_Bool bShowCommand ) throw(::com::sun::star::uno::RuntimeException);
-
- // XTextContent
- virtual void SAL_CALL attach( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >& xTextRange ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getAnchor( ) throw(::com::sun::star::uno::RuntimeException);
-
- // ::com::sun::star::lang::XComponent
- virtual void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw(::com::sun::star::uno::RuntimeException);
-
- // XPropertySet
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
-
- // OComponentHelper
- virtual void SAL_CALL disposing();
-
- // XServiceInfo
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
-};
-
-#endif
-
diff --git a/svx/inc/svx/unofored.hxx b/svx/inc/svx/unofored.hxx
deleted file mode 100644
index a9c72f766a35..000000000000
--- a/svx/inc/svx/unofored.hxx
+++ /dev/null
@@ -1,102 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: unofored.hxx,v $
- * $Revision: 1.6 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SVX_UNOFORED_HXX
-#define _SVX_UNOFORED_HXX
-
-#include
-#include
-#include "svx/svxdllapi.h"
-
-// SvxEditEngineForwarder - SvxTextForwarder fuer EditEngine
-
-class SVX_DLLPUBLIC SvxEditEngineForwarder : public SvxTextForwarder
-{
-private:
- EditEngine& rEditEngine;
-
-public:
- SvxEditEngineForwarder( EditEngine& rEngine );
- virtual ~SvxEditEngineForwarder();
-
- virtual USHORT GetParagraphCount() const;
- virtual USHORT GetTextLen( USHORT nParagraph ) const;
- virtual String GetText( const ESelection& rSel ) const;
- virtual SfxItemSet GetAttribs( const ESelection& rSel, BOOL bOnlyHardAttrib = EditEngineAttribs_All ) const;
- virtual SfxItemSet GetParaAttribs( USHORT nPara ) const;
- virtual void SetParaAttribs( USHORT nPara, const SfxItemSet& rSet );
- virtual void RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich );
- virtual void GetPortions( USHORT nPara, SvUShorts& rList ) const;
-
- virtual USHORT GetItemState( const ESelection& rSel, USHORT nWhich ) const;
- virtual USHORT GetItemState( USHORT nPara, USHORT nWhich ) const;
-
- virtual void QuickInsertText( const String& rText, const ESelection& rSel );
- virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel );
- virtual void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel );
- virtual void QuickInsertLineBreak( const ESelection& rSel );
-
- virtual SfxItemPool* GetPool() const;
-
- virtual XubString CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, USHORT nPos, Color*& rpTxtColor, Color*& rpFldColor );
- virtual BOOL IsValid() const;
-
- virtual LanguageType GetLanguage( USHORT, USHORT ) const;
- virtual USHORT GetFieldCount( USHORT nPara ) const;
- virtual EFieldInfo GetFieldInfo( USHORT nPara, USHORT nField ) const;
- virtual EBulletInfo GetBulletInfo( USHORT nPara ) const;
- virtual Rectangle GetCharBounds( USHORT nPara, USHORT nIndex ) const;
- virtual Rectangle GetParaBounds( USHORT nPara ) const;
- virtual MapMode GetMapMode() const;
- virtual OutputDevice* GetRefDevice() const;
- virtual sal_Bool GetIndexAtPoint( const Point&, USHORT& nPara, USHORT& nIndex ) const;
- virtual sal_Bool GetWordIndices( USHORT nPara, USHORT nIndex, USHORT& nStart, USHORT& nEnd ) const;
- virtual sal_Bool GetAttributeRun( USHORT& nStartIndex, USHORT& nEndIndex, USHORT nPara, USHORT nIndex ) const;
- virtual USHORT GetLineCount( USHORT nPara ) const;
- virtual USHORT GetLineLen( USHORT nPara, USHORT nLine ) const;
- virtual void GetLineBoundaries( /*out*/USHORT &rStart, /*out*/USHORT &rEnd, USHORT nParagraph, USHORT nLine ) const;
- virtual USHORT GetLineNumberAtIndex( USHORT nPara, USHORT nIndex ) const;
- virtual sal_Bool Delete( const ESelection& );
- virtual sal_Bool InsertText( const String&, const ESelection& );
- virtual sal_Bool QuickFormatDoc( BOOL bFull=FALSE );
- virtual sal_Int16 GetDepth( USHORT nPara ) const;
- virtual sal_Bool SetDepth( USHORT nPara, sal_Int16 nNewDepth );
-
- virtual const SfxItemSet* GetEmptyItemSetPtr();
-
- // implementation functions for XParagraphAppend and XTextPortionAppend
- virtual void AppendParagraph();
- virtual xub_StrLen AppendTextPortion( USHORT nPara, const String &rText, const SfxItemSet &rSet );
- //XTextCopy
- virtual void CopyText(const SvxTextForwarder& rSource);
-};
-
-#endif
-
diff --git a/svx/inc/svx/unoforou.hxx b/svx/inc/svx/unoforou.hxx
deleted file mode 100644
index b4e89065cfdd..000000000000
--- a/svx/inc/svx/unoforou.hxx
+++ /dev/null
@@ -1,130 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: unoforou.hxx,v $
- * $Revision: 1.7 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SVX_UNOFOROU_HXX
-#define _SVX_UNOFOROU_HXX
-
-#include
-#include "svx/svxdllapi.h"
-
-#include
-
-class Outliner;
-
-// SvxOutlinerForwarder - SvxTextForwarder fuer Outliner
-
-class SVX_DLLPUBLIC SvxOutlinerForwarder : public SvxTextForwarder
-{
-private:
- Outliner& rOutliner;
- BOOL bOutlinerText;
-
- /** this pointer may be null or point to an item set for the attribs of
- the selection maAttribsSelection */
- mutable SfxItemSet* mpAttribsCache;
-
- /** if we have a chached attribute item set, this is the selection of it */
- mutable ESelection maAttribCacheSelection;
-
- /** this pointer may be null or point to an item set for the paragraph
- mnParaAttribsCache */
- mutable SfxItemSet* mpParaAttribsCache;
-
- /** if we have a cached para attribute item set, this is the paragraph of it */
- mutable USHORT mnParaAttribsCache;
-
-public:
- SvxOutlinerForwarder( Outliner& rOutl, BOOL bOutlText = FALSE );
- virtual ~SvxOutlinerForwarder();
-
- virtual USHORT GetParagraphCount() const;
- virtual USHORT GetTextLen( USHORT nParagraph ) const;
- virtual String GetText( const ESelection& rSel ) const;
- virtual SfxItemSet GetAttribs( const ESelection& rSel, BOOL bOnlyHardAttrib = 0 ) const;
- virtual SfxItemSet GetParaAttribs( USHORT nPara ) const;
- virtual void SetParaAttribs( USHORT nPara, const SfxItemSet& rSet );
- virtual void RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich );
- virtual void GetPortions( USHORT nPara, SvUShorts& rList ) const;
-
- virtual USHORT GetItemState( const ESelection& rSel, USHORT nWhich ) const;
- virtual USHORT GetItemState( USHORT nPara, USHORT nWhich ) const;
-
- virtual void QuickInsertText( const String& rText, const ESelection& rSel );
- virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel );
- virtual void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel );
- virtual void QuickInsertLineBreak( const ESelection& rSel );
-
- virtual SfxItemPool* GetPool() const;
-
- virtual XubString CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, USHORT nPos, Color*& rpTxtColor, Color*& rpFldColor );
- virtual BOOL IsValid() const;
-
- Outliner& GetOutliner() const { return rOutliner; }
-
- virtual LanguageType GetLanguage( USHORT, USHORT ) const;
- virtual USHORT GetFieldCount( USHORT nPara ) const;
- virtual EFieldInfo GetFieldInfo( USHORT nPara, USHORT nField ) const;
- virtual EBulletInfo GetBulletInfo( USHORT nPara ) const;
- virtual Rectangle GetCharBounds( USHORT nPara, USHORT nIndex ) const;
- virtual Rectangle GetParaBounds( USHORT nPara ) const;
- virtual MapMode GetMapMode() const;
- virtual OutputDevice* GetRefDevice() const;
- virtual sal_Bool GetIndexAtPoint( const Point&, USHORT& nPara, USHORT& nIndex ) const;
- virtual sal_Bool GetWordIndices( USHORT nPara, USHORT nIndex, USHORT& nStart, USHORT& nEnd ) const;
- virtual sal_Bool GetAttributeRun( USHORT& nStartIndex, USHORT& nEndIndex, USHORT nPara, USHORT nIndex ) const;
- virtual USHORT GetLineCount( USHORT nPara ) const;
- virtual USHORT GetLineLen( USHORT nPara, USHORT nLine ) const;
- virtual void GetLineBoundaries( /*out*/USHORT &rStart, /*out*/USHORT &rEnd, USHORT nPara, USHORT nLine ) const;
- virtual USHORT GetLineNumberAtIndex( USHORT nPara, USHORT nIndex ) const;
- virtual sal_Bool Delete( const ESelection& );
- virtual sal_Bool InsertText( const String&, const ESelection& );
- virtual sal_Bool QuickFormatDoc( BOOL bFull=FALSE );
- virtual sal_Int16 GetDepth( USHORT nPara ) const;
- virtual sal_Bool SetDepth( USHORT nPara, sal_Int16 nNewDepth );
- virtual sal_Int16 GetNumberingStartValue( sal_uInt16 nPara );
- virtual void SetNumberingStartValue( sal_uInt16 nPara, sal_Int16 nNumberingStartValue );
-
- virtual sal_Bool IsParaIsNumberingRestart( sal_uInt16 nPara );
- virtual void SetParaIsNumberingRestart( sal_uInt16 nPara, sal_Bool bParaIsNumberingRestart );
-
- /* this method flushes internal caches for this forwarder */
- void flushCache();
-
- virtual const SfxItemSet* GetEmptyItemSetPtr();
-
- // implementation functions for XParagraphAppend and XTextPortionAppend
- virtual void AppendParagraph();
- virtual xub_StrLen AppendTextPortion( USHORT nPara, const String &rText, const SfxItemSet &rSet );
- //XTextCopy
- virtual void CopyText(const SvxTextForwarder& rSource);
-};
-
-#endif
-
diff --git a/svx/inc/svx/unoipset.hxx b/svx/inc/svx/unoipset.hxx
deleted file mode 100644
index 396a66f367f7..000000000000
--- a/svx/inc/svx/unoipset.hxx
+++ /dev/null
@@ -1,89 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: unoipset.hxx,v $
- * $Revision: 1.3 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SVX_UNOIPSET_HXX_
-#define _SVX_UNOIPSET_HXX_
-
-#include
-#include
-#include "svx/svxdllapi.h"
-#include
-
-class SvxIDPropertyCombineList;
-class SdrItemPool;
-class SfxItemSet;
-class SvxShape;
-
-#define SFX_METRIC_ITEM (0x40)
-
-class SVX_DLLPUBLIC SvxItemPropertySet
-{
- SfxItemPropertyMap m_aPropertyMap;
- mutable com::sun::star::uno::Reference m_xInfo;
- const SfxItemPropertyMapEntry* _pMap;
- SvxIDPropertyCombineList* pCombiList;
- sal_Bool mbConvertTwips;
- SfxItemPool& mrItemPool;
-
-public:
- SvxItemPropertySet( const SfxItemPropertyMapEntry *pMap, SfxItemPool& rPool, sal_Bool bConvertTwips = sal_False );
- ~SvxItemPropertySet();
-
- // Methoden, die direkt mit dem ItemSet arbeiten
- ::com::sun::star::uno::Any getPropertyValue( const SfxItemPropertySimpleEntry* pMap, const SfxItemSet& rSet ) const;
- void setPropertyValue( const SfxItemPropertySimpleEntry* pMap, const ::com::sun::star::uno::Any& rVal, SfxItemSet& rSet ) const;
-
- // Methoden, die stattdessen Any benutzen
- ::com::sun::star::uno::Any getPropertyValue( const SfxItemPropertySimpleEntry* pMap ) const;
- void setPropertyValue( const SfxItemPropertySimpleEntry* pMap, const ::com::sun::star::uno::Any& rVal ) const;
-
- // Properties von einem anderen Set uebernehmen
- void ObtainSettingsFromPropertySet(const SvxItemPropertySet& rPropSet, SfxItemSet& rSet, ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xSet )const;
- sal_Bool AreThereOwnUsrAnys() const { return (pCombiList ? sal_True : sal_False); }
- ::com::sun::star::uno::Any* GetUsrAnyForID(sal_uInt16 nWID) const;
- void AddUsrAnyForID(const ::com::sun::star::uno::Any& rAny, sal_uInt16 nWID);
-
- com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > getPropertySetInfo() const;
- const SfxItemPropertyMapEntry* getPropertyMapEntries() const {return _pMap;}
- //void setPropertyMap( const SfxItemPropertyMapEntry *pMap ) { _pMap = pMap; }
- const SfxItemPropertyMap* getPropertyMap()const { return &m_aPropertyMap;}
- const SfxItemPropertySimpleEntry* getPropertyMapEntry(const ::rtl::OUString &rName) const;
-
- static com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo > getPropertySetInfo( const SfxItemPropertyMapEntry* pMap );
-};
-
-/** converts the given any with a metric to 100th/mm if needed */
-SVX_DLLPUBLIC void SvxUnoConvertToMM( const SfxMapUnit eSourceMapUnit, com::sun::star::uno::Any & rMetric ) throw();
-
-/** converts the given any with a metric from 100th/mm to the given metric if needed */
-SVX_DLLPUBLIC void SvxUnoConvertFromMM( const SfxMapUnit eDestinationMapUnit, com::sun::star::uno::Any & rMetric ) throw();
-
-#endif // _SVX_UNOIPSET_HXX_
-
diff --git a/svx/inc/svx/unomid.hxx b/svx/inc/svx/unomid.hxx
index f4c44d228b04..9624141358b7 100644
--- a/svx/inc/svx/unomid.hxx
+++ b/svx/inc/svx/unomid.hxx
@@ -29,82 +29,6 @@
************************************************************************/
#ifndef _SVX_UNOMID_HXX
#define _SVX_UNOMID_HXX
-//LRSpaceItem
-#define MID_LR_MARGIN 0
-#define MID_LRP_MARGIN 1
-#define MID_LR_REL_MARGIN 2
-#define MID_LRP_REL_MARGIN 3
-#define MID_L_MARGIN 4
-#define MID_R_MARGIN 5
-#define MID_L_REL_MARGIN 6
-#define MID_R_REL_MARGIN 7
-#define MID_FIRST_LINE_INDENT 8
-#define MID_FIRST_LINE_REL_INDENT 9
-#define MID_FIRST_AUTO 10
-#define MID_TXT_LMARGIN 11
-
-//ULSpaceItem
-#define MID_UL_MARGIN 1
-#define MID_UL_REL_MARGIN 2
-#define MID_UP_MARGIN 3
-#define MID_LO_MARGIN 4
-#define MID_UP_REL_MARGIN 5
-#define MID_LO_REL_MARGIN 6
-
-//SvxBoolItem
-#define MID_BOLD 0
-#define MID_WEIGHT 1
-
-//SvxPostureItem
-#define MID_ITALIC 0
-#define MID_POSTURE 1
-
-//SvxFontHeightItem
-#define MID_FONTHEIGHT 1
-#define MID_FONTHEIGHT_PROP 2
-#define MID_FONTHEIGHT_DIFF 3
-
-//SvxFontWidthItem
-#define MID_FONTWIDTH 0
-#define MID_FONTWIDTH_PROP 1
-
-//SvxTextLineItem
-#define MID_TEXTLINED 0
-#define MID_TL_STYLE 1
-#define MID_TL_COLOR 2
-#define MID_TL_HASCOLOR 3
-
-//SvxCrossedOutItem
-#define MID_CROSSED_OUT 0
-#define MID_CROSS_OUT 1
-
-//SvxExcapementItem
-#define MID_ESC 0
-#define MID_ESC_HEIGHT 1
-#define MID_AUTO_ESC 2
-
-//SvxLanguageItem
-#define MID_LANGUAGE 0
-#define MID_COUNTRY 1
-#define MID_LANG_COUNTRY 2
-
-//BrushItem
-#define MID_BACK_COLOR 0
-#define MID_GRAPHIC_POSITION 1
-#define MID_GRAPHIC_LINK 2
-#define MID_GRAPHIC 3
-#define MID_GRAPHIC_TRANSPARENT 4
-#define MID_GRAPHIC_URL 5
-#define MID_GRAPHIC_FILTER 6
-#define MID_GRAPHIC_REPEAT 7
-#define MID_GRAPHIC_TRANSPARENCY 8
-#define MID_BACK_COLOR_R_G_B 9
-#define MID_BACK_COLOR_TRANSPARENCY 10
-
-//ProtectItem
-#define MID_PROTECT_CONTENT 0
-#define MID_PROTECT_SIZE 1
-#define MID_PROTECT_POSITION 2
//AdjustItem
#define MID_PARA_ADJUST 0
@@ -124,21 +48,6 @@
#define MID_MARGIN_UP_MARGIN 4
#define MID_MARGIN_LO_MARGIN 5
-//SvxBoxItem
-#define LEFT_BORDER 1
-#define RIGHT_BORDER 2
-#define TOP_BORDER 3
-#define BOTTOM_BORDER 4
-#define BORDER_DISTANCE 5
-#define LEFT_BORDER_DISTANCE 6
-#define RIGHT_BORDER_DISTANCE 7
-#define TOP_BORDER_DISTANCE 8
-#define BOTTOM_BORDER_DISTANCE 9
-#define MID_LEFT_BORDER 10
-#define MID_RIGHT_BORDER 11
-#define MID_TOP_BORDER 12
-#define MID_BOTTOM_BORDER 13
-
#define ALL_BORDER 10
#define ALL_BORDER_PADDING 11
#define LEFT_BORDER_PADDING 12
@@ -151,70 +60,13 @@
#define TOP_BORDER_LINE_WIDTH 19
#define BOTTOM_BORDER_LINE_WIDTH 20
-//SvxFontItem
-// Don't use 0 as it used for the whole struct
-#define MID_FONT_FAMILY_NAME 1
-#define MID_FONT_STYLE_NAME 2
-#define MID_FONT_FAMILY 3
-#define MID_FONT_CHAR_SET 4
-#define MID_FONT_PITCH 5
-
-//SvxHyphenZoneItem
-#define MID_IS_HYPHEN 0
-#define MID_HYPHEN_MIN_LEAD 1
-#define MID_HYPHEN_MIN_TRAIL 2
-#define MID_HYPHEN_MAX_HYPHENS 3
-
-//SvxFmtBreakItem
-#define MID_BREAK_BEFORE 0
-#define MID_BREAK_AFTER 1
-
-//SvxCaseMapItem
-#define MID_CASEMAP_VARIANT 0
-#define MID_CASEMAP_TRANS 1
-
-//SvxLineSpaceItem
-#define MID_LS_FIXED 0
-#define MID_LS_MINIMUM 1
-#define MID_LS_DISTANCE 2
-
-//SvxLanguageItem
-#define MID_LANG_INT 0
-#define MID_LANG_LOCALE 1
-
-//NameOrIndex
-#define MID_NAME 16
-#define MID_GRAFURL 32
-
// XFillBitmapItem (is also a NameOrIndex)
#define MID_BITMAP 8
-//SvxTwoLinesItem
-#define MID_TWOLINES 0
-#define MID_START_BRACKET 1
-#define MID_END_BRACKET 2
-
-//SvxEmphasisMarkItem
-#define MID_EMPHASIS 0
-
-//SvxCharRotateItem
-#define MID_ROTATE 0
-#define MID_FITTOLINE 1
-
-// SvxCharReliefItem
-#define MID_RELIEF 0
-
-// SvxTabStop
-#define MID_TABSTOPS 0
-#define MID_STD_TAB 1
-
// SvxHorJustifyItem
#define MID_HORJUST_HORJUST 0
#define MID_HORJUST_ADJUST 1
-// SvxPageModelItem
-#define MID_AUTO 1
-
// SvxZoomItem
#define MID_VALUE 2
@@ -225,11 +77,6 @@
#define MID_END_Y 4
#define MID_LIMIT 5
-// SvxBoxInfoItem
-#define MID_HORIZONTAL 1
-#define MID_VERTICAL 2
-#define MID_VALIDFLAGS 4
-
// SvxColumnItem
#define MID_COLUMNARRAY 7
#define MID_ACTUAL 4
@@ -269,4 +116,5 @@
#define MID_LINEDASH_DISTANCE 7
#define MID_LEFT 3
+
#endif
diff --git a/svx/inc/svx/unoprnms.hxx b/svx/inc/svx/unoprnms.hxx
deleted file mode 100644
index 7f28e5677043..000000000000
--- a/svx/inc/svx/unoprnms.hxx
+++ /dev/null
@@ -1,379 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: unoprnms.hxx,v $
- * $Revision: 1.4.148.1 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _SVX_UNOPRNMS_HXX
-#define _SVX_UNOPRNMS_HXX
-
-#define UNO_NAME_SHAPE_SIZE "Size"
-#define UNO_NAME_SHAPE_POSITION "Position"
-
-#define UNO_NAME_CHAR_COLOR "CharColor"
-#define UNO_NAME_CHAR_FONT "CharFont"
-#define UNO_NAME_CHAR_HEIGHT "CharHeight"
-#define UNO_NAME_CHAR_POSTURE "CharPosture"
-#define UNO_NAME_CHAR_SHADOWED "CharShadowed"
-#define UNO_NAME_CHAR_UNDERLINE "CharUnderline"
-#define UNO_NAME_CHAR_WEIGHT "CharWeight"
-
-#define UNO_NAME_FILLSTYLE "FillStyle"
-#define UNO_NAME_FILLCOLOR "FillColor"
-#define UNO_NAME_FILLGRADIENT "FillGradient"
-#define UNO_NAME_FILLHATCH "FillHatch"
-#define UNO_NAME_FILLBITMAP "FillBitmap"
-#define UNO_NAME_FILLBACKGROUND "FillBackground"
-#define UNO_NAME_FILLCOLOR_2 "FillColor2"
-
-#define UNO_NAME_EDGEKIND "EdgeKind"
-#define UNO_NAME_EDGELINE1DELTA "EdgeLine1Delta"
-#define UNO_NAME_EDGELINE2DELTA "EdgeLine2Delta"
-#define UNO_NAME_EDGELINE3DELTA "EdgeLine3Delta"
-#define UNO_NAME_EDGENODE1HORZDIST "EdgeNode1HorzDist"
-#define UNO_NAME_EDGENODE1VERTDIST "EdgeNode1VertDist"
-#define UNO_NAME_EDGENODE2HORZDIST "EdgeNode2HorzDist"
-#define UNO_NAME_EDGENODE2VERTDIST "EdgeNode2VertDist"
-
-#define UNO_NAME_FILLBMP_OFFSET_X "FillBitmapOffsetX"
-#define UNO_NAME_FILLBMP_OFFSET_Y "FillBitmapOffsetY"
-#define UNO_NAME_FILLBMP_POSITION_OFFSET_X "FillBitmapPositionOffsetX"
-#define UNO_NAME_FILLBMP_POSITION_OFFSET_Y "FillBitmapPositionOffsetY"
-#define UNO_NAME_FILLBMP_RECTANGLE_POINT "FillBitmapRectanglePoint"
-#define UNO_NAME_FILLBMP_TILE "FillBitmapTile"
-#define UNO_NAME_FILLBMP_STRETCH "FillBitmapStretch"
-#define UNO_NAME_FILLBMP_LOGICAL_SIZE "FillBitmapLogicalSize"
-#define UNO_NAME_FILLBMP_SIZE_X "FillBitmapSizeX"
-#define UNO_NAME_FILLBMP_SIZE_Y "FillBitmapSizeY"
-#define UNO_NAME_FILL_TRANSPARENCE "FillTransparence"
-#define UNO_NAME_FILLBMP_MODE "FillBitmapMode"
-
-#define UNO_NAME_FILL_GRADIENT_STYLE "FillGradientStyle"
-#define UNO_NAME_FILL_GRADIENT_START_COLOR "FillGradientStartColor"
-#define UNO_NAME_FILL_GRADIENT_END_COLOR "FillGradientEndColor"
-#define UNO_NAME_FILL_GRADIENT_ANGLE "FillGradientAngle"
-#define UNO_NAME_FILL_GRADIENT_BORDER "FillGradientBorder"
-#define UNO_NAME_FILL_GRADIENT_OFFSET_X "FillGradientOffsetX"
-#define UNO_NAME_FILL_GRADIENT_OFFSET_Y "FillGradientOffsetY"
-#define UNO_NAME_FILL_GRADIENT_START_INTENSITY "FillGradientStartIntensity"
-#define UNO_NAME_FILL_GRADIENT_END_INTENSITY "FillGradientEndIntensity"
-#define UNO_NAME_FILL_GRADIENT_STEPS "FillGradientSteps"
-
-#define UNO_NAME_FILL_HATCH_STYLE "FillHatchStyle"
-#define UNO_NAME_FILL_HATCH_COLOR "FillHatchColor"
-#define UNO_NAME_FILL_HATCH_DISTANCE "FillHatchDistance"
-#define UNO_NAME_FILL_HATCH_ANGLE "FillHatchAngle"
-
-#define UNO_NAME_LINESTYLE "LineStyle"
-#define UNO_NAME_LINEDASH "LineDash"
-#define UNO_NAME_LINEWIDTH "LineWidth"
-#define UNO_NAME_LINECOLOR "LineColor"
-#define UNO_NAME_LINEJOINT "LineJoint"
-#define UNO_NAME_LINESTART "LineStart"
-#define UNO_NAME_LINEEND "LineEnd"
-#define UNO_NAME_LINESTARTWIDTH "LineStartWidth"
-#define UNO_NAME_LINEENDWIDTH "LineEndWidth"
-#define UNO_NAME_LINESTARTCENTER "LineStartCenter"
-#define UNO_NAME_LINEENDCENTER "LineEndCenter"
-#define UNO_NAME_LINETRANSPARENCE "LineTransparence"
-
-#define UNO_NAME_SHADOW "Shadow"
-#define UNO_NAME_SHADOWCOLOR "ShadowColor"
-#define UNO_NAME_SHADOWXDIST "ShadowXDistance"
-#define UNO_NAME_SHADOWYDIST "ShadowYDistance"
-#define UNO_NAME_SHADOWTRANSPARENCE "ShadowTransparence"
-
-#define UNO_NAME_EDGERADIUS "CornerRadius"
-
-#define UNO_NAME_TEXT_MINFRAMEHEIGHT "TextMinimumFrameHeight"
-#define UNO_NAME_TEXT_AUTOGROWHEIGHT "TextAutoGrowHeight"
-#define UNO_NAME_TEXT_FITTOSIZE "TextFitToSize"
-#define UNO_NAME_TEXT_LEFTDIST "TextLeftDistance"
-#define UNO_NAME_TEXT_RIGHTDIST "TextRightDistance"
-#define UNO_NAME_TEXT_UPPERDIST "TextUpperDistance"
-#define UNO_NAME_TEXT_LOWERDIST "TextLowerDistance"
-#define UNO_NAME_TEXT_VERTADJUST "TextVerticalAdjust"
-#define UNO_NAME_TEXT_MAXFRAMEHEIGHT "TextMaximumFrameHeight"
-#define UNO_NAME_TEXT_MINFRAMEWIDTH "TextMinimumFrameWidth"
-#define UNO_NAME_TEXT_MAXFRAMEWIDTH "TextMaximumFrameWidth"
-#define UNO_NAME_TEXT_AUTOGROWWIDTH "TextAutoGrowWidth"
-#define UNO_NAME_TEXT_HORZADJUST "TextHorizontalAdjust"
-#define UNO_NAME_TEXT_ANIKIND "TextAnimationKind"
-#define UNO_NAME_TEXT_ANIDIRECTION "TextAnimationDirection"
-#define UNO_NAME_TEXT_ANISTARTINSIDE "TextAnimationStartInside"
-#define UNO_NAME_TEXT_ANISTOPINSIDE "TextAnimationStopInside"
-#define UNO_NAME_TEXT_ANICOUNT "TextAnimationCount"
-#define UNO_NAME_TEXT_ANIDELAY "TextAnimationDelay"
-#define UNO_NAME_TEXT_ANIAMOUNT "TextAnimationAmount"
-#define UNO_NAME_TEXT_CONTOURFRAME "TextContourFrame"
-#define UNO_NAME_TEXT_WRITINGMODE "TextWritingMode"
-#define UNO_NAME_TEXT_FONTINDEPENDENTLINESPACING "FontIndependentLineSpacing"
-#define UNO_NAME_TEXT_WORDWRAP "TextWordWrap"
-
-#define UNO_NAME_MEASUREKIND "MeasureKind"
-#define UNO_NAME_MEASURETEXTHPOS "MeasureTextHorizontalPosition"
-#define UNO_NAME_MEASURETEXTVPOS "MeasureTextVerticalPosition"
-#define UNO_NAME_MEASURELINEDIST "MeasureLineDistance"
-#define UNO_NAME_MEASUREHELPLINEOVERHANG "MeasureHelpLineOverhang"
-#define UNO_NAME_MEASUREHELPLINEDIST "MeasureHelpLineDistance"
-#define UNO_NAME_MEASUREHELPLINE1LEN "MeasureHelpLine1Length"
-#define UNO_NAME_MEASUREHELPLINE2LEN "MeasureHelpLine2Length"
-#define UNO_NAME_MEASUREBELOWREFEDGE "MeasureBelowReferenceEdge"
-#define UNO_NAME_MEASURETEXTROTA90 "MeasureTextRotate90"
-#define UNO_NAME_MEASURETEXTUPSIDEDOWN "MeasureTextUpsideDown"
-#define UNO_NAME_MEASUREOVERHANG "MeasureOverhang"
-#define UNO_NAME_MEASUREUNIT "MeasureUnit"
-#define UNO_NAME_MEASURESCALE "MeasureScale"
-#define UNO_NAME_MEASURESHOWUNIT "MeasureShowUnit"
-#define UNO_NAME_MEASUREFORMATSTRING "MeasureFormatString"
-#define UNO_NAME_MEASURETEXTAUTOANGLE "MeasureTextAutoAngle"
-#define UNO_NAME_MEASURETEXTAUTOANGLEVIEW "MeasureTextAutoAngleView"
-#define UNO_NAME_MEASURETEXTISFIXEDANGLE "MeasureTextIsFixedAngle"
-#define UNO_NAME_MEASURETEXTFIXEDANGLE "MeasureTextFixedAngle"
-
-#define UNO_NAME_CIRCKIND "CircleKind"
-#define UNO_NAME_CIRCSTARTANGLE "CircleStartAngle"
-#define UNO_NAME_CIRCENDANGLE "CircleEndAngle"
-
-#define UNO_NAME_POLYGONKIND "PolygonKind"
-#define UNO_NAME_POLYPOLYGON "PolyPolygon"
-#define UNO_NAME_POLYPOLYGONBEZIER "PolyPolygonBezier"
-#define UNO_NAME_POLYGON "Polygon"
-
-#define UNO_NAME_MISC_OBJ_ZORDER "ZOrder"
-#define UNO_NAME_MISC_OBJ_MOVEPROTECT "MoveProtect"
-#define UNO_NAME_MISC_OBJ_SIZEPROTECT "SizeProtect"
-#define UNO_NAME_MISC_OBJ_PRINTABLE "Printable"
-#define UNO_NAME_MISC_OBJ_LAYERID "LayerID"
-#define UNO_NAME_MISC_OBJ_LAYERNAME "LayerName"
-#define UNO_NAME_MISC_OBJ_NAME "Name"
-#define UNO_NAME_MISC_OBJ_ROTATEANGLE "RotateAngle"
-#define UNO_NAME_MISC_OBJ_SHEARANGLE "ShearAngle"
-#define UNO_NAME_MISC_OBJ_ROTATION_POINT_X "RotationPointX"
-#define UNO_NAME_MISC_OBJ_ROTATION_POINT_Y "RotationPointY"
-#define UNO_NAME_MISC_OBJ_FRAMERECT "FrameRect"
-#define UNO_NAME_MISC_OBJ_BOUNDRECT "BoundRect"
-
-// #i68101#
-#define UNO_NAME_MISC_OBJ_TITLE "Title"
-#define UNO_NAME_MISC_OBJ_DESCRIPTION "Description"
-
-#define UNO_NAME_GRAPHOBJ_FILLBITMAP "GraphicObjectFillBitmap"
-#define UNO_NAME_GRAPHOBJ_GRAFURL "GraphicURL"
-#define UNO_NAME_GRAPHOBJ_GRAFSTREAMURL "GraphicStreamURL"
-#define UNO_NAME_GRAPHOBJ_URLPREFIX "vnd.sun.star.GraphicObject:"
-#define UNO_NAME_GRAPHOBJ_URLPKGPREFIX "vnd.sun.star.Package:"
-#define UNO_NAME_GRAPHOBJ_GRAPHIC "Graphic"
-
-#define UNO_NAME_OLE2_METAFILE "MetaFile"
-#define UNO_NAME_OLE2_PERSISTNAME "PersistName"
-
-#define UNO_NAME_3D_SCENE_PERSPECTIVE "D3DScenePerspective"
-#define UNO_NAME_3D_SCENE_DISTANCE "D3DSceneDistance"
-#define UNO_NAME_3D_SCENE_FOCAL_LENGTH "D3DSceneFocalLength"
-#define UNO_NAME_3D_SCENE_TWO_SIDED_LIGHTING "D3DSceneTwoSidedLighting"
-#define UNO_NAME_3D_SCENE_LIGHTCOLOR_1 "D3DSceneLightColor1"
-#define UNO_NAME_3D_SCENE_LIGHTCOLOR_2 "D3DSceneLightColor2"
-#define UNO_NAME_3D_SCENE_LIGHTCOLOR_3 "D3DSceneLightColor3"
-#define UNO_NAME_3D_SCENE_LIGHTCOLOR_4 "D3DSceneLightColor4"
-#define UNO_NAME_3D_SCENE_LIGHTCOLOR_5 "D3DSceneLightColor5"
-#define UNO_NAME_3D_SCENE_LIGHTCOLOR_6 "D3DSceneLightColor6"
-#define UNO_NAME_3D_SCENE_LIGHTCOLOR_7 "D3DSceneLightColor7"
-#define UNO_NAME_3D_SCENE_LIGHTCOLOR_8 "D3DSceneLightColor8"
-#define UNO_NAME_3D_SCENE_LIGHTON_1 "D3DSceneLightOn1"
-#define UNO_NAME_3D_SCENE_LIGHTON_2 "D3DSceneLightOn2"
-#define UNO_NAME_3D_SCENE_LIGHTON_3 "D3DSceneLightOn3"
-#define UNO_NAME_3D_SCENE_LIGHTON_4 "D3DSceneLightOn4"
-#define UNO_NAME_3D_SCENE_LIGHTON_5 "D3DSceneLightOn5"
-#define UNO_NAME_3D_SCENE_LIGHTON_6 "D3DSceneLightOn6"
-#define UNO_NAME_3D_SCENE_LIGHTON_7 "D3DSceneLightOn7"
-#define UNO_NAME_3D_SCENE_LIGHTON_8 "D3DSceneLightOn8"
-#define UNO_NAME_3D_SCENE_LIGHTDIRECTION_1 "D3DSceneLightDirection1"
-#define UNO_NAME_3D_SCENE_LIGHTDIRECTION_2 "D3DSceneLightDirection2"
-#define UNO_NAME_3D_SCENE_LIGHTDIRECTION_3 "D3DSceneLightDirection3"
-#define UNO_NAME_3D_SCENE_LIGHTDIRECTION_4 "D3DSceneLightDirection4"
-#define UNO_NAME_3D_SCENE_LIGHTDIRECTION_5 "D3DSceneLightDirection5"
-#define UNO_NAME_3D_SCENE_LIGHTDIRECTION_6 "D3DSceneLightDirection6"
-#define UNO_NAME_3D_SCENE_LIGHTDIRECTION_7 "D3DSceneLightDirection7"
-#define UNO_NAME_3D_SCENE_LIGHTDIRECTION_8 "D3DSceneLightDirection8"
-#define UNO_NAME_3D_SCENE_AMBIENTCOLOR "D3DSceneAmbientColor"
-#define UNO_NAME_3D_SCENE_SHADOW_SLANT "D3DSceneShadowSlant"
-#define UNO_NAME_3D_SCENE_SHADE_MODE "D3DSceneShadeMode"
-
-#define UNO_NAME_3D_DOUBLE_SIDED "D3DDoubleSided"
-#define UNO_NAME_3D_NORMALS_KIND "D3DNormalsKind"
-#define UNO_NAME_3D_NORMALS_INVERT "D3DNormalsInvert"
-#define UNO_NAME_3D_TEXTURE_PROJ_X "D3DTextureProjectionX"
-#define UNO_NAME_3D_TEXTURE_PROJ_Y "D3DTextureProjectionY"
-#define UNO_NAME_3D_SHADOW_3D "D3DShadow3D"
-#define UNO_NAME_3D_MAT_COLOR "D3DMaterialColor"
-#define UNO_NAME_3D_MAT_EMISSION "D3DMaterialEmission"
-#define UNO_NAME_3D_MAT_SPECULAR "D3DMaterialSpecular"
-#define UNO_NAME_3D_MAT_SPECULAR_INTENSITY "D3DMaterialSpecularIntensity"
-#define UNO_NAME_3D_TEXTURE_KIND "D3DTextureKind"
-#define UNO_NAME_3D_TEXTURE_MODE "D3DTextureMode"
-#define UNO_NAME_3D_TEXTURE_FILTER "D3DTextureFilter"
-
-// #i28528#
-// Added extra Item (Bool) for chart2 to be able to show reduced line geometry
-#define UNO_NAME_3D_REDUCED_LINE_GEOMETRY "D3DReducedLineGeometry"
-
-#define UNO_NAME_3D_HORZ_SEGS "D3DHorizontalSegments"
-#define UNO_NAME_3D_VERT_SEGS "D3DVerticalSegments"
-
-#define UNO_NAME_3D_PERCENT_DIAGONAL "D3DPercentDiagonal"
-#define UNO_NAME_3D_BACKSCALE "D3DBackscale"
-#define UNO_NAME_3D_LATHE_END_ANGLE "D3DEndAngle"
-
-#define UNO_NAME_3D_EXTRUDE_DEPTH "D3DDepth"
-
-#define UNO_NAME_3D_TRANSFORM_MATRIX "D3DTransformMatrix"
-#define UNO_NAME_3D_CAMERA_GEOMETRY "D3DCameraGeometry"
-#define UNO_NAME_3D_POS "D3DPosition"
-#define UNO_NAME_3D_SIZE "D3DSize"
-#define UNO_NAME_3D_POS_IS_CENTER "D3DPositionIsCenter"
-#define UNO_NAME_3D_POLYPOLYGON3D "D3DPolyPolygon3D"
-#define UNO_NAME_3D_NORMALSPOLYGON3D "D3DNormalsPolygon3D"
-#define UNO_NAME_3D_TEXTUREPOLYGON3D "D3DTexturePolygon3D"
-#define UNO_NAME_3D_LINEONLY "D3DLineOnly"
-
-// #107245# New 3D properties which are possible for lathe and extrude 3d objects
-#define UNO_NAME_3D_SMOOTH_NORMALS "D3DSmoothNormals"
-#define UNO_NAME_3D_SMOOTH_LIDS "D3DSmoothLids"
-#define UNO_NAME_3D_CHARACTER_MODE "D3DCharacterMode"
-#define UNO_NAME_3D_CLOSE_FRONT "D3DCloseFront"
-#define UNO_NAME_3D_CLOSE_BACK "D3DCloseBack"
-
-#define UNO_NAME_NUMBERING "NumberingIsNumber"
-#define UNO_NAME_NUMBERING_RULES "NumberingRules"
-#define UNO_NAME_NUMBERING_LEVEL "NumberingLevel"
-
-#define UNO_NAME_NRULE_NUMBERINGTYPE "NumberingType"
-#define UNO_NAME_NRULE_PREFIX "Prefix"
-#define UNO_NAME_NRULE_SUFFIX "Suffix"
-#define UNO_NAME_NRULE_BULLETID "BulletId"
-#define UNO_NAME_NRULE_BULLET_COLOR "BulletColor"
-#define UNO_NAME_NRULE_BULLET_RELSIZE "BulletRelSize"
-#define UNO_NAME_NRULE_BULLET_FONT "BulletFont"
-#define UNO_NAME_NRULE_GRAPHICURL "GraphicURL"
-#define UNO_NAME_NRULE_START_WITH "StartWith"
-#define UNO_NAME_NRULE_LEFT_MARGIN "LeftMargin"
-#define UNO_NAME_NRULE_FIRST_LINE_OFFSET "FirstLineOffset"
-#define UNO_NAME_NRULE_ADJUST "Adjust"
-
-#define UNO_NAME_EDIT_FONT_DESCRIPTOR "FontDescriptor"
-#define UNO_NAME_EDIT_FONT_STYLENAME "FontStyleName"
-
-#define UNO_NAME_EDIT_PARA_ADJUST "ParaAdjust"
-#define UNO_NAME_EDIT_PARA_BMARGIN "ParaBottomMargin"
-#define UNO_NAME_EDIT_PARA_LASTLINEADJ "ParaLastLineAdjust"
-#define UNO_NAME_EDIT_PARA_LMARGIN "ParaLeftMargin"
-#define UNO_NAME_EDIT_PARA_LRPARAMARGIN "ParaLeftRightParaMargin"
-#define UNO_NAME_EDIT_PARA_LINESPACING "ParaLineSpacing"
-#define UNO_NAME_EDIT_PARA_RMARGIN "ParaRightMargin"
-#define UNO_NAME_EDIT_PARA_TAPSTOPS "ParaTabStops"
-#define UNO_NAME_EDIT_PARA_TBMARGIN "ParaTopBottomMargin"
-#define UNO_NAME_EDIT_PARA_TMARGIN "ParaTopMargin"
-#define UNO_NAME_EDIT_PARA_IS_HYPHEN "ParaIsHyphenation"
-#define UNO_NAME_EDIT_PARA_IS_HANGING_PUNCTUATION "ParaIsHangingPunctuation"
-#define UNO_NAME_EDIT_PARA_IS_CHARACTER_DISTANCE "ParaIsCharacterDistance"
-#define UNO_NAME_EDIT_PARA_IS_FORBIDDEN_RULES "ParaIsForbiddenRules"
-#define UNO_NAME_EDIT_PARA_FIRST_LINE_INDENT "ParaFirstLineIndent"
-
-#define UNO_NAME_EDIT_CHAR_HEIGHT "CharHeight"
-#define UNO_NAME_EDIT_CHAR_FONTNAME "CharFontName"
-#define UNO_NAME_EDIT_CHAR_FONTSTYLENAME "CharFontStyleName"
-#define UNO_NAME_EDIT_CHAR_FONTFAMILY "CharFontFamily"
-#define UNO_NAME_EDIT_CHAR_FONTCHARSET "CharFontCharSet"
-#define UNO_NAME_EDIT_CHAR_FONTPITCH "CharFontPitch"
-#define UNO_NAME_EDIT_CHAR_POSTURE "CharPosture"
-#define UNO_NAME_EDIT_CHAR_WEIGHT "CharWeight"
-#define UNO_NAME_EDIT_CHAR_LOCALE "CharLocale"
-
-#define UNO_NAME_EDIT_CHAR_HEIGHT_ASIAN "CharHeightAsian"
-#define UNO_NAME_EDIT_CHAR_FONTNAME_ASIAN "CharFontNameAsian"
-#define UNO_NAME_EDIT_CHAR_FONTSTYLENAME_ASIAN "CharFontStyleNameAsian"
-#define UNO_NAME_EDIT_CHAR_FONTFAMILY_ASIAN "CharFontFamilyAsian"
-#define UNO_NAME_EDIT_CHAR_FONTCHARSET_ASIAN "CharFontCharSetAsian"
-#define UNO_NAME_EDIT_CHAR_FONTPITCH_ASIAN "CharFontPitchAsian"
-#define UNO_NAME_EDIT_CHAR_POSTURE_ASIAN "CharPostureAsian"
-#define UNO_NAME_EDIT_CHAR_WEIGHT_ASIAN "CharWeightAsian"
-#define UNO_NAME_EDIT_CHAR_LOCALE_ASIAN "CharLocaleAsian"
-
-#define UNO_NAME_EDIT_CHAR_HEIGHT_COMPLEX "CharHeightComplex"
-#define UNO_NAME_EDIT_CHAR_FONTNAME_COMPLEX "CharFontNameComplex"
-#define UNO_NAME_EDIT_CHAR_FONTSTYLENAME_COMPLEX "CharFontStyleNameComplex"
-#define UNO_NAME_EDIT_CHAR_FONTFAMILY_COMPLEX "CharFontFamilyComplex"
-#define UNO_NAME_EDIT_CHAR_FONTCHARSET_COMPLEX "CharFontCharSetComplex"
-#define UNO_NAME_EDIT_CHAR_FONTPITCH_COMPLEX "CharFontPitchComplex"
-#define UNO_NAME_EDIT_CHAR_POSTURE_COMPLEX "CharPostureComplex"
-#define UNO_NAME_EDIT_CHAR_WEIGHT_COMPLEX "CharWeightComplex"
-#define UNO_NAME_EDIT_CHAR_LOCALE_COMPLEX "CharLocaleComplex"
-
-#define UNO_NAME_EDIT_CHAR_COLOR "CharColor"
-#define UNO_NAME_EDIT_CHAR_CROSSEDOUT "CharCrossedOut"
-#define UNO_NAME_EDIT_CHAR_STRIKEOUT "CharStrikeout"
-#define UNO_NAME_EDIT_CHAR_ESCAPEMENT "CharEscapement"
-#define UNO_NAME_EDIT_CHAR_FONTNAME "CharFontName"
-#define UNO_NAME_EDIT_CHAR_SHADOWED "CharShadowed"
-#define UNO_NAME_EDIT_CHAR_UNDERLINE "CharUnderline"
-#define UNO_NAME_EDIT_CHAR_OVERLINE "CharOverline"
-
-#define UNO_NAME_BITMAP "Bitmap"
-
-#define UNO_NAME_LINKDISPLAYNAME "LinkDisplayName"
-#define UNO_NAME_LINKDISPLAYBITMAP "LinkDisplayBitmap"
-
-#define UNO_NAME_GRAPHIC_LUMINANCE "AdjustLuminance"
-#define UNO_NAME_GRAPHIC_CONTRAST "AdjustContrast"
-#define UNO_NAME_GRAPHIC_RED "AdjustRed"
-#define UNO_NAME_GRAPHIC_GREEN "AdjustGreen"
-#define UNO_NAME_GRAPHIC_BLUE "AdjustBlue"
-#define UNO_NAME_GRAPHIC_GAMMA "Gamma"
-#define UNO_NAME_GRAPHIC_TRANSPARENCY "Transparency"
-#define UNO_NAME_GRAPHIC_COLOR_MODE "GraphicColorMode"
-#define UNO_NAME_GRAPHIC_GRAPHICCROP "GraphicCrop"
-
-#define UNO_NAME_CUSTOMSHAPE_ADJUSTMENT "CustomShapeAdjustment"
-
-// Die folgenden Properties sind veraltet und koennen irgendwann mal raus
-#define UNO_NAME_EDIT_FONT_COLOR "FontColor"
-#define UNO_NAME_EDIT_FONT_ESCAPEMENT "FontEscapement"
-#define UNO_NAME_EDIT_FONT_HEIGHT "FontHeight"
-#define UNO_NAME_EDIT_FONT_SHADOWED "FontShadowed"
-#define UNO_NAME_EDIT_FONT_SLANT "FontSlant"
-#define UNO_NAME_EDIT_FONT_STRIKEOUT "FontStrikeout"
-#define UNO_NAME_EDIT_FONT_UNDERLINE "FontUnderline"
-#define UNO_NAME_EDIT_FONT_WEIGHT "FontWeight"
-#define UNO_NAME_EDIT_CHAR_STYLE "CharStyle"
-#define UNO_NAME_EDIT_FONT_FAMILY "FontFamily"
-#define UNO_NAME_EDIT_FONT_NAME "FontName"
-#define UNO_NAME_EDIT_FONT_CHARSET "FontCharset"
-// Ende der veralteten Properties
-
-#endif
-
-
diff --git a/svx/inc/svx/unoshprp.hxx b/svx/inc/svx/unoshprp.hxx
index e23b24a21957..8db094932380 100644
--- a/svx/inc/svx/unoshprp.hxx
+++ b/svx/inc/svx/unoshprp.hxx
@@ -94,7 +94,6 @@
#endif
#endif
-#define OWN_ATTR_VALUE_START (3900)
#define OWN_ATTR_VALUE_START_TEXT (OWN_ATTR_VALUE_START+0) // the next 10 entries are reserved for text
#define OWN_ATTR_VALUE_POLYGONKIND (OWN_ATTR_VALUE_START+10)
#define OWN_ATTR_VALUE_POLYPOLYGON (OWN_ATTR_VALUE_START+11)
@@ -194,7 +193,7 @@
#define OWN_ATTR_EDGE_POLYPOLYGONBEZIER (OWN_ATTR_VALUE_START+88)
-#define OWN_ATTR_VALUE_END OWN_ATTR_EDGE_POLYPOLYGONBEZIER // WARNING: ee items start at 3991!
+// maximum is OWN_ATTR_VALUE_END = OWN_ATTR_VALUE_START+90
// #FontWork#
#define FONTWORK_PROPERTIES \
diff --git a/svx/inc/svx/unotext.hxx b/svx/inc/svx/unotext.hxx
deleted file mode 100644
index bf45a052d20f..000000000000
--- a/svx/inc/svx/unotext.hxx
+++ /dev/null
@@ -1,678 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: unotext.hxx,v $
- * $Revision: 1.6.84.1 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SVX_UNOTEXT_HXX
-#define _SVX_UNOTEXT_HXX
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include